From 880c1b9fb835c28c4ca48b32b95c3110c7391da2 Mon Sep 17 00:00:00 2001 From: Rodrigo Pastrana Date: Wed, 13 Mar 2024 13:50:58 -0400 Subject: [PATCH 1/4] HPCC4J-583 Update filespray and dfuxref clients to 9.6.x - Updates filespray wsdl2java maven profile Signed-off-by: Rodrigo Pastrana --- wsclient/pom.xml | 2 +- .../filespray/latest/AbortDFUWorkunit.java | 792 +- .../latest/AbortDFUWorkunitResponse.java | 764 +- .../latest/ArrayOfDFUActionResult.java | 922 +- .../filespray/latest/ArrayOfDFUException.java | 916 +- .../filespray/latest/ArrayOfDFUWorkunit.java | 912 +- .../filespray/latest/ArrayOfDropZone.java | 904 +- .../filespray/latest/ArrayOfEspException.java | 1060 +- .../latest/ArrayOfPhysicalFileStruct.java | 924 +- .../filespray/latest/ClusterNames_type0.java | 906 +- .../gen/axis2/filespray/latest/Copy.java | 4865 +++--- .../axis2/filespray/latest/CopyResponse.java | 890 +- .../latest/CreateDFUPublisherWorkunit.java | 397 + .../CreateDFUPublisherWorkunitResponse.java | 433 + .../filespray/latest/CreateDFUWorkunit.java | 792 +- .../latest/CreateDFUWorkunitResponse.java | 866 +- .../filespray/latest/DFUActionResult.java | 1070 +- .../axis2/filespray/latest/DFUException.java | 928 +- .../axis2/filespray/latest/DFUWUActions.java | 848 +- .../filespray/latest/DFUWUFileRequest.java | 1064 +- .../filespray/latest/DFUWUFileResponse.java | 898 +- .../filespray/latest/DFUWUSearchRequest.java | 628 +- .../filespray/latest/DFUWUSearchResponse.java | 868 +- .../axis2/filespray/latest/DFUWorkunit.java | 8636 +++++----- .../latest/DFUWorkunitsActionRequest.java | 862 +- .../latest/DFUWorkunitsActionResponse.java | 1012 +- .../filespray/latest/DeleteDFUWorkunit.java | 792 +- .../latest/DeleteDFUWorkunitResponse.java | 902 +- .../filespray/latest/DeleteDFUWorkunits.java | 758 +- .../latest/DeleteDFUWorkunitsResponse.java | 764 +- .../latest/DeleteDropZoneFilesRequest.java | 1304 +- .../gen/axis2/filespray/latest/Despray.java | 3254 ++-- .../filespray/latest/DesprayResponse.java | 898 +- .../filespray/latest/DfuMonitorRequest.java | 1476 +- .../filespray/latest/DfuMonitorResponse.java | 898 +- .../gen/axis2/filespray/latest/DropZone.java | 1334 +- .../latest/DropZoneFileSearchRequest.java | 1210 +- .../latest/DropZoneFileSearchResponse.java | 1006 +- .../latest/DropZoneFilesRequest.java | 1620 +- .../latest/DropZoneFilesResponse.java | 1658 +- .../axis2/filespray/latest/EchoDateTime.java | 786 +- .../latest/EchoDateTimeResponse.java | 794 +- .../axis2/filespray/latest/EspException.java | 1198 +- .../axis2/filespray/latest/EspSoapFault.java | 76 +- .../filespray/latest/EspStringArray.java | 902 +- .../axis2/filespray/latest/Exceptions.java | 632 +- .../filespray/latest/ExtensionMapper.java | 258 +- .../filespray/latest/FileListRequest.java | 1476 +- .../filespray/latest/FileListResponse.java | 1688 +- .../gen/axis2/filespray/latest/FileSpray.java | 760 +- .../latest/FileSprayPingRequest.java | 628 +- .../latest/FileSprayPingResponse.java | 628 +- .../axis2/filespray/latest/FileSprayStub.java | 13991 ++++++++-------- .../filespray/latest/GetDFUExceptions.java | 792 +- .../latest/GetDFUExceptionsResponse.java | 868 +- .../latest/GetDFUServerQueuesRequest.java | 794 +- .../latest/GetDFUServerQueuesResponse.java | 866 +- .../filespray/latest/GetDFUWorkunit.java | 792 +- .../latest/GetDFUWorkunitResponse.java | 1005 +- .../filespray/latest/GetDFUWorkunits.java | 3006 ++-- .../latest/GetDFUWorkunitsResponse.java | 3208 ++-- .../latest/GetRemoteTargetsRequest.java | 315 + .../latest/GetRemoteTargetsResponse.java | 503 + .../latest/GetSprayTargetsRequest.java | 630 +- .../latest/GetSprayTargetsResponse.java | 868 +- .../gen/axis2/filespray/latest/GroupNode.java | 1066 +- .../filespray/latest/GroupNodes_type0.java | 904 +- .../filespray/latest/OpenSaveRequest.java | 1476 +- .../filespray/latest/OpenSaveResponse.java | 1582 +- .../filespray/latest/PhysicalFileStruct.java | 1588 +- .../filespray/latest/ProgressRequest.java | 792 +- .../filespray/latest/ProgressResponse.java | 2132 +-- .../gen/axis2/filespray/latest/Rename.java | 1192 +- .../filespray/latest/RenameResponse.java | 898 +- .../gen/axis2/filespray/latest/Replicate.java | 1478 +- .../filespray/latest/ReplicateResponse.java | 898 +- .../filespray/latest/ShowResultRequest.java | 792 +- .../filespray/latest/ShowResultResponse.java | 898 +- .../axis2/filespray/latest/SprayFixed.java | 4726 +++--- .../filespray/latest/SprayFixedResponse.java | 898 +- .../axis2/filespray/latest/SprayResponse.java | 890 +- .../axis2/filespray/latest/SprayVariable.java | 5968 +++---- .../gen/axis2/filespray/latest/String.java | 720 +- .../filespray/latest/SubmitDFUWorkunit.java | 792 +- .../latest/SubmitDFUWorkunitResponse.java | 764 +- .../filespray/latest/UpdateDFUWorkunit.java | 1306 +- .../latest/UpdateDFUWorkunitResponse.java | 764 +- .../latest/ArrayOfDFULogicalFile.java | 920 +- .../wsdfuxref/latest/ArrayOfEspException.java | 1060 +- .../wsdfuxref/latest/DFULogicalFile.java | 3404 ++-- .../latest/DFUXRefArrayActionRequest.java | 1243 +- .../latest/DFUXRefArrayActionResponse.java | 798 +- .../latest/DFUXRefBuildCancelRequest.java | 630 +- .../latest/DFUXRefBuildCancelResponse.java | 798 +- .../wsdfuxref/latest/DFUXRefBuildRequest.java | 792 +- .../latest/DFUXRefBuildResponse.java | 794 +- .../DFUXRefCleanDirectoriesRequest.java | 794 +- .../DFUXRefCleanDirectoriesResponse.java | 764 +- .../DFUXRefDirectoriesQueryRequest.java | 794 +- .../DFUXRefDirectoriesQueryResponse.java | 798 +- .../latest/DFUXRefFoundFilesQueryRequest.java | 794 +- .../DFUXRefFoundFilesQueryResponse.java | 798 +- .../wsdfuxref/latest/DFUXRefListRequest.java | 628 +- .../wsdfuxref/latest/DFUXRefListResponse.java | 794 +- .../latest/DFUXRefLostFilesQueryRequest.java | 794 +- .../latest/DFUXRefLostFilesQueryResponse.java | 798 +- .../latest/DFUXRefMessagesQueryRequest.java | 794 +- .../latest/DFUXRefMessagesQueryResponse.java | 798 +- .../DFUXRefOrphanFilesQueryRequest.java | 794 +- .../DFUXRefOrphanFilesQueryResponse.java | 798 +- .../latest/DFUXRefUnusedFilesRequest.java | 1290 +- .../latest/DFUXRefUnusedFilesResponse.java | 1120 +- .../axis2/wsdfuxref/latest/EspException.java | 1198 +- .../axis2/wsdfuxref/latest/EspSoapFault.java | 76 +- .../wsdfuxref/latest/EspStringArray.java | 902 +- .../axis2/wsdfuxref/latest/Exceptions.java | 632 +- .../wsdfuxref/latest/ExtensionMapper.java | 122 +- .../gen/axis2/wsdfuxref/latest/String.java | 720 +- .../wsdfuxref/latest/UnusedFiles_type0.java | 902 +- .../gen/axis2/wsdfuxref/latest/WsDFUXRef.java | 334 +- .../latest/WsDFUXRefPingRequest.java | 628 +- .../latest/WsDFUXRefPingResponse.java | 628 +- .../axis2/wsdfuxref/latest/WsDFUXRefStub.java | 5764 +++---- .../main/resources/WSDLs/FileSpray-126.wsdl | 4805 ++++++ .../src/main/resources/WSDLs/FileSpray.wsdl | 7518 ++++++--- .../main/resources/WSDLs/WsDFUXRef-104.wsdl | 1565 ++ .../src/main/resources/WSDLs/WsDFUXRef.wsdl | 2343 ++- 127 files changed, 92307 insertions(+), 80640 deletions(-) create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUPublisherWorkunit.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUPublisherWorkunitResponse.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetRemoteTargetsRequest.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetRemoteTargetsResponse.java create mode 100644 wsclient/src/main/resources/WSDLs/FileSpray-126.wsdl create mode 100644 wsclient/src/main/resources/WSDLs/WsDFUXRef-104.wsdl diff --git a/wsclient/pom.xml b/wsclient/pom.xml index 58a2ae134..f68a0df77 100644 --- a/wsclient/pom.xml +++ b/wsclient/pom.xml @@ -279,7 +279,7 @@ true adb org.hpccsystems.ws.client.gen.axis2.filespray.latest - src/main/resources/WSDLs/WsFileSpray.wsdl + src/main/resources/WSDLs/FileSpray.wsdl 1.23 sync diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/AbortDFUWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/AbortDFUWorkunit.java index fc48c6b71..9d070171e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/AbortDFUWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/AbortDFUWorkunit.java @@ -1,396 +1,396 @@ -/** - * AbortDFUWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** AbortDFUWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class AbortDFUWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AbortDFUWorkunit", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":AbortDFUWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "AbortDFUWorkunit", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static AbortDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - AbortDFUWorkunit object = new AbortDFUWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"AbortDFUWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (AbortDFUWorkunit) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * AbortDFUWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** AbortDFUWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class AbortDFUWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AbortDFUWorkunit", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":AbortDFUWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "AbortDFUWorkunit", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static AbortDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + AbortDFUWorkunit object = new AbortDFUWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"AbortDFUWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (AbortDFUWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/AbortDFUWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/AbortDFUWorkunitResponse.java index fe1ce16c4..a75afeb66 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/AbortDFUWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/AbortDFUWorkunitResponse.java @@ -1,382 +1,382 @@ -/** - * AbortDFUWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** AbortDFUWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class AbortDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "AbortDFUWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":AbortDFUWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "AbortDFUWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static AbortDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - AbortDFUWorkunitResponse object = new AbortDFUWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"AbortDFUWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (AbortDFUWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * AbortDFUWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** AbortDFUWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class AbortDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "AbortDFUWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":AbortDFUWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "AbortDFUWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static AbortDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + AbortDFUWorkunitResponse object = new AbortDFUWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"AbortDFUWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (AbortDFUWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUActionResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUActionResult.java index 32110f6ff..289da75e3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUActionResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUActionResult.java @@ -1,461 +1,461 @@ -/** - * ArrayOfDFUActionResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ArrayOfDFUActionResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfDFUActionResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfDFUActionResult - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for DFUActionResult This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] - localDFUActionResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUActionResultTracker = false; - - public boolean isDFUActionResultSpecified() { - return localDFUActionResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] - getDFUActionResult() { - return localDFUActionResult; - } - - /** validate the array for DFUActionResult */ - protected void validateDFUActionResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] param) {} - - /** - * Auto generated setter method - * - * @param param DFUActionResult - */ - public void setDFUActionResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] param) { - - validateDFUActionResult(param); - - localDFUActionResultTracker = param != null; - - this.localDFUActionResult = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult - */ - public void addDFUActionResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult param) { - if (localDFUActionResult == null) { - localDFUActionResult = - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] {}; - } - - // update the setting tracker - localDFUActionResultTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFUActionResult); - list.add(param); - this.localDFUActionResult = - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfDFUActionResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfDFUActionResult", - xmlWriter); - } - } - if (localDFUActionResultTracker) { - if (localDFUActionResult != null) { - for (int i = 0; i < localDFUActionResult.length; i++) { - if (localDFUActionResult[i] != null) { - localDFUActionResult[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResult"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("DFUActionResult cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfDFUActionResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfDFUActionResult object = new ArrayOfDFUActionResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfDFUActionResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfDFUActionResult) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResult") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResult") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setDFUActionResult( - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfDFUActionResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ArrayOfDFUActionResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfDFUActionResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfDFUActionResult + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for DFUActionResult This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] + localDFUActionResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUActionResultTracker = false; + + public boolean isDFUActionResultSpecified() { + return localDFUActionResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] + getDFUActionResult() { + return localDFUActionResult; + } + + /** validate the array for DFUActionResult */ + protected void validateDFUActionResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] param) {} + + /** + * Auto generated setter method + * + * @param param DFUActionResult + */ + public void setDFUActionResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] param) { + + validateDFUActionResult(param); + + localDFUActionResultTracker = param != null; + + this.localDFUActionResult = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult + */ + public void addDFUActionResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult param) { + if (localDFUActionResult == null) { + localDFUActionResult = + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[] {}; + } + + // update the setting tracker + localDFUActionResultTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFUActionResult); + list.add(param); + this.localDFUActionResult = + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfDFUActionResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfDFUActionResult", + xmlWriter); + } + } + if (localDFUActionResultTracker) { + if (localDFUActionResult != null) { + for (int i = 0; i < localDFUActionResult.length; i++) { + if (localDFUActionResult[i] != null) { + localDFUActionResult[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResult"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("DFUActionResult cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfDFUActionResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfDFUActionResult object = new ArrayOfDFUActionResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfDFUActionResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfDFUActionResult) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResult") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResult") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setDFUActionResult( + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUException.java index 47b931d61..c220d9be7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUException.java @@ -1,458 +1,458 @@ -/** - * ArrayOfDFUException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ArrayOfDFUException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfDFUException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfDFUException - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for DFUException This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] localDFUException; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUExceptionTracker = false; - - public boolean isDFUExceptionSpecified() { - return localDFUExceptionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] getDFUException() { - return localDFUException; - } - - /** validate the array for DFUException */ - protected void validateDFUException( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] param) {} - - /** - * Auto generated setter method - * - * @param param DFUException - */ - public void setDFUException( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] param) { - - validateDFUException(param); - - localDFUExceptionTracker = param != null; - - this.localDFUException = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException - */ - public void addDFUException( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException param) { - if (localDFUException == null) { - localDFUException = - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] {}; - } - - // update the setting tracker - localDFUExceptionTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFUException); - list.add(param); - this.localDFUException = - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfDFUException", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfDFUException", - xmlWriter); - } - } - if (localDFUExceptionTracker) { - if (localDFUException != null) { - for (int i = 0; i < localDFUException.length; i++) { - if (localDFUException[i] != null) { - localDFUException[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUException"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("DFUException cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfDFUException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfDFUException object = new ArrayOfDFUException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfDFUException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfDFUException) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUException") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUException") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setDFUException( - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfDFUException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ArrayOfDFUException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfDFUException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfDFUException + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for DFUException This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] localDFUException; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUExceptionTracker = false; + + public boolean isDFUExceptionSpecified() { + return localDFUExceptionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] getDFUException() { + return localDFUException; + } + + /** validate the array for DFUException */ + protected void validateDFUException( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] param) {} + + /** + * Auto generated setter method + * + * @param param DFUException + */ + public void setDFUException( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] param) { + + validateDFUException(param); + + localDFUExceptionTracker = param != null; + + this.localDFUException = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException + */ + public void addDFUException( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException param) { + if (localDFUException == null) { + localDFUException = + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[] {}; + } + + // update the setting tracker + localDFUExceptionTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFUException); + list.add(param); + this.localDFUException = + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfDFUException", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfDFUException", + xmlWriter); + } + } + if (localDFUExceptionTracker) { + if (localDFUException != null) { + for (int i = 0; i < localDFUException.length; i++) { + if (localDFUException[i] != null) { + localDFUException[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUException"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("DFUException cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfDFUException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfDFUException object = new ArrayOfDFUException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfDFUException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfDFUException) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUException") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUException") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setDFUException( + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUWorkunit.java index 32ca00756..817ca6f72 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDFUWorkunit.java @@ -1,456 +1,456 @@ -/** - * ArrayOfDFUWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ArrayOfDFUWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfDFUWorkunit implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfDFUWorkunit - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for DFUWorkunit This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] localDFUWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUWorkunitTracker = false; - - public boolean isDFUWorkunitSpecified() { - return localDFUWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] getDFUWorkunit() { - return localDFUWorkunit; - } - - /** validate the array for DFUWorkunit */ - protected void validateDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] param) {} - - /** - * Auto generated setter method - * - * @param param DFUWorkunit - */ - public void setDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] param) { - - validateDFUWorkunit(param); - - localDFUWorkunitTracker = param != null; - - this.localDFUWorkunit = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit - */ - public void addDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { - if (localDFUWorkunit == null) { - localDFUWorkunit = new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] {}; - } - - // update the setting tracker - localDFUWorkunitTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFUWorkunit); - list.add(param); - this.localDFUWorkunit = - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfDFUWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfDFUWorkunit", - xmlWriter); - } - } - if (localDFUWorkunitTracker) { - if (localDFUWorkunit != null) { - for (int i = 0; i < localDFUWorkunit.length; i++) { - if (localDFUWorkunit[i] != null) { - localDFUWorkunit[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWorkunit"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("DFUWorkunit cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfDFUWorkunit object = new ArrayOfDFUWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfDFUWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfDFUWorkunit) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWorkunit") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWorkunit") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setDFUWorkunit( - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfDFUWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ArrayOfDFUWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfDFUWorkunit implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfDFUWorkunit + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for DFUWorkunit This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] localDFUWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUWorkunitTracker = false; + + public boolean isDFUWorkunitSpecified() { + return localDFUWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] getDFUWorkunit() { + return localDFUWorkunit; + } + + /** validate the array for DFUWorkunit */ + protected void validateDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] param) {} + + /** + * Auto generated setter method + * + * @param param DFUWorkunit + */ + public void setDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] param) { + + validateDFUWorkunit(param); + + localDFUWorkunitTracker = param != null; + + this.localDFUWorkunit = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit + */ + public void addDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { + if (localDFUWorkunit == null) { + localDFUWorkunit = new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[] {}; + } + + // update the setting tracker + localDFUWorkunitTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFUWorkunit); + list.add(param); + this.localDFUWorkunit = + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfDFUWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfDFUWorkunit", + xmlWriter); + } + } + if (localDFUWorkunitTracker) { + if (localDFUWorkunit != null) { + for (int i = 0; i < localDFUWorkunit.length; i++) { + if (localDFUWorkunit[i] != null) { + localDFUWorkunit[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWorkunit"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("DFUWorkunit cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfDFUWorkunit object = new ArrayOfDFUWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfDFUWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfDFUWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWorkunit") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWorkunit") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setDFUWorkunit( + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDropZone.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDropZone.java index 05eb0a2d8..52f91e2cc 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDropZone.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfDropZone.java @@ -1,452 +1,452 @@ -/** - * ArrayOfDropZone.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ArrayOfDropZone bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfDropZone implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfDropZone - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for DropZone This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] localDropZone; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDropZoneTracker = false; - - public boolean isDropZoneSpecified() { - return localDropZoneTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] getDropZone() { - return localDropZone; - } - - /** validate the array for DropZone */ - protected void validateDropZone( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] param) {} - - /** - * Auto generated setter method - * - * @param param DropZone - */ - public void setDropZone(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] param) { - - validateDropZone(param); - - localDropZoneTracker = param != null; - - this.localDropZone = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone - */ - public void addDropZone(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone param) { - if (localDropZone == null) { - localDropZone = new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] {}; - } - - // update the setting tracker - localDropZoneTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDropZone); - list.add(param); - this.localDropZone = - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfDropZone", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfDropZone", - xmlWriter); - } - } - if (localDropZoneTracker) { - if (localDropZone != null) { - for (int i = 0; i < localDropZone.length; i++) { - if (localDropZone[i] != null) { - localDropZone[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZone"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("DropZone cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfDropZone parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfDropZone object = new ArrayOfDropZone(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfDropZone".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfDropZone) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZone") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZone") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setDropZone( - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfDropZone.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ArrayOfDropZone bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfDropZone implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfDropZone + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for DropZone This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] localDropZone; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDropZoneTracker = false; + + public boolean isDropZoneSpecified() { + return localDropZoneTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] getDropZone() { + return localDropZone; + } + + /** validate the array for DropZone */ + protected void validateDropZone( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] param) {} + + /** + * Auto generated setter method + * + * @param param DropZone + */ + public void setDropZone(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] param) { + + validateDropZone(param); + + localDropZoneTracker = param != null; + + this.localDropZone = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone + */ + public void addDropZone(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone param) { + if (localDropZone == null) { + localDropZone = new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[] {}; + } + + // update the setting tracker + localDropZoneTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDropZone); + list.add(param); + this.localDropZone = + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfDropZone", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfDropZone", + xmlWriter); + } + } + if (localDropZoneTracker) { + if (localDropZone != null) { + for (int i = 0; i < localDropZone.length; i++) { + if (localDropZone[i] != null) { + localDropZone[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZone"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("DropZone cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfDropZone parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfDropZone object = new ArrayOfDropZone(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfDropZone".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfDropZone) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZone") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZone") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setDropZone( + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfEspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfEspException.java index f3f1f7f35..0e45df26b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfEspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfEspException.java @@ -1,530 +1,530 @@ -/** - * ArrayOfEspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ArrayOfEspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfEspException - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Exception This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] localException; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionTracker = false; - - public boolean isExceptionSpecified() { - return localExceptionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] getException() { - return localException; - } - - /** validate the array for Exception */ - protected void validateException( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] param) {} - - /** - * Auto generated setter method - * - * @param param Exception - */ - public void setException( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] param) { - - validateException(param); - - localExceptionTracker = param != null; - - this.localException = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException - */ - public void addException( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException param) { - if (localException == null) { - localException = new org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] {}; - } - - // update the setting tracker - localExceptionTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); - list.add(param); - this.localException = - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfEspException", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfEspException", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localExceptionTracker) { - if (localException != null) { - for (int i = 0; i < localException.length; i++) { - if (localException[i] != null) { - localException[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exception"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfEspException object = new ArrayOfEspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfEspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfEspException) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list2 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exception") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list2.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone2 = false; - while (!loopDone2) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone2 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exception") - .equals(reader.getName())) { - list2.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException.Factory.parse( - reader)); - - } else { - loopDone2 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setException( - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException.class, - list2)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfEspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ArrayOfEspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfEspException + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Exception This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] localException; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionTracker = false; + + public boolean isExceptionSpecified() { + return localExceptionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] getException() { + return localException; + } + + /** validate the array for Exception */ + protected void validateException( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] param) {} + + /** + * Auto generated setter method + * + * @param param Exception + */ + public void setException( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] param) { + + validateException(param); + + localExceptionTracker = param != null; + + this.localException = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException + */ + public void addException( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException param) { + if (localException == null) { + localException = new org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[] {}; + } + + // update the setting tracker + localExceptionTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); + list.add(param); + this.localException = + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfEspException", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfEspException", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localExceptionTracker) { + if (localException != null) { + for (int i = 0; i < localException.length; i++) { + if (localException[i] != null) { + localException[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exception"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfEspException object = new ArrayOfEspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfEspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfEspException) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list2 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exception") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list2.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone2 = false; + while (!loopDone2) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone2 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exception") + .equals(reader.getName())) { + list2.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException.Factory.parse( + reader)); + + } else { + loopDone2 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setException( + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException.class, + list2)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfPhysicalFileStruct.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfPhysicalFileStruct.java index c560659af..c4e87359a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfPhysicalFileStruct.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ArrayOfPhysicalFileStruct.java @@ -1,462 +1,462 @@ -/** - * ArrayOfPhysicalFileStruct.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ArrayOfPhysicalFileStruct bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfPhysicalFileStruct implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfPhysicalFileStruct - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for PhysicalFileStruct This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] - localPhysicalFileStruct; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPhysicalFileStructTracker = false; - - public boolean isPhysicalFileStructSpecified() { - return localPhysicalFileStructTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] - getPhysicalFileStruct() { - return localPhysicalFileStruct; - } - - /** validate the array for PhysicalFileStruct */ - protected void validatePhysicalFileStruct( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] param) {} - - /** - * Auto generated setter method - * - * @param param PhysicalFileStruct - */ - public void setPhysicalFileStruct( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] param) { - - validatePhysicalFileStruct(param); - - localPhysicalFileStructTracker = param != null; - - this.localPhysicalFileStruct = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct - */ - public void addPhysicalFileStruct( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct param) { - if (localPhysicalFileStruct == null) { - localPhysicalFileStruct = - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] {}; - } - - // update the setting tracker - localPhysicalFileStructTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localPhysicalFileStruct); - list.add(param); - this.localPhysicalFileStruct = - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfPhysicalFileStruct", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfPhysicalFileStruct", - xmlWriter); - } - } - if (localPhysicalFileStructTracker) { - if (localPhysicalFileStruct != null) { - for (int i = 0; i < localPhysicalFileStruct.length; i++) { - if (localPhysicalFileStruct[i] != null) { - localPhysicalFileStruct[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PhysicalFileStruct"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("PhysicalFileStruct cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfPhysicalFileStruct parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfPhysicalFileStruct object = new ArrayOfPhysicalFileStruct(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfPhysicalFileStruct".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfPhysicalFileStruct) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PhysicalFileStruct") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "PhysicalFileStruct") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setPhysicalFileStruct( - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfPhysicalFileStruct.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ArrayOfPhysicalFileStruct bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfPhysicalFileStruct implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfPhysicalFileStruct + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for PhysicalFileStruct This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] + localPhysicalFileStruct; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPhysicalFileStructTracker = false; + + public boolean isPhysicalFileStructSpecified() { + return localPhysicalFileStructTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] + getPhysicalFileStruct() { + return localPhysicalFileStruct; + } + + /** validate the array for PhysicalFileStruct */ + protected void validatePhysicalFileStruct( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] param) {} + + /** + * Auto generated setter method + * + * @param param PhysicalFileStruct + */ + public void setPhysicalFileStruct( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] param) { + + validatePhysicalFileStruct(param); + + localPhysicalFileStructTracker = param != null; + + this.localPhysicalFileStruct = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct + */ + public void addPhysicalFileStruct( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct param) { + if (localPhysicalFileStruct == null) { + localPhysicalFileStruct = + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[] {}; + } + + // update the setting tracker + localPhysicalFileStructTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localPhysicalFileStruct); + list.add(param); + this.localPhysicalFileStruct = + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfPhysicalFileStruct", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfPhysicalFileStruct", + xmlWriter); + } + } + if (localPhysicalFileStructTracker) { + if (localPhysicalFileStruct != null) { + for (int i = 0; i < localPhysicalFileStruct.length; i++) { + if (localPhysicalFileStruct[i] != null) { + localPhysicalFileStruct[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PhysicalFileStruct"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("PhysicalFileStruct cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfPhysicalFileStruct parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfPhysicalFileStruct object = new ArrayOfPhysicalFileStruct(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfPhysicalFileStruct".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfPhysicalFileStruct) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PhysicalFileStruct") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "PhysicalFileStruct") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setPhysicalFileStruct( + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ClusterNames_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ClusterNames_type0.java index 1aa53beda..6440fbfba 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ClusterNames_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ClusterNames_type0.java @@ -1,453 +1,453 @@ -/** - * ClusterNames_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ClusterNames_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ClusterNames_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ClusterNames_type0 - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for ClusterName This was an Array! */ - protected java.lang.String[] localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getClusterName() { - return localClusterName; - } - - /** validate the array for ClusterName */ - protected void validateClusterName(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String[] param) { - - validateClusterName(param); - - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addClusterName(java.lang.String param) { - if (localClusterName == null) { - localClusterName = new java.lang.String[] {}; - } - - // update the setting tracker - localClusterNameTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localClusterName); - list.add(param); - this.localClusterName = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ClusterNames_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ClusterNames_type0", - xmlWriter); - } - } - if (localClusterNameTracker) { - if (localClusterName != null) { - namespace = "urn:hpccsystems:ws:filespray"; - for (int i = 0; i < localClusterName.length; i++) { - - if (localClusterName[i] != null) { - - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localClusterName[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ClusterNames_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ClusterNames_type0 object = new ClusterNames_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ClusterNames_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ClusterNames_type0) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterName") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterName") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setClusterName( - (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ClusterNames_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ClusterNames_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ClusterNames_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ClusterNames_type0 + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for ClusterName This was an Array! */ + protected java.lang.String[] localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getClusterName() { + return localClusterName; + } + + /** validate the array for ClusterName */ + protected void validateClusterName(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String[] param) { + + validateClusterName(param); + + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addClusterName(java.lang.String param) { + if (localClusterName == null) { + localClusterName = new java.lang.String[] {}; + } + + // update the setting tracker + localClusterNameTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localClusterName); + list.add(param); + this.localClusterName = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ClusterNames_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ClusterNames_type0", + xmlWriter); + } + } + if (localClusterNameTracker) { + if (localClusterName != null) { + namespace = "urn:hpccsystems:ws:filespray"; + for (int i = 0; i < localClusterName.length; i++) { + + if (localClusterName[i] != null) { + + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localClusterName[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ClusterNames_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ClusterNames_type0 object = new ClusterNames_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ClusterNames_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ClusterNames_type0) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterName") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterName") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setClusterName( + (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Copy.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Copy.java index 0a6dbe616..3015ef96e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Copy.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Copy.java @@ -1,2398 +1,2467 @@ -/** - * Copy.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** Copy bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Copy implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Copy", "ns1"); - - /** field for SourceLogicalName */ - protected java.lang.String localSourceLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceLogicalNameTracker = false; - - public boolean isSourceLogicalNameSpecified() { - return localSourceLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceLogicalName() { - return localSourceLogicalName; - } - - /** - * Auto generated setter method - * - * @param param SourceLogicalName - */ - public void setSourceLogicalName(java.lang.String param) { - localSourceLogicalNameTracker = param != null; - - this.localSourceLogicalName = param; - } - - /** field for DestGroup */ - protected java.lang.String localDestGroup; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestGroupTracker = false; - - public boolean isDestGroupSpecified() { - return localDestGroupTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestGroup() { - return localDestGroup; - } - - /** - * Auto generated setter method - * - * @param param DestGroup - */ - public void setDestGroup(java.lang.String param) { - localDestGroupTracker = param != null; - - this.localDestGroup = param; - } - - /** field for DestGroupRoxie */ - protected java.lang.String localDestGroupRoxie; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestGroupRoxieTracker = false; - - public boolean isDestGroupRoxieSpecified() { - return localDestGroupRoxieTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestGroupRoxie() { - return localDestGroupRoxie; - } - - /** - * Auto generated setter method - * - * @param param DestGroupRoxie - */ - public void setDestGroupRoxie(java.lang.String param) { - localDestGroupRoxieTracker = param != null; - - this.localDestGroupRoxie = param; - } - - /** field for DestLogicalName */ - protected java.lang.String localDestLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestLogicalNameTracker = false; - - public boolean isDestLogicalNameSpecified() { - return localDestLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestLogicalName() { - return localDestLogicalName; - } - - /** - * Auto generated setter method - * - * @param param DestLogicalName - */ - public void setDestLogicalName(java.lang.String param) { - localDestLogicalNameTracker = param != null; - - this.localDestLogicalName = param; - } - - /** field for SourceDali */ - protected java.lang.String localSourceDali; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceDaliTracker = false; - - public boolean isSourceDaliSpecified() { - return localSourceDaliTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceDali() { - return localSourceDali; - } - - /** - * Auto generated setter method - * - * @param param SourceDali - */ - public void setSourceDali(java.lang.String param) { - localSourceDaliTracker = param != null; - - this.localSourceDali = param; - } - - /** field for Srcusername */ - protected java.lang.String localSrcusername; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSrcusernameTracker = false; - - public boolean isSrcusernameSpecified() { - return localSrcusernameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSrcusername() { - return localSrcusername; - } - - /** - * Auto generated setter method - * - * @param param Srcusername - */ - public void setSrcusername(java.lang.String param) { - localSrcusernameTracker = param != null; - - this.localSrcusername = param; - } - - /** field for Srcpassword */ - protected java.lang.String localSrcpassword; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSrcpasswordTracker = false; - - public boolean isSrcpasswordSpecified() { - return localSrcpasswordTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSrcpassword() { - return localSrcpassword; - } - - /** - * Auto generated setter method - * - * @param param Srcpassword - */ - public void setSrcpassword(java.lang.String param) { - localSrcpasswordTracker = param != null; - - this.localSrcpassword = param; - } - - /** field for Overwrite */ - protected boolean localOverwrite; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteTracker = false; - - public boolean isOverwriteSpecified() { - return localOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwrite() { - return localOverwrite; - } - - /** - * Auto generated setter method - * - * @param param Overwrite - */ - public void setOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteTracker = true; - - this.localOverwrite = param; - } - - /** field for Replicate */ - protected boolean localReplicate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateTracker = false; - - public boolean isReplicateSpecified() { - return localReplicateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReplicate() { - return localReplicate; - } - - /** - * Auto generated setter method - * - * @param param Replicate - */ - public void setReplicate(boolean param) { - - // setting primitive attribute tracker to true - localReplicateTracker = true; - - this.localReplicate = param; - } - - /** field for ReplicateOffset */ - protected int localReplicateOffset = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateOffsetTracker = false; - - public boolean isReplicateOffsetSpecified() { - return localReplicateOffsetTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getReplicateOffset() { - return localReplicateOffset; - } - - /** - * Auto generated setter method - * - * @param param ReplicateOffset - */ - public void setReplicateOffset(int param) { - - // setting primitive attribute tracker to true - localReplicateOffsetTracker = param != java.lang.Integer.MIN_VALUE; - - this.localReplicateOffset = param; - } - - /** field for MaxConnections */ - protected int localMaxConnections; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxConnectionsTracker = false; - - public boolean isMaxConnectionsSpecified() { - return localMaxConnectionsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMaxConnections() { - return localMaxConnections; - } - - /** - * Auto generated setter method - * - * @param param MaxConnections - */ - public void setMaxConnections(int param) { - - // setting primitive attribute tracker to true - localMaxConnectionsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMaxConnections = param; - } - - /** field for Throttle */ - protected int localThrottle; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThrottleTracker = false; - - public boolean isThrottleSpecified() { - return localThrottleTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getThrottle() { - return localThrottle; - } - - /** - * Auto generated setter method - * - * @param param Throttle - */ - public void setThrottle(int param) { - - // setting primitive attribute tracker to true - localThrottleTracker = param != java.lang.Integer.MIN_VALUE; - - this.localThrottle = param; - } - - /** field for TransferBufferSize */ - protected int localTransferBufferSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTransferBufferSizeTracker = false; - - public boolean isTransferBufferSizeSpecified() { - return localTransferBufferSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTransferBufferSize() { - return localTransferBufferSize; - } - - /** - * Auto generated setter method - * - * @param param TransferBufferSize - */ - public void setTransferBufferSize(int param) { - - // setting primitive attribute tracker to true - localTransferBufferSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTransferBufferSize = param; - } - - /** field for Nosplit */ - protected boolean localNosplit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNosplitTracker = false; - - public boolean isNosplitSpecified() { - return localNosplitTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNosplit() { - return localNosplit; - } - - /** - * Auto generated setter method - * - * @param param Nosplit - */ - public void setNosplit(boolean param) { - - // setting primitive attribute tracker to true - localNosplitTracker = true; - - this.localNosplit = param; - } - - /** field for Norecover */ - protected boolean localNorecover = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNorecoverTracker = false; - - public boolean isNorecoverSpecified() { - return localNorecoverTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNorecover() { - return localNorecover; - } - - /** - * Auto generated setter method - * - * @param param Norecover - */ - public void setNorecover(boolean param) { - - // setting primitive attribute tracker to true - localNorecoverTracker = true; - - this.localNorecover = param; - } - - /** field for Compress */ - protected boolean localCompress = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompressTracker = false; - - public boolean isCompressSpecified() { - return localCompressTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCompress() { - return localCompress; - } - - /** - * Auto generated setter method - * - * @param param Compress - */ - public void setCompress(boolean param) { - - // setting primitive attribute tracker to true - localCompressTracker = true; - - this.localCompress = param; - } - - /** field for Wrap */ - protected boolean localWrap = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWrapTracker = false; - - public boolean isWrapSpecified() { - return localWrapTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getWrap() { - return localWrap; - } - - /** - * Auto generated setter method - * - * @param param Wrap - */ - public void setWrap(boolean param) { - - // setting primitive attribute tracker to true - localWrapTracker = true; - - this.localWrap = param; - } - - /** field for Multicopy */ - protected boolean localMulticopy = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMulticopyTracker = false; - - public boolean isMulticopySpecified() { - return localMulticopyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getMulticopy() { - return localMulticopy; - } - - /** - * Auto generated setter method - * - * @param param Multicopy - */ - public void setMulticopy(boolean param) { - - // setting primitive attribute tracker to true - localMulticopyTracker = true; - - this.localMulticopy = param; - } - - /** field for SourceDiffKeyName */ - protected java.lang.String localSourceDiffKeyName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceDiffKeyNameTracker = false; - - public boolean isSourceDiffKeyNameSpecified() { - return localSourceDiffKeyNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceDiffKeyName() { - return localSourceDiffKeyName; - } - - /** - * Auto generated setter method - * - * @param param SourceDiffKeyName - */ - public void setSourceDiffKeyName(java.lang.String param) { - localSourceDiffKeyNameTracker = param != null; - - this.localSourceDiffKeyName = param; - } - - /** field for DestDiffKeyName */ - protected java.lang.String localDestDiffKeyName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestDiffKeyNameTracker = false; - - public boolean isDestDiffKeyNameSpecified() { - return localDestDiffKeyNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestDiffKeyName() { - return localDestDiffKeyName; - } - - /** - * Auto generated setter method - * - * @param param DestDiffKeyName - */ - public void setDestDiffKeyName(java.lang.String param) { - localDestDiffKeyNameTracker = param != null; - - this.localDestDiffKeyName = param; - } - - /** field for SuperCopy */ - protected boolean localSuperCopy = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperCopyTracker = false; - - public boolean isSuperCopySpecified() { - return localSuperCopyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuperCopy() { - return localSuperCopy; - } - - /** - * Auto generated setter method - * - * @param param SuperCopy - */ - public void setSuperCopy(boolean param) { - - // setting primitive attribute tracker to true - localSuperCopyTracker = true; - - this.localSuperCopy = param; - } - - /** field for Push */ - protected boolean localPush = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPushTracker = false; - - public boolean isPushSpecified() { - return localPushTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPush() { - return localPush; - } - - /** - * Auto generated setter method - * - * @param param Push - */ - public void setPush(boolean param) { - - // setting primitive attribute tracker to true - localPushTracker = true; - - this.localPush = param; - } - - /** field for Pull */ - protected boolean localPull = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPullTracker = false; - - public boolean isPullSpecified() { - return localPullTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPull() { - return localPull; - } - - /** - * Auto generated setter method - * - * @param param Pull - */ - public void setPull(boolean param) { - - // setting primitive attribute tracker to true - localPullTracker = true; - - this.localPull = param; - } - - /** field for Ifnewer */ - protected boolean localIfnewer = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIfnewerTracker = false; - - public boolean isIfnewerSpecified() { - return localIfnewerTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIfnewer() { - return localIfnewer; - } - - /** - * Auto generated setter method - * - * @param param Ifnewer - */ - public void setIfnewer(boolean param) { - - // setting primitive attribute tracker to true - localIfnewerTracker = true; - - this.localIfnewer = param; - } - - /** field for NoCommon */ - protected boolean localNoCommon = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoCommonTracker = false; - - public boolean isNoCommonSpecified() { - return localNoCommonTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoCommon() { - return localNoCommon; - } - - /** - * Auto generated setter method - * - * @param param NoCommon - */ - public void setNoCommon(boolean param) { - - // setting primitive attribute tracker to true - localNoCommonTracker = true; - - this.localNoCommon = param; - } - - /** field for Encrypt */ - protected java.lang.String localEncrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEncryptTracker = false; - - public boolean isEncryptSpecified() { - return localEncryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEncrypt() { - return localEncrypt; - } - - /** - * Auto generated setter method - * - * @param param Encrypt - */ - public void setEncrypt(java.lang.String param) { - localEncryptTracker = param != null; - - this.localEncrypt = param; - } - - /** field for Decrypt */ - protected java.lang.String localDecrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDecryptTracker = false; - - public boolean isDecryptSpecified() { - return localDecryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDecrypt() { - return localDecrypt; - } - - /** - * Auto generated setter method - * - * @param param Decrypt - */ - public void setDecrypt(java.lang.String param) { - localDecryptTracker = param != null; - - this.localDecrypt = param; - } - - /** field for PreserveCompression */ - protected boolean localPreserveCompression = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPreserveCompressionTracker = false; - - public boolean isPreserveCompressionSpecified() { - return localPreserveCompressionTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPreserveCompression() { - return localPreserveCompression; - } - - /** - * Auto generated setter method - * - * @param param PreserveCompression - */ - public void setPreserveCompression(boolean param) { - - // setting primitive attribute tracker to true - localPreserveCompressionTracker = true; - - this.localPreserveCompression = param; - } - - /** field for DFUServerQueue */ - protected java.lang.String localDFUServerQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerQueueTracker = false; - - public boolean isDFUServerQueueSpecified() { - return localDFUServerQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerQueue() { - return localDFUServerQueue; - } - - /** - * Auto generated setter method - * - * @param param DFUServerQueue - */ - public void setDFUServerQueue(java.lang.String param) { - localDFUServerQueueTracker = param != null; - - this.localDFUServerQueue = param; - } - - /** field for ExpireDays */ - protected int localExpireDays; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExpireDaysTracker = false; - - public boolean isExpireDaysSpecified() { - return localExpireDaysTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getExpireDays() { - return localExpireDays; - } - - /** - * Auto generated setter method - * - * @param param ExpireDays - */ - public void setExpireDays(int param) { - - // setting primitive attribute tracker to true - localExpireDaysTracker = param != java.lang.Integer.MIN_VALUE; - - this.localExpireDays = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Copy", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Copy", xmlWriter); - } - } - if (localSourceLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceLogicalName", xmlWriter); - - if (localSourceLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceLogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localDestGroupTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destGroup", xmlWriter); - - if (localDestGroup == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destGroup cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestGroup); - } - - xmlWriter.writeEndElement(); - } - if (localDestGroupRoxieTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destGroupRoxie", xmlWriter); - - if (localDestGroupRoxie == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destGroupRoxie cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestGroupRoxie); - } - - xmlWriter.writeEndElement(); - } - if (localDestLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destLogicalName", xmlWriter); - - if (localDestLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destLogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localSourceDaliTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceDali", xmlWriter); - - if (localSourceDali == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceDali cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceDali); - } - - xmlWriter.writeEndElement(); - } - if (localSrcusernameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "srcusername", xmlWriter); - - if (localSrcusername == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("srcusername cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSrcusername); - } - - xmlWriter.writeEndElement(); - } - if (localSrcpasswordTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "srcpassword", xmlWriter); - - if (localSrcpassword == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("srcpassword cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSrcpassword); - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "overwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "replicate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("replicate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateOffsetTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ReplicateOffset", xmlWriter); - - if (localReplicateOffset == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ReplicateOffset cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicateOffset)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxConnectionsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "maxConnections", xmlWriter); - - if (localMaxConnections == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("maxConnections cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxConnections)); - } - - xmlWriter.writeEndElement(); - } - if (localThrottleTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "throttle", xmlWriter); - - if (localThrottle == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("throttle cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThrottle)); - } - - xmlWriter.writeEndElement(); - } - if (localTransferBufferSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "transferBufferSize", xmlWriter); - - if (localTransferBufferSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("transferBufferSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTransferBufferSize)); - } - - xmlWriter.writeEndElement(); - } - if (localNosplitTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "nosplit", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("nosplit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNosplit)); - } - - xmlWriter.writeEndElement(); - } - if (localNorecoverTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "norecover", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("norecover cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNorecover)); - } - - xmlWriter.writeEndElement(); - } - if (localCompressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "compress", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("compress cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); - } - - xmlWriter.writeEndElement(); - } - if (localWrapTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Wrap", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Wrap cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWrap)); - } - - xmlWriter.writeEndElement(); - } - if (localMulticopyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Multicopy", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Multicopy cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMulticopy)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceDiffKeyNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceDiffKeyName", xmlWriter); - - if (localSourceDiffKeyName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceDiffKeyName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceDiffKeyName); - } - - xmlWriter.writeEndElement(); - } - if (localDestDiffKeyNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestDiffKeyName", xmlWriter); - - if (localDestDiffKeyName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestDiffKeyName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestDiffKeyName); - } - - xmlWriter.writeEndElement(); - } - if (localSuperCopyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "superCopy", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("superCopy cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuperCopy)); - } - - xmlWriter.writeEndElement(); - } - if (localPushTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "push", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("push cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPush)); - } - - xmlWriter.writeEndElement(); - } - if (localPullTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "pull", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("pull cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPull)); - } - - xmlWriter.writeEndElement(); - } - if (localIfnewerTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ifnewer", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ifnewer cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIfnewer)); - } - - xmlWriter.writeEndElement(); - } - if (localNoCommonTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "noCommon", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("noCommon cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoCommon)); - } - - xmlWriter.writeEndElement(); - } - if (localEncryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "encrypt", xmlWriter); - - if (localEncrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEncrypt); - } - - xmlWriter.writeEndElement(); - } - if (localDecryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "decrypt", xmlWriter); - - if (localDecrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDecrypt); - } - - xmlWriter.writeEndElement(); - } - if (localPreserveCompressionTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "preserveCompression", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("preserveCompression cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localPreserveCompression)); - } - - xmlWriter.writeEndElement(); - } - if (localDFUServerQueueTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); - - if (localDFUServerQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerQueue); - } - - xmlWriter.writeEndElement(); - } - if (localExpireDaysTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ExpireDays", xmlWriter); - - if (localExpireDays == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ExpireDays cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpireDays)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Copy parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - Copy object = new Copy(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Copy".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Copy) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "sourceLogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceLogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroup") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destGroup" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestGroup( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroupRoxie") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destGroupRoxie" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestGroupRoxie( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destLogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destLogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceDali") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceDali" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceDali( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcusername") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "srcusername" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSrcusername( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcpassword") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "srcpassword" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSrcpassword( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "overwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "replicate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateOffset") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReplicateOffset" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicateOffset( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "maxConnections") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "maxConnections" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxConnections( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "throttle") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "throttle" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThrottle( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "transferBufferSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "transferBufferSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTransferBufferSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "nosplit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "nosplit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNosplit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "norecover") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "norecover" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNorecover( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "compress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "compress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Wrap") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wrap" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWrap( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Multicopy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Multicopy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMulticopy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "SourceDiffKeyName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceDiffKeyName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceDiffKeyName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestDiffKeyName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestDiffKeyName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestDiffKeyName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "superCopy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "superCopy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuperCopy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "push") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "push" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPush( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "pull") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "pull" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPull( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ifnewer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ifnewer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIfnewer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "noCommon") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "noCommon" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoCommon( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "encrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEncrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "decrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDecrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "preserveCompression") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "preserveCompression" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPreserveCompression( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ExpireDays") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ExpireDays" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setExpireDays( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Copy.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** Copy bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Copy implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Copy", "ns1"); + + /** field for SourceLogicalName */ + protected java.lang.String localSourceLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceLogicalNameTracker = false; + + public boolean isSourceLogicalNameSpecified() { + return localSourceLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceLogicalName() { + return localSourceLogicalName; + } + + /** + * Auto generated setter method + * + * @param param SourceLogicalName + */ + public void setSourceLogicalName(java.lang.String param) { + localSourceLogicalNameTracker = param != null; + + this.localSourceLogicalName = param; + } + + /** field for DestGroup */ + protected java.lang.String localDestGroup; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestGroupTracker = false; + + public boolean isDestGroupSpecified() { + return localDestGroupTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestGroup() { + return localDestGroup; + } + + /** + * Auto generated setter method + * + * @param param DestGroup + */ + public void setDestGroup(java.lang.String param) { + localDestGroupTracker = param != null; + + this.localDestGroup = param; + } + + /** field for DestGroupRoxie */ + protected java.lang.String localDestGroupRoxie; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestGroupRoxieTracker = false; + + public boolean isDestGroupRoxieSpecified() { + return localDestGroupRoxieTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestGroupRoxie() { + return localDestGroupRoxie; + } + + /** + * Auto generated setter method + * + * @param param DestGroupRoxie + */ + public void setDestGroupRoxie(java.lang.String param) { + localDestGroupRoxieTracker = param != null; + + this.localDestGroupRoxie = param; + } + + /** field for DestLogicalName */ + protected java.lang.String localDestLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestLogicalNameTracker = false; + + public boolean isDestLogicalNameSpecified() { + return localDestLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestLogicalName() { + return localDestLogicalName; + } + + /** + * Auto generated setter method + * + * @param param DestLogicalName + */ + public void setDestLogicalName(java.lang.String param) { + localDestLogicalNameTracker = param != null; + + this.localDestLogicalName = param; + } + + /** field for SourceDali */ + protected java.lang.String localSourceDali; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceDaliTracker = false; + + public boolean isSourceDaliSpecified() { + return localSourceDaliTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceDali() { + return localSourceDali; + } + + /** + * Auto generated setter method + * + * @param param SourceDali + */ + public void setSourceDali(java.lang.String param) { + localSourceDaliTracker = param != null; + + this.localSourceDali = param; + } + + /** field for Srcusername */ + protected java.lang.String localSrcusername; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSrcusernameTracker = false; + + public boolean isSrcusernameSpecified() { + return localSrcusernameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSrcusername() { + return localSrcusername; + } + + /** + * Auto generated setter method + * + * @param param Srcusername + */ + public void setSrcusername(java.lang.String param) { + localSrcusernameTracker = param != null; + + this.localSrcusername = param; + } + + /** field for Srcpassword */ + protected java.lang.String localSrcpassword; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSrcpasswordTracker = false; + + public boolean isSrcpasswordSpecified() { + return localSrcpasswordTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSrcpassword() { + return localSrcpassword; + } + + /** + * Auto generated setter method + * + * @param param Srcpassword + */ + public void setSrcpassword(java.lang.String param) { + localSrcpasswordTracker = param != null; + + this.localSrcpassword = param; + } + + /** field for Overwrite */ + protected boolean localOverwrite; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteTracker = false; + + public boolean isOverwriteSpecified() { + return localOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwrite() { + return localOverwrite; + } + + /** + * Auto generated setter method + * + * @param param Overwrite + */ + public void setOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteTracker = true; + + this.localOverwrite = param; + } + + /** field for Ensure */ + protected boolean localEnsure; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEnsureTracker = false; + + public boolean isEnsureSpecified() { + return localEnsureTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getEnsure() { + return localEnsure; + } + + /** + * Auto generated setter method + * + * @param param Ensure + */ + public void setEnsure(boolean param) { + + // setting primitive attribute tracker to true + localEnsureTracker = true; + + this.localEnsure = param; + } + + /** field for Replicate */ + protected boolean localReplicate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateTracker = false; + + public boolean isReplicateSpecified() { + return localReplicateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReplicate() { + return localReplicate; + } + + /** + * Auto generated setter method + * + * @param param Replicate + */ + public void setReplicate(boolean param) { + + // setting primitive attribute tracker to true + localReplicateTracker = true; + + this.localReplicate = param; + } + + /** field for ReplicateOffset */ + protected int localReplicateOffset = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateOffsetTracker = false; + + public boolean isReplicateOffsetSpecified() { + return localReplicateOffsetTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getReplicateOffset() { + return localReplicateOffset; + } + + /** + * Auto generated setter method + * + * @param param ReplicateOffset + */ + public void setReplicateOffset(int param) { + + // setting primitive attribute tracker to true + localReplicateOffsetTracker = param != java.lang.Integer.MIN_VALUE; + + this.localReplicateOffset = param; + } + + /** field for MaxConnections */ + protected int localMaxConnections; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxConnectionsTracker = false; + + public boolean isMaxConnectionsSpecified() { + return localMaxConnectionsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMaxConnections() { + return localMaxConnections; + } + + /** + * Auto generated setter method + * + * @param param MaxConnections + */ + public void setMaxConnections(int param) { + + // setting primitive attribute tracker to true + localMaxConnectionsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMaxConnections = param; + } + + /** field for Throttle */ + protected int localThrottle; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThrottleTracker = false; + + public boolean isThrottleSpecified() { + return localThrottleTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getThrottle() { + return localThrottle; + } + + /** + * Auto generated setter method + * + * @param param Throttle + */ + public void setThrottle(int param) { + + // setting primitive attribute tracker to true + localThrottleTracker = param != java.lang.Integer.MIN_VALUE; + + this.localThrottle = param; + } + + /** field for TransferBufferSize */ + protected int localTransferBufferSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTransferBufferSizeTracker = false; + + public boolean isTransferBufferSizeSpecified() { + return localTransferBufferSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTransferBufferSize() { + return localTransferBufferSize; + } + + /** + * Auto generated setter method + * + * @param param TransferBufferSize + */ + public void setTransferBufferSize(int param) { + + // setting primitive attribute tracker to true + localTransferBufferSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTransferBufferSize = param; + } + + /** field for Nosplit */ + protected boolean localNosplit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNosplitTracker = false; + + public boolean isNosplitSpecified() { + return localNosplitTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNosplit() { + return localNosplit; + } + + /** + * Auto generated setter method + * + * @param param Nosplit + */ + public void setNosplit(boolean param) { + + // setting primitive attribute tracker to true + localNosplitTracker = true; + + this.localNosplit = param; + } + + /** field for Norecover */ + protected boolean localNorecover = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNorecoverTracker = false; + + public boolean isNorecoverSpecified() { + return localNorecoverTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNorecover() { + return localNorecover; + } + + /** + * Auto generated setter method + * + * @param param Norecover + */ + public void setNorecover(boolean param) { + + // setting primitive attribute tracker to true + localNorecoverTracker = true; + + this.localNorecover = param; + } + + /** field for Compress */ + protected boolean localCompress = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompressTracker = false; + + public boolean isCompressSpecified() { + return localCompressTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCompress() { + return localCompress; + } + + /** + * Auto generated setter method + * + * @param param Compress + */ + public void setCompress(boolean param) { + + // setting primitive attribute tracker to true + localCompressTracker = true; + + this.localCompress = param; + } + + /** field for Wrap */ + protected boolean localWrap = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWrapTracker = false; + + public boolean isWrapSpecified() { + return localWrapTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getWrap() { + return localWrap; + } + + /** + * Auto generated setter method + * + * @param param Wrap + */ + public void setWrap(boolean param) { + + // setting primitive attribute tracker to true + localWrapTracker = true; + + this.localWrap = param; + } + + /** field for Multicopy */ + protected boolean localMulticopy = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMulticopyTracker = false; + + public boolean isMulticopySpecified() { + return localMulticopyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getMulticopy() { + return localMulticopy; + } + + /** + * Auto generated setter method + * + * @param param Multicopy + */ + public void setMulticopy(boolean param) { + + // setting primitive attribute tracker to true + localMulticopyTracker = true; + + this.localMulticopy = param; + } + + /** field for SourceDiffKeyName */ + protected java.lang.String localSourceDiffKeyName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceDiffKeyNameTracker = false; + + public boolean isSourceDiffKeyNameSpecified() { + return localSourceDiffKeyNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceDiffKeyName() { + return localSourceDiffKeyName; + } + + /** + * Auto generated setter method + * + * @param param SourceDiffKeyName + */ + public void setSourceDiffKeyName(java.lang.String param) { + localSourceDiffKeyNameTracker = param != null; + + this.localSourceDiffKeyName = param; + } + + /** field for DestDiffKeyName */ + protected java.lang.String localDestDiffKeyName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestDiffKeyNameTracker = false; + + public boolean isDestDiffKeyNameSpecified() { + return localDestDiffKeyNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestDiffKeyName() { + return localDestDiffKeyName; + } + + /** + * Auto generated setter method + * + * @param param DestDiffKeyName + */ + public void setDestDiffKeyName(java.lang.String param) { + localDestDiffKeyNameTracker = param != null; + + this.localDestDiffKeyName = param; + } + + /** field for SuperCopy */ + protected boolean localSuperCopy = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperCopyTracker = false; + + public boolean isSuperCopySpecified() { + return localSuperCopyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuperCopy() { + return localSuperCopy; + } + + /** + * Auto generated setter method + * + * @param param SuperCopy + */ + public void setSuperCopy(boolean param) { + + // setting primitive attribute tracker to true + localSuperCopyTracker = true; + + this.localSuperCopy = param; + } + + /** field for Push */ + protected boolean localPush = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPushTracker = false; + + public boolean isPushSpecified() { + return localPushTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPush() { + return localPush; + } + + /** + * Auto generated setter method + * + * @param param Push + */ + public void setPush(boolean param) { + + // setting primitive attribute tracker to true + localPushTracker = true; + + this.localPush = param; + } + + /** field for Pull */ + protected boolean localPull = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPullTracker = false; + + public boolean isPullSpecified() { + return localPullTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPull() { + return localPull; + } + + /** + * Auto generated setter method + * + * @param param Pull + */ + public void setPull(boolean param) { + + // setting primitive attribute tracker to true + localPullTracker = true; + + this.localPull = param; + } + + /** field for Ifnewer */ + protected boolean localIfnewer = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIfnewerTracker = false; + + public boolean isIfnewerSpecified() { + return localIfnewerTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIfnewer() { + return localIfnewer; + } + + /** + * Auto generated setter method + * + * @param param Ifnewer + */ + public void setIfnewer(boolean param) { + + // setting primitive attribute tracker to true + localIfnewerTracker = true; + + this.localIfnewer = param; + } + + /** field for NoCommon */ + protected boolean localNoCommon = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoCommonTracker = false; + + public boolean isNoCommonSpecified() { + return localNoCommonTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoCommon() { + return localNoCommon; + } + + /** + * Auto generated setter method + * + * @param param NoCommon + */ + public void setNoCommon(boolean param) { + + // setting primitive attribute tracker to true + localNoCommonTracker = true; + + this.localNoCommon = param; + } + + /** field for Encrypt */ + protected java.lang.String localEncrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEncryptTracker = false; + + public boolean isEncryptSpecified() { + return localEncryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEncrypt() { + return localEncrypt; + } + + /** + * Auto generated setter method + * + * @param param Encrypt + */ + public void setEncrypt(java.lang.String param) { + localEncryptTracker = param != null; + + this.localEncrypt = param; + } + + /** field for Decrypt */ + protected java.lang.String localDecrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDecryptTracker = false; + + public boolean isDecryptSpecified() { + return localDecryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDecrypt() { + return localDecrypt; + } + + /** + * Auto generated setter method + * + * @param param Decrypt + */ + public void setDecrypt(java.lang.String param) { + localDecryptTracker = param != null; + + this.localDecrypt = param; + } + + /** field for PreserveCompression */ + protected boolean localPreserveCompression = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPreserveCompressionTracker = false; + + public boolean isPreserveCompressionSpecified() { + return localPreserveCompressionTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPreserveCompression() { + return localPreserveCompression; + } + + /** + * Auto generated setter method + * + * @param param PreserveCompression + */ + public void setPreserveCompression(boolean param) { + + // setting primitive attribute tracker to true + localPreserveCompressionTracker = true; + + this.localPreserveCompression = param; + } + + /** field for DFUServerQueue */ + protected java.lang.String localDFUServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerQueueTracker = false; + + public boolean isDFUServerQueueSpecified() { + return localDFUServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerQueue() { + return localDFUServerQueue; + } + + /** + * Auto generated setter method + * + * @param param DFUServerQueue + */ + public void setDFUServerQueue(java.lang.String param) { + localDFUServerQueueTracker = param != null; + + this.localDFUServerQueue = param; + } + + /** field for ExpireDays */ + protected int localExpireDays; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExpireDaysTracker = false; + + public boolean isExpireDaysSpecified() { + return localExpireDaysTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getExpireDays() { + return localExpireDays; + } + + /** + * Auto generated setter method + * + * @param param ExpireDays + */ + public void setExpireDays(int param) { + + // setting primitive attribute tracker to true + localExpireDaysTracker = param != java.lang.Integer.MIN_VALUE; + + this.localExpireDays = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Copy", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Copy", xmlWriter); + } + } + if (localSourceLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceLogicalName", xmlWriter); + + if (localSourceLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceLogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localDestGroupTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destGroup", xmlWriter); + + if (localDestGroup == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destGroup cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestGroup); + } + + xmlWriter.writeEndElement(); + } + if (localDestGroupRoxieTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destGroupRoxie", xmlWriter); + + if (localDestGroupRoxie == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destGroupRoxie cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestGroupRoxie); + } + + xmlWriter.writeEndElement(); + } + if (localDestLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destLogicalName", xmlWriter); + + if (localDestLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destLogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localSourceDaliTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceDali", xmlWriter); + + if (localSourceDali == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceDali cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceDali); + } + + xmlWriter.writeEndElement(); + } + if (localSrcusernameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "srcusername", xmlWriter); + + if (localSrcusername == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("srcusername cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSrcusername); + } + + xmlWriter.writeEndElement(); + } + if (localSrcpasswordTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "srcpassword", xmlWriter); + + if (localSrcpassword == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("srcpassword cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSrcpassword); + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "overwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localEnsureTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ensure", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ensure cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnsure)); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "replicate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("replicate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateOffsetTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ReplicateOffset", xmlWriter); + + if (localReplicateOffset == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ReplicateOffset cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicateOffset)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxConnectionsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "maxConnections", xmlWriter); + + if (localMaxConnections == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("maxConnections cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxConnections)); + } + + xmlWriter.writeEndElement(); + } + if (localThrottleTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "throttle", xmlWriter); + + if (localThrottle == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("throttle cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThrottle)); + } + + xmlWriter.writeEndElement(); + } + if (localTransferBufferSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "transferBufferSize", xmlWriter); + + if (localTransferBufferSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("transferBufferSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTransferBufferSize)); + } + + xmlWriter.writeEndElement(); + } + if (localNosplitTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "nosplit", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("nosplit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNosplit)); + } + + xmlWriter.writeEndElement(); + } + if (localNorecoverTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "norecover", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("norecover cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNorecover)); + } + + xmlWriter.writeEndElement(); + } + if (localCompressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "compress", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("compress cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); + } + + xmlWriter.writeEndElement(); + } + if (localWrapTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Wrap", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Wrap cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWrap)); + } + + xmlWriter.writeEndElement(); + } + if (localMulticopyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Multicopy", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Multicopy cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMulticopy)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceDiffKeyNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceDiffKeyName", xmlWriter); + + if (localSourceDiffKeyName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceDiffKeyName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceDiffKeyName); + } + + xmlWriter.writeEndElement(); + } + if (localDestDiffKeyNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestDiffKeyName", xmlWriter); + + if (localDestDiffKeyName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestDiffKeyName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestDiffKeyName); + } + + xmlWriter.writeEndElement(); + } + if (localSuperCopyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "superCopy", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("superCopy cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuperCopy)); + } + + xmlWriter.writeEndElement(); + } + if (localPushTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "push", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("push cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPush)); + } + + xmlWriter.writeEndElement(); + } + if (localPullTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "pull", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("pull cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPull)); + } + + xmlWriter.writeEndElement(); + } + if (localIfnewerTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ifnewer", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ifnewer cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIfnewer)); + } + + xmlWriter.writeEndElement(); + } + if (localNoCommonTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "noCommon", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("noCommon cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoCommon)); + } + + xmlWriter.writeEndElement(); + } + if (localEncryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "encrypt", xmlWriter); + + if (localEncrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEncrypt); + } + + xmlWriter.writeEndElement(); + } + if (localDecryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "decrypt", xmlWriter); + + if (localDecrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDecrypt); + } + + xmlWriter.writeEndElement(); + } + if (localPreserveCompressionTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "preserveCompression", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("preserveCompression cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localPreserveCompression)); + } + + xmlWriter.writeEndElement(); + } + if (localDFUServerQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); + + if (localDFUServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerQueue); + } + + xmlWriter.writeEndElement(); + } + if (localExpireDaysTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ExpireDays", xmlWriter); + + if (localExpireDays == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ExpireDays cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpireDays)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Copy parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + Copy object = new Copy(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Copy".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Copy) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "sourceLogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceLogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroup") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destGroup" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestGroup( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroupRoxie") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destGroupRoxie" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestGroupRoxie( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destLogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destLogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceDali") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceDali" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceDali( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcusername") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "srcusername" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSrcusername( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcpassword") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "srcpassword" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSrcpassword( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "overwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ensure") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ensure" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEnsure( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "replicate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateOffset") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReplicateOffset" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicateOffset( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "maxConnections") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "maxConnections" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxConnections( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "throttle") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "throttle" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThrottle( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "transferBufferSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "transferBufferSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTransferBufferSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "nosplit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "nosplit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNosplit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "norecover") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "norecover" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNorecover( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "compress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "compress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Wrap") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wrap" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWrap( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Multicopy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Multicopy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMulticopy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "SourceDiffKeyName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceDiffKeyName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceDiffKeyName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestDiffKeyName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestDiffKeyName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestDiffKeyName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "superCopy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "superCopy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuperCopy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "push") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "push" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPush( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "pull") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "pull" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPull( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ifnewer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ifnewer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIfnewer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "noCommon") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "noCommon" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoCommon( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "encrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEncrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "decrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDecrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "preserveCompression") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "preserveCompression" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPreserveCompression( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ExpireDays") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ExpireDays" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setExpireDays( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CopyResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CopyResponse.java index b2b11c1ad..3f90555fb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CopyResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CopyResponse.java @@ -1,445 +1,445 @@ -/** - * CopyResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** CopyResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class CopyResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CopyResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":CopyResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "CopyResponse", xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static CopyResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - CopyResponse object = new CopyResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"CopyResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (CopyResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * CopyResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** CopyResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class CopyResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CopyResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":CopyResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "CopyResponse", xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static CopyResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + CopyResponse object = new CopyResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"CopyResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (CopyResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUPublisherWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUPublisherWorkunit.java new file mode 100644 index 000000000..d6ba50859 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUPublisherWorkunit.java @@ -0,0 +1,397 @@ +/** + * CreateDFUPublisherWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** CreateDFUPublisherWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class CreateDFUPublisherWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "CreateDFUPublisherWorkunit", "ns1"); + + /** field for DFUServerQueue */ + protected java.lang.String localDFUServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerQueueTracker = false; + + public boolean isDFUServerQueueSpecified() { + return localDFUServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerQueue() { + return localDFUServerQueue; + } + + /** + * Auto generated setter method + * + * @param param DFUServerQueue + */ + public void setDFUServerQueue(java.lang.String param) { + localDFUServerQueueTracker = param != null; + + this.localDFUServerQueue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":CreateDFUPublisherWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "CreateDFUPublisherWorkunit", + xmlWriter); + } + } + if (localDFUServerQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); + + if (localDFUServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerQueue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static CreateDFUPublisherWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + CreateDFUPublisherWorkunit object = new CreateDFUPublisherWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"CreateDFUPublisherWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (CreateDFUPublisherWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUPublisherWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUPublisherWorkunitResponse.java new file mode 100644 index 000000000..258b50b16 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUPublisherWorkunitResponse.java @@ -0,0 +1,433 @@ +/** + * CreateDFUPublisherWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** CreateDFUPublisherWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class CreateDFUPublisherWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "CreateDFUPublisherWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":CreateDFUPublisherWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "CreateDFUPublisherWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + if (localResult == null) { + throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); + } + localResult.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static CreateDFUPublisherWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + CreateDFUPublisherWorkunitResponse object = new CreateDFUPublisherWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"CreateDFUPublisherWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (CreateDFUPublisherWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") + .equals(reader.getName())) { + + object.setResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUWorkunit.java index 86f902da8..9231f32bb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUWorkunit.java @@ -1,396 +1,396 @@ -/** - * CreateDFUWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** CreateDFUWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class CreateDFUWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CreateDFUWorkunit", "ns1"); - - /** field for DFUServerQueue */ - protected java.lang.String localDFUServerQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerQueueTracker = false; - - public boolean isDFUServerQueueSpecified() { - return localDFUServerQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerQueue() { - return localDFUServerQueue; - } - - /** - * Auto generated setter method - * - * @param param DFUServerQueue - */ - public void setDFUServerQueue(java.lang.String param) { - localDFUServerQueueTracker = param != null; - - this.localDFUServerQueue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":CreateDFUWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "CreateDFUWorkunit", - xmlWriter); - } - } - if (localDFUServerQueueTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); - - if (localDFUServerQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerQueue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static CreateDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - CreateDFUWorkunit object = new CreateDFUWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"CreateDFUWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (CreateDFUWorkunit) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * CreateDFUWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** CreateDFUWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class CreateDFUWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CreateDFUWorkunit", "ns1"); + + /** field for DFUServerQueue */ + protected java.lang.String localDFUServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerQueueTracker = false; + + public boolean isDFUServerQueueSpecified() { + return localDFUServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerQueue() { + return localDFUServerQueue; + } + + /** + * Auto generated setter method + * + * @param param DFUServerQueue + */ + public void setDFUServerQueue(java.lang.String param) { + localDFUServerQueueTracker = param != null; + + this.localDFUServerQueue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":CreateDFUWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "CreateDFUWorkunit", + xmlWriter); + } + } + if (localDFUServerQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); + + if (localDFUServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerQueue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static CreateDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + CreateDFUWorkunit object = new CreateDFUWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"CreateDFUWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (CreateDFUWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUWorkunitResponse.java index e6ff8cb2d..6b205dbd7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/CreateDFUWorkunitResponse.java @@ -1,433 +1,433 @@ -/** - * CreateDFUWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** CreateDFUWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class CreateDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "CreateDFUWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":CreateDFUWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "CreateDFUWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - if (localResult == null) { - throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); - } - localResult.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static CreateDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - CreateDFUWorkunitResponse object = new CreateDFUWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"CreateDFUWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (CreateDFUWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") - .equals(reader.getName())) { - - object.setResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * CreateDFUWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** CreateDFUWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class CreateDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "CreateDFUWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":CreateDFUWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "CreateDFUWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + if (localResult == null) { + throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); + } + localResult.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static CreateDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + CreateDFUWorkunitResponse object = new CreateDFUWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"CreateDFUWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (CreateDFUWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") + .equals(reader.getName())) { + + object.setResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUActionResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUActionResult.java index 847667659..6ff4b1a6c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUActionResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUActionResult.java @@ -1,535 +1,535 @@ -/** - * DFUActionResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUActionResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUActionResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = DFUActionResult - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for ID */ - protected java.lang.String localID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIDTracker = false; - - public boolean isIDSpecified() { - return localIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getID() { - return localID; - } - - /** - * Auto generated setter method - * - * @param param ID - */ - public void setID(java.lang.String param) { - localIDTracker = param != null; - - this.localID = param; - } - - /** field for Action */ - protected java.lang.String localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction(java.lang.String param) { - localActionTracker = param != null; - - this.localAction = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUActionResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUActionResult", - xmlWriter); - } - } - if (localIDTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ID", xmlWriter); - - 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 (localActionTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Action", xmlWriter); - - if (localAction == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAction); - } - - xmlWriter.writeEndElement(); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUActionResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUActionResult object = new DFUActionResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUActionResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUActionResult) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Action") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Action" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUActionResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUActionResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUActionResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = DFUActionResult + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for ID */ + protected java.lang.String localID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIDTracker = false; + + public boolean isIDSpecified() { + return localIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getID() { + return localID; + } + + /** + * Auto generated setter method + * + * @param param ID + */ + public void setID(java.lang.String param) { + localIDTracker = param != null; + + this.localID = param; + } + + /** field for Action */ + protected java.lang.String localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction(java.lang.String param) { + localActionTracker = param != null; + + this.localAction = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUActionResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUActionResult", + xmlWriter); + } + } + if (localIDTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ID", xmlWriter); + + 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 (localActionTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Action", xmlWriter); + + if (localAction == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAction); + } + + xmlWriter.writeEndElement(); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUActionResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUActionResult object = new DFUActionResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUActionResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUActionResult) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Action") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Action" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUException.java index ac84de336..ec02d67b6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUException.java @@ -1,464 +1,464 @@ -/** - * DFUException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = DFUException - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for Code */ - protected int localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(int param) { - - // setting primitive attribute tracker to true - localCodeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCode = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUException", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DFUException", xmlWriter); - } - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Code", xmlWriter); - - 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 (localMessageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUException object = new DFUException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUException) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = DFUException + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for Code */ + protected int localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(int param) { + + // setting primitive attribute tracker to true + localCodeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCode = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUException", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DFUException", xmlWriter); + } + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Code", xmlWriter); + + 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 (localMessageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUException object = new DFUException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUException) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUActions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUActions.java index 1ca37358a..ada80f9b2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUActions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUActions.java @@ -1,424 +1,424 @@ -/** - * DFUWUActions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUWUActions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUWUActions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUActions", "ns1"); - - /** field for DFUWUActions */ - protected java.lang.String localDFUWUActions; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected DFUWUActions(java.lang.String value, boolean isRegisterValue) { - localDFUWUActions = value; - if (isRegisterValue) { - - _table_.put(localDFUWUActions, this); - } - } - - public static final java.lang.String _Delete = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Delete"); - - public static final java.lang.String _Protect = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Protect"); - - public static final java.lang.String _Unprotect = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Unprotect"); - - public static final java.lang.String _Restore = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Restore"); - - public static final java.lang.String _SetToFailed = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("SetToFailed"); - - public static final java.lang.String _Archive = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Archive"); - - public static final DFUWUActions Delete = new DFUWUActions(_Delete, true); - - public static final DFUWUActions Protect = new DFUWUActions(_Protect, true); - - public static final DFUWUActions Unprotect = new DFUWUActions(_Unprotect, true); - - public static final DFUWUActions Restore = new DFUWUActions(_Restore, true); - - public static final DFUWUActions SetToFailed = new DFUWUActions(_SetToFailed, true); - - public static final DFUWUActions Archive = new DFUWUActions(_Archive, true); - - public java.lang.String getValue() { - return localDFUWUActions; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localDFUWUActions.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUWUActions", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DFUWUActions", xmlWriter); - } - } - - if (localDFUWUActions == null) { - - throw new org.apache.axis2.databinding.ADBException("DFUWUActions cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localDFUWUActions); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static DFUWUActions fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - DFUWUActions enumeration = (DFUWUActions) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static DFUWUActions fromString(java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static DFUWUActions fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return DFUWUActions.Factory.fromString(content, namespaceUri); - } else { - return DFUWUActions.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUWUActions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUWUActions object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUWUActions" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = DFUWUActions.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = DFUWUActions.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUWUActions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUWUActions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUWUActions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUActions", "ns1"); + + /** field for DFUWUActions */ + protected java.lang.String localDFUWUActions; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected DFUWUActions(java.lang.String value, boolean isRegisterValue) { + localDFUWUActions = value; + if (isRegisterValue) { + + _table_.put(localDFUWUActions, this); + } + } + + public static final java.lang.String _Delete = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Delete"); + + public static final java.lang.String _Protect = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Protect"); + + public static final java.lang.String _Unprotect = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Unprotect"); + + public static final java.lang.String _Restore = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Restore"); + + public static final java.lang.String _SetToFailed = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("SetToFailed"); + + public static final java.lang.String _Archive = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Archive"); + + public static final DFUWUActions Delete = new DFUWUActions(_Delete, true); + + public static final DFUWUActions Protect = new DFUWUActions(_Protect, true); + + public static final DFUWUActions Unprotect = new DFUWUActions(_Unprotect, true); + + public static final DFUWUActions Restore = new DFUWUActions(_Restore, true); + + public static final DFUWUActions SetToFailed = new DFUWUActions(_SetToFailed, true); + + public static final DFUWUActions Archive = new DFUWUActions(_Archive, true); + + public java.lang.String getValue() { + return localDFUWUActions; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localDFUWUActions.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUWUActions", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DFUWUActions", xmlWriter); + } + } + + if (localDFUWUActions == null) { + + throw new org.apache.axis2.databinding.ADBException("DFUWUActions cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localDFUWUActions); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static DFUWUActions fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + DFUWUActions enumeration = (DFUWUActions) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static DFUWUActions fromString(java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static DFUWUActions fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return DFUWUActions.Factory.fromString(content, namespaceUri); + } else { + return DFUWUActions.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUWUActions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUWUActions object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUWUActions" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = DFUWUActions.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = DFUWUActions.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUFileRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUFileRequest.java index b8344edd2..cbe64ee33 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUFileRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUFileRequest.java @@ -1,532 +1,532 @@ -/** - * DFUWUFileRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUWUFileRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUWUFileRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUFileRequest", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for PlainText */ - protected java.lang.String localPlainText; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPlainTextTracker = false; - - public boolean isPlainTextSpecified() { - return localPlainTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPlainText() { - return localPlainText; - } - - /** - * Auto generated setter method - * - * @param param PlainText - */ - public void setPlainText(java.lang.String param) { - localPlainTextTracker = param != null; - - this.localPlainText = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUWUFileRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUWUFileRequest", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localPlainTextTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PlainText", xmlWriter); - - if (localPlainText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PlainText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPlainText); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUWUFileRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUWUFileRequest object = new DFUWUFileRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUWUFileRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUWUFileRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PlainText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PlainText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPlainText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUWUFileRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUWUFileRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUWUFileRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUFileRequest", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for PlainText */ + protected java.lang.String localPlainText; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPlainTextTracker = false; + + public boolean isPlainTextSpecified() { + return localPlainTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPlainText() { + return localPlainText; + } + + /** + * Auto generated setter method + * + * @param param PlainText + */ + public void setPlainText(java.lang.String param) { + localPlainTextTracker = param != null; + + this.localPlainText = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUWUFileRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUWUFileRequest", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localPlainTextTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PlainText", xmlWriter); + + if (localPlainText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PlainText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPlainText); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUWUFileRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUWUFileRequest object = new DFUWUFileRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUWUFileRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUWUFileRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PlainText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PlainText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPlainText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUFileResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUFileResponse.java index 8165dc7b7..f11ea1676 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUFileResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUFileResponse.java @@ -1,449 +1,449 @@ -/** - * DFUWUFileResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUWUFileResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUWUFileResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUFileResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for File */ - protected java.lang.String localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFile() { - return localFile; - } - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile(java.lang.String param) { - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUWUFileResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUWUFileResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localFileTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "file", xmlWriter); - - if (localFile == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("file cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFile); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUWUFileResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUWUFileResponse object = new DFUWUFileResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUWUFileResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUWUFileResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "file") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "file" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUWUFileResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUWUFileResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUWUFileResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUFileResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for File */ + protected java.lang.String localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFile() { + return localFile; + } + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile(java.lang.String param) { + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUWUFileResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUWUFileResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localFileTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "file", xmlWriter); + + if (localFile == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("file cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFile); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUWUFileResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUWUFileResponse object = new DFUWUFileResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUWUFileResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUWUFileResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "file") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "file" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUSearchRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUSearchRequest.java index 4003ed4ed..ede2fcd37 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUSearchRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUSearchRequest.java @@ -1,314 +1,314 @@ -/** - * DFUWUSearchRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUWUSearchRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUWUSearchRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUSearchRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUWUSearchRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUWUSearchRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUWUSearchRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUWUSearchRequest object = new DFUWUSearchRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUWUSearchRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUWUSearchRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUWUSearchRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUWUSearchRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUWUSearchRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUSearchRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUWUSearchRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUWUSearchRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUWUSearchRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUWUSearchRequest object = new DFUWUSearchRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUWUSearchRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUWUSearchRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUSearchResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUSearchResponse.java index 492c7542d..2c7ea4790 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUSearchResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWUSearchResponse.java @@ -1,434 +1,434 @@ -/** - * DFUWUSearchResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUWUSearchResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUWUSearchResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUSearchResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ClusterNames */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0 - localClusterNames; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNamesTracker = false; - - public boolean isClusterNamesSpecified() { - return localClusterNamesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0 getClusterNames() { - return localClusterNames; - } - - /** - * Auto generated setter method - * - * @param param ClusterNames - */ - public void setClusterNames( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0 param) { - localClusterNamesTracker = param != null; - - this.localClusterNames = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUWUSearchResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUWUSearchResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localClusterNamesTracker) { - if (localClusterNames == null) { - throw new org.apache.axis2.databinding.ADBException("ClusterNames cannot be null!!"); - } - localClusterNames.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterNames"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUWUSearchResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUWUSearchResponse object = new DFUWUSearchResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUWUSearchResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUWUSearchResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterNames") - .equals(reader.getName())) { - - object.setClusterNames( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUWUSearchResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUWUSearchResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUWUSearchResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUSearchResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ClusterNames */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0 + localClusterNames; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNamesTracker = false; + + public boolean isClusterNamesSpecified() { + return localClusterNamesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0 getClusterNames() { + return localClusterNames; + } + + /** + * Auto generated setter method + * + * @param param ClusterNames + */ + public void setClusterNames( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0 param) { + localClusterNamesTracker = param != null; + + this.localClusterNames = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUWUSearchResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUWUSearchResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localClusterNamesTracker) { + if (localClusterNames == null) { + throw new org.apache.axis2.databinding.ADBException("ClusterNames cannot be null!!"); + } + localClusterNames.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterNames"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUWUSearchResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUWUSearchResponse object = new DFUWUSearchResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUWUSearchResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUWUSearchResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterNames") + .equals(reader.getName())) { + + object.setClusterNames( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunit.java index 00d68517e..48f0e34f3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunit.java @@ -1,4318 +1,4318 @@ -/** - * DFUWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUWorkunit implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = DFUWorkunit - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for ID */ - protected java.lang.String localID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIDTracker = false; - - public boolean isIDSpecified() { - return localIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getID() { - return localID; - } - - /** - * Auto generated setter method - * - * @param param ID - */ - public void setID(java.lang.String param) { - localIDTracker = param != null; - - this.localID = param; - } - - /** field for DFUServerName */ - protected java.lang.String localDFUServerName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerNameTracker = false; - - public boolean isDFUServerNameSpecified() { - return localDFUServerNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerName() { - return localDFUServerName; - } - - /** - * Auto generated setter method - * - * @param param DFUServerName - */ - public void setDFUServerName(java.lang.String param) { - localDFUServerNameTracker = param != null; - - this.localDFUServerName = param; - } - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for JobName */ - protected java.lang.String localJobName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobNameTracker = false; - - public boolean isJobNameSpecified() { - return localJobNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobName() { - return localJobName; - } - - /** - * Auto generated setter method - * - * @param param JobName - */ - public void setJobName(java.lang.String param) { - localJobNameTracker = param != null; - - this.localJobName = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for User */ - protected java.lang.String localUser; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUserTracker = false; - - public boolean isUserSpecified() { - return localUserTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getUser() { - return localUser; - } - - /** - * Auto generated setter method - * - * @param param User - */ - public void setUser(java.lang.String param) { - localUserTracker = param != null; - - this.localUser = param; - } - - /** field for IsProtected */ - protected boolean localIsProtected; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsProtectedTracker = false; - - public boolean isIsProtectedSpecified() { - return localIsProtectedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsProtected() { - return localIsProtected; - } - - /** - * Auto generated setter method - * - * @param param IsProtected - */ - public void setIsProtected(boolean param) { - - // setting primitive attribute tracker to true - localIsProtectedTracker = true; - - this.localIsProtected = param; - } - - /** field for Command */ - protected int localCommand; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommandTracker = false; - - public boolean isCommandSpecified() { - return localCommandTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCommand() { - return localCommand; - } - - /** - * Auto generated setter method - * - * @param param Command - */ - public void setCommand(int param) { - - // setting primitive attribute tracker to true - localCommandTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCommand = param; - } - - /** field for CommandMessage */ - protected java.lang.String localCommandMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommandMessageTracker = false; - - public boolean isCommandMessageSpecified() { - return localCommandMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCommandMessage() { - return localCommandMessage; - } - - /** - * Auto generated setter method - * - * @param param CommandMessage - */ - public void setCommandMessage(java.lang.String param) { - localCommandMessageTracker = param != null; - - this.localCommandMessage = param; - } - - /** field for PercentDone */ - protected int localPercentDone; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPercentDoneTracker = false; - - public boolean isPercentDoneSpecified() { - return localPercentDoneTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPercentDone() { - return localPercentDone; - } - - /** - * Auto generated setter method - * - * @param param PercentDone - */ - public void setPercentDone(int param) { - - // setting primitive attribute tracker to true - localPercentDoneTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPercentDone = param; - } - - /** field for SecsLeft */ - protected int localSecsLeft; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSecsLeftTracker = false; - - public boolean isSecsLeftSpecified() { - return localSecsLeftTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSecsLeft() { - return localSecsLeft; - } - - /** - * Auto generated setter method - * - * @param param SecsLeft - */ - public void setSecsLeft(int param) { - - // setting primitive attribute tracker to true - localSecsLeftTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSecsLeft = param; - } - - /** field for ProgressMessage */ - protected java.lang.String localProgressMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProgressMessageTracker = false; - - public boolean isProgressMessageSpecified() { - return localProgressMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProgressMessage() { - return localProgressMessage; - } - - /** - * Auto generated setter method - * - * @param param ProgressMessage - */ - public void setProgressMessage(java.lang.String param) { - localProgressMessageTracker = param != null; - - this.localProgressMessage = param; - } - - /** field for SummaryMessage */ - protected java.lang.String localSummaryMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSummaryMessageTracker = false; - - public boolean isSummaryMessageSpecified() { - return localSummaryMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSummaryMessage() { - return localSummaryMessage; - } - - /** - * Auto generated setter method - * - * @param param SummaryMessage - */ - public void setSummaryMessage(java.lang.String param) { - localSummaryMessageTracker = param != null; - - this.localSummaryMessage = param; - } - - /** field for State */ - protected int localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(int param) { - - // setting primitive attribute tracker to true - localStateTracker = param != java.lang.Integer.MIN_VALUE; - - this.localState = param; - } - - /** field for SourceLogicalName */ - protected java.lang.String localSourceLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceLogicalNameTracker = false; - - public boolean isSourceLogicalNameSpecified() { - return localSourceLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceLogicalName() { - return localSourceLogicalName; - } - - /** - * Auto generated setter method - * - * @param param SourceLogicalName - */ - public void setSourceLogicalName(java.lang.String param) { - localSourceLogicalNameTracker = param != null; - - this.localSourceLogicalName = param; - } - - /** field for SourceIP */ - protected java.lang.String localSourceIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceIPTracker = false; - - public boolean isSourceIPSpecified() { - return localSourceIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceIP() { - return localSourceIP; - } - - /** - * Auto generated setter method - * - * @param param SourceIP - */ - public void setSourceIP(java.lang.String param) { - localSourceIPTracker = param != null; - - this.localSourceIP = param; - } - - /** field for SourceFilePath */ - protected java.lang.String localSourceFilePath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceFilePathTracker = false; - - public boolean isSourceFilePathSpecified() { - return localSourceFilePathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceFilePath() { - return localSourceFilePath; - } - - /** - * Auto generated setter method - * - * @param param SourceFilePath - */ - public void setSourceFilePath(java.lang.String param) { - localSourceFilePathTracker = param != null; - - this.localSourceFilePath = param; - } - - /** field for SourceDali */ - protected java.lang.String localSourceDali; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceDaliTracker = false; - - public boolean isSourceDaliSpecified() { - return localSourceDaliTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceDali() { - return localSourceDali; - } - - /** - * Auto generated setter method - * - * @param param SourceDali - */ - public void setSourceDali(java.lang.String param) { - localSourceDaliTracker = param != null; - - this.localSourceDali = param; - } - - /** field for SourceRecordSize */ - protected int localSourceRecordSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceRecordSizeTracker = false; - - public boolean isSourceRecordSizeSpecified() { - return localSourceRecordSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSourceRecordSize() { - return localSourceRecordSize; - } - - /** - * Auto generated setter method - * - * @param param SourceRecordSize - */ - public void setSourceRecordSize(int param) { - - // setting primitive attribute tracker to true - localSourceRecordSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSourceRecordSize = param; - } - - /** field for SourceFormat */ - protected int localSourceFormat; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceFormatTracker = false; - - public boolean isSourceFormatSpecified() { - return localSourceFormatTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSourceFormat() { - return localSourceFormat; - } - - /** - * Auto generated setter method - * - * @param param SourceFormat - */ - public void setSourceFormat(int param) { - - // setting primitive attribute tracker to true - localSourceFormatTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSourceFormat = param; - } - - /** field for RowTag */ - protected java.lang.String localRowTag; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRowTagTracker = false; - - public boolean isRowTagSpecified() { - return localRowTagTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRowTag() { - return localRowTag; - } - - /** - * Auto generated setter method - * - * @param param RowTag - */ - public void setRowTag(java.lang.String param) { - localRowTagTracker = param != null; - - this.localRowTag = param; - } - - /** field for SourceNumParts */ - protected int localSourceNumParts; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceNumPartsTracker = false; - - public boolean isSourceNumPartsSpecified() { - return localSourceNumPartsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSourceNumParts() { - return localSourceNumParts; - } - - /** - * Auto generated setter method - * - * @param param SourceNumParts - */ - public void setSourceNumParts(int param) { - - // setting primitive attribute tracker to true - localSourceNumPartsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSourceNumParts = param; - } - - /** field for SourceDirectory */ - protected java.lang.String localSourceDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceDirectoryTracker = false; - - public boolean isSourceDirectorySpecified() { - return localSourceDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceDirectory() { - return localSourceDirectory; - } - - /** - * Auto generated setter method - * - * @param param SourceDirectory - */ - public void setSourceDirectory(java.lang.String param) { - localSourceDirectoryTracker = param != null; - - this.localSourceDirectory = param; - } - - /** field for DestLogicalName */ - protected java.lang.String localDestLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestLogicalNameTracker = false; - - public boolean isDestLogicalNameSpecified() { - return localDestLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestLogicalName() { - return localDestLogicalName; - } - - /** - * Auto generated setter method - * - * @param param DestLogicalName - */ - public void setDestLogicalName(java.lang.String param) { - localDestLogicalNameTracker = param != null; - - this.localDestLogicalName = param; - } - - /** field for DestGroupName */ - protected java.lang.String localDestGroupName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestGroupNameTracker = false; - - public boolean isDestGroupNameSpecified() { - return localDestGroupNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestGroupName() { - return localDestGroupName; - } - - /** - * Auto generated setter method - * - * @param param DestGroupName - */ - public void setDestGroupName(java.lang.String param) { - localDestGroupNameTracker = param != null; - - this.localDestGroupName = param; - } - - /** field for DestDirectory */ - protected java.lang.String localDestDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestDirectoryTracker = false; - - public boolean isDestDirectorySpecified() { - return localDestDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestDirectory() { - return localDestDirectory; - } - - /** - * Auto generated setter method - * - * @param param DestDirectory - */ - public void setDestDirectory(java.lang.String param) { - localDestDirectoryTracker = param != null; - - this.localDestDirectory = param; - } - - /** field for DestIP */ - protected java.lang.String localDestIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestIPTracker = false; - - public boolean isDestIPSpecified() { - return localDestIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestIP() { - return localDestIP; - } - - /** - * Auto generated setter method - * - * @param param DestIP - */ - public void setDestIP(java.lang.String param) { - localDestIPTracker = param != null; - - this.localDestIP = param; - } - - /** field for DestFilePath */ - protected java.lang.String localDestFilePath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestFilePathTracker = false; - - public boolean isDestFilePathSpecified() { - return localDestFilePathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestFilePath() { - return localDestFilePath; - } - - /** - * Auto generated setter method - * - * @param param DestFilePath - */ - public void setDestFilePath(java.lang.String param) { - localDestFilePathTracker = param != null; - - this.localDestFilePath = param; - } - - /** field for DestFormat */ - protected int localDestFormat; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestFormatTracker = false; - - public boolean isDestFormatSpecified() { - return localDestFormatTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDestFormat() { - return localDestFormat; - } - - /** - * Auto generated setter method - * - * @param param DestFormat - */ - public void setDestFormat(int param) { - - // setting primitive attribute tracker to true - localDestFormatTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDestFormat = param; - } - - /** field for DestNumParts */ - protected int localDestNumParts; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestNumPartsTracker = false; - - public boolean isDestNumPartsSpecified() { - return localDestNumPartsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDestNumParts() { - return localDestNumParts; - } - - /** - * Auto generated setter method - * - * @param param DestNumParts - */ - public void setDestNumParts(int param) { - - // setting primitive attribute tracker to true - localDestNumPartsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDestNumParts = param; - } - - /** field for DestRecordSize */ - protected int localDestRecordSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestRecordSizeTracker = false; - - public boolean isDestRecordSizeSpecified() { - return localDestRecordSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDestRecordSize() { - return localDestRecordSize; - } - - /** - * Auto generated setter method - * - * @param param DestRecordSize - */ - public void setDestRecordSize(int param) { - - // setting primitive attribute tracker to true - localDestRecordSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDestRecordSize = param; - } - - /** field for Replicate */ - protected boolean localReplicate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateTracker = false; - - public boolean isReplicateSpecified() { - return localReplicateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReplicate() { - return localReplicate; - } - - /** - * Auto generated setter method - * - * @param param Replicate - */ - public void setReplicate(boolean param) { - - // setting primitive attribute tracker to true - localReplicateTracker = true; - - this.localReplicate = param; - } - - /** field for Overwrite */ - protected boolean localOverwrite; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteTracker = false; - - public boolean isOverwriteSpecified() { - return localOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwrite() { - return localOverwrite; - } - - /** - * Auto generated setter method - * - * @param param Overwrite - */ - public void setOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteTracker = true; - - this.localOverwrite = param; - } - - /** field for Compress */ - protected boolean localCompress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompressTracker = false; - - public boolean isCompressSpecified() { - return localCompressTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCompress() { - return localCompress; - } - - /** - * Auto generated setter method - * - * @param param Compress - */ - public void setCompress(boolean param) { - - // setting primitive attribute tracker to true - localCompressTracker = true; - - this.localCompress = param; - } - - /** field for SourceCsvSeparate */ - protected java.lang.String localSourceCsvSeparate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceCsvSeparateTracker = false; - - public boolean isSourceCsvSeparateSpecified() { - return localSourceCsvSeparateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceCsvSeparate() { - return localSourceCsvSeparate; - } - - /** - * Auto generated setter method - * - * @param param SourceCsvSeparate - */ - public void setSourceCsvSeparate(java.lang.String param) { - localSourceCsvSeparateTracker = param != null; - - this.localSourceCsvSeparate = param; - } - - /** field for SourceCsvQuote */ - protected java.lang.String localSourceCsvQuote; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceCsvQuoteTracker = false; - - public boolean isSourceCsvQuoteSpecified() { - return localSourceCsvQuoteTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceCsvQuote() { - return localSourceCsvQuote; - } - - /** - * Auto generated setter method - * - * @param param SourceCsvQuote - */ - public void setSourceCsvQuote(java.lang.String param) { - localSourceCsvQuoteTracker = param != null; - - this.localSourceCsvQuote = param; - } - - /** field for SourceCsvTerminate */ - protected java.lang.String localSourceCsvTerminate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceCsvTerminateTracker = false; - - public boolean isSourceCsvTerminateSpecified() { - return localSourceCsvTerminateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceCsvTerminate() { - return localSourceCsvTerminate; - } - - /** - * Auto generated setter method - * - * @param param SourceCsvTerminate - */ - public void setSourceCsvTerminate(java.lang.String param) { - localSourceCsvTerminateTracker = param != null; - - this.localSourceCsvTerminate = param; - } - - /** field for SourceCsvEscape */ - protected java.lang.String localSourceCsvEscape; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceCsvEscapeTracker = false; - - public boolean isSourceCsvEscapeSpecified() { - return localSourceCsvEscapeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceCsvEscape() { - return localSourceCsvEscape; - } - - /** - * Auto generated setter method - * - * @param param SourceCsvEscape - */ - public void setSourceCsvEscape(java.lang.String param) { - localSourceCsvEscapeTracker = param != null; - - this.localSourceCsvEscape = param; - } - - /** field for TimeStarted */ - protected java.lang.String localTimeStarted; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeStartedTracker = false; - - public boolean isTimeStartedSpecified() { - return localTimeStartedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeStarted() { - return localTimeStarted; - } - - /** - * Auto generated setter method - * - * @param param TimeStarted - */ - public void setTimeStarted(java.lang.String param) { - localTimeStartedTracker = param != null; - - this.localTimeStarted = param; - } - - /** field for TimeStopped */ - protected java.lang.String localTimeStopped; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeStoppedTracker = false; - - public boolean isTimeStoppedSpecified() { - return localTimeStoppedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeStopped() { - return localTimeStopped; - } - - /** - * Auto generated setter method - * - * @param param TimeStopped - */ - public void setTimeStopped(java.lang.String param) { - localTimeStoppedTracker = param != null; - - this.localTimeStopped = param; - } - - /** field for StateMessage */ - protected java.lang.String localStateMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateMessageTracker = false; - - public boolean isStateMessageSpecified() { - return localStateMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStateMessage() { - return localStateMessage; - } - - /** - * Auto generated setter method - * - * @param param StateMessage - */ - public void setStateMessage(java.lang.String param) { - localStateMessageTracker = param != null; - - this.localStateMessage = param; - } - - /** field for MonitorEventName */ - protected java.lang.String localMonitorEventName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMonitorEventNameTracker = false; - - public boolean isMonitorEventNameSpecified() { - return localMonitorEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMonitorEventName() { - return localMonitorEventName; - } - - /** - * Auto generated setter method - * - * @param param MonitorEventName - */ - public void setMonitorEventName(java.lang.String param) { - localMonitorEventNameTracker = param != null; - - this.localMonitorEventName = param; - } - - /** field for MonitorSub */ - protected boolean localMonitorSub; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMonitorSubTracker = false; - - public boolean isMonitorSubSpecified() { - return localMonitorSubTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getMonitorSub() { - return localMonitorSub; - } - - /** - * Auto generated setter method - * - * @param param MonitorSub - */ - public void setMonitorSub(boolean param) { - - // setting primitive attribute tracker to true - localMonitorSubTracker = true; - - this.localMonitorSub = param; - } - - /** field for MonitorShotLimit */ - protected int localMonitorShotLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMonitorShotLimitTracker = false; - - public boolean isMonitorShotLimitSpecified() { - return localMonitorShotLimitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMonitorShotLimit() { - return localMonitorShotLimit; - } - - /** - * Auto generated setter method - * - * @param param MonitorShotLimit - */ - public void setMonitorShotLimit(int param) { - - // setting primitive attribute tracker to true - localMonitorShotLimitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMonitorShotLimit = param; - } - - /** field for SourceDiffKeyName */ - protected java.lang.String localSourceDiffKeyName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceDiffKeyNameTracker = false; - - public boolean isSourceDiffKeyNameSpecified() { - return localSourceDiffKeyNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceDiffKeyName() { - return localSourceDiffKeyName; - } - - /** - * Auto generated setter method - * - * @param param SourceDiffKeyName - */ - public void setSourceDiffKeyName(java.lang.String param) { - localSourceDiffKeyNameTracker = param != null; - - this.localSourceDiffKeyName = param; - } - - /** field for DestDiffKeyName */ - protected java.lang.String localDestDiffKeyName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestDiffKeyNameTracker = false; - - public boolean isDestDiffKeyNameSpecified() { - return localDestDiffKeyNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestDiffKeyName() { - return localDestDiffKeyName; - } - - /** - * Auto generated setter method - * - * @param param DestDiffKeyName - */ - public void setDestDiffKeyName(java.lang.String param) { - localDestDiffKeyNameTracker = param != null; - - this.localDestDiffKeyName = param; - } - - /** field for Archived */ - protected boolean localArchived = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localArchivedTracker = false; - - public boolean isArchivedSpecified() { - return localArchivedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getArchived() { - return localArchived; - } - - /** - * Auto generated setter method - * - * @param param Archived - */ - public void setArchived(boolean param) { - - // setting primitive attribute tracker to true - localArchivedTracker = true; - - this.localArchived = param; - } - - /** field for Encrypt */ - protected java.lang.String localEncrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEncryptTracker = false; - - public boolean isEncryptSpecified() { - return localEncryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEncrypt() { - return localEncrypt; - } - - /** - * Auto generated setter method - * - * @param param Encrypt - */ - public void setEncrypt(java.lang.String param) { - localEncryptTracker = param != null; - - this.localEncrypt = param; - } - - /** field for Decrypt */ - protected java.lang.String localDecrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDecryptTracker = false; - - public boolean isDecryptSpecified() { - return localDecryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDecrypt() { - return localDecrypt; - } - - /** - * Auto generated setter method - * - * @param param Decrypt - */ - public void setDecrypt(java.lang.String param) { - localDecryptTracker = param != null; - - this.localDecrypt = param; - } - - /** field for FailIfNoSourceFile */ - protected boolean localFailIfNoSourceFile = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFailIfNoSourceFileTracker = false; - - public boolean isFailIfNoSourceFileSpecified() { - return localFailIfNoSourceFileTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFailIfNoSourceFile() { - return localFailIfNoSourceFile; - } - - /** - * Auto generated setter method - * - * @param param FailIfNoSourceFile - */ - public void setFailIfNoSourceFile(boolean param) { - - // setting primitive attribute tracker to true - localFailIfNoSourceFileTracker = true; - - this.localFailIfNoSourceFile = param; - } - - /** field for RecordStructurePresent */ - protected boolean localRecordStructurePresent = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRecordStructurePresentTracker = false; - - public boolean isRecordStructurePresentSpecified() { - return localRecordStructurePresentTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRecordStructurePresent() { - return localRecordStructurePresent; - } - - /** - * Auto generated setter method - * - * @param param RecordStructurePresent - */ - public void setRecordStructurePresent(boolean param) { - - // setting primitive attribute tracker to true - localRecordStructurePresentTracker = true; - - this.localRecordStructurePresent = param; - } - - /** field for QuotedTerminator */ - protected boolean localQuotedTerminator = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuotedTerminatorTracker = false; - - public boolean isQuotedTerminatorSpecified() { - return localQuotedTerminatorTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getQuotedTerminator() { - return localQuotedTerminator; - } - - /** - * Auto generated setter method - * - * @param param QuotedTerminator - */ - public void setQuotedTerminator(boolean param) { - - // setting primitive attribute tracker to true - localQuotedTerminatorTracker = true; - - this.localQuotedTerminator = param; - } - - /** field for PreserveCompression */ - protected boolean localPreserveCompression = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPreserveCompressionTracker = false; - - public boolean isPreserveCompressionSpecified() { - return localPreserveCompressionTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPreserveCompression() { - return localPreserveCompression; - } - - /** - * Auto generated setter method - * - * @param param PreserveCompression - */ - public void setPreserveCompression(boolean param) { - - // setting primitive attribute tracker to true - localPreserveCompressionTracker = true; - - this.localPreserveCompression = param; - } - - /** field for ExpireDays */ - protected int localExpireDays; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExpireDaysTracker = false; - - public boolean isExpireDaysSpecified() { - return localExpireDaysTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getExpireDays() { - return localExpireDays; - } - - /** - * Auto generated setter method - * - * @param param ExpireDays - */ - public void setExpireDays(int param) { - - // setting primitive attribute tracker to true - localExpireDaysTracker = param != java.lang.Integer.MIN_VALUE; - - this.localExpireDays = param; - } - - /** field for PreserveFileParts */ - protected boolean localPreserveFileParts; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPreserveFilePartsTracker = false; - - public boolean isPreserveFilePartsSpecified() { - return localPreserveFilePartsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPreserveFileParts() { - return localPreserveFileParts; - } - - /** - * Auto generated setter method - * - * @param param PreserveFileParts - */ - public void setPreserveFileParts(boolean param) { - - // setting primitive attribute tracker to true - localPreserveFilePartsTracker = true; - - this.localPreserveFileParts = param; - } - - /** field for FileAccessCost */ - protected double localFileAccessCost; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileAccessCostTracker = false; - - public boolean isFileAccessCostSpecified() { - return localFileAccessCostTracker; - } - - /** - * Auto generated getter method - * - * @return double - */ - public double getFileAccessCost() { - return localFileAccessCost; - } - - /** - * Auto generated setter method - * - * @param param FileAccessCost - */ - public void setFileAccessCost(double param) { - - // setting primitive attribute tracker to true - localFileAccessCostTracker = !java.lang.Double.isNaN(param); - - this.localFileAccessCost = param; - } - - /** field for KbPerSecAve */ - protected int localKbPerSecAve; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKbPerSecAveTracker = false; - - public boolean isKbPerSecAveSpecified() { - return localKbPerSecAveTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getKbPerSecAve() { - return localKbPerSecAve; - } - - /** - * Auto generated setter method - * - * @param param KbPerSecAve - */ - public void setKbPerSecAve(int param) { - - // setting primitive attribute tracker to true - localKbPerSecAveTracker = param != java.lang.Integer.MIN_VALUE; - - this.localKbPerSecAve = param; - } - - /** field for KbPerSec */ - protected int localKbPerSec; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKbPerSecTracker = false; - - public boolean isKbPerSecSpecified() { - return localKbPerSecTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getKbPerSec() { - return localKbPerSec; - } - - /** - * Auto generated setter method - * - * @param param KbPerSec - */ - public void setKbPerSec(int param) { - - // setting primitive attribute tracker to true - localKbPerSecTracker = param != java.lang.Integer.MIN_VALUE; - - this.localKbPerSec = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DFUWorkunit", xmlWriter); - } - } - if (localIDTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ID", xmlWriter); - - 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 (localDFUServerNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerName", xmlWriter); - - if (localDFUServerName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerName); - } - - xmlWriter.writeEndElement(); - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localJobNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "JobName", xmlWriter); - - if (localJobName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobName); - } - - xmlWriter.writeEndElement(); - } - if (localQueueTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localUserTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "User", xmlWriter); - - if (localUser == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("User cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localUser); - } - - xmlWriter.writeEndElement(); - } - if (localIsProtectedTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "isProtected", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("isProtected cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsProtected)); - } - - xmlWriter.writeEndElement(); - } - if (localCommandTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Command", xmlWriter); - - if (localCommand == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Command cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCommand)); - } - - xmlWriter.writeEndElement(); - } - if (localCommandMessageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "CommandMessage", xmlWriter); - - if (localCommandMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("CommandMessage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCommandMessage); - } - - xmlWriter.writeEndElement(); - } - if (localPercentDoneTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PercentDone", xmlWriter); - - if (localPercentDone == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PercentDone cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPercentDone)); - } - - xmlWriter.writeEndElement(); - } - if (localSecsLeftTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SecsLeft", xmlWriter); - - if (localSecsLeft == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SecsLeft cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSecsLeft)); - } - - xmlWriter.writeEndElement(); - } - if (localProgressMessageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ProgressMessage", xmlWriter); - - if (localProgressMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ProgressMessage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProgressMessage); - } - - xmlWriter.writeEndElement(); - } - if (localSummaryMessageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SummaryMessage", xmlWriter); - - if (localSummaryMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SummaryMessage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSummaryMessage); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceLogicalName", xmlWriter); - - if (localSourceLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceLogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localSourceIPTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceIP", xmlWriter); - - if (localSourceIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceIP); - } - - xmlWriter.writeEndElement(); - } - if (localSourceFilePathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceFilePath", xmlWriter); - - if (localSourceFilePath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceFilePath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceFilePath); - } - - xmlWriter.writeEndElement(); - } - if (localSourceDaliTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceDali", xmlWriter); - - if (localSourceDali == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceDali cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceDali); - } - - xmlWriter.writeEndElement(); - } - if (localSourceRecordSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceRecordSize", xmlWriter); - - if (localSourceRecordSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SourceRecordSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSourceRecordSize)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceFormatTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceFormat", xmlWriter); - - if (localSourceFormat == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SourceFormat cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceFormat)); - } - - xmlWriter.writeEndElement(); - } - if (localRowTagTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "RowTag", xmlWriter); - - if (localRowTag == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RowTag cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRowTag); - } - - xmlWriter.writeEndElement(); - } - if (localSourceNumPartsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceNumParts", xmlWriter); - - if (localSourceNumParts == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SourceNumParts cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceNumParts)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceDirectoryTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceDirectory", xmlWriter); - - if (localSourceDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localDestLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestLogicalName", xmlWriter); - - if (localDestLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestLogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localDestGroupNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestGroupName", xmlWriter); - - if (localDestGroupName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestGroupName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestGroupName); - } - - xmlWriter.writeEndElement(); - } - if (localDestDirectoryTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestDirectory", xmlWriter); - - if (localDestDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localDestIPTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestIP", xmlWriter); - - if (localDestIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestIP); - } - - xmlWriter.writeEndElement(); - } - if (localDestFilePathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestFilePath", xmlWriter); - - if (localDestFilePath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestFilePath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestFilePath); - } - - xmlWriter.writeEndElement(); - } - if (localDestFormatTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestFormat", xmlWriter); - - if (localDestFormat == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("DestFormat cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDestFormat)); - } - - xmlWriter.writeEndElement(); - } - if (localDestNumPartsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestNumParts", xmlWriter); - - if (localDestNumParts == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("DestNumParts cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDestNumParts)); - } - - xmlWriter.writeEndElement(); - } - if (localDestRecordSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestRecordSize", xmlWriter); - - if (localDestRecordSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("DestRecordSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDestRecordSize)); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Replicate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Replicate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Overwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Overwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localCompressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Compress", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Compress cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceCsvSeparateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceCsvSeparate", xmlWriter); - - if (localSourceCsvSeparate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceCsvSeparate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceCsvSeparate); - } - - xmlWriter.writeEndElement(); - } - if (localSourceCsvQuoteTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceCsvQuote", xmlWriter); - - if (localSourceCsvQuote == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceCsvQuote cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceCsvQuote); - } - - xmlWriter.writeEndElement(); - } - if (localSourceCsvTerminateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceCsvTerminate", xmlWriter); - - if (localSourceCsvTerminate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceCsvTerminate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceCsvTerminate); - } - - xmlWriter.writeEndElement(); - } - if (localSourceCsvEscapeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceCsvEscape", xmlWriter); - - if (localSourceCsvEscape == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceCsvEscape cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceCsvEscape); - } - - xmlWriter.writeEndElement(); - } - if (localTimeStartedTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "TimeStarted", xmlWriter); - - if (localTimeStarted == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeStarted cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeStarted); - } - - xmlWriter.writeEndElement(); - } - if (localTimeStoppedTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "TimeStopped", xmlWriter); - - if (localTimeStopped == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeStopped cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeStopped); - } - - xmlWriter.writeEndElement(); - } - if (localStateMessageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "StateMessage", xmlWriter); - - if (localStateMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StateMessage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStateMessage); - } - - xmlWriter.writeEndElement(); - } - if (localMonitorEventNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "MonitorEventName", xmlWriter); - - if (localMonitorEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MonitorEventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMonitorEventName); - } - - xmlWriter.writeEndElement(); - } - if (localMonitorSubTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "MonitorSub", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("MonitorSub cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMonitorSub)); - } - - xmlWriter.writeEndElement(); - } - if (localMonitorShotLimitTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "MonitorShotLimit", xmlWriter); - - if (localMonitorShotLimit == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MonitorShotLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localMonitorShotLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceDiffKeyNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SourceDiffKeyName", xmlWriter); - - if (localSourceDiffKeyName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceDiffKeyName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceDiffKeyName); - } - - xmlWriter.writeEndElement(); - } - if (localDestDiffKeyNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DestDiffKeyName", xmlWriter); - - if (localDestDiffKeyName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestDiffKeyName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestDiffKeyName); - } - - xmlWriter.writeEndElement(); - } - if (localArchivedTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Archived", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Archived cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArchived)); - } - - xmlWriter.writeEndElement(); - } - if (localEncryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "encrypt", xmlWriter); - - if (localEncrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEncrypt); - } - - xmlWriter.writeEndElement(); - } - if (localDecryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "decrypt", xmlWriter); - - if (localDecrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDecrypt); - } - - xmlWriter.writeEndElement(); - } - if (localFailIfNoSourceFileTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "failIfNoSourceFile", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("failIfNoSourceFile cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localFailIfNoSourceFile)); - } - - xmlWriter.writeEndElement(); - } - if (localRecordStructurePresentTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "recordStructurePresent", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "recordStructurePresent cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localRecordStructurePresent)); - } - - xmlWriter.writeEndElement(); - } - if (localQuotedTerminatorTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "quotedTerminator", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("quotedTerminator cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localQuotedTerminator)); - } - - xmlWriter.writeEndElement(); - } - if (localPreserveCompressionTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "preserveCompression", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("preserveCompression cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localPreserveCompression)); - } - - xmlWriter.writeEndElement(); - } - if (localExpireDaysTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "expireDays", xmlWriter); - - if (localExpireDays == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("expireDays cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpireDays)); - } - - xmlWriter.writeEndElement(); - } - if (localPreserveFilePartsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PreserveFileParts", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("PreserveFileParts cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localPreserveFileParts)); - } - - xmlWriter.writeEndElement(); - } - if (localFileAccessCostTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "FileAccessCost", xmlWriter); - - if (java.lang.Double.isNaN(localFileAccessCost)) { - - throw new org.apache.axis2.databinding.ADBException("FileAccessCost cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileAccessCost)); - } - - xmlWriter.writeEndElement(); - } - if (localKbPerSecAveTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "KbPerSecAve", xmlWriter); - - if (localKbPerSecAve == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("KbPerSecAve cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKbPerSecAve)); - } - - xmlWriter.writeEndElement(); - } - if (localKbPerSecTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "KbPerSec", xmlWriter); - - if (localKbPerSec == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("KbPerSec cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKbPerSec)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUWorkunit object = new DFUWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUWorkunit) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "JobName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "User") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "User" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUser( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "isProtected") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "isProtected" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsProtected( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Command") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Command" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCommand( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CommandMessage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CommandMessage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCommandMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PercentDone") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PercentDone" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPercentDone( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SecsLeft") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SecsLeft" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSecsLeft( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressMessage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProgressMessage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProgressMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SummaryMessage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SummaryMessage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSummaryMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "SourceLogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceLogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceFilePath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceFilePath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceFilePath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceDali") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceDali" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceDali( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceRecordSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceRecordSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceRecordSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceFormat") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceFormat" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceFormat( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "RowTag") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RowTag" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRowTag( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceNumParts") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceNumParts" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceNumParts( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestLogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestLogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestGroupName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestGroupName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestGroupName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestFilePath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestFilePath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestFilePath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestFormat") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestFormat" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestFormat( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestNumParts") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestNumParts" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestNumParts( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestRecordSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestRecordSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestRecordSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Replicate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Replicate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Overwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Overwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Compress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Compress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "SourceCsvSeparate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceCsvSeparate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceCsvSeparate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceCsvQuote") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceCsvQuote" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceCsvQuote( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "SourceCsvTerminate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceCsvTerminate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceCsvTerminate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceCsvEscape") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceCsvEscape" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceCsvEscape( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "TimeStarted") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeStarted" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeStarted( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "TimeStopped") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeStopped" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeStopped( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "StateMessage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateMessage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "MonitorEventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MonitorEventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMonitorEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "MonitorSub") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MonitorSub" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMonitorSub( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "MonitorShotLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MonitorShotLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMonitorShotLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "SourceDiffKeyName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceDiffKeyName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceDiffKeyName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestDiffKeyName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestDiffKeyName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestDiffKeyName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Archived") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Archived" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setArchived( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "encrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEncrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "decrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDecrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "failIfNoSourceFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "failIfNoSourceFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFailIfNoSourceFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "recordStructurePresent") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "recordStructurePresent" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRecordStructurePresent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "quotedTerminator") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "quotedTerminator" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuotedTerminator( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "preserveCompression") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "preserveCompression" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPreserveCompression( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "expireDays") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "expireDays" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setExpireDays( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "PreserveFileParts") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PreserveFileParts" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPreserveFileParts( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileAccessCost") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileAccessCost" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileAccessCost( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "KbPerSecAve") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "KbPerSecAve" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKbPerSecAve( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "KbPerSec") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "KbPerSec" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKbPerSec( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUWorkunit implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = DFUWorkunit + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for ID */ + protected java.lang.String localID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIDTracker = false; + + public boolean isIDSpecified() { + return localIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getID() { + return localID; + } + + /** + * Auto generated setter method + * + * @param param ID + */ + public void setID(java.lang.String param) { + localIDTracker = param != null; + + this.localID = param; + } + + /** field for DFUServerName */ + protected java.lang.String localDFUServerName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerNameTracker = false; + + public boolean isDFUServerNameSpecified() { + return localDFUServerNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerName() { + return localDFUServerName; + } + + /** + * Auto generated setter method + * + * @param param DFUServerName + */ + public void setDFUServerName(java.lang.String param) { + localDFUServerNameTracker = param != null; + + this.localDFUServerName = param; + } + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for JobName */ + protected java.lang.String localJobName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobNameTracker = false; + + public boolean isJobNameSpecified() { + return localJobNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobName() { + return localJobName; + } + + /** + * Auto generated setter method + * + * @param param JobName + */ + public void setJobName(java.lang.String param) { + localJobNameTracker = param != null; + + this.localJobName = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for User */ + protected java.lang.String localUser; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUserTracker = false; + + public boolean isUserSpecified() { + return localUserTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getUser() { + return localUser; + } + + /** + * Auto generated setter method + * + * @param param User + */ + public void setUser(java.lang.String param) { + localUserTracker = param != null; + + this.localUser = param; + } + + /** field for IsProtected */ + protected boolean localIsProtected; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsProtectedTracker = false; + + public boolean isIsProtectedSpecified() { + return localIsProtectedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsProtected() { + return localIsProtected; + } + + /** + * Auto generated setter method + * + * @param param IsProtected + */ + public void setIsProtected(boolean param) { + + // setting primitive attribute tracker to true + localIsProtectedTracker = true; + + this.localIsProtected = param; + } + + /** field for Command */ + protected int localCommand; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommandTracker = false; + + public boolean isCommandSpecified() { + return localCommandTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCommand() { + return localCommand; + } + + /** + * Auto generated setter method + * + * @param param Command + */ + public void setCommand(int param) { + + // setting primitive attribute tracker to true + localCommandTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCommand = param; + } + + /** field for CommandMessage */ + protected java.lang.String localCommandMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommandMessageTracker = false; + + public boolean isCommandMessageSpecified() { + return localCommandMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCommandMessage() { + return localCommandMessage; + } + + /** + * Auto generated setter method + * + * @param param CommandMessage + */ + public void setCommandMessage(java.lang.String param) { + localCommandMessageTracker = param != null; + + this.localCommandMessage = param; + } + + /** field for PercentDone */ + protected int localPercentDone; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPercentDoneTracker = false; + + public boolean isPercentDoneSpecified() { + return localPercentDoneTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPercentDone() { + return localPercentDone; + } + + /** + * Auto generated setter method + * + * @param param PercentDone + */ + public void setPercentDone(int param) { + + // setting primitive attribute tracker to true + localPercentDoneTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPercentDone = param; + } + + /** field for SecsLeft */ + protected int localSecsLeft; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSecsLeftTracker = false; + + public boolean isSecsLeftSpecified() { + return localSecsLeftTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSecsLeft() { + return localSecsLeft; + } + + /** + * Auto generated setter method + * + * @param param SecsLeft + */ + public void setSecsLeft(int param) { + + // setting primitive attribute tracker to true + localSecsLeftTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSecsLeft = param; + } + + /** field for ProgressMessage */ + protected java.lang.String localProgressMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProgressMessageTracker = false; + + public boolean isProgressMessageSpecified() { + return localProgressMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProgressMessage() { + return localProgressMessage; + } + + /** + * Auto generated setter method + * + * @param param ProgressMessage + */ + public void setProgressMessage(java.lang.String param) { + localProgressMessageTracker = param != null; + + this.localProgressMessage = param; + } + + /** field for SummaryMessage */ + protected java.lang.String localSummaryMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSummaryMessageTracker = false; + + public boolean isSummaryMessageSpecified() { + return localSummaryMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSummaryMessage() { + return localSummaryMessage; + } + + /** + * Auto generated setter method + * + * @param param SummaryMessage + */ + public void setSummaryMessage(java.lang.String param) { + localSummaryMessageTracker = param != null; + + this.localSummaryMessage = param; + } + + /** field for State */ + protected int localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(int param) { + + // setting primitive attribute tracker to true + localStateTracker = param != java.lang.Integer.MIN_VALUE; + + this.localState = param; + } + + /** field for SourceLogicalName */ + protected java.lang.String localSourceLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceLogicalNameTracker = false; + + public boolean isSourceLogicalNameSpecified() { + return localSourceLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceLogicalName() { + return localSourceLogicalName; + } + + /** + * Auto generated setter method + * + * @param param SourceLogicalName + */ + public void setSourceLogicalName(java.lang.String param) { + localSourceLogicalNameTracker = param != null; + + this.localSourceLogicalName = param; + } + + /** field for SourceIP */ + protected java.lang.String localSourceIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceIPTracker = false; + + public boolean isSourceIPSpecified() { + return localSourceIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceIP() { + return localSourceIP; + } + + /** + * Auto generated setter method + * + * @param param SourceIP + */ + public void setSourceIP(java.lang.String param) { + localSourceIPTracker = param != null; + + this.localSourceIP = param; + } + + /** field for SourceFilePath */ + protected java.lang.String localSourceFilePath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceFilePathTracker = false; + + public boolean isSourceFilePathSpecified() { + return localSourceFilePathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceFilePath() { + return localSourceFilePath; + } + + /** + * Auto generated setter method + * + * @param param SourceFilePath + */ + public void setSourceFilePath(java.lang.String param) { + localSourceFilePathTracker = param != null; + + this.localSourceFilePath = param; + } + + /** field for SourceDali */ + protected java.lang.String localSourceDali; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceDaliTracker = false; + + public boolean isSourceDaliSpecified() { + return localSourceDaliTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceDali() { + return localSourceDali; + } + + /** + * Auto generated setter method + * + * @param param SourceDali + */ + public void setSourceDali(java.lang.String param) { + localSourceDaliTracker = param != null; + + this.localSourceDali = param; + } + + /** field for SourceRecordSize */ + protected int localSourceRecordSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceRecordSizeTracker = false; + + public boolean isSourceRecordSizeSpecified() { + return localSourceRecordSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSourceRecordSize() { + return localSourceRecordSize; + } + + /** + * Auto generated setter method + * + * @param param SourceRecordSize + */ + public void setSourceRecordSize(int param) { + + // setting primitive attribute tracker to true + localSourceRecordSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSourceRecordSize = param; + } + + /** field for SourceFormat */ + protected int localSourceFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceFormatTracker = false; + + public boolean isSourceFormatSpecified() { + return localSourceFormatTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSourceFormat() { + return localSourceFormat; + } + + /** + * Auto generated setter method + * + * @param param SourceFormat + */ + public void setSourceFormat(int param) { + + // setting primitive attribute tracker to true + localSourceFormatTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSourceFormat = param; + } + + /** field for RowTag */ + protected java.lang.String localRowTag; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRowTagTracker = false; + + public boolean isRowTagSpecified() { + return localRowTagTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRowTag() { + return localRowTag; + } + + /** + * Auto generated setter method + * + * @param param RowTag + */ + public void setRowTag(java.lang.String param) { + localRowTagTracker = param != null; + + this.localRowTag = param; + } + + /** field for SourceNumParts */ + protected int localSourceNumParts; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceNumPartsTracker = false; + + public boolean isSourceNumPartsSpecified() { + return localSourceNumPartsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSourceNumParts() { + return localSourceNumParts; + } + + /** + * Auto generated setter method + * + * @param param SourceNumParts + */ + public void setSourceNumParts(int param) { + + // setting primitive attribute tracker to true + localSourceNumPartsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSourceNumParts = param; + } + + /** field for SourceDirectory */ + protected java.lang.String localSourceDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceDirectoryTracker = false; + + public boolean isSourceDirectorySpecified() { + return localSourceDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceDirectory() { + return localSourceDirectory; + } + + /** + * Auto generated setter method + * + * @param param SourceDirectory + */ + public void setSourceDirectory(java.lang.String param) { + localSourceDirectoryTracker = param != null; + + this.localSourceDirectory = param; + } + + /** field for DestLogicalName */ + protected java.lang.String localDestLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestLogicalNameTracker = false; + + public boolean isDestLogicalNameSpecified() { + return localDestLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestLogicalName() { + return localDestLogicalName; + } + + /** + * Auto generated setter method + * + * @param param DestLogicalName + */ + public void setDestLogicalName(java.lang.String param) { + localDestLogicalNameTracker = param != null; + + this.localDestLogicalName = param; + } + + /** field for DestGroupName */ + protected java.lang.String localDestGroupName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestGroupNameTracker = false; + + public boolean isDestGroupNameSpecified() { + return localDestGroupNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestGroupName() { + return localDestGroupName; + } + + /** + * Auto generated setter method + * + * @param param DestGroupName + */ + public void setDestGroupName(java.lang.String param) { + localDestGroupNameTracker = param != null; + + this.localDestGroupName = param; + } + + /** field for DestDirectory */ + protected java.lang.String localDestDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestDirectoryTracker = false; + + public boolean isDestDirectorySpecified() { + return localDestDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestDirectory() { + return localDestDirectory; + } + + /** + * Auto generated setter method + * + * @param param DestDirectory + */ + public void setDestDirectory(java.lang.String param) { + localDestDirectoryTracker = param != null; + + this.localDestDirectory = param; + } + + /** field for DestIP */ + protected java.lang.String localDestIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestIPTracker = false; + + public boolean isDestIPSpecified() { + return localDestIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestIP() { + return localDestIP; + } + + /** + * Auto generated setter method + * + * @param param DestIP + */ + public void setDestIP(java.lang.String param) { + localDestIPTracker = param != null; + + this.localDestIP = param; + } + + /** field for DestFilePath */ + protected java.lang.String localDestFilePath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestFilePathTracker = false; + + public boolean isDestFilePathSpecified() { + return localDestFilePathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestFilePath() { + return localDestFilePath; + } + + /** + * Auto generated setter method + * + * @param param DestFilePath + */ + public void setDestFilePath(java.lang.String param) { + localDestFilePathTracker = param != null; + + this.localDestFilePath = param; + } + + /** field for DestFormat */ + protected int localDestFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestFormatTracker = false; + + public boolean isDestFormatSpecified() { + return localDestFormatTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDestFormat() { + return localDestFormat; + } + + /** + * Auto generated setter method + * + * @param param DestFormat + */ + public void setDestFormat(int param) { + + // setting primitive attribute tracker to true + localDestFormatTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDestFormat = param; + } + + /** field for DestNumParts */ + protected int localDestNumParts; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestNumPartsTracker = false; + + public boolean isDestNumPartsSpecified() { + return localDestNumPartsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDestNumParts() { + return localDestNumParts; + } + + /** + * Auto generated setter method + * + * @param param DestNumParts + */ + public void setDestNumParts(int param) { + + // setting primitive attribute tracker to true + localDestNumPartsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDestNumParts = param; + } + + /** field for DestRecordSize */ + protected int localDestRecordSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestRecordSizeTracker = false; + + public boolean isDestRecordSizeSpecified() { + return localDestRecordSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDestRecordSize() { + return localDestRecordSize; + } + + /** + * Auto generated setter method + * + * @param param DestRecordSize + */ + public void setDestRecordSize(int param) { + + // setting primitive attribute tracker to true + localDestRecordSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDestRecordSize = param; + } + + /** field for Replicate */ + protected boolean localReplicate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateTracker = false; + + public boolean isReplicateSpecified() { + return localReplicateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReplicate() { + return localReplicate; + } + + /** + * Auto generated setter method + * + * @param param Replicate + */ + public void setReplicate(boolean param) { + + // setting primitive attribute tracker to true + localReplicateTracker = true; + + this.localReplicate = param; + } + + /** field for Overwrite */ + protected boolean localOverwrite; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteTracker = false; + + public boolean isOverwriteSpecified() { + return localOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwrite() { + return localOverwrite; + } + + /** + * Auto generated setter method + * + * @param param Overwrite + */ + public void setOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteTracker = true; + + this.localOverwrite = param; + } + + /** field for Compress */ + protected boolean localCompress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompressTracker = false; + + public boolean isCompressSpecified() { + return localCompressTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCompress() { + return localCompress; + } + + /** + * Auto generated setter method + * + * @param param Compress + */ + public void setCompress(boolean param) { + + // setting primitive attribute tracker to true + localCompressTracker = true; + + this.localCompress = param; + } + + /** field for SourceCsvSeparate */ + protected java.lang.String localSourceCsvSeparate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceCsvSeparateTracker = false; + + public boolean isSourceCsvSeparateSpecified() { + return localSourceCsvSeparateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceCsvSeparate() { + return localSourceCsvSeparate; + } + + /** + * Auto generated setter method + * + * @param param SourceCsvSeparate + */ + public void setSourceCsvSeparate(java.lang.String param) { + localSourceCsvSeparateTracker = param != null; + + this.localSourceCsvSeparate = param; + } + + /** field for SourceCsvQuote */ + protected java.lang.String localSourceCsvQuote; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceCsvQuoteTracker = false; + + public boolean isSourceCsvQuoteSpecified() { + return localSourceCsvQuoteTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceCsvQuote() { + return localSourceCsvQuote; + } + + /** + * Auto generated setter method + * + * @param param SourceCsvQuote + */ + public void setSourceCsvQuote(java.lang.String param) { + localSourceCsvQuoteTracker = param != null; + + this.localSourceCsvQuote = param; + } + + /** field for SourceCsvTerminate */ + protected java.lang.String localSourceCsvTerminate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceCsvTerminateTracker = false; + + public boolean isSourceCsvTerminateSpecified() { + return localSourceCsvTerminateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceCsvTerminate() { + return localSourceCsvTerminate; + } + + /** + * Auto generated setter method + * + * @param param SourceCsvTerminate + */ + public void setSourceCsvTerminate(java.lang.String param) { + localSourceCsvTerminateTracker = param != null; + + this.localSourceCsvTerminate = param; + } + + /** field for SourceCsvEscape */ + protected java.lang.String localSourceCsvEscape; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceCsvEscapeTracker = false; + + public boolean isSourceCsvEscapeSpecified() { + return localSourceCsvEscapeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceCsvEscape() { + return localSourceCsvEscape; + } + + /** + * Auto generated setter method + * + * @param param SourceCsvEscape + */ + public void setSourceCsvEscape(java.lang.String param) { + localSourceCsvEscapeTracker = param != null; + + this.localSourceCsvEscape = param; + } + + /** field for TimeStarted */ + protected java.lang.String localTimeStarted; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeStartedTracker = false; + + public boolean isTimeStartedSpecified() { + return localTimeStartedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeStarted() { + return localTimeStarted; + } + + /** + * Auto generated setter method + * + * @param param TimeStarted + */ + public void setTimeStarted(java.lang.String param) { + localTimeStartedTracker = param != null; + + this.localTimeStarted = param; + } + + /** field for TimeStopped */ + protected java.lang.String localTimeStopped; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeStoppedTracker = false; + + public boolean isTimeStoppedSpecified() { + return localTimeStoppedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeStopped() { + return localTimeStopped; + } + + /** + * Auto generated setter method + * + * @param param TimeStopped + */ + public void setTimeStopped(java.lang.String param) { + localTimeStoppedTracker = param != null; + + this.localTimeStopped = param; + } + + /** field for StateMessage */ + protected java.lang.String localStateMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateMessageTracker = false; + + public boolean isStateMessageSpecified() { + return localStateMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStateMessage() { + return localStateMessage; + } + + /** + * Auto generated setter method + * + * @param param StateMessage + */ + public void setStateMessage(java.lang.String param) { + localStateMessageTracker = param != null; + + this.localStateMessage = param; + } + + /** field for MonitorEventName */ + protected java.lang.String localMonitorEventName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMonitorEventNameTracker = false; + + public boolean isMonitorEventNameSpecified() { + return localMonitorEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMonitorEventName() { + return localMonitorEventName; + } + + /** + * Auto generated setter method + * + * @param param MonitorEventName + */ + public void setMonitorEventName(java.lang.String param) { + localMonitorEventNameTracker = param != null; + + this.localMonitorEventName = param; + } + + /** field for MonitorSub */ + protected boolean localMonitorSub; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMonitorSubTracker = false; + + public boolean isMonitorSubSpecified() { + return localMonitorSubTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getMonitorSub() { + return localMonitorSub; + } + + /** + * Auto generated setter method + * + * @param param MonitorSub + */ + public void setMonitorSub(boolean param) { + + // setting primitive attribute tracker to true + localMonitorSubTracker = true; + + this.localMonitorSub = param; + } + + /** field for MonitorShotLimit */ + protected int localMonitorShotLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMonitorShotLimitTracker = false; + + public boolean isMonitorShotLimitSpecified() { + return localMonitorShotLimitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMonitorShotLimit() { + return localMonitorShotLimit; + } + + /** + * Auto generated setter method + * + * @param param MonitorShotLimit + */ + public void setMonitorShotLimit(int param) { + + // setting primitive attribute tracker to true + localMonitorShotLimitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMonitorShotLimit = param; + } + + /** field for SourceDiffKeyName */ + protected java.lang.String localSourceDiffKeyName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceDiffKeyNameTracker = false; + + public boolean isSourceDiffKeyNameSpecified() { + return localSourceDiffKeyNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceDiffKeyName() { + return localSourceDiffKeyName; + } + + /** + * Auto generated setter method + * + * @param param SourceDiffKeyName + */ + public void setSourceDiffKeyName(java.lang.String param) { + localSourceDiffKeyNameTracker = param != null; + + this.localSourceDiffKeyName = param; + } + + /** field for DestDiffKeyName */ + protected java.lang.String localDestDiffKeyName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestDiffKeyNameTracker = false; + + public boolean isDestDiffKeyNameSpecified() { + return localDestDiffKeyNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestDiffKeyName() { + return localDestDiffKeyName; + } + + /** + * Auto generated setter method + * + * @param param DestDiffKeyName + */ + public void setDestDiffKeyName(java.lang.String param) { + localDestDiffKeyNameTracker = param != null; + + this.localDestDiffKeyName = param; + } + + /** field for Archived */ + protected boolean localArchived = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localArchivedTracker = false; + + public boolean isArchivedSpecified() { + return localArchivedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getArchived() { + return localArchived; + } + + /** + * Auto generated setter method + * + * @param param Archived + */ + public void setArchived(boolean param) { + + // setting primitive attribute tracker to true + localArchivedTracker = true; + + this.localArchived = param; + } + + /** field for Encrypt */ + protected java.lang.String localEncrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEncryptTracker = false; + + public boolean isEncryptSpecified() { + return localEncryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEncrypt() { + return localEncrypt; + } + + /** + * Auto generated setter method + * + * @param param Encrypt + */ + public void setEncrypt(java.lang.String param) { + localEncryptTracker = param != null; + + this.localEncrypt = param; + } + + /** field for Decrypt */ + protected java.lang.String localDecrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDecryptTracker = false; + + public boolean isDecryptSpecified() { + return localDecryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDecrypt() { + return localDecrypt; + } + + /** + * Auto generated setter method + * + * @param param Decrypt + */ + public void setDecrypt(java.lang.String param) { + localDecryptTracker = param != null; + + this.localDecrypt = param; + } + + /** field for FailIfNoSourceFile */ + protected boolean localFailIfNoSourceFile = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFailIfNoSourceFileTracker = false; + + public boolean isFailIfNoSourceFileSpecified() { + return localFailIfNoSourceFileTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFailIfNoSourceFile() { + return localFailIfNoSourceFile; + } + + /** + * Auto generated setter method + * + * @param param FailIfNoSourceFile + */ + public void setFailIfNoSourceFile(boolean param) { + + // setting primitive attribute tracker to true + localFailIfNoSourceFileTracker = true; + + this.localFailIfNoSourceFile = param; + } + + /** field for RecordStructurePresent */ + protected boolean localRecordStructurePresent = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRecordStructurePresentTracker = false; + + public boolean isRecordStructurePresentSpecified() { + return localRecordStructurePresentTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRecordStructurePresent() { + return localRecordStructurePresent; + } + + /** + * Auto generated setter method + * + * @param param RecordStructurePresent + */ + public void setRecordStructurePresent(boolean param) { + + // setting primitive attribute tracker to true + localRecordStructurePresentTracker = true; + + this.localRecordStructurePresent = param; + } + + /** field for QuotedTerminator */ + protected boolean localQuotedTerminator = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuotedTerminatorTracker = false; + + public boolean isQuotedTerminatorSpecified() { + return localQuotedTerminatorTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getQuotedTerminator() { + return localQuotedTerminator; + } + + /** + * Auto generated setter method + * + * @param param QuotedTerminator + */ + public void setQuotedTerminator(boolean param) { + + // setting primitive attribute tracker to true + localQuotedTerminatorTracker = true; + + this.localQuotedTerminator = param; + } + + /** field for PreserveCompression */ + protected boolean localPreserveCompression = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPreserveCompressionTracker = false; + + public boolean isPreserveCompressionSpecified() { + return localPreserveCompressionTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPreserveCompression() { + return localPreserveCompression; + } + + /** + * Auto generated setter method + * + * @param param PreserveCompression + */ + public void setPreserveCompression(boolean param) { + + // setting primitive attribute tracker to true + localPreserveCompressionTracker = true; + + this.localPreserveCompression = param; + } + + /** field for ExpireDays */ + protected int localExpireDays; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExpireDaysTracker = false; + + public boolean isExpireDaysSpecified() { + return localExpireDaysTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getExpireDays() { + return localExpireDays; + } + + /** + * Auto generated setter method + * + * @param param ExpireDays + */ + public void setExpireDays(int param) { + + // setting primitive attribute tracker to true + localExpireDaysTracker = param != java.lang.Integer.MIN_VALUE; + + this.localExpireDays = param; + } + + /** field for PreserveFileParts */ + protected boolean localPreserveFileParts; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPreserveFilePartsTracker = false; + + public boolean isPreserveFilePartsSpecified() { + return localPreserveFilePartsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPreserveFileParts() { + return localPreserveFileParts; + } + + /** + * Auto generated setter method + * + * @param param PreserveFileParts + */ + public void setPreserveFileParts(boolean param) { + + // setting primitive attribute tracker to true + localPreserveFilePartsTracker = true; + + this.localPreserveFileParts = param; + } + + /** field for FileAccessCost */ + protected double localFileAccessCost; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileAccessCostTracker = false; + + public boolean isFileAccessCostSpecified() { + return localFileAccessCostTracker; + } + + /** + * Auto generated getter method + * + * @return double + */ + public double getFileAccessCost() { + return localFileAccessCost; + } + + /** + * Auto generated setter method + * + * @param param FileAccessCost + */ + public void setFileAccessCost(double param) { + + // setting primitive attribute tracker to true + localFileAccessCostTracker = !java.lang.Double.isNaN(param); + + this.localFileAccessCost = param; + } + + /** field for KbPerSecAve */ + protected int localKbPerSecAve; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKbPerSecAveTracker = false; + + public boolean isKbPerSecAveSpecified() { + return localKbPerSecAveTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getKbPerSecAve() { + return localKbPerSecAve; + } + + /** + * Auto generated setter method + * + * @param param KbPerSecAve + */ + public void setKbPerSecAve(int param) { + + // setting primitive attribute tracker to true + localKbPerSecAveTracker = param != java.lang.Integer.MIN_VALUE; + + this.localKbPerSecAve = param; + } + + /** field for KbPerSec */ + protected int localKbPerSec; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKbPerSecTracker = false; + + public boolean isKbPerSecSpecified() { + return localKbPerSecTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getKbPerSec() { + return localKbPerSec; + } + + /** + * Auto generated setter method + * + * @param param KbPerSec + */ + public void setKbPerSec(int param) { + + // setting primitive attribute tracker to true + localKbPerSecTracker = param != java.lang.Integer.MIN_VALUE; + + this.localKbPerSec = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DFUWorkunit", xmlWriter); + } + } + if (localIDTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ID", xmlWriter); + + 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 (localDFUServerNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerName", xmlWriter); + + if (localDFUServerName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerName); + } + + xmlWriter.writeEndElement(); + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localJobNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "JobName", xmlWriter); + + if (localJobName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobName); + } + + xmlWriter.writeEndElement(); + } + if (localQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localUserTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "User", xmlWriter); + + if (localUser == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("User cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localUser); + } + + xmlWriter.writeEndElement(); + } + if (localIsProtectedTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "isProtected", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("isProtected cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsProtected)); + } + + xmlWriter.writeEndElement(); + } + if (localCommandTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Command", xmlWriter); + + if (localCommand == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Command cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCommand)); + } + + xmlWriter.writeEndElement(); + } + if (localCommandMessageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "CommandMessage", xmlWriter); + + if (localCommandMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("CommandMessage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCommandMessage); + } + + xmlWriter.writeEndElement(); + } + if (localPercentDoneTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PercentDone", xmlWriter); + + if (localPercentDone == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PercentDone cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPercentDone)); + } + + xmlWriter.writeEndElement(); + } + if (localSecsLeftTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SecsLeft", xmlWriter); + + if (localSecsLeft == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SecsLeft cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSecsLeft)); + } + + xmlWriter.writeEndElement(); + } + if (localProgressMessageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ProgressMessage", xmlWriter); + + if (localProgressMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ProgressMessage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProgressMessage); + } + + xmlWriter.writeEndElement(); + } + if (localSummaryMessageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SummaryMessage", xmlWriter); + + if (localSummaryMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SummaryMessage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSummaryMessage); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceLogicalName", xmlWriter); + + if (localSourceLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceLogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localSourceIPTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceIP", xmlWriter); + + if (localSourceIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceIP); + } + + xmlWriter.writeEndElement(); + } + if (localSourceFilePathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceFilePath", xmlWriter); + + if (localSourceFilePath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceFilePath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceFilePath); + } + + xmlWriter.writeEndElement(); + } + if (localSourceDaliTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceDali", xmlWriter); + + if (localSourceDali == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceDali cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceDali); + } + + xmlWriter.writeEndElement(); + } + if (localSourceRecordSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceRecordSize", xmlWriter); + + if (localSourceRecordSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SourceRecordSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSourceRecordSize)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceFormatTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceFormat", xmlWriter); + + if (localSourceFormat == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SourceFormat cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceFormat)); + } + + xmlWriter.writeEndElement(); + } + if (localRowTagTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "RowTag", xmlWriter); + + if (localRowTag == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RowTag cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRowTag); + } + + xmlWriter.writeEndElement(); + } + if (localSourceNumPartsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceNumParts", xmlWriter); + + if (localSourceNumParts == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SourceNumParts cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceNumParts)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceDirectoryTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceDirectory", xmlWriter); + + if (localSourceDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localDestLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestLogicalName", xmlWriter); + + if (localDestLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestLogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localDestGroupNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestGroupName", xmlWriter); + + if (localDestGroupName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestGroupName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestGroupName); + } + + xmlWriter.writeEndElement(); + } + if (localDestDirectoryTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestDirectory", xmlWriter); + + if (localDestDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localDestIPTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestIP", xmlWriter); + + if (localDestIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestIP); + } + + xmlWriter.writeEndElement(); + } + if (localDestFilePathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestFilePath", xmlWriter); + + if (localDestFilePath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestFilePath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestFilePath); + } + + xmlWriter.writeEndElement(); + } + if (localDestFormatTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestFormat", xmlWriter); + + if (localDestFormat == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("DestFormat cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDestFormat)); + } + + xmlWriter.writeEndElement(); + } + if (localDestNumPartsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestNumParts", xmlWriter); + + if (localDestNumParts == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("DestNumParts cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDestNumParts)); + } + + xmlWriter.writeEndElement(); + } + if (localDestRecordSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestRecordSize", xmlWriter); + + if (localDestRecordSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("DestRecordSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDestRecordSize)); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Replicate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Replicate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Overwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Overwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localCompressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Compress", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Compress cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceCsvSeparateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceCsvSeparate", xmlWriter); + + if (localSourceCsvSeparate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceCsvSeparate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceCsvSeparate); + } + + xmlWriter.writeEndElement(); + } + if (localSourceCsvQuoteTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceCsvQuote", xmlWriter); + + if (localSourceCsvQuote == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceCsvQuote cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceCsvQuote); + } + + xmlWriter.writeEndElement(); + } + if (localSourceCsvTerminateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceCsvTerminate", xmlWriter); + + if (localSourceCsvTerminate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceCsvTerminate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceCsvTerminate); + } + + xmlWriter.writeEndElement(); + } + if (localSourceCsvEscapeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceCsvEscape", xmlWriter); + + if (localSourceCsvEscape == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceCsvEscape cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceCsvEscape); + } + + xmlWriter.writeEndElement(); + } + if (localTimeStartedTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "TimeStarted", xmlWriter); + + if (localTimeStarted == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeStarted cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeStarted); + } + + xmlWriter.writeEndElement(); + } + if (localTimeStoppedTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "TimeStopped", xmlWriter); + + if (localTimeStopped == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeStopped cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeStopped); + } + + xmlWriter.writeEndElement(); + } + if (localStateMessageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "StateMessage", xmlWriter); + + if (localStateMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StateMessage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStateMessage); + } + + xmlWriter.writeEndElement(); + } + if (localMonitorEventNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "MonitorEventName", xmlWriter); + + if (localMonitorEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MonitorEventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMonitorEventName); + } + + xmlWriter.writeEndElement(); + } + if (localMonitorSubTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "MonitorSub", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("MonitorSub cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMonitorSub)); + } + + xmlWriter.writeEndElement(); + } + if (localMonitorShotLimitTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "MonitorShotLimit", xmlWriter); + + if (localMonitorShotLimit == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MonitorShotLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localMonitorShotLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceDiffKeyNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SourceDiffKeyName", xmlWriter); + + if (localSourceDiffKeyName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceDiffKeyName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceDiffKeyName); + } + + xmlWriter.writeEndElement(); + } + if (localDestDiffKeyNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DestDiffKeyName", xmlWriter); + + if (localDestDiffKeyName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestDiffKeyName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestDiffKeyName); + } + + xmlWriter.writeEndElement(); + } + if (localArchivedTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Archived", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Archived cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArchived)); + } + + xmlWriter.writeEndElement(); + } + if (localEncryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "encrypt", xmlWriter); + + if (localEncrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEncrypt); + } + + xmlWriter.writeEndElement(); + } + if (localDecryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "decrypt", xmlWriter); + + if (localDecrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDecrypt); + } + + xmlWriter.writeEndElement(); + } + if (localFailIfNoSourceFileTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "failIfNoSourceFile", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("failIfNoSourceFile cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localFailIfNoSourceFile)); + } + + xmlWriter.writeEndElement(); + } + if (localRecordStructurePresentTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "recordStructurePresent", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "recordStructurePresent cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localRecordStructurePresent)); + } + + xmlWriter.writeEndElement(); + } + if (localQuotedTerminatorTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "quotedTerminator", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("quotedTerminator cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localQuotedTerminator)); + } + + xmlWriter.writeEndElement(); + } + if (localPreserveCompressionTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "preserveCompression", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("preserveCompression cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localPreserveCompression)); + } + + xmlWriter.writeEndElement(); + } + if (localExpireDaysTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "expireDays", xmlWriter); + + if (localExpireDays == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("expireDays cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpireDays)); + } + + xmlWriter.writeEndElement(); + } + if (localPreserveFilePartsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PreserveFileParts", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("PreserveFileParts cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localPreserveFileParts)); + } + + xmlWriter.writeEndElement(); + } + if (localFileAccessCostTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "FileAccessCost", xmlWriter); + + if (java.lang.Double.isNaN(localFileAccessCost)) { + + throw new org.apache.axis2.databinding.ADBException("FileAccessCost cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileAccessCost)); + } + + xmlWriter.writeEndElement(); + } + if (localKbPerSecAveTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "KbPerSecAve", xmlWriter); + + if (localKbPerSecAve == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("KbPerSecAve cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKbPerSecAve)); + } + + xmlWriter.writeEndElement(); + } + if (localKbPerSecTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "KbPerSec", xmlWriter); + + if (localKbPerSec == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("KbPerSec cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKbPerSec)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUWorkunit object = new DFUWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "JobName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "User") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "User" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUser( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "isProtected") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "isProtected" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsProtected( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Command") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Command" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCommand( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CommandMessage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CommandMessage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCommandMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PercentDone") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PercentDone" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPercentDone( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SecsLeft") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SecsLeft" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSecsLeft( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressMessage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProgressMessage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProgressMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SummaryMessage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SummaryMessage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSummaryMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "SourceLogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceLogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceFilePath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceFilePath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceFilePath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceDali") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceDali" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceDali( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceRecordSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceRecordSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceRecordSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceFormat") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceFormat" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceFormat( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "RowTag") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RowTag" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRowTag( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceNumParts") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceNumParts" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceNumParts( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestLogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestLogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestGroupName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestGroupName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestGroupName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestFilePath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestFilePath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestFilePath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestFormat") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestFormat" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestFormat( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestNumParts") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestNumParts" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestNumParts( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestRecordSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestRecordSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestRecordSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Replicate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Replicate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Overwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Overwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Compress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Compress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "SourceCsvSeparate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceCsvSeparate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceCsvSeparate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceCsvQuote") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceCsvQuote" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceCsvQuote( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "SourceCsvTerminate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceCsvTerminate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceCsvTerminate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SourceCsvEscape") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceCsvEscape" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceCsvEscape( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "TimeStarted") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeStarted" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeStarted( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "TimeStopped") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeStopped" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeStopped( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "StateMessage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateMessage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "MonitorEventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MonitorEventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMonitorEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "MonitorSub") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MonitorSub" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMonitorSub( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "MonitorShotLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MonitorShotLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMonitorShotLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "SourceDiffKeyName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceDiffKeyName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceDiffKeyName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DestDiffKeyName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestDiffKeyName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestDiffKeyName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Archived") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Archived" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setArchived( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "encrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEncrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "decrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDecrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "failIfNoSourceFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "failIfNoSourceFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFailIfNoSourceFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "recordStructurePresent") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "recordStructurePresent" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRecordStructurePresent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "quotedTerminator") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "quotedTerminator" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuotedTerminator( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "preserveCompression") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "preserveCompression" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPreserveCompression( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "expireDays") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "expireDays" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setExpireDays( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "PreserveFileParts") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PreserveFileParts" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPreserveFileParts( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileAccessCost") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileAccessCost" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileAccessCost( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "KbPerSecAve") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "KbPerSecAve" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKbPerSecAve( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "KbPerSec") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "KbPerSec" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKbPerSec( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunitsActionRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunitsActionRequest.java index 05d0c0c38..87eafd552 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunitsActionRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunitsActionRequest.java @@ -1,431 +1,431 @@ -/** - * DFUWorkunitsActionRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUWorkunitsActionRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUWorkunitsActionRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DFUWorkunitsActionRequest", "ns1"); - - /** field for Wuids */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localWuids; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidsTracker = false; - - public boolean isWuidsSpecified() { - return localWuidsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getWuids() { - return localWuids; - } - - /** - * Auto generated setter method - * - * @param param Wuids - */ - public void setWuids(org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { - localWuidsTracker = param != null; - - this.localWuids = param; - } - - /** field for Type */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUWorkunitsActionRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUWorkunitsActionRequest", - xmlWriter); - } - } - if (localWuidsTracker) { - if (localWuids == null) { - throw new org.apache.axis2.databinding.ADBException("wuids cannot be null!!"); - } - localWuids.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuids"), xmlWriter); - } - if (localTypeTracker) { - if (localType == null) { - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - } - localType.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUWorkunitsActionRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUWorkunitsActionRequest object = new DFUWorkunitsActionRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUWorkunitsActionRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUWorkunitsActionRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuids") - .equals(reader.getName())) { - - object.setWuids( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") - .equals(reader.getName())) { - - object.setType( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUWorkunitsActionRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUWorkunitsActionRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUWorkunitsActionRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DFUWorkunitsActionRequest", "ns1"); + + /** field for Wuids */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localWuids; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidsTracker = false; + + public boolean isWuidsSpecified() { + return localWuidsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getWuids() { + return localWuids; + } + + /** + * Auto generated setter method + * + * @param param Wuids + */ + public void setWuids(org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { + localWuidsTracker = param != null; + + this.localWuids = param; + } + + /** field for Type */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUWorkunitsActionRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUWorkunitsActionRequest", + xmlWriter); + } + } + if (localWuidsTracker) { + if (localWuids == null) { + throw new org.apache.axis2.databinding.ADBException("wuids cannot be null!!"); + } + localWuids.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuids"), xmlWriter); + } + if (localTypeTracker) { + if (localType == null) { + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + } + localType.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUWorkunitsActionRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUWorkunitsActionRequest object = new DFUWorkunitsActionRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUWorkunitsActionRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUWorkunitsActionRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuids") + .equals(reader.getName())) { + + object.setWuids( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") + .equals(reader.getName())) { + + object.setType( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunitsActionResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunitsActionResponse.java index 2aa7992de..73ef070cd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunitsActionResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DFUWorkunitsActionResponse.java @@ -1,506 +1,506 @@ -/** - * DFUWorkunitsActionResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DFUWorkunitsActionResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUWorkunitsActionResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DFUWorkunitsActionResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for FirstColumn */ - protected java.lang.String localFirstColumn = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("WUID"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFirstColumnTracker = false; - - public boolean isFirstColumnSpecified() { - return localFirstColumnTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFirstColumn() { - return localFirstColumn; - } - - /** - * Auto generated setter method - * - * @param param FirstColumn - */ - public void setFirstColumn(java.lang.String param) { - localFirstColumnTracker = param != null; - - this.localFirstColumn = param; - } - - /** field for DFUActionResults */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult - localDFUActionResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUActionResultsTracker = false; - - public boolean isDFUActionResultsSpecified() { - return localDFUActionResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult - getDFUActionResults() { - return localDFUActionResults; - } - - /** - * Auto generated setter method - * - * @param param DFUActionResults - */ - public void setDFUActionResults( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult param) { - localDFUActionResultsTracker = param != null; - - this.localDFUActionResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUWorkunitsActionResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUWorkunitsActionResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localFirstColumnTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "FirstColumn", xmlWriter); - - if (localFirstColumn == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FirstColumn cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFirstColumn); - } - - xmlWriter.writeEndElement(); - } - if (localDFUActionResultsTracker) { - if (localDFUActionResults == null) { - throw new org.apache.axis2.databinding.ADBException("DFUActionResults cannot be null!!"); - } - localDFUActionResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResults"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUWorkunitsActionResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUWorkunitsActionResponse object = new DFUWorkunitsActionResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUWorkunitsActionResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUWorkunitsActionResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FirstColumn") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FirstColumn" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFirstColumn( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResults") - .equals(reader.getName())) { - - object.setDFUActionResults( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUWorkunitsActionResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DFUWorkunitsActionResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUWorkunitsActionResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DFUWorkunitsActionResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for FirstColumn */ + protected java.lang.String localFirstColumn = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("WUID"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFirstColumnTracker = false; + + public boolean isFirstColumnSpecified() { + return localFirstColumnTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFirstColumn() { + return localFirstColumn; + } + + /** + * Auto generated setter method + * + * @param param FirstColumn + */ + public void setFirstColumn(java.lang.String param) { + localFirstColumnTracker = param != null; + + this.localFirstColumn = param; + } + + /** field for DFUActionResults */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult + localDFUActionResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUActionResultsTracker = false; + + public boolean isDFUActionResultsSpecified() { + return localDFUActionResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult + getDFUActionResults() { + return localDFUActionResults; + } + + /** + * Auto generated setter method + * + * @param param DFUActionResults + */ + public void setDFUActionResults( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult param) { + localDFUActionResultsTracker = param != null; + + this.localDFUActionResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUWorkunitsActionResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUWorkunitsActionResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localFirstColumnTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "FirstColumn", xmlWriter); + + if (localFirstColumn == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FirstColumn cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFirstColumn); + } + + xmlWriter.writeEndElement(); + } + if (localDFUActionResultsTracker) { + if (localDFUActionResults == null) { + throw new org.apache.axis2.databinding.ADBException("DFUActionResults cannot be null!!"); + } + localDFUActionResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResults"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUWorkunitsActionResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUWorkunitsActionResponse object = new DFUWorkunitsActionResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUWorkunitsActionResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUWorkunitsActionResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FirstColumn") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FirstColumn" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFirstColumn( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUActionResults") + .equals(reader.getName())) { + + object.setDFUActionResults( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunit.java index 354109c79..14c2c372d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunit.java @@ -1,396 +1,396 @@ -/** - * DeleteDFUWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DeleteDFUWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DeleteDFUWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DeleteDFUWorkunit", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DeleteDFUWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DeleteDFUWorkunit", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DeleteDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DeleteDFUWorkunit object = new DeleteDFUWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DeleteDFUWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DeleteDFUWorkunit) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DeleteDFUWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DeleteDFUWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DeleteDFUWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DeleteDFUWorkunit", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DeleteDFUWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DeleteDFUWorkunit", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DeleteDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DeleteDFUWorkunit object = new DeleteDFUWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DeleteDFUWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DeleteDFUWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunitResponse.java index 2cfc66a4f..ccc83fd83 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunitResponse.java @@ -1,451 +1,451 @@ -/** - * DeleteDFUWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DeleteDFUWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DeleteDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DeleteDFUWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected boolean localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(boolean param) { - - // setting primitive attribute tracker to true - localResultTracker = true; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DeleteDFUWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DeleteDFUWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "result", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResult)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DeleteDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DeleteDFUWorkunitResponse object = new DeleteDFUWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DeleteDFUWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DeleteDFUWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DeleteDFUWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DeleteDFUWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DeleteDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DeleteDFUWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected boolean localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(boolean param) { + + // setting primitive attribute tracker to true + localResultTracker = true; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DeleteDFUWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DeleteDFUWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "result", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResult)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DeleteDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DeleteDFUWorkunitResponse object = new DeleteDFUWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DeleteDFUWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DeleteDFUWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunits.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunits.java index 34d41a369..4eac0ca00 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunits.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunits.java @@ -1,379 +1,379 @@ -/** - * DeleteDFUWorkunits.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DeleteDFUWorkunits bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DeleteDFUWorkunits implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DeleteDFUWorkunits", "ns1"); - - /** field for Wuids */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localWuids; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidsTracker = false; - - public boolean isWuidsSpecified() { - return localWuidsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getWuids() { - return localWuids; - } - - /** - * Auto generated setter method - * - * @param param Wuids - */ - public void setWuids(org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { - localWuidsTracker = param != null; - - this.localWuids = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DeleteDFUWorkunits", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DeleteDFUWorkunits", - xmlWriter); - } - } - if (localWuidsTracker) { - if (localWuids == null) { - throw new org.apache.axis2.databinding.ADBException("wuids cannot be null!!"); - } - localWuids.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuids"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DeleteDFUWorkunits parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DeleteDFUWorkunits object = new DeleteDFUWorkunits(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DeleteDFUWorkunits".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DeleteDFUWorkunits) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuids") - .equals(reader.getName())) { - - object.setWuids( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DeleteDFUWorkunits.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DeleteDFUWorkunits bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DeleteDFUWorkunits implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DeleteDFUWorkunits", "ns1"); + + /** field for Wuids */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localWuids; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidsTracker = false; + + public boolean isWuidsSpecified() { + return localWuidsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getWuids() { + return localWuids; + } + + /** + * Auto generated setter method + * + * @param param Wuids + */ + public void setWuids(org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { + localWuidsTracker = param != null; + + this.localWuids = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DeleteDFUWorkunits", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DeleteDFUWorkunits", + xmlWriter); + } + } + if (localWuidsTracker) { + if (localWuids == null) { + throw new org.apache.axis2.databinding.ADBException("wuids cannot be null!!"); + } + localWuids.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuids"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DeleteDFUWorkunits parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DeleteDFUWorkunits object = new DeleteDFUWorkunits(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DeleteDFUWorkunits".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DeleteDFUWorkunits) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuids") + .equals(reader.getName())) { + + object.setWuids( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunitsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunitsResponse.java index b858be25c..0ae0d601a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunitsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDFUWorkunitsResponse.java @@ -1,382 +1,382 @@ -/** - * DeleteDFUWorkunitsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DeleteDFUWorkunitsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DeleteDFUWorkunitsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DeleteDFUWorkunitsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DeleteDFUWorkunitsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DeleteDFUWorkunitsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DeleteDFUWorkunitsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DeleteDFUWorkunitsResponse object = new DeleteDFUWorkunitsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DeleteDFUWorkunitsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DeleteDFUWorkunitsResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DeleteDFUWorkunitsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DeleteDFUWorkunitsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DeleteDFUWorkunitsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DeleteDFUWorkunitsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DeleteDFUWorkunitsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DeleteDFUWorkunitsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DeleteDFUWorkunitsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DeleteDFUWorkunitsResponse object = new DeleteDFUWorkunitsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DeleteDFUWorkunitsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DeleteDFUWorkunitsResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDropZoneFilesRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDropZoneFilesRequest.java index d7a39ab30..79fb10453 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDropZoneFilesRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DeleteDropZoneFilesRequest.java @@ -1,652 +1,652 @@ -/** - * DeleteDropZoneFilesRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DeleteDropZoneFilesRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DeleteDropZoneFilesRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DeleteDropZoneFilesRequest", "ns1"); - - /** field for DropZoneName */ - protected java.lang.String localDropZoneName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDropZoneNameTracker = false; - - public boolean isDropZoneNameSpecified() { - return localDropZoneNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDropZoneName() { - return localDropZoneName; - } - - /** - * Auto generated setter method - * - * @param param DropZoneName - */ - public void setDropZoneName(java.lang.String param) { - localDropZoneNameTracker = param != null; - - this.localDropZoneName = param; - } - - /** field for NetAddress */ - protected java.lang.String localNetAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetAddressTracker = false; - - public boolean isNetAddressSpecified() { - return localNetAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetAddress() { - return localNetAddress; - } - - /** - * Auto generated setter method - * - * @param param NetAddress - */ - public void setNetAddress(java.lang.String param) { - localNetAddressTracker = param != null; - - this.localNetAddress = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for OS */ - protected java.lang.String localOS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOSTracker = false; - - public boolean isOSSpecified() { - return localOSTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOS() { - return localOS; - } - - /** - * Auto generated setter method - * - * @param param OS - */ - public void setOS(java.lang.String param) { - localOSTracker = param != null; - - this.localOS = param; - } - - /** field for Names */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localNames; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNamesTracker = false; - - public boolean isNamesSpecified() { - return localNamesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getNames() { - return localNames; - } - - /** - * Auto generated setter method - * - * @param param Names - */ - public void setNames(org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { - localNamesTracker = param != null; - - this.localNames = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DeleteDropZoneFilesRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DeleteDropZoneFilesRequest", - xmlWriter); - } - } - if (localDropZoneNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DropZoneName", xmlWriter); - - if (localDropZoneName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDropZoneName); - } - - xmlWriter.writeEndElement(); - } - if (localNetAddressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "NetAddress", xmlWriter); - - if (localNetAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localOSTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "OS", xmlWriter); - - if (localOS == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOS); - } - - xmlWriter.writeEndElement(); - } - if (localNamesTracker) { - if (localNames == null) { - throw new org.apache.axis2.databinding.ADBException("Names cannot be null!!"); - } - localNames.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Names"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DeleteDropZoneFilesRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DeleteDropZoneFilesRequest object = new DeleteDropZoneFilesRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DeleteDropZoneFilesRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DeleteDropZoneFilesRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DropZoneName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDropZoneName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NetAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOS( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Names") - .equals(reader.getName())) { - - object.setNames( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DeleteDropZoneFilesRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DeleteDropZoneFilesRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DeleteDropZoneFilesRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DeleteDropZoneFilesRequest", "ns1"); + + /** field for DropZoneName */ + protected java.lang.String localDropZoneName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDropZoneNameTracker = false; + + public boolean isDropZoneNameSpecified() { + return localDropZoneNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDropZoneName() { + return localDropZoneName; + } + + /** + * Auto generated setter method + * + * @param param DropZoneName + */ + public void setDropZoneName(java.lang.String param) { + localDropZoneNameTracker = param != null; + + this.localDropZoneName = param; + } + + /** field for NetAddress */ + protected java.lang.String localNetAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetAddressTracker = false; + + public boolean isNetAddressSpecified() { + return localNetAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetAddress() { + return localNetAddress; + } + + /** + * Auto generated setter method + * + * @param param NetAddress + */ + public void setNetAddress(java.lang.String param) { + localNetAddressTracker = param != null; + + this.localNetAddress = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for OS */ + protected java.lang.String localOS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOSTracker = false; + + public boolean isOSSpecified() { + return localOSTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOS() { + return localOS; + } + + /** + * Auto generated setter method + * + * @param param OS + */ + public void setOS(java.lang.String param) { + localOSTracker = param != null; + + this.localOS = param; + } + + /** field for Names */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localNames; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNamesTracker = false; + + public boolean isNamesSpecified() { + return localNamesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getNames() { + return localNames; + } + + /** + * Auto generated setter method + * + * @param param Names + */ + public void setNames(org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { + localNamesTracker = param != null; + + this.localNames = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DeleteDropZoneFilesRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DeleteDropZoneFilesRequest", + xmlWriter); + } + } + if (localDropZoneNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DropZoneName", xmlWriter); + + if (localDropZoneName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDropZoneName); + } + + xmlWriter.writeEndElement(); + } + if (localNetAddressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "NetAddress", xmlWriter); + + if (localNetAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localOSTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "OS", xmlWriter); + + if (localOS == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOS); + } + + xmlWriter.writeEndElement(); + } + if (localNamesTracker) { + if (localNames == null) { + throw new org.apache.axis2.databinding.ADBException("Names cannot be null!!"); + } + localNames.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Names"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DeleteDropZoneFilesRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DeleteDropZoneFilesRequest object = new DeleteDropZoneFilesRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DeleteDropZoneFilesRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DeleteDropZoneFilesRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DropZoneName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDropZoneName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NetAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOS( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Names") + .equals(reader.getName())) { + + object.setNames( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Despray.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Despray.java index f94612f80..bdd9a2a4c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Despray.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Despray.java @@ -1,1627 +1,1627 @@ -/** - * Despray.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** Despray bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Despray implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Despray", "ns1"); - - /** field for DestGroup */ - protected java.lang.String localDestGroup; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestGroupTracker = false; - - public boolean isDestGroupSpecified() { - return localDestGroupTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestGroup() { - return localDestGroup; - } - - /** - * Auto generated setter method - * - * @param param DestGroup - */ - public void setDestGroup(java.lang.String param) { - localDestGroupTracker = param != null; - - this.localDestGroup = param; - } - - /** field for SourceLogicalName */ - protected java.lang.String localSourceLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceLogicalNameTracker = false; - - public boolean isSourceLogicalNameSpecified() { - return localSourceLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceLogicalName() { - return localSourceLogicalName; - } - - /** - * Auto generated setter method - * - * @param param SourceLogicalName - */ - public void setSourceLogicalName(java.lang.String param) { - localSourceLogicalNameTracker = param != null; - - this.localSourceLogicalName = param; - } - - /** field for DestIP */ - protected java.lang.String localDestIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestIPTracker = false; - - public boolean isDestIPSpecified() { - return localDestIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestIP() { - return localDestIP; - } - - /** - * Auto generated setter method - * - * @param param DestIP - */ - public void setDestIP(java.lang.String param) { - localDestIPTracker = param != null; - - this.localDestIP = param; - } - - /** field for DestPath */ - protected java.lang.String localDestPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestPathTracker = false; - - public boolean isDestPathSpecified() { - return localDestPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestPath() { - return localDestPath; - } - - /** - * Auto generated setter method - * - * @param param DestPath - */ - public void setDestPath(java.lang.String param) { - localDestPathTracker = param != null; - - this.localDestPath = param; - } - - /** field for DestPlane */ - protected java.lang.String localDestPlane; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestPlaneTracker = false; - - public boolean isDestPlaneSpecified() { - return localDestPlaneTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestPlane() { - return localDestPlane; - } - - /** - * Auto generated setter method - * - * @param param DestPlane - */ - public void setDestPlane(java.lang.String param) { - localDestPlaneTracker = param != null; - - this.localDestPlane = param; - } - - /** field for Dstxml */ - protected javax.activation.DataHandler localDstxml; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDstxmlTracker = false; - - public boolean isDstxmlSpecified() { - return localDstxmlTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getDstxml() { - return localDstxml; - } - - /** - * Auto generated setter method - * - * @param param Dstxml - */ - public void setDstxml(javax.activation.DataHandler param) { - localDstxmlTracker = param != null; - - this.localDstxml = param; - } - - /** field for Overwrite */ - protected boolean localOverwrite; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteTracker = false; - - public boolean isOverwriteSpecified() { - return localOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwrite() { - return localOverwrite; - } - - /** - * Auto generated setter method - * - * @param param Overwrite - */ - public void setOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteTracker = true; - - this.localOverwrite = param; - } - - /** field for MaxConnections */ - protected int localMaxConnections; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxConnectionsTracker = false; - - public boolean isMaxConnectionsSpecified() { - return localMaxConnectionsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMaxConnections() { - return localMaxConnections; - } - - /** - * Auto generated setter method - * - * @param param MaxConnections - */ - public void setMaxConnections(int param) { - - // setting primitive attribute tracker to true - localMaxConnectionsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMaxConnections = param; - } - - /** field for Throttle */ - protected int localThrottle; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThrottleTracker = false; - - public boolean isThrottleSpecified() { - return localThrottleTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getThrottle() { - return localThrottle; - } - - /** - * Auto generated setter method - * - * @param param Throttle - */ - public void setThrottle(int param) { - - // setting primitive attribute tracker to true - localThrottleTracker = param != java.lang.Integer.MIN_VALUE; - - this.localThrottle = param; - } - - /** field for TransferBufferSize */ - protected int localTransferBufferSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTransferBufferSizeTracker = false; - - public boolean isTransferBufferSizeSpecified() { - return localTransferBufferSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTransferBufferSize() { - return localTransferBufferSize; - } - - /** - * Auto generated setter method - * - * @param param TransferBufferSize - */ - public void setTransferBufferSize(int param) { - - // setting primitive attribute tracker to true - localTransferBufferSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTransferBufferSize = param; - } - - /** field for Splitprefix */ - protected java.lang.String localSplitprefix; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSplitprefixTracker = false; - - public boolean isSplitprefixSpecified() { - return localSplitprefixTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSplitprefix() { - return localSplitprefix; - } - - /** - * Auto generated setter method - * - * @param param Splitprefix - */ - public void setSplitprefix(java.lang.String param) { - localSplitprefixTracker = param != null; - - this.localSplitprefix = param; - } - - /** field for Norecover */ - protected boolean localNorecover = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNorecoverTracker = false; - - public boolean isNorecoverSpecified() { - return localNorecoverTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNorecover() { - return localNorecover; - } - - /** - * Auto generated setter method - * - * @param param Norecover - */ - public void setNorecover(boolean param) { - - // setting primitive attribute tracker to true - localNorecoverTracker = true; - - this.localNorecover = param; - } - - /** field for Wrap */ - protected boolean localWrap = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWrapTracker = false; - - public boolean isWrapSpecified() { - return localWrapTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getWrap() { - return localWrap; - } - - /** - * Auto generated setter method - * - * @param param Wrap - */ - public void setWrap(boolean param) { - - // setting primitive attribute tracker to true - localWrapTracker = true; - - this.localWrap = param; - } - - /** field for MultiCopy */ - protected boolean localMultiCopy = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMultiCopyTracker = false; - - public boolean isMultiCopySpecified() { - return localMultiCopyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getMultiCopy() { - return localMultiCopy; - } - - /** - * Auto generated setter method - * - * @param param MultiCopy - */ - public void setMultiCopy(boolean param) { - - // setting primitive attribute tracker to true - localMultiCopyTracker = true; - - this.localMultiCopy = param; - } - - /** field for SingleConnection */ - protected boolean localSingleConnection; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSingleConnectionTracker = false; - - public boolean isSingleConnectionSpecified() { - return localSingleConnectionTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSingleConnection() { - return localSingleConnection; - } - - /** - * Auto generated setter method - * - * @param param SingleConnection - */ - public void setSingleConnection(boolean param) { - - // setting primitive attribute tracker to true - localSingleConnectionTracker = true; - - this.localSingleConnection = param; - } - - /** field for DFUServerQueue */ - protected java.lang.String localDFUServerQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerQueueTracker = false; - - public boolean isDFUServerQueueSpecified() { - return localDFUServerQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerQueue() { - return localDFUServerQueue; - } - - /** - * Auto generated setter method - * - * @param param DFUServerQueue - */ - public void setDFUServerQueue(java.lang.String param) { - localDFUServerQueueTracker = param != null; - - this.localDFUServerQueue = param; - } - - /** field for Compress */ - protected boolean localCompress = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompressTracker = false; - - public boolean isCompressSpecified() { - return localCompressTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCompress() { - return localCompress; - } - - /** - * Auto generated setter method - * - * @param param Compress - */ - public void setCompress(boolean param) { - - // setting primitive attribute tracker to true - localCompressTracker = true; - - this.localCompress = param; - } - - /** field for Encrypt */ - protected java.lang.String localEncrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEncryptTracker = false; - - public boolean isEncryptSpecified() { - return localEncryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEncrypt() { - return localEncrypt; - } - - /** - * Auto generated setter method - * - * @param param Encrypt - */ - public void setEncrypt(java.lang.String param) { - localEncryptTracker = param != null; - - this.localEncrypt = param; - } - - /** field for Decrypt */ - protected java.lang.String localDecrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDecryptTracker = false; - - public boolean isDecryptSpecified() { - return localDecryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDecrypt() { - return localDecrypt; - } - - /** - * Auto generated setter method - * - * @param param Decrypt - */ - public void setDecrypt(java.lang.String param) { - localDecryptTracker = param != null; - - this.localDecrypt = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Despray", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Despray", xmlWriter); - } - } - if (localDestGroupTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destGroup", xmlWriter); - - if (localDestGroup == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destGroup cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestGroup); - } - - xmlWriter.writeEndElement(); - } - if (localSourceLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceLogicalName", xmlWriter); - - if (localSourceLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceLogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localDestIPTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destIP", xmlWriter); - - if (localDestIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestIP); - } - - xmlWriter.writeEndElement(); - } - if (localDestPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destPath", xmlWriter); - - if (localDestPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destPath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestPath); - } - - xmlWriter.writeEndElement(); - } - if (localDestPlaneTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destPlane", xmlWriter); - - if (localDestPlane == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destPlane cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestPlane); - } - - xmlWriter.writeEndElement(); - } - if (localDstxmlTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "dstxml", xmlWriter); - - if (localDstxml != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localDstxml, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for dstxml", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "overwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxConnectionsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "maxConnections", xmlWriter); - - if (localMaxConnections == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("maxConnections cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxConnections)); - } - - xmlWriter.writeEndElement(); - } - if (localThrottleTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "throttle", xmlWriter); - - if (localThrottle == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("throttle cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThrottle)); - } - - xmlWriter.writeEndElement(); - } - if (localTransferBufferSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "transferBufferSize", xmlWriter); - - if (localTransferBufferSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("transferBufferSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTransferBufferSize)); - } - - xmlWriter.writeEndElement(); - } - if (localSplitprefixTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "splitprefix", xmlWriter); - - if (localSplitprefix == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("splitprefix cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSplitprefix); - } - - xmlWriter.writeEndElement(); - } - if (localNorecoverTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "norecover", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("norecover cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNorecover)); - } - - xmlWriter.writeEndElement(); - } - if (localWrapTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wrap", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("wrap cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWrap)); - } - - xmlWriter.writeEndElement(); - } - if (localMultiCopyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "multiCopy", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("multiCopy cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMultiCopy)); - } - - xmlWriter.writeEndElement(); - } - if (localSingleConnectionTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SingleConnection", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SingleConnection cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSingleConnection)); - } - - xmlWriter.writeEndElement(); - } - if (localDFUServerQueueTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); - - if (localDFUServerQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerQueue); - } - - xmlWriter.writeEndElement(); - } - if (localCompressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "compress", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("compress cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); - } - - xmlWriter.writeEndElement(); - } - if (localEncryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "encrypt", xmlWriter); - - if (localEncrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEncrypt); - } - - xmlWriter.writeEndElement(); - } - if (localDecryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "decrypt", xmlWriter); - - if (localDecrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDecrypt); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Despray parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Despray object = new Despray(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Despray".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Despray) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroup") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destGroup" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestGroup( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "sourceLogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceLogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destPath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destPath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destPlane") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destPlane" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestPlane( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dstxml") - .equals(reader.getName())) { - - object.setDstxml( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "overwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "maxConnections") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "maxConnections" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxConnections( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "throttle") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "throttle" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThrottle( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "transferBufferSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "transferBufferSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTransferBufferSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "splitprefix") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "splitprefix" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSplitprefix( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "norecover") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "norecover" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNorecover( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wrap") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wrap" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWrap( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "multiCopy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "multiCopy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMultiCopy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SingleConnection") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SingleConnection" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSingleConnection( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "compress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "compress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "encrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEncrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "decrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDecrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Despray.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** Despray bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Despray implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Despray", "ns1"); + + /** field for DestGroup */ + protected java.lang.String localDestGroup; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestGroupTracker = false; + + public boolean isDestGroupSpecified() { + return localDestGroupTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestGroup() { + return localDestGroup; + } + + /** + * Auto generated setter method + * + * @param param DestGroup + */ + public void setDestGroup(java.lang.String param) { + localDestGroupTracker = param != null; + + this.localDestGroup = param; + } + + /** field for SourceLogicalName */ + protected java.lang.String localSourceLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceLogicalNameTracker = false; + + public boolean isSourceLogicalNameSpecified() { + return localSourceLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceLogicalName() { + return localSourceLogicalName; + } + + /** + * Auto generated setter method + * + * @param param SourceLogicalName + */ + public void setSourceLogicalName(java.lang.String param) { + localSourceLogicalNameTracker = param != null; + + this.localSourceLogicalName = param; + } + + /** field for DestIP */ + protected java.lang.String localDestIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestIPTracker = false; + + public boolean isDestIPSpecified() { + return localDestIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestIP() { + return localDestIP; + } + + /** + * Auto generated setter method + * + * @param param DestIP + */ + public void setDestIP(java.lang.String param) { + localDestIPTracker = param != null; + + this.localDestIP = param; + } + + /** field for DestPath */ + protected java.lang.String localDestPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestPathTracker = false; + + public boolean isDestPathSpecified() { + return localDestPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestPath() { + return localDestPath; + } + + /** + * Auto generated setter method + * + * @param param DestPath + */ + public void setDestPath(java.lang.String param) { + localDestPathTracker = param != null; + + this.localDestPath = param; + } + + /** field for DestPlane */ + protected java.lang.String localDestPlane; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestPlaneTracker = false; + + public boolean isDestPlaneSpecified() { + return localDestPlaneTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestPlane() { + return localDestPlane; + } + + /** + * Auto generated setter method + * + * @param param DestPlane + */ + public void setDestPlane(java.lang.String param) { + localDestPlaneTracker = param != null; + + this.localDestPlane = param; + } + + /** field for Dstxml */ + protected javax.activation.DataHandler localDstxml; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDstxmlTracker = false; + + public boolean isDstxmlSpecified() { + return localDstxmlTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getDstxml() { + return localDstxml; + } + + /** + * Auto generated setter method + * + * @param param Dstxml + */ + public void setDstxml(javax.activation.DataHandler param) { + localDstxmlTracker = param != null; + + this.localDstxml = param; + } + + /** field for Overwrite */ + protected boolean localOverwrite; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteTracker = false; + + public boolean isOverwriteSpecified() { + return localOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwrite() { + return localOverwrite; + } + + /** + * Auto generated setter method + * + * @param param Overwrite + */ + public void setOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteTracker = true; + + this.localOverwrite = param; + } + + /** field for MaxConnections */ + protected int localMaxConnections; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxConnectionsTracker = false; + + public boolean isMaxConnectionsSpecified() { + return localMaxConnectionsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMaxConnections() { + return localMaxConnections; + } + + /** + * Auto generated setter method + * + * @param param MaxConnections + */ + public void setMaxConnections(int param) { + + // setting primitive attribute tracker to true + localMaxConnectionsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMaxConnections = param; + } + + /** field for Throttle */ + protected int localThrottle; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThrottleTracker = false; + + public boolean isThrottleSpecified() { + return localThrottleTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getThrottle() { + return localThrottle; + } + + /** + * Auto generated setter method + * + * @param param Throttle + */ + public void setThrottle(int param) { + + // setting primitive attribute tracker to true + localThrottleTracker = param != java.lang.Integer.MIN_VALUE; + + this.localThrottle = param; + } + + /** field for TransferBufferSize */ + protected int localTransferBufferSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTransferBufferSizeTracker = false; + + public boolean isTransferBufferSizeSpecified() { + return localTransferBufferSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTransferBufferSize() { + return localTransferBufferSize; + } + + /** + * Auto generated setter method + * + * @param param TransferBufferSize + */ + public void setTransferBufferSize(int param) { + + // setting primitive attribute tracker to true + localTransferBufferSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTransferBufferSize = param; + } + + /** field for Splitprefix */ + protected java.lang.String localSplitprefix; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSplitprefixTracker = false; + + public boolean isSplitprefixSpecified() { + return localSplitprefixTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSplitprefix() { + return localSplitprefix; + } + + /** + * Auto generated setter method + * + * @param param Splitprefix + */ + public void setSplitprefix(java.lang.String param) { + localSplitprefixTracker = param != null; + + this.localSplitprefix = param; + } + + /** field for Norecover */ + protected boolean localNorecover = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNorecoverTracker = false; + + public boolean isNorecoverSpecified() { + return localNorecoverTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNorecover() { + return localNorecover; + } + + /** + * Auto generated setter method + * + * @param param Norecover + */ + public void setNorecover(boolean param) { + + // setting primitive attribute tracker to true + localNorecoverTracker = true; + + this.localNorecover = param; + } + + /** field for Wrap */ + protected boolean localWrap = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWrapTracker = false; + + public boolean isWrapSpecified() { + return localWrapTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getWrap() { + return localWrap; + } + + /** + * Auto generated setter method + * + * @param param Wrap + */ + public void setWrap(boolean param) { + + // setting primitive attribute tracker to true + localWrapTracker = true; + + this.localWrap = param; + } + + /** field for MultiCopy */ + protected boolean localMultiCopy = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMultiCopyTracker = false; + + public boolean isMultiCopySpecified() { + return localMultiCopyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getMultiCopy() { + return localMultiCopy; + } + + /** + * Auto generated setter method + * + * @param param MultiCopy + */ + public void setMultiCopy(boolean param) { + + // setting primitive attribute tracker to true + localMultiCopyTracker = true; + + this.localMultiCopy = param; + } + + /** field for SingleConnection */ + protected boolean localSingleConnection; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSingleConnectionTracker = false; + + public boolean isSingleConnectionSpecified() { + return localSingleConnectionTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSingleConnection() { + return localSingleConnection; + } + + /** + * Auto generated setter method + * + * @param param SingleConnection + */ + public void setSingleConnection(boolean param) { + + // setting primitive attribute tracker to true + localSingleConnectionTracker = true; + + this.localSingleConnection = param; + } + + /** field for DFUServerQueue */ + protected java.lang.String localDFUServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerQueueTracker = false; + + public boolean isDFUServerQueueSpecified() { + return localDFUServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerQueue() { + return localDFUServerQueue; + } + + /** + * Auto generated setter method + * + * @param param DFUServerQueue + */ + public void setDFUServerQueue(java.lang.String param) { + localDFUServerQueueTracker = param != null; + + this.localDFUServerQueue = param; + } + + /** field for Compress */ + protected boolean localCompress = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompressTracker = false; + + public boolean isCompressSpecified() { + return localCompressTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCompress() { + return localCompress; + } + + /** + * Auto generated setter method + * + * @param param Compress + */ + public void setCompress(boolean param) { + + // setting primitive attribute tracker to true + localCompressTracker = true; + + this.localCompress = param; + } + + /** field for Encrypt */ + protected java.lang.String localEncrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEncryptTracker = false; + + public boolean isEncryptSpecified() { + return localEncryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEncrypt() { + return localEncrypt; + } + + /** + * Auto generated setter method + * + * @param param Encrypt + */ + public void setEncrypt(java.lang.String param) { + localEncryptTracker = param != null; + + this.localEncrypt = param; + } + + /** field for Decrypt */ + protected java.lang.String localDecrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDecryptTracker = false; + + public boolean isDecryptSpecified() { + return localDecryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDecrypt() { + return localDecrypt; + } + + /** + * Auto generated setter method + * + * @param param Decrypt + */ + public void setDecrypt(java.lang.String param) { + localDecryptTracker = param != null; + + this.localDecrypt = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Despray", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Despray", xmlWriter); + } + } + if (localDestGroupTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destGroup", xmlWriter); + + if (localDestGroup == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destGroup cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestGroup); + } + + xmlWriter.writeEndElement(); + } + if (localSourceLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceLogicalName", xmlWriter); + + if (localSourceLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceLogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localDestIPTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destIP", xmlWriter); + + if (localDestIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestIP); + } + + xmlWriter.writeEndElement(); + } + if (localDestPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destPath", xmlWriter); + + if (localDestPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destPath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestPath); + } + + xmlWriter.writeEndElement(); + } + if (localDestPlaneTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destPlane", xmlWriter); + + if (localDestPlane == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destPlane cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestPlane); + } + + xmlWriter.writeEndElement(); + } + if (localDstxmlTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "dstxml", xmlWriter); + + if (localDstxml != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localDstxml, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for dstxml", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "overwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxConnectionsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "maxConnections", xmlWriter); + + if (localMaxConnections == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("maxConnections cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxConnections)); + } + + xmlWriter.writeEndElement(); + } + if (localThrottleTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "throttle", xmlWriter); + + if (localThrottle == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("throttle cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThrottle)); + } + + xmlWriter.writeEndElement(); + } + if (localTransferBufferSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "transferBufferSize", xmlWriter); + + if (localTransferBufferSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("transferBufferSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTransferBufferSize)); + } + + xmlWriter.writeEndElement(); + } + if (localSplitprefixTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "splitprefix", xmlWriter); + + if (localSplitprefix == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("splitprefix cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSplitprefix); + } + + xmlWriter.writeEndElement(); + } + if (localNorecoverTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "norecover", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("norecover cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNorecover)); + } + + xmlWriter.writeEndElement(); + } + if (localWrapTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wrap", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("wrap cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWrap)); + } + + xmlWriter.writeEndElement(); + } + if (localMultiCopyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "multiCopy", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("multiCopy cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMultiCopy)); + } + + xmlWriter.writeEndElement(); + } + if (localSingleConnectionTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SingleConnection", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SingleConnection cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSingleConnection)); + } + + xmlWriter.writeEndElement(); + } + if (localDFUServerQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); + + if (localDFUServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerQueue); + } + + xmlWriter.writeEndElement(); + } + if (localCompressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "compress", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("compress cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); + } + + xmlWriter.writeEndElement(); + } + if (localEncryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "encrypt", xmlWriter); + + if (localEncrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEncrypt); + } + + xmlWriter.writeEndElement(); + } + if (localDecryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "decrypt", xmlWriter); + + if (localDecrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDecrypt); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Despray parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Despray object = new Despray(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Despray".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Despray) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroup") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destGroup" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestGroup( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "sourceLogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceLogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destPath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destPath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destPlane") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destPlane" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestPlane( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dstxml") + .equals(reader.getName())) { + + object.setDstxml( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "overwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "maxConnections") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "maxConnections" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxConnections( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "throttle") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "throttle" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThrottle( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "transferBufferSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "transferBufferSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTransferBufferSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "splitprefix") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "splitprefix" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSplitprefix( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "norecover") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "norecover" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNorecover( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wrap") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wrap" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWrap( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "multiCopy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "multiCopy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMultiCopy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SingleConnection") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SingleConnection" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSingleConnection( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "compress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "compress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "encrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEncrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "decrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDecrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DesprayResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DesprayResponse.java index c800b864a..10ff7c489 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DesprayResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DesprayResponse.java @@ -1,449 +1,449 @@ -/** - * DesprayResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DesprayResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DesprayResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DesprayResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DesprayResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DesprayResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DesprayResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DesprayResponse object = new DesprayResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DesprayResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DesprayResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DesprayResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DesprayResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DesprayResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DesprayResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DesprayResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DesprayResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DesprayResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DesprayResponse object = new DesprayResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DesprayResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DesprayResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DfuMonitorRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DfuMonitorRequest.java index 13d8a981f..90b0fa832 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DfuMonitorRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DfuMonitorRequest.java @@ -1,738 +1,738 @@ -/** - * DfuMonitorRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DfuMonitorRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DfuMonitorRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DfuMonitorRequest", "ns1"); - - /** field for EventName */ - protected java.lang.String localEventName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventNameTracker = false; - - public boolean isEventNameSpecified() { - return localEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventName() { - return localEventName; - } - - /** - * Auto generated setter method - * - * @param param EventName - */ - public void setEventName(java.lang.String param) { - localEventNameTracker = param != null; - - this.localEventName = param; - } - - /** field for LogicalName */ - protected java.lang.String localLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalNameTracker = false; - - public boolean isLogicalNameSpecified() { - return localLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalName() { - return localLogicalName; - } - - /** - * Auto generated setter method - * - * @param param LogicalName - */ - public void setLogicalName(java.lang.String param) { - localLogicalNameTracker = param != null; - - this.localLogicalName = param; - } - - /** field for Ip */ - protected java.lang.String localIp; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIpTracker = false; - - public boolean isIpSpecified() { - return localIpTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getIp() { - return localIp; - } - - /** - * Auto generated setter method - * - * @param param Ip - */ - public void setIp(java.lang.String param) { - localIpTracker = param != null; - - this.localIp = param; - } - - /** field for Filename */ - protected java.lang.String localFilename; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilenameTracker = false; - - public boolean isFilenameSpecified() { - return localFilenameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFilename() { - return localFilename; - } - - /** - * Auto generated setter method - * - * @param param Filename - */ - public void setFilename(java.lang.String param) { - localFilenameTracker = param != null; - - this.localFilename = param; - } - - /** field for Sub */ - protected boolean localSub; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubTracker = false; - - public boolean isSubSpecified() { - return localSubTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSub() { - return localSub; - } - - /** - * Auto generated setter method - * - * @param param Sub - */ - public void setSub(boolean param) { - - // setting primitive attribute tracker to true - localSubTracker = true; - - this.localSub = param; - } - - /** field for ShotLimit */ - protected int localShotLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShotLimitTracker = false; - - public boolean isShotLimitSpecified() { - return localShotLimitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getShotLimit() { - return localShotLimit; - } - - /** - * Auto generated setter method - * - * @param param ShotLimit - */ - public void setShotLimit(int param) { - - // setting primitive attribute tracker to true - localShotLimitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localShotLimit = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DfuMonitorRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DfuMonitorRequest", - xmlWriter); - } - } - if (localEventNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "EventName", xmlWriter); - - if (localEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventName); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "LogicalName", xmlWriter); - - if (localLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localIpTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Ip", xmlWriter); - - if (localIp == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Ip cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localIp); - } - - xmlWriter.writeEndElement(); - } - if (localFilenameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Filename", xmlWriter); - - if (localFilename == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Filename cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFilename); - } - - xmlWriter.writeEndElement(); - } - if (localSubTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Sub", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Sub cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSub)); - } - - xmlWriter.writeEndElement(); - } - if (localShotLimitTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ShotLimit", xmlWriter); - - if (localShotLimit == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ShotLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShotLimit)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DfuMonitorRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DfuMonitorRequest object = new DfuMonitorRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DfuMonitorRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DfuMonitorRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "EventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "LogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Ip") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Ip" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIp( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Filename") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Filename" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilename( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Sub") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sub" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSub( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ShotLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShotLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShotLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DfuMonitorRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DfuMonitorRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DfuMonitorRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DfuMonitorRequest", "ns1"); + + /** field for EventName */ + protected java.lang.String localEventName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventNameTracker = false; + + public boolean isEventNameSpecified() { + return localEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventName() { + return localEventName; + } + + /** + * Auto generated setter method + * + * @param param EventName + */ + public void setEventName(java.lang.String param) { + localEventNameTracker = param != null; + + this.localEventName = param; + } + + /** field for LogicalName */ + protected java.lang.String localLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalNameTracker = false; + + public boolean isLogicalNameSpecified() { + return localLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalName() { + return localLogicalName; + } + + /** + * Auto generated setter method + * + * @param param LogicalName + */ + public void setLogicalName(java.lang.String param) { + localLogicalNameTracker = param != null; + + this.localLogicalName = param; + } + + /** field for Ip */ + protected java.lang.String localIp; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIpTracker = false; + + public boolean isIpSpecified() { + return localIpTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getIp() { + return localIp; + } + + /** + * Auto generated setter method + * + * @param param Ip + */ + public void setIp(java.lang.String param) { + localIpTracker = param != null; + + this.localIp = param; + } + + /** field for Filename */ + protected java.lang.String localFilename; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilenameTracker = false; + + public boolean isFilenameSpecified() { + return localFilenameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFilename() { + return localFilename; + } + + /** + * Auto generated setter method + * + * @param param Filename + */ + public void setFilename(java.lang.String param) { + localFilenameTracker = param != null; + + this.localFilename = param; + } + + /** field for Sub */ + protected boolean localSub; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubTracker = false; + + public boolean isSubSpecified() { + return localSubTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSub() { + return localSub; + } + + /** + * Auto generated setter method + * + * @param param Sub + */ + public void setSub(boolean param) { + + // setting primitive attribute tracker to true + localSubTracker = true; + + this.localSub = param; + } + + /** field for ShotLimit */ + protected int localShotLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShotLimitTracker = false; + + public boolean isShotLimitSpecified() { + return localShotLimitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getShotLimit() { + return localShotLimit; + } + + /** + * Auto generated setter method + * + * @param param ShotLimit + */ + public void setShotLimit(int param) { + + // setting primitive attribute tracker to true + localShotLimitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localShotLimit = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DfuMonitorRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DfuMonitorRequest", + xmlWriter); + } + } + if (localEventNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "EventName", xmlWriter); + + if (localEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventName); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "LogicalName", xmlWriter); + + if (localLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localIpTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Ip", xmlWriter); + + if (localIp == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Ip cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localIp); + } + + xmlWriter.writeEndElement(); + } + if (localFilenameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Filename", xmlWriter); + + if (localFilename == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Filename cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFilename); + } + + xmlWriter.writeEndElement(); + } + if (localSubTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Sub", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Sub cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSub)); + } + + xmlWriter.writeEndElement(); + } + if (localShotLimitTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ShotLimit", xmlWriter); + + if (localShotLimit == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ShotLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShotLimit)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DfuMonitorRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DfuMonitorRequest object = new DfuMonitorRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DfuMonitorRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DfuMonitorRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "EventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "LogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Ip") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Ip" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIp( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Filename") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Filename" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilename( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Sub") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sub" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSub( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ShotLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShotLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShotLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DfuMonitorResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DfuMonitorResponse.java index fd78f960e..265b7d450 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DfuMonitorResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DfuMonitorResponse.java @@ -1,449 +1,449 @@ -/** - * DfuMonitorResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DfuMonitorResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DfuMonitorResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DfuMonitorResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DfuMonitorResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DfuMonitorResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DfuMonitorResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DfuMonitorResponse object = new DfuMonitorResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DfuMonitorResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DfuMonitorResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DfuMonitorResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DfuMonitorResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DfuMonitorResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DfuMonitorResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DfuMonitorResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DfuMonitorResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DfuMonitorResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DfuMonitorResponse object = new DfuMonitorResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DfuMonitorResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DfuMonitorResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZone.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZone.java index 9dce4b985..84848e0a9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZone.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZone.java @@ -1,667 +1,667 @@ -/** - * DropZone.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DropZone bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DropZone implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = DropZone - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for NetAddress */ - protected java.lang.String localNetAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetAddressTracker = false; - - public boolean isNetAddressSpecified() { - return localNetAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetAddress() { - return localNetAddress; - } - - /** - * Auto generated setter method - * - * @param param NetAddress - */ - public void setNetAddress(java.lang.String param) { - localNetAddressTracker = param != null; - - this.localNetAddress = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Computer */ - protected java.lang.String localComputer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localComputerTracker = false; - - public boolean isComputerSpecified() { - return localComputerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComputer() { - return localComputer; - } - - /** - * Auto generated setter method - * - * @param param Computer - */ - public void setComputer(java.lang.String param) { - localComputerTracker = param != null; - - this.localComputer = param; - } - - /** field for Linux */ - protected java.lang.String localLinux; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLinuxTracker = false; - - public boolean isLinuxSpecified() { - return localLinuxTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLinux() { - return localLinux; - } - - /** - * Auto generated setter method - * - * @param param Linux - */ - public void setLinux(java.lang.String param) { - localLinuxTracker = param != null; - - this.localLinux = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DropZone", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DropZone", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localNetAddressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "NetAddress", xmlWriter); - - if (localNetAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localComputerTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Computer", xmlWriter); - - if (localComputer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Computer cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComputer); - } - - xmlWriter.writeEndElement(); - } - if (localLinuxTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Linux", xmlWriter); - - if (localLinux == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Linux cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLinux); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DropZone parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DropZone object = new DropZone(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DropZone".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DropZone) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NetAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Computer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Computer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComputer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Linux") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Linux" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLinux( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DropZone.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DropZone bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DropZone implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = DropZone + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for NetAddress */ + protected java.lang.String localNetAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetAddressTracker = false; + + public boolean isNetAddressSpecified() { + return localNetAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetAddress() { + return localNetAddress; + } + + /** + * Auto generated setter method + * + * @param param NetAddress + */ + public void setNetAddress(java.lang.String param) { + localNetAddressTracker = param != null; + + this.localNetAddress = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Computer */ + protected java.lang.String localComputer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localComputerTracker = false; + + public boolean isComputerSpecified() { + return localComputerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComputer() { + return localComputer; + } + + /** + * Auto generated setter method + * + * @param param Computer + */ + public void setComputer(java.lang.String param) { + localComputerTracker = param != null; + + this.localComputer = param; + } + + /** field for Linux */ + protected java.lang.String localLinux; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLinuxTracker = false; + + public boolean isLinuxSpecified() { + return localLinuxTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLinux() { + return localLinux; + } + + /** + * Auto generated setter method + * + * @param param Linux + */ + public void setLinux(java.lang.String param) { + localLinuxTracker = param != null; + + this.localLinux = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DropZone", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DropZone", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localNetAddressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "NetAddress", xmlWriter); + + if (localNetAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localComputerTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Computer", xmlWriter); + + if (localComputer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Computer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComputer); + } + + xmlWriter.writeEndElement(); + } + if (localLinuxTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Linux", xmlWriter); + + if (localLinux == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Linux cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLinux); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DropZone parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DropZone object = new DropZone(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DropZone".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DropZone) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NetAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Computer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Computer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComputer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Linux") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Linux" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLinux( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFileSearchRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFileSearchRequest.java index 90d729cb1..63d1a9dee 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFileSearchRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFileSearchRequest.java @@ -1,605 +1,605 @@ -/** - * DropZoneFileSearchRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DropZoneFileSearchRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DropZoneFileSearchRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DropZoneFileSearchRequest", "ns1"); - - /** field for DropZoneName */ - protected java.lang.String localDropZoneName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDropZoneNameTracker = false; - - public boolean isDropZoneNameSpecified() { - return localDropZoneNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDropZoneName() { - return localDropZoneName; - } - - /** - * Auto generated setter method - * - * @param param DropZoneName - */ - public void setDropZoneName(java.lang.String param) { - localDropZoneNameTracker = param != null; - - this.localDropZoneName = param; - } - - /** field for Server */ - protected java.lang.String localServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTracker = false; - - public boolean isServerSpecified() { - return localServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServer() { - return localServer; - } - - /** - * Auto generated setter method - * - * @param param Server - */ - public void setServer(java.lang.String param) { - localServerTracker = param != null; - - this.localServer = param; - } - - /** field for ECLWatchVisibleOnly */ - protected boolean localECLWatchVisibleOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLWatchVisibleOnlyTracker = false; - - public boolean isECLWatchVisibleOnlySpecified() { - return localECLWatchVisibleOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getECLWatchVisibleOnly() { - return localECLWatchVisibleOnly; - } - - /** - * Auto generated setter method - * - * @param param ECLWatchVisibleOnly - */ - public void setECLWatchVisibleOnly(boolean param) { - - // setting primitive attribute tracker to true - localECLWatchVisibleOnlyTracker = true; - - this.localECLWatchVisibleOnly = param; - } - - /** field for NameFilter */ - protected java.lang.String localNameFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameFilterTracker = false; - - public boolean isNameFilterSpecified() { - return localNameFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNameFilter() { - return localNameFilter; - } - - /** - * Auto generated setter method - * - * @param param NameFilter - */ - public void setNameFilter(java.lang.String param) { - localNameFilterTracker = param != null; - - this.localNameFilter = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DropZoneFileSearchRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DropZoneFileSearchRequest", - xmlWriter); - } - } - if (localDropZoneNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DropZoneName", xmlWriter); - - if (localDropZoneName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDropZoneName); - } - - xmlWriter.writeEndElement(); - } - if (localServerTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Server", xmlWriter); - - if (localServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Server cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServer); - } - - xmlWriter.writeEndElement(); - } - if (localECLWatchVisibleOnlyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ECLWatchVisibleOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ECLWatchVisibleOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localECLWatchVisibleOnly)); - } - - xmlWriter.writeEndElement(); - } - if (localNameFilterTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "NameFilter", xmlWriter); - - if (localNameFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NameFilter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNameFilter); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DropZoneFileSearchRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DropZoneFileSearchRequest object = new DropZoneFileSearchRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DropZoneFileSearchRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DropZoneFileSearchRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DropZoneName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDropZoneName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Server") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Server" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "ECLWatchVisibleOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECLWatchVisibleOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECLWatchVisibleOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NameFilter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NameFilter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNameFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DropZoneFileSearchRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DropZoneFileSearchRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DropZoneFileSearchRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DropZoneFileSearchRequest", "ns1"); + + /** field for DropZoneName */ + protected java.lang.String localDropZoneName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDropZoneNameTracker = false; + + public boolean isDropZoneNameSpecified() { + return localDropZoneNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDropZoneName() { + return localDropZoneName; + } + + /** + * Auto generated setter method + * + * @param param DropZoneName + */ + public void setDropZoneName(java.lang.String param) { + localDropZoneNameTracker = param != null; + + this.localDropZoneName = param; + } + + /** field for Server */ + protected java.lang.String localServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTracker = false; + + public boolean isServerSpecified() { + return localServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServer() { + return localServer; + } + + /** + * Auto generated setter method + * + * @param param Server + */ + public void setServer(java.lang.String param) { + localServerTracker = param != null; + + this.localServer = param; + } + + /** field for ECLWatchVisibleOnly */ + protected boolean localECLWatchVisibleOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWatchVisibleOnlyTracker = false; + + public boolean isECLWatchVisibleOnlySpecified() { + return localECLWatchVisibleOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getECLWatchVisibleOnly() { + return localECLWatchVisibleOnly; + } + + /** + * Auto generated setter method + * + * @param param ECLWatchVisibleOnly + */ + public void setECLWatchVisibleOnly(boolean param) { + + // setting primitive attribute tracker to true + localECLWatchVisibleOnlyTracker = true; + + this.localECLWatchVisibleOnly = param; + } + + /** field for NameFilter */ + protected java.lang.String localNameFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameFilterTracker = false; + + public boolean isNameFilterSpecified() { + return localNameFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNameFilter() { + return localNameFilter; + } + + /** + * Auto generated setter method + * + * @param param NameFilter + */ + public void setNameFilter(java.lang.String param) { + localNameFilterTracker = param != null; + + this.localNameFilter = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DropZoneFileSearchRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DropZoneFileSearchRequest", + xmlWriter); + } + } + if (localDropZoneNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DropZoneName", xmlWriter); + + if (localDropZoneName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDropZoneName); + } + + xmlWriter.writeEndElement(); + } + if (localServerTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Server", xmlWriter); + + if (localServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Server cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServer); + } + + xmlWriter.writeEndElement(); + } + if (localECLWatchVisibleOnlyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ECLWatchVisibleOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ECLWatchVisibleOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localECLWatchVisibleOnly)); + } + + xmlWriter.writeEndElement(); + } + if (localNameFilterTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "NameFilter", xmlWriter); + + if (localNameFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NameFilter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNameFilter); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DropZoneFileSearchRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DropZoneFileSearchRequest object = new DropZoneFileSearchRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DropZoneFileSearchRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DropZoneFileSearchRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DropZoneName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDropZoneName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Server") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Server" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "ECLWatchVisibleOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECLWatchVisibleOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECLWatchVisibleOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NameFilter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NameFilter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNameFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFileSearchResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFileSearchResponse.java index 0ff3d2a96..86a3dda52 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFileSearchResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFileSearchResponse.java @@ -1,503 +1,503 @@ -/** - * DropZoneFileSearchResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DropZoneFileSearchResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DropZoneFileSearchResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DropZoneFileSearchResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Files */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - localFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesTracker = false; - - public boolean isFilesSpecified() { - return localFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct getFiles() { - return localFiles; - } - - /** - * Auto generated setter method - * - * @param param Files - */ - public void setFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct param) { - localFilesTracker = param != null; - - this.localFiles = param; - } - - /** field for Warning */ - protected java.lang.String localWarning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarningTracker = false; - - public boolean isWarningSpecified() { - return localWarningTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWarning() { - return localWarning; - } - - /** - * Auto generated setter method - * - * @param param Warning - */ - public void setWarning(java.lang.String param) { - localWarningTracker = param != null; - - this.localWarning = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DropZoneFileSearchResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DropZoneFileSearchResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localFilesTracker) { - if (localFiles == null) { - throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); - } - localFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files"), xmlWriter); - } - if (localWarningTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Warning", xmlWriter); - - if (localWarning == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWarning); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DropZoneFileSearchResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DropZoneFileSearchResponse object = new DropZoneFileSearchResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DropZoneFileSearchResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DropZoneFileSearchResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files") - .equals(reader.getName())) { - - object.setFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Warning") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Warning" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DropZoneFileSearchResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DropZoneFileSearchResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DropZoneFileSearchResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DropZoneFileSearchResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** field for Warning */ + protected java.lang.String localWarning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarningTracker = false; + + public boolean isWarningSpecified() { + return localWarningTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWarning() { + return localWarning; + } + + /** + * Auto generated setter method + * + * @param param Warning + */ + public void setWarning(java.lang.String param) { + localWarningTracker = param != null; + + this.localWarning = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DropZoneFileSearchResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DropZoneFileSearchResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files"), xmlWriter); + } + if (localWarningTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Warning", xmlWriter); + + if (localWarning == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWarning); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DropZoneFileSearchResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DropZoneFileSearchResponse object = new DropZoneFileSearchResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DropZoneFileSearchResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DropZoneFileSearchResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Warning") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Warning" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFilesRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFilesRequest.java index 856b6e317..92b11fbf4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFilesRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFilesRequest.java @@ -1,810 +1,810 @@ -/** - * DropZoneFilesRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DropZoneFilesRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DropZoneFilesRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneFilesRequest", "ns1"); - - /** field for DropZoneName */ - protected java.lang.String localDropZoneName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDropZoneNameTracker = false; - - public boolean isDropZoneNameSpecified() { - return localDropZoneNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDropZoneName() { - return localDropZoneName; - } - - /** - * Auto generated setter method - * - * @param param DropZoneName - */ - public void setDropZoneName(java.lang.String param) { - localDropZoneNameTracker = param != null; - - this.localDropZoneName = param; - } - - /** field for NetAddress */ - protected java.lang.String localNetAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetAddressTracker = false; - - public boolean isNetAddressSpecified() { - return localNetAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetAddress() { - return localNetAddress; - } - - /** - * Auto generated setter method - * - * @param param NetAddress - */ - public void setNetAddress(java.lang.String param) { - localNetAddressTracker = param != null; - - this.localNetAddress = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for OS */ - protected java.lang.String localOS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOSTracker = false; - - public boolean isOSSpecified() { - return localOSTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOS() { - return localOS; - } - - /** - * Auto generated setter method - * - * @param param OS - */ - public void setOS(java.lang.String param) { - localOSTracker = param != null; - - this.localOS = param; - } - - /** field for Subfolder */ - protected java.lang.String localSubfolder; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubfolderTracker = false; - - public boolean isSubfolderSpecified() { - return localSubfolderTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSubfolder() { - return localSubfolder; - } - - /** - * Auto generated setter method - * - * @param param Subfolder - */ - public void setSubfolder(java.lang.String param) { - localSubfolderTracker = param != null; - - this.localSubfolder = param; - } - - /** field for ECLWatchVisibleOnly */ - protected boolean localECLWatchVisibleOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLWatchVisibleOnlyTracker = false; - - public boolean isECLWatchVisibleOnlySpecified() { - return localECLWatchVisibleOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getECLWatchVisibleOnly() { - return localECLWatchVisibleOnly; - } - - /** - * Auto generated setter method - * - * @param param ECLWatchVisibleOnly - */ - public void setECLWatchVisibleOnly(boolean param) { - - // setting primitive attribute tracker to true - localECLWatchVisibleOnlyTracker = true; - - this.localECLWatchVisibleOnly = param; - } - - /** field for DirectoryOnly */ - protected boolean localDirectoryOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDirectoryOnlyTracker = false; - - public boolean isDirectoryOnlySpecified() { - return localDirectoryOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDirectoryOnly() { - return localDirectoryOnly; - } - - /** - * Auto generated setter method - * - * @param param DirectoryOnly - */ - public void setDirectoryOnly(boolean param) { - - // setting primitive attribute tracker to true - localDirectoryOnlyTracker = true; - - this.localDirectoryOnly = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DropZoneFilesRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DropZoneFilesRequest", - xmlWriter); - } - } - if (localDropZoneNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DropZoneName", xmlWriter); - - if (localDropZoneName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDropZoneName); - } - - xmlWriter.writeEndElement(); - } - if (localNetAddressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "NetAddress", xmlWriter); - - if (localNetAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localOSTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "OS", xmlWriter); - - if (localOS == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOS); - } - - xmlWriter.writeEndElement(); - } - if (localSubfolderTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Subfolder", xmlWriter); - - if (localSubfolder == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Subfolder cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSubfolder); - } - - xmlWriter.writeEndElement(); - } - if (localECLWatchVisibleOnlyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ECLWatchVisibleOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ECLWatchVisibleOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localECLWatchVisibleOnly)); - } - - xmlWriter.writeEndElement(); - } - if (localDirectoryOnlyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DirectoryOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DirectoryOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDirectoryOnly)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DropZoneFilesRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DropZoneFilesRequest object = new DropZoneFilesRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DropZoneFilesRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DropZoneFilesRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DropZoneName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDropZoneName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NetAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOS( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Subfolder") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Subfolder" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubfolder( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "ECLWatchVisibleOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECLWatchVisibleOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECLWatchVisibleOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DirectoryOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DirectoryOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDirectoryOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DropZoneFilesRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DropZoneFilesRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DropZoneFilesRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneFilesRequest", "ns1"); + + /** field for DropZoneName */ + protected java.lang.String localDropZoneName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDropZoneNameTracker = false; + + public boolean isDropZoneNameSpecified() { + return localDropZoneNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDropZoneName() { + return localDropZoneName; + } + + /** + * Auto generated setter method + * + * @param param DropZoneName + */ + public void setDropZoneName(java.lang.String param) { + localDropZoneNameTracker = param != null; + + this.localDropZoneName = param; + } + + /** field for NetAddress */ + protected java.lang.String localNetAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetAddressTracker = false; + + public boolean isNetAddressSpecified() { + return localNetAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetAddress() { + return localNetAddress; + } + + /** + * Auto generated setter method + * + * @param param NetAddress + */ + public void setNetAddress(java.lang.String param) { + localNetAddressTracker = param != null; + + this.localNetAddress = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for OS */ + protected java.lang.String localOS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOSTracker = false; + + public boolean isOSSpecified() { + return localOSTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOS() { + return localOS; + } + + /** + * Auto generated setter method + * + * @param param OS + */ + public void setOS(java.lang.String param) { + localOSTracker = param != null; + + this.localOS = param; + } + + /** field for Subfolder */ + protected java.lang.String localSubfolder; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubfolderTracker = false; + + public boolean isSubfolderSpecified() { + return localSubfolderTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSubfolder() { + return localSubfolder; + } + + /** + * Auto generated setter method + * + * @param param Subfolder + */ + public void setSubfolder(java.lang.String param) { + localSubfolderTracker = param != null; + + this.localSubfolder = param; + } + + /** field for ECLWatchVisibleOnly */ + protected boolean localECLWatchVisibleOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWatchVisibleOnlyTracker = false; + + public boolean isECLWatchVisibleOnlySpecified() { + return localECLWatchVisibleOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getECLWatchVisibleOnly() { + return localECLWatchVisibleOnly; + } + + /** + * Auto generated setter method + * + * @param param ECLWatchVisibleOnly + */ + public void setECLWatchVisibleOnly(boolean param) { + + // setting primitive attribute tracker to true + localECLWatchVisibleOnlyTracker = true; + + this.localECLWatchVisibleOnly = param; + } + + /** field for DirectoryOnly */ + protected boolean localDirectoryOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDirectoryOnlyTracker = false; + + public boolean isDirectoryOnlySpecified() { + return localDirectoryOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDirectoryOnly() { + return localDirectoryOnly; + } + + /** + * Auto generated setter method + * + * @param param DirectoryOnly + */ + public void setDirectoryOnly(boolean param) { + + // setting primitive attribute tracker to true + localDirectoryOnlyTracker = true; + + this.localDirectoryOnly = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DropZoneFilesRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DropZoneFilesRequest", + xmlWriter); + } + } + if (localDropZoneNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DropZoneName", xmlWriter); + + if (localDropZoneName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDropZoneName); + } + + xmlWriter.writeEndElement(); + } + if (localNetAddressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "NetAddress", xmlWriter); + + if (localNetAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localOSTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "OS", xmlWriter); + + if (localOS == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOS); + } + + xmlWriter.writeEndElement(); + } + if (localSubfolderTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Subfolder", xmlWriter); + + if (localSubfolder == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Subfolder cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSubfolder); + } + + xmlWriter.writeEndElement(); + } + if (localECLWatchVisibleOnlyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ECLWatchVisibleOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ECLWatchVisibleOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localECLWatchVisibleOnly)); + } + + xmlWriter.writeEndElement(); + } + if (localDirectoryOnlyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DirectoryOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DirectoryOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDirectoryOnly)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DropZoneFilesRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DropZoneFilesRequest object = new DropZoneFilesRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DropZoneFilesRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DropZoneFilesRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DropZoneName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDropZoneName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NetAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOS( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Subfolder") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Subfolder" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubfolder( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "ECLWatchVisibleOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECLWatchVisibleOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECLWatchVisibleOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DirectoryOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DirectoryOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDirectoryOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFilesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFilesResponse.java index a532892bd..2547b48fb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFilesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/DropZoneFilesResponse.java @@ -1,829 +1,829 @@ -/** - * DropZoneFilesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** DropZoneFilesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DropZoneFilesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneFilesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for DropZoneName */ - protected java.lang.String localDropZoneName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDropZoneNameTracker = false; - - public boolean isDropZoneNameSpecified() { - return localDropZoneNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDropZoneName() { - return localDropZoneName; - } - - /** - * Auto generated setter method - * - * @param param DropZoneName - */ - public void setDropZoneName(java.lang.String param) { - localDropZoneNameTracker = param != null; - - this.localDropZoneName = param; - } - - /** field for NetAddress */ - protected java.lang.String localNetAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetAddressTracker = false; - - public boolean isNetAddressSpecified() { - return localNetAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetAddress() { - return localNetAddress; - } - - /** - * Auto generated setter method - * - * @param param NetAddress - */ - public void setNetAddress(java.lang.String param) { - localNetAddressTracker = param != null; - - this.localNetAddress = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for OS */ - protected int localOS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOSTracker = false; - - public boolean isOSSpecified() { - return localOSTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getOS() { - return localOS; - } - - /** - * Auto generated setter method - * - * @param param OS - */ - public void setOS(int param) { - - // setting primitive attribute tracker to true - localOSTracker = param != java.lang.Integer.MIN_VALUE; - - this.localOS = param; - } - - /** field for ECLWatchVisibleOnly */ - protected boolean localECLWatchVisibleOnly; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLWatchVisibleOnlyTracker = false; - - public boolean isECLWatchVisibleOnlySpecified() { - return localECLWatchVisibleOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getECLWatchVisibleOnly() { - return localECLWatchVisibleOnly; - } - - /** - * Auto generated setter method - * - * @param param ECLWatchVisibleOnly - */ - public void setECLWatchVisibleOnly(boolean param) { - - // setting primitive attribute tracker to true - localECLWatchVisibleOnlyTracker = true; - - this.localECLWatchVisibleOnly = param; - } - - /** field for DropZones */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone localDropZones; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDropZonesTracker = false; - - public boolean isDropZonesSpecified() { - return localDropZonesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone getDropZones() { - return localDropZones; - } - - /** - * Auto generated setter method - * - * @param param DropZones - */ - public void setDropZones( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone param) { - localDropZonesTracker = param != null; - - this.localDropZones = param; - } - - /** field for Files */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - localFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesTracker = false; - - public boolean isFilesSpecified() { - return localFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct getFiles() { - return localFiles; - } - - /** - * Auto generated setter method - * - * @param param Files - */ - public void setFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct param) { - localFilesTracker = param != null; - - this.localFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DropZoneFilesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DropZoneFilesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localDropZoneNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DropZoneName", xmlWriter); - - if (localDropZoneName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDropZoneName); - } - - xmlWriter.writeEndElement(); - } - if (localNetAddressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "NetAddress", xmlWriter); - - if (localNetAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localOSTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "OS", xmlWriter); - - if (localOS == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); - } - - xmlWriter.writeEndElement(); - } - if (localECLWatchVisibleOnlyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ECLWatchVisibleOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ECLWatchVisibleOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localECLWatchVisibleOnly)); - } - - xmlWriter.writeEndElement(); - } - if (localDropZonesTracker) { - if (localDropZones == null) { - throw new org.apache.axis2.databinding.ADBException("DropZones cannot be null!!"); - } - localDropZones.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZones"), xmlWriter); - } - if (localFilesTracker) { - if (localFiles == null) { - throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); - } - localFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DropZoneFilesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DropZoneFilesResponse object = new DropZoneFilesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DropZoneFilesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DropZoneFilesResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DropZoneName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDropZoneName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NetAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "ECLWatchVisibleOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECLWatchVisibleOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECLWatchVisibleOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZones") - .equals(reader.getName())) { - - object.setDropZones( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files") - .equals(reader.getName())) { - - object.setFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DropZoneFilesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** DropZoneFilesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DropZoneFilesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneFilesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for DropZoneName */ + protected java.lang.String localDropZoneName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDropZoneNameTracker = false; + + public boolean isDropZoneNameSpecified() { + return localDropZoneNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDropZoneName() { + return localDropZoneName; + } + + /** + * Auto generated setter method + * + * @param param DropZoneName + */ + public void setDropZoneName(java.lang.String param) { + localDropZoneNameTracker = param != null; + + this.localDropZoneName = param; + } + + /** field for NetAddress */ + protected java.lang.String localNetAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetAddressTracker = false; + + public boolean isNetAddressSpecified() { + return localNetAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetAddress() { + return localNetAddress; + } + + /** + * Auto generated setter method + * + * @param param NetAddress + */ + public void setNetAddress(java.lang.String param) { + localNetAddressTracker = param != null; + + this.localNetAddress = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for OS */ + protected int localOS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOSTracker = false; + + public boolean isOSSpecified() { + return localOSTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getOS() { + return localOS; + } + + /** + * Auto generated setter method + * + * @param param OS + */ + public void setOS(int param) { + + // setting primitive attribute tracker to true + localOSTracker = param != java.lang.Integer.MIN_VALUE; + + this.localOS = param; + } + + /** field for ECLWatchVisibleOnly */ + protected boolean localECLWatchVisibleOnly; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWatchVisibleOnlyTracker = false; + + public boolean isECLWatchVisibleOnlySpecified() { + return localECLWatchVisibleOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getECLWatchVisibleOnly() { + return localECLWatchVisibleOnly; + } + + /** + * Auto generated setter method + * + * @param param ECLWatchVisibleOnly + */ + public void setECLWatchVisibleOnly(boolean param) { + + // setting primitive attribute tracker to true + localECLWatchVisibleOnlyTracker = true; + + this.localECLWatchVisibleOnly = param; + } + + /** field for DropZones */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone localDropZones; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDropZonesTracker = false; + + public boolean isDropZonesSpecified() { + return localDropZonesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone getDropZones() { + return localDropZones; + } + + /** + * Auto generated setter method + * + * @param param DropZones + */ + public void setDropZones( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone param) { + localDropZonesTracker = param != null; + + this.localDropZones = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DropZoneFilesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DropZoneFilesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localDropZoneNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DropZoneName", xmlWriter); + + if (localDropZoneName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDropZoneName); + } + + xmlWriter.writeEndElement(); + } + if (localNetAddressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "NetAddress", xmlWriter); + + if (localNetAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localOSTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "OS", xmlWriter); + + if (localOS == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); + } + + xmlWriter.writeEndElement(); + } + if (localECLWatchVisibleOnlyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ECLWatchVisibleOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ECLWatchVisibleOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localECLWatchVisibleOnly)); + } + + xmlWriter.writeEndElement(); + } + if (localDropZonesTracker) { + if (localDropZones == null) { + throw new org.apache.axis2.databinding.ADBException("DropZones cannot be null!!"); + } + localDropZones.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZones"), xmlWriter); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DropZoneFilesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DropZoneFilesResponse object = new DropZoneFilesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DropZoneFilesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DropZoneFilesResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DropZoneName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDropZoneName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NetAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "ECLWatchVisibleOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECLWatchVisibleOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECLWatchVisibleOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZones") + .equals(reader.getName())) { + + object.setDropZones( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EchoDateTime.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EchoDateTime.java index 1a51cc6e4..7ed3e80a6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EchoDateTime.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EchoDateTime.java @@ -1,393 +1,393 @@ -/** - * EchoDateTime.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** EchoDateTime bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EchoDateTime implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "EchoDateTime", "ns1"); - - /** field for Dt */ - protected java.util.Calendar localDt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDtTracker = false; - - public boolean isDtSpecified() { - return localDtTracker; - } - - /** - * Auto generated getter method - * - * @return java.util.Calendar - */ - public java.util.Calendar getDt() { - return localDt; - } - - /** - * Auto generated setter method - * - * @param param Dt - */ - public void setDt(java.util.Calendar param) { - localDtTracker = param != null; - - this.localDt = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EchoDateTime", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EchoDateTime", xmlWriter); - } - } - if (localDtTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "dt", xmlWriter); - - if (localDt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("dt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDt)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EchoDateTime parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EchoDateTime object = new EchoDateTime(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EchoDateTime".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EchoDateTime) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "dt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EchoDateTime.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** EchoDateTime bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EchoDateTime implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "EchoDateTime", "ns1"); + + /** field for Dt */ + protected java.util.Calendar localDt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDtTracker = false; + + public boolean isDtSpecified() { + return localDtTracker; + } + + /** + * Auto generated getter method + * + * @return java.util.Calendar + */ + public java.util.Calendar getDt() { + return localDt; + } + + /** + * Auto generated setter method + * + * @param param Dt + */ + public void setDt(java.util.Calendar param) { + localDtTracker = param != null; + + this.localDt = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EchoDateTime", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EchoDateTime", xmlWriter); + } + } + if (localDtTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "dt", xmlWriter); + + if (localDt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("dt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDt)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EchoDateTime parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EchoDateTime object = new EchoDateTime(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EchoDateTime".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EchoDateTime) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "dt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EchoDateTimeResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EchoDateTimeResponse.java index d20263007..7c5d01094 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EchoDateTimeResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EchoDateTimeResponse.java @@ -1,397 +1,397 @@ -/** - * EchoDateTimeResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** EchoDateTimeResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EchoDateTimeResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "EchoDateTimeResponse", "ns1"); - - /** field for Result */ - protected java.util.Calendar localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.util.Calendar - */ - public java.util.Calendar getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.util.Calendar param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EchoDateTimeResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "EchoDateTimeResponse", - xmlWriter); - } - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResult)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EchoDateTimeResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EchoDateTimeResponse object = new EchoDateTimeResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EchoDateTimeResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EchoDateTimeResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EchoDateTimeResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** EchoDateTimeResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EchoDateTimeResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "EchoDateTimeResponse", "ns1"); + + /** field for Result */ + protected java.util.Calendar localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.util.Calendar + */ + public java.util.Calendar getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.util.Calendar param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EchoDateTimeResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "EchoDateTimeResponse", + xmlWriter); + } + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResult)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EchoDateTimeResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EchoDateTimeResponse object = new EchoDateTimeResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EchoDateTimeResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EchoDateTimeResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspException.java index 0beb0d139..e922537ce 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspException.java @@ -1,599 +1,599 @@ -/** - * EspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** EspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspException - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for Code */ - protected java.lang.String localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(java.lang.String param) { - localCodeTracker = param != null; - - this.localCode = param; - } - - /** field for Audience */ - protected java.lang.String localAudience; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAudienceTracker = false; - - public boolean isAudienceSpecified() { - return localAudienceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAudience() { - return localAudience; - } - - /** - * Auto generated setter method - * - * @param param Audience - */ - public void setAudience(java.lang.String param) { - localAudienceTracker = param != null; - - this.localAudience = param; - } - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspException", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); - } - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Code", xmlWriter); - - if (localCode == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCode); - } - - xmlWriter.writeEndElement(); - } - if (localAudienceTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Audience", xmlWriter); - - if (localAudience == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAudience); - } - - xmlWriter.writeEndElement(); - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspException object = new EspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspException) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Audience") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Audience" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAudience( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** EspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspException + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for Code */ + protected java.lang.String localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(java.lang.String param) { + localCodeTracker = param != null; + + this.localCode = param; + } + + /** field for Audience */ + protected java.lang.String localAudience; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAudienceTracker = false; + + public boolean isAudienceSpecified() { + return localAudienceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAudience() { + return localAudience; + } + + /** + * Auto generated setter method + * + * @param param Audience + */ + public void setAudience(java.lang.String param) { + localAudienceTracker = param != null; + + this.localAudience = param; + } + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspException", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); + } + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Code", xmlWriter); + + if (localCode == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCode); + } + + xmlWriter.writeEndElement(); + } + if (localAudienceTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Audience", xmlWriter); + + if (localAudience == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAudience); + } + + xmlWriter.writeEndElement(); + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspException object = new EspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspException) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Audience") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Audience" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAudience( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspSoapFault.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspSoapFault.java index d351a28d8..dc639b54d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspSoapFault.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspSoapFault.java @@ -1,38 +1,38 @@ -/** - * EspSoapFault.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -public class EspSoapFault extends java.lang.Exception { - - private static final long serialVersionUID = 1686862943668L; - - private org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions faultMessage; - - public EspSoapFault() { - super("EspSoapFault"); - } - - public EspSoapFault(java.lang.String s) { - super(s); - } - - public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { - super(s, ex); - } - - public EspSoapFault(java.lang.Throwable cause) { - super(cause); - } - - public void setFaultMessage(org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions msg) { - faultMessage = msg; - } - - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions getFaultMessage() { - return faultMessage; - } -} +/** + * EspSoapFault.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +public class EspSoapFault extends java.lang.Exception { + + private static final long serialVersionUID = 1710345123103L; + + private org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions faultMessage; + + public EspSoapFault() { + super("EspSoapFault"); + } + + public EspSoapFault(java.lang.String s) { + super(s); + } + + public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { + super(s, ex); + } + + public EspSoapFault(java.lang.Throwable cause) { + super(cause); + } + + public void setFaultMessage(org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions msg) { + faultMessage = msg; + } + + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions getFaultMessage() { + return faultMessage; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspStringArray.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspStringArray.java index c25bb5bce..ba8e661be 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspStringArray.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/EspStringArray.java @@ -1,451 +1,451 @@ -/** - * EspStringArray.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** EspStringArray bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspStringArray implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspStringArray - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for Item This was an Array! */ - protected java.lang.String[] localItem; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localItemTracker = false; - - public boolean isItemSpecified() { - return localItemTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getItem() { - return localItem; - } - - /** validate the array for Item */ - protected void validateItem(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Item - */ - public void setItem(java.lang.String[] param) { - - validateItem(param); - - localItemTracker = param != null; - - this.localItem = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addItem(java.lang.String param) { - if (localItem == null) { - localItem = new java.lang.String[] {}; - } - - // update the setting tracker - localItemTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); - list.add(param); - this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspStringArray", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "EspStringArray", - xmlWriter); - } - } - if (localItemTracker) { - if (localItem != null) { - namespace = "urn:hpccsystems:ws:filespray"; - for (int i = 0; i < localItem.length; i++) { - - if (localItem[i] != null) { - - writeStartElement(null, namespace, "Item", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspStringArray object = new EspStringArray(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspStringArray".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspStringArray) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Item") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Item") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspStringArray.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** EspStringArray bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspStringArray implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspStringArray + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for Item This was an Array! */ + protected java.lang.String[] localItem; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localItemTracker = false; + + public boolean isItemSpecified() { + return localItemTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getItem() { + return localItem; + } + + /** validate the array for Item */ + protected void validateItem(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Item + */ + public void setItem(java.lang.String[] param) { + + validateItem(param); + + localItemTracker = param != null; + + this.localItem = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addItem(java.lang.String param) { + if (localItem == null) { + localItem = new java.lang.String[] {}; + } + + // update the setting tracker + localItemTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); + list.add(param); + this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspStringArray", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "EspStringArray", + xmlWriter); + } + } + if (localItemTracker) { + if (localItem != null) { + namespace = "urn:hpccsystems:ws:filespray"; + for (int i = 0; i < localItem.length; i++) { + + if (localItem[i] != null) { + + writeStartElement(null, namespace, "Item", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspStringArray object = new EspStringArray(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspStringArray".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspStringArray) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Item") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Item") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Exceptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Exceptions.java index 0d393a05f..b489234e1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Exceptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Exceptions.java @@ -1,316 +1,316 @@ -/** - * Exceptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** Exceptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Exceptions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); - } - localExceptions.serialize(MY_QNAME, xmlWriter); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Exceptions object = new Exceptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Exceptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** Exceptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Exceptions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); + } + localExceptions.serialize(MY_QNAME, xmlWriter); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Exceptions object = new Exceptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ExtensionMapper.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ExtensionMapper.java index d48d8344c..7009500be 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ExtensionMapper.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ExtensionMapper.java @@ -1,129 +1,129 @@ -/** - * ExtensionMapper.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ExtensionMapper class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExtensionMapper { - - public static java.lang.Object getTypeObject( - java.lang.String namespaceURI, - java.lang.String typeName, - javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) - && "ArrayOfDFUException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) - && "PhysicalFileStruct".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "ArrayOfDropZone".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DFUWUActions".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "EspStringArray".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DFUActionResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) - && "ArrayOfDFUActionResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DropZone".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) - && "ArrayOfPhysicalFileStruct".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "EspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "GroupNode".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) - && "ClusterNames_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) - && "ArrayOfDFUWorkunit".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) - && "ArrayOfEspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DFUWorkunit".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) - && "GroupNodes_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DFUException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException.Factory.parse( - reader); - } - - throw new org.apache.axis2.databinding.ADBException( - "Unsupported type " + namespaceURI + " " + typeName); - } -} +/** + * ExtensionMapper.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ExtensionMapper class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExtensionMapper { + + public static java.lang.Object getTypeObject( + java.lang.String namespaceURI, + java.lang.String typeName, + javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) + && "ArrayOfDFUException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) + && "PhysicalFileStruct".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.PhysicalFileStruct.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "ArrayOfDropZone".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDropZone.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DFUWUActions".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUActions.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "EspStringArray".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DFUActionResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUActionResult.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) + && "ArrayOfDFUActionResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUActionResult.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DropZone".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZone.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) + && "ArrayOfPhysicalFileStruct".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "EspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "GroupNode".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) + && "ClusterNames_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ClusterNames_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) + && "ArrayOfDFUWorkunit".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) + && "ArrayOfEspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DFUWorkunit".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) + && "GroupNodes_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:filespray".equals(namespaceURI) && "DFUException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUException.Factory.parse( + reader); + } + + throw new org.apache.axis2.databinding.ADBException( + "Unsupported type " + namespaceURI + " " + typeName); + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileListRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileListRequest.java index 8f12adec4..ea58c9097 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileListRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileListRequest.java @@ -1,738 +1,738 @@ -/** - * FileListRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** FileListRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileListRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileListRequest", "ns1"); - - /** field for DropZoneName */ - protected java.lang.String localDropZoneName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDropZoneNameTracker = false; - - public boolean isDropZoneNameSpecified() { - return localDropZoneNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDropZoneName() { - return localDropZoneName; - } - - /** - * Auto generated setter method - * - * @param param DropZoneName - */ - public void setDropZoneName(java.lang.String param) { - localDropZoneNameTracker = param != null; - - this.localDropZoneName = param; - } - - /** field for Netaddr */ - protected java.lang.String localNetaddr; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetaddrTracker = false; - - public boolean isNetaddrSpecified() { - return localNetaddrTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetaddr() { - return localNetaddr; - } - - /** - * Auto generated setter method - * - * @param param Netaddr - */ - public void setNetaddr(java.lang.String param) { - localNetaddrTracker = param != null; - - this.localNetaddr = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Mask */ - protected java.lang.String localMask; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaskTracker = false; - - public boolean isMaskSpecified() { - return localMaskTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMask() { - return localMask; - } - - /** - * Auto generated setter method - * - * @param param Mask - */ - public void setMask(java.lang.String param) { - localMaskTracker = param != null; - - this.localMask = param; - } - - /** field for OS */ - protected java.lang.String localOS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOSTracker = false; - - public boolean isOSSpecified() { - return localOSTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOS() { - return localOS; - } - - /** - * Auto generated setter method - * - * @param param OS - */ - public void setOS(java.lang.String param) { - localOSTracker = param != null; - - this.localOS = param; - } - - /** field for DirectoryOnly */ - protected boolean localDirectoryOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDirectoryOnlyTracker = false; - - public boolean isDirectoryOnlySpecified() { - return localDirectoryOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDirectoryOnly() { - return localDirectoryOnly; - } - - /** - * Auto generated setter method - * - * @param param DirectoryOnly - */ - public void setDirectoryOnly(boolean param) { - - // setting primitive attribute tracker to true - localDirectoryOnlyTracker = true; - - this.localDirectoryOnly = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileListRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileListRequest", - xmlWriter); - } - } - if (localDropZoneNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DropZoneName", xmlWriter); - - if (localDropZoneName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDropZoneName); - } - - xmlWriter.writeEndElement(); - } - if (localNetaddrTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Netaddr", xmlWriter); - - if (localNetaddr == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Netaddr cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetaddr); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localMaskTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Mask", xmlWriter); - - if (localMask == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Mask cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMask); - } - - xmlWriter.writeEndElement(); - } - if (localOSTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "OS", xmlWriter); - - if (localOS == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOS); - } - - xmlWriter.writeEndElement(); - } - if (localDirectoryOnlyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DirectoryOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DirectoryOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDirectoryOnly)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileListRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileListRequest object = new FileListRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileListRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileListRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DropZoneName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDropZoneName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Netaddr") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Netaddr" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetaddr( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Mask") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Mask" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMask( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOS( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DirectoryOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DirectoryOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDirectoryOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileListRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** FileListRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileListRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileListRequest", "ns1"); + + /** field for DropZoneName */ + protected java.lang.String localDropZoneName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDropZoneNameTracker = false; + + public boolean isDropZoneNameSpecified() { + return localDropZoneNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDropZoneName() { + return localDropZoneName; + } + + /** + * Auto generated setter method + * + * @param param DropZoneName + */ + public void setDropZoneName(java.lang.String param) { + localDropZoneNameTracker = param != null; + + this.localDropZoneName = param; + } + + /** field for Netaddr */ + protected java.lang.String localNetaddr; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetaddrTracker = false; + + public boolean isNetaddrSpecified() { + return localNetaddrTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetaddr() { + return localNetaddr; + } + + /** + * Auto generated setter method + * + * @param param Netaddr + */ + public void setNetaddr(java.lang.String param) { + localNetaddrTracker = param != null; + + this.localNetaddr = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Mask */ + protected java.lang.String localMask; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaskTracker = false; + + public boolean isMaskSpecified() { + return localMaskTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMask() { + return localMask; + } + + /** + * Auto generated setter method + * + * @param param Mask + */ + public void setMask(java.lang.String param) { + localMaskTracker = param != null; + + this.localMask = param; + } + + /** field for OS */ + protected java.lang.String localOS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOSTracker = false; + + public boolean isOSSpecified() { + return localOSTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOS() { + return localOS; + } + + /** + * Auto generated setter method + * + * @param param OS + */ + public void setOS(java.lang.String param) { + localOSTracker = param != null; + + this.localOS = param; + } + + /** field for DirectoryOnly */ + protected boolean localDirectoryOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDirectoryOnlyTracker = false; + + public boolean isDirectoryOnlySpecified() { + return localDirectoryOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDirectoryOnly() { + return localDirectoryOnly; + } + + /** + * Auto generated setter method + * + * @param param DirectoryOnly + */ + public void setDirectoryOnly(boolean param) { + + // setting primitive attribute tracker to true + localDirectoryOnlyTracker = true; + + this.localDirectoryOnly = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileListRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileListRequest", + xmlWriter); + } + } + if (localDropZoneNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DropZoneName", xmlWriter); + + if (localDropZoneName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DropZoneName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDropZoneName); + } + + xmlWriter.writeEndElement(); + } + if (localNetaddrTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Netaddr", xmlWriter); + + if (localNetaddr == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Netaddr cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetaddr); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localMaskTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Mask", xmlWriter); + + if (localMask == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Mask cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMask); + } + + xmlWriter.writeEndElement(); + } + if (localOSTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "OS", xmlWriter); + + if (localOS == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOS); + } + + xmlWriter.writeEndElement(); + } + if (localDirectoryOnlyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DirectoryOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DirectoryOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDirectoryOnly)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileListRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileListRequest object = new FileListRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileListRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileListRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DropZoneName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DropZoneName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDropZoneName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Netaddr") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Netaddr" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetaddr( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Mask") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Mask" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMask( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOS( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DirectoryOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DirectoryOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDirectoryOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileListResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileListResponse.java index a684ec3be..98e68f0ae 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileListResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileListResponse.java @@ -1,844 +1,844 @@ -/** - * FileListResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** FileListResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileListResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileListResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Netaddr */ - protected java.lang.String localNetaddr; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetaddrTracker = false; - - public boolean isNetaddrSpecified() { - return localNetaddrTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetaddr() { - return localNetaddr; - } - - /** - * Auto generated setter method - * - * @param param Netaddr - */ - public void setNetaddr(java.lang.String param) { - localNetaddrTracker = param != null; - - this.localNetaddr = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Mask */ - protected java.lang.String localMask; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaskTracker = false; - - public boolean isMaskSpecified() { - return localMaskTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMask() { - return localMask; - } - - /** - * Auto generated setter method - * - * @param param Mask - */ - public void setMask(java.lang.String param) { - localMaskTracker = param != null; - - this.localMask = param; - } - - /** field for OS */ - protected int localOS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOSTracker = false; - - public boolean isOSSpecified() { - return localOSTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getOS() { - return localOS; - } - - /** - * Auto generated setter method - * - * @param param OS - */ - public void setOS(int param) { - - // setting primitive attribute tracker to true - localOSTracker = param != java.lang.Integer.MIN_VALUE; - - this.localOS = param; - } - - /** field for DirectoryOnly */ - protected boolean localDirectoryOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDirectoryOnlyTracker = false; - - public boolean isDirectoryOnlySpecified() { - return localDirectoryOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDirectoryOnly() { - return localDirectoryOnly; - } - - /** - * Auto generated setter method - * - * @param param DirectoryOnly - */ - public void setDirectoryOnly(boolean param) { - - // setting primitive attribute tracker to true - localDirectoryOnlyTracker = true; - - this.localDirectoryOnly = param; - } - - /** field for AcceptLanguage */ - protected java.lang.String localAcceptLanguage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAcceptLanguageTracker = false; - - public boolean isAcceptLanguageSpecified() { - return localAcceptLanguageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAcceptLanguage() { - return localAcceptLanguage; - } - - /** - * Auto generated setter method - * - * @param param AcceptLanguage - */ - public void setAcceptLanguage(java.lang.String param) { - localAcceptLanguageTracker = param != null; - - this.localAcceptLanguage = param; - } - - /** field for Files */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - localFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesTracker = false; - - public boolean isFilesSpecified() { - return localFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct getFiles() { - return localFiles; - } - - /** - * Auto generated setter method - * - * @param param Files - */ - public void setFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct param) { - localFilesTracker = param != null; - - this.localFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileListResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileListResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localNetaddrTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Netaddr", xmlWriter); - - if (localNetaddr == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Netaddr cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetaddr); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localMaskTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Mask", xmlWriter); - - if (localMask == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Mask cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMask); - } - - xmlWriter.writeEndElement(); - } - if (localOSTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "OS", xmlWriter); - - if (localOS == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); - } - - xmlWriter.writeEndElement(); - } - if (localDirectoryOnlyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DirectoryOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DirectoryOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDirectoryOnly)); - } - - xmlWriter.writeEndElement(); - } - if (localAcceptLanguageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); - - if (localAcceptLanguage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAcceptLanguage); - } - - xmlWriter.writeEndElement(); - } - if (localFilesTracker) { - if (localFiles == null) { - throw new org.apache.axis2.databinding.ADBException("files cannot be null!!"); - } - localFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "files"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileListResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileListResponse object = new FileListResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileListResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileListResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Netaddr") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Netaddr" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetaddr( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Mask") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Mask" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMask( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DirectoryOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DirectoryOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDirectoryOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AcceptLanguage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AcceptLanguage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAcceptLanguage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "files") - .equals(reader.getName())) { - - object.setFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileListResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** FileListResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileListResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileListResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Netaddr */ + protected java.lang.String localNetaddr; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetaddrTracker = false; + + public boolean isNetaddrSpecified() { + return localNetaddrTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetaddr() { + return localNetaddr; + } + + /** + * Auto generated setter method + * + * @param param Netaddr + */ + public void setNetaddr(java.lang.String param) { + localNetaddrTracker = param != null; + + this.localNetaddr = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Mask */ + protected java.lang.String localMask; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaskTracker = false; + + public boolean isMaskSpecified() { + return localMaskTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMask() { + return localMask; + } + + /** + * Auto generated setter method + * + * @param param Mask + */ + public void setMask(java.lang.String param) { + localMaskTracker = param != null; + + this.localMask = param; + } + + /** field for OS */ + protected int localOS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOSTracker = false; + + public boolean isOSSpecified() { + return localOSTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getOS() { + return localOS; + } + + /** + * Auto generated setter method + * + * @param param OS + */ + public void setOS(int param) { + + // setting primitive attribute tracker to true + localOSTracker = param != java.lang.Integer.MIN_VALUE; + + this.localOS = param; + } + + /** field for DirectoryOnly */ + protected boolean localDirectoryOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDirectoryOnlyTracker = false; + + public boolean isDirectoryOnlySpecified() { + return localDirectoryOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDirectoryOnly() { + return localDirectoryOnly; + } + + /** + * Auto generated setter method + * + * @param param DirectoryOnly + */ + public void setDirectoryOnly(boolean param) { + + // setting primitive attribute tracker to true + localDirectoryOnlyTracker = true; + + this.localDirectoryOnly = param; + } + + /** field for AcceptLanguage */ + protected java.lang.String localAcceptLanguage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAcceptLanguageTracker = false; + + public boolean isAcceptLanguageSpecified() { + return localAcceptLanguageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAcceptLanguage() { + return localAcceptLanguage; + } + + /** + * Auto generated setter method + * + * @param param AcceptLanguage + */ + public void setAcceptLanguage(java.lang.String param) { + localAcceptLanguageTracker = param != null; + + this.localAcceptLanguage = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileListResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileListResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localNetaddrTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Netaddr", xmlWriter); + + if (localNetaddr == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Netaddr cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetaddr); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localMaskTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Mask", xmlWriter); + + if (localMask == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Mask cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMask); + } + + xmlWriter.writeEndElement(); + } + if (localOSTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "OS", xmlWriter); + + if (localOS == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); + } + + xmlWriter.writeEndElement(); + } + if (localDirectoryOnlyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DirectoryOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DirectoryOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDirectoryOnly)); + } + + xmlWriter.writeEndElement(); + } + if (localAcceptLanguageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); + + if (localAcceptLanguage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAcceptLanguage); + } + + xmlWriter.writeEndElement(); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "files"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileListResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileListResponse object = new FileListResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileListResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileListResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Netaddr") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Netaddr" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetaddr( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Mask") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Mask" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMask( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DirectoryOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DirectoryOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDirectoryOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AcceptLanguage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AcceptLanguage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAcceptLanguage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSpray.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSpray.java index 9143fdda9..340616212 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSpray.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSpray.java @@ -1,367 +1,393 @@ -/** - * FileSpray.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/* - * FileSpray java interface - */ - -public interface FileSpray { - - /** - * Auto generated method signature - * - * @param sprayVariable - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse sprayVariable( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable sprayVariable) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUWUFileRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse dFUWUFile( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest dFUWUFileRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param fileSprayPingRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest - fileSprayPingRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param copy - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse copy( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy copy) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param replicate - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse replicate( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate replicate) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param createDFUWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse - createDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit createDFUWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getDFUWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse getDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit getDFUWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param rename - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse rename( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename rename) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param sprayFixed - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse sprayFixed( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed sprayFixed) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param showResultRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse showResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest showResultRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param abortDFUWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse - abortDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit abortDFUWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dropZoneFileSearchRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse - dropZoneFileSearch( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest - dropZoneFileSearchRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getDFUServerQueuesRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse - getDFUServerQueues( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest - getDFUServerQueuesRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param deleteDFUWorkunits - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse - deleteDFUWorkunits( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits - deleteDFUWorkunits) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param despray - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse despray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray despray) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param fileListRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse fileList( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest fileListRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUWorkunitsActionRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse - dFUWorkunitsAction( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest - dFUWorkunitsActionRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dropZoneFilesRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse dropZoneFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest - dropZoneFilesRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param deleteDFUWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse - deleteDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit deleteDFUWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param submitDFUWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse - submitDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit submitDFUWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dfuMonitorRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse dfuMonitor( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest dfuMonitorRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUWUSearchRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse dFUWUSearch( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest dFUWUSearchRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getDFUWorkunits - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse - getDFUWorkunits( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits getDFUWorkunits) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param deleteDropZoneFilesRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse - deleteDropZoneFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest - deleteDropZoneFilesRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getSprayTargetsRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse - getSprayTargets( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest - getSprayTargetsRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getDFUExceptions - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse - getDFUExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions getDFUExceptions) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param echoDateTime - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse echoDateTime( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime echoDateTime) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param updateDFUWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse - updateDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit updateDFUWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param progressRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse getDFUProgress( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest progressRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param openSaveRequest - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse openSave( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest openSaveRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; - - // -} +/** + * FileSpray.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/* + * FileSpray java interface + */ + +public interface FileSpray { + + /** + * Auto generated method signature + * + * @param sprayVariable + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse sprayVariable( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable sprayVariable) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUWUFileRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse dFUWUFile( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest dFUWUFileRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param fileSprayPingRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest + fileSprayPingRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param copy + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse copy( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy copy) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param replicate + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse replicate( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate replicate) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param createDFUWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse + createDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit createDFUWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getDFUWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse getDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit getDFUWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param rename + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse rename( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename rename) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param sprayFixed + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse sprayFixed( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed sprayFixed) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param showResultRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse showResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest showResultRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param abortDFUWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse + abortDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit abortDFUWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dropZoneFileSearchRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse + dropZoneFileSearch( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest + dropZoneFileSearchRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getRemoteTargetsRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsResponse + getRemoteTargets( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsRequest + getRemoteTargetsRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getDFUServerQueuesRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse + getDFUServerQueues( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest + getDFUServerQueuesRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param deleteDFUWorkunits + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse + deleteDFUWorkunits( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits + deleteDFUWorkunits) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param despray + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse despray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray despray) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param fileListRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse fileList( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest fileListRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUWorkunitsActionRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse + dFUWorkunitsAction( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest + dFUWorkunitsActionRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dropZoneFilesRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse dropZoneFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest + dropZoneFilesRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param deleteDFUWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse + deleteDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit deleteDFUWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param submitDFUWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse + submitDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit submitDFUWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dfuMonitorRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse dfuMonitor( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest dfuMonitorRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUWUSearchRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse dFUWUSearch( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest dFUWUSearchRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getDFUWorkunits + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse + getDFUWorkunits( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits getDFUWorkunits) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param deleteDropZoneFilesRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse + deleteDropZoneFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest + deleteDropZoneFilesRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getSprayTargetsRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse + getSprayTargets( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest + getSprayTargetsRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getDFUExceptions + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse + getDFUExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions getDFUExceptions) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param echoDateTime + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse echoDateTime( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime echoDateTime) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param createDFUPublisherWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunitResponse + createDFUPublisherWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunit + createDFUPublisherWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param updateDFUWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse + updateDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit updateDFUWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param progressRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse getDFUProgress( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest progressRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param openSaveRequest + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse openSave( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest openSaveRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault; + + // +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayPingRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayPingRequest.java index cbf97ba82..45f9aea0c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayPingRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayPingRequest.java @@ -1,314 +1,314 @@ -/** - * FileSprayPingRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** FileSprayPingRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileSprayPingRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileSprayPingRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileSprayPingRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileSprayPingRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileSprayPingRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileSprayPingRequest object = new FileSprayPingRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileSprayPingRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileSprayPingRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileSprayPingRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** FileSprayPingRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileSprayPingRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileSprayPingRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileSprayPingRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileSprayPingRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileSprayPingRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileSprayPingRequest object = new FileSprayPingRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileSprayPingRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileSprayPingRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayPingResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayPingResponse.java index 107ba8537..158bcf9a2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayPingResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayPingResponse.java @@ -1,314 +1,314 @@ -/** - * FileSprayPingResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** FileSprayPingResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileSprayPingResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileSprayPingResponse", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileSprayPingResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileSprayPingResponse", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileSprayPingResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileSprayPingResponse object = new FileSprayPingResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileSprayPingResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileSprayPingResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileSprayPingResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** FileSprayPingResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileSprayPingResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileSprayPingResponse", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileSprayPingResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileSprayPingResponse", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileSprayPingResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileSprayPingResponse object = new FileSprayPingResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileSprayPingResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileSprayPingResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayStub.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayStub.java index 61c4fa9bd..23fd9468b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayStub.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/FileSprayStub.java @@ -1,6765 +1,7226 @@ -/** - * FileSprayStub.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/* - * FileSprayStub java implementation - */ - -public class FileSprayStub extends org.apache.axis2.client.Stub implements FileSpray { - protected org.apache.axis2.description.AxisOperation[] _operations; - - // hashmaps to keep the fault mapping - private java.util.Map - faultExceptionNameMap = - new java.util.HashMap(); - private java.util.Map - faultExceptionClassNameMap = - new java.util.HashMap(); - private java.util.Map faultMessageMap = - new java.util.HashMap(); - - private static int counter = 0; - - private static synchronized java.lang.String getUniqueSuffix() { - // reset the counter if it is greater than 99999 - if (counter > 99999) { - counter = 0; - } - counter = counter + 1; - return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; - } - - private void populateAxisService() throws org.apache.axis2.AxisFault { - - // creating the Service with a unique name - _service = new org.apache.axis2.description.AxisService("FileSpray" + getUniqueSuffix()); - addAnonymousOperations(); - - // creating the operations - org.apache.axis2.description.AxisOperation __operation; - - _operations = new org.apache.axis2.description.AxisOperation[30]; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sprayVariable")); - _service.addOperation(__operation); - - _operations[0] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWUFile")); - _service.addOperation(__operation); - - _operations[1] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ping")); - _service.addOperation(__operation); - - _operations[2] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "copy")); - _service.addOperation(__operation); - - _operations[3] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate")); - _service.addOperation(__operation); - - _operations[4] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "createDFUWorkunit")); - _service.addOperation(__operation); - - _operations[5] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUWorkunit")); - _service.addOperation(__operation); - - _operations[6] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "rename")); - _service.addOperation(__operation); - - _operations[7] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sprayFixed")); - _service.addOperation(__operation); - - _operations[8] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "showResult")); - _service.addOperation(__operation); - - _operations[9] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "abortDFUWorkunit")); - _service.addOperation(__operation); - - _operations[10] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dropZoneFileSearch")); - _service.addOperation(__operation); - - _operations[11] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUServerQueues")); - _service.addOperation(__operation); - - _operations[12] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "deleteDFUWorkunits")); - _service.addOperation(__operation); - - _operations[13] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "despray")); - _service.addOperation(__operation); - - _operations[14] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "fileList")); - _service.addOperation(__operation); - - _operations[15] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWorkunitsAction")); - _service.addOperation(__operation); - - _operations[16] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dropZoneFiles")); - _service.addOperation(__operation); - - _operations[17] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "deleteDFUWorkunit")); - _service.addOperation(__operation); - - _operations[18] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "submitDFUWorkunit")); - _service.addOperation(__operation); - - _operations[19] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dfuMonitor")); - _service.addOperation(__operation); - - _operations[20] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWUSearch")); - _service.addOperation(__operation); - - _operations[21] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUWorkunits")); - _service.addOperation(__operation); - - _operations[22] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "deleteDropZoneFiles")); - _service.addOperation(__operation); - - _operations[23] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getSprayTargets")); - _service.addOperation(__operation); - - _operations[24] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUExceptions")); - _service.addOperation(__operation); - - _operations[25] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "echoDateTime")); - _service.addOperation(__operation); - - _operations[26] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "updateDFUWorkunit")); - _service.addOperation(__operation); - - _operations[27] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUProgress")); - _service.addOperation(__operation); - - _operations[28] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "openSave")); - _service.addOperation(__operation); - - _operations[29] = __operation; - } - - // populates the faults - private void populateFaults() { - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SprayVariable"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SprayVariable"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SprayVariable"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWUFile"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWUFile"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWUFile"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Copy"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Copy"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Copy"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "Replicate"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "Replicate"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "Replicate"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "CreateDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "CreateDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "CreateDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Rename"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Rename"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Rename"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SprayFixed"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SprayFixed"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SprayFixed"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "ShowResult"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "ShowResult"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "ShowResult"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "AbortDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "AbortDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "AbortDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DropZoneFileSearch"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DropZoneFileSearch"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DropZoneFileSearch"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUServerQueues"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUServerQueues"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUServerQueues"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDFUWorkunits"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDFUWorkunits"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDFUWorkunits"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Despray"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Despray"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Despray"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "FileList"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "FileList"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "FileList"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWorkunitsAction"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWorkunitsAction"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWorkunitsAction"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DropZoneFiles"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DropZoneFiles"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DropZoneFiles"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SubmitDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SubmitDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "SubmitDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DfuMonitor"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DfuMonitor"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DfuMonitor"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWUSearch"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWUSearch"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DFUWUSearch"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUWorkunits"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUWorkunits"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUWorkunits"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDropZoneFiles"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDropZoneFiles"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "DeleteDropZoneFiles"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetSprayTargets"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetSprayTargets"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetSprayTargets"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUExceptions"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUExceptions"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUExceptions"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "EchoDateTime"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "EchoDateTime"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "EchoDateTime"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "UpdateDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "UpdateDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "UpdateDFUWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUProgress"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUProgress"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "GetDFUProgress"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "OpenSave"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "OpenSave"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), - "OpenSave"), - "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); - } - - /** Constructor that takes in a configContext */ - public FileSprayStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint) - throws org.apache.axis2.AxisFault { - this(configurationContext, targetEndpoint, false); - } - - /** Constructor that takes in a configContext and useseperate listner */ - public FileSprayStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint, - boolean useSeparateListener) - throws org.apache.axis2.AxisFault { - // To populate AxisService - populateAxisService(); - populateFaults(); - - _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); - - _serviceClient - .getOptions() - .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); - _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); - } - - /** Default Constructor */ - public FileSprayStub(org.apache.axis2.context.ConfigurationContext configurationContext) - throws org.apache.axis2.AxisFault { - - this(configurationContext, "http://10.1.1.180:8888/FileSpray?ver_=1.25"); - } - - /** Default Constructor */ - public FileSprayStub() throws org.apache.axis2.AxisFault { - - this("http://10.1.1.180:8888/FileSpray?ver_=1.25"); - } - - /** Constructor taking the target endpoint */ - public FileSprayStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { - this(null, targetEndpoint); - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#sprayVariable - * @param sprayVariable1 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse sprayVariable( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable sprayVariable1) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[0].getName()); - _operationClient.getOptions().setAction("FileSpray/SprayVariable?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - sprayVariable1, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sprayVariable")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayVariable")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayVariable"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayVariable")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayVariable")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dFUWUFile - * @param dFUWUFileRequest3 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse dFUWUFile( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest dFUWUFileRequest3) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[1].getName()); - _operationClient.getOptions().setAction("FileSpray/DFUWUFile?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUWUFileRequest3, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWUFile")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUFileRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUFile"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUFile")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUFile")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#ping - * @param fileSprayPingRequest5 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest - fileSprayPingRequest5) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[2].getName()); - _operationClient.getOptions().setAction("FileSpray/Ping?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - fileSprayPingRequest5, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ping")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "FileSprayPingRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#copy - * @param copy7 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse copy( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy copy7) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[3].getName()); - _operationClient.getOptions().setAction("FileSpray/Copy?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - copy7, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "copy")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Copy")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Copy"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Copy")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Copy")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#replicate - * @param replicate9 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse replicate( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate replicate9) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[4].getName()); - _operationClient.getOptions().setAction("FileSpray/Replicate?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - replicate9, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Replicate")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Replicate"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Replicate")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Replicate")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#createDFUWorkunit - * @param createDFUWorkunit11 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse - createDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit - createDFUWorkunit11) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[5].getName()); - _operationClient.getOptions().setAction("FileSpray/CreateDFUWorkunit?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - createDFUWorkunit11, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "createDFUWorkunit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CreateDFUWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "CreateDFUWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "CreateDFUWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "CreateDFUWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUWorkunit - * @param getDFUWorkunit13 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse getDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit getDFUWorkunit13) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[6].getName()); - _operationClient.getOptions().setAction("FileSpray/GetDFUWorkunit?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getDFUWorkunit13, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUWorkunit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#rename - * @param rename15 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse rename( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename rename15) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[7].getName()); - _operationClient.getOptions().setAction("FileSpray/Rename?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - rename15, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "rename")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Rename")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Rename"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Rename")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Rename")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#sprayFixed - * @param sprayFixed17 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse sprayFixed( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed sprayFixed17) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[8].getName()); - _operationClient.getOptions().setAction("FileSpray/SprayFixed?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - sprayFixed17, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sprayFixed")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayFixed")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayFixed"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayFixed")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayFixed")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#showResult - * @param showResultRequest19 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse showResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest showResultRequest19) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[9].getName()); - _operationClient.getOptions().setAction("FileSpray/ShowResult?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - showResultRequest19, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "showResult")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ShowResultRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ShowResult"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ShowResult")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ShowResult")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#abortDFUWorkunit - * @param abortDFUWorkunit21 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse - abortDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit abortDFUWorkunit21) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[10].getName()); - _operationClient.getOptions().setAction("FileSpray/AbortDFUWorkunit?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - abortDFUWorkunit21, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "abortDFUWorkunit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AbortDFUWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "AbortDFUWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "AbortDFUWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "AbortDFUWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dropZoneFileSearch - * @param dropZoneFileSearchRequest23 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse - dropZoneFileSearch( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest - dropZoneFileSearchRequest23) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[11].getName()); - _operationClient.getOptions().setAction("FileSpray/DropZoneFileSearch?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dropZoneFileSearchRequest23, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "dropZoneFileSearch")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DropZoneFileSearchRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DropZoneFileSearch"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DropZoneFileSearch")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DropZoneFileSearch")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUServerQueues - * @param getDFUServerQueuesRequest25 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse - getDFUServerQueues( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest - getDFUServerQueuesRequest25) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[12].getName()); - _operationClient.getOptions().setAction("FileSpray/GetDFUServerQueues?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getDFUServerQueuesRequest25, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "getDFUServerQueues")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetDFUServerQueuesRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUServerQueues"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetDFUServerQueues")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetDFUServerQueues")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#deleteDFUWorkunits - * @param deleteDFUWorkunits27 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse - deleteDFUWorkunits( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits - deleteDFUWorkunits27) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[13].getName()); - _operationClient.getOptions().setAction("FileSpray/DeleteDFUWorkunits?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - deleteDFUWorkunits27, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "deleteDFUWorkunits")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DeleteDFUWorkunits")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DeleteDFUWorkunits"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DeleteDFUWorkunits")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DeleteDFUWorkunits")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#despray - * @param despray29 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse despray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray despray29) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[14].getName()); - _operationClient.getOptions().setAction("FileSpray/Despray?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - despray29, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "despray")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Despray")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Despray"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Despray")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Despray")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#fileList - * @param fileListRequest31 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse fileList( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest fileListRequest31) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[15].getName()); - _operationClient.getOptions().setAction("FileSpray/FileList?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - fileListRequest31, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "fileList")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileListRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "FileList"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "FileList")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "FileList")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dFUWorkunitsAction - * @param dFUWorkunitsActionRequest33 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse - dFUWorkunitsAction( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest - dFUWorkunitsActionRequest33) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[16].getName()); - _operationClient.getOptions().setAction("FileSpray/DFUWorkunitsAction?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUWorkunitsActionRequest33, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "dFUWorkunitsAction")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DFUWorkunitsActionRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWorkunitsAction"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUWorkunitsAction")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUWorkunitsAction")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dropZoneFiles - * @param dropZoneFilesRequest35 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse dropZoneFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest - dropZoneFilesRequest35) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[17].getName()); - _operationClient.getOptions().setAction("FileSpray/DropZoneFiles?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dropZoneFilesRequest35, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dropZoneFiles")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DropZoneFilesRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DropZoneFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DropZoneFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DropZoneFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#deleteDFUWorkunit - * @param deleteDFUWorkunit37 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse - deleteDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit - deleteDFUWorkunit37) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[18].getName()); - _operationClient.getOptions().setAction("FileSpray/DeleteDFUWorkunit?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - deleteDFUWorkunit37, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "deleteDFUWorkunit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DeleteDFUWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DeleteDFUWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DeleteDFUWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DeleteDFUWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#submitDFUWorkunit - * @param submitDFUWorkunit39 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse - submitDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit - submitDFUWorkunit39) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[19].getName()); - _operationClient.getOptions().setAction("FileSpray/SubmitDFUWorkunit?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - submitDFUWorkunit39, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "submitDFUWorkunit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SubmitDFUWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SubmitDFUWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "SubmitDFUWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "SubmitDFUWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dfuMonitor - * @param dfuMonitorRequest41 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse dfuMonitor( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest dfuMonitorRequest41) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[20].getName()); - _operationClient.getOptions().setAction("FileSpray/DfuMonitor?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dfuMonitorRequest41, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dfuMonitor")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DfuMonitorRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DfuMonitor"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DfuMonitor")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DfuMonitor")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dFUWUSearch - * @param dFUWUSearchRequest43 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse dFUWUSearch( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest dFUWUSearchRequest43) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[21].getName()); - _operationClient.getOptions().setAction("FileSpray/DFUWUSearch?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUWUSearchRequest43, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWUSearch")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUSearchRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUSearch"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUSearch")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUSearch")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUWorkunits - * @param getDFUWorkunits45 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse - getDFUWorkunits( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits getDFUWorkunits45) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[22].getName()); - _operationClient.getOptions().setAction("FileSpray/GetDFUWorkunits?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getDFUWorkunits45, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUWorkunits")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUWorkunits")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUWorkunits"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetDFUWorkunits")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetDFUWorkunits")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#deleteDropZoneFiles - * @param deleteDropZoneFilesRequest47 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse - deleteDropZoneFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest - deleteDropZoneFilesRequest47) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[23].getName()); - _operationClient.getOptions().setAction("FileSpray/DeleteDropZoneFiles?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - deleteDropZoneFilesRequest47, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "deleteDropZoneFiles")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "DeleteDropZoneFilesRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DeleteDropZoneFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DeleteDropZoneFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DeleteDropZoneFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getSprayTargets - * @param getSprayTargetsRequest49 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse - getSprayTargets( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest - getSprayTargetsRequest49) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[24].getName()); - _operationClient.getOptions().setAction("FileSpray/GetSprayTargets?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getSprayTargetsRequest49, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getSprayTargets")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetSprayTargetsRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetSprayTargets"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetSprayTargets")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetSprayTargets")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUExceptions - * @param getDFUExceptions51 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse - getDFUExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions getDFUExceptions51) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[25].getName()); - _operationClient.getOptions().setAction("FileSpray/GetDFUExceptions?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getDFUExceptions51, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "getDFUExceptions")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUExceptions")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUExceptions"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetDFUExceptions")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetDFUExceptions")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#echoDateTime - * @param echoDateTime53 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse echoDateTime( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime echoDateTime53) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[26].getName()); - _operationClient.getOptions().setAction("FileSpray/EchoDateTime?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - echoDateTime53, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "echoDateTime")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "EchoDateTime")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "EchoDateTime"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "EchoDateTime")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "EchoDateTime")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#updateDFUWorkunit - * @param updateDFUWorkunit55 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse - updateDFUWorkunit( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit - updateDFUWorkunit55) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[27].getName()); - _operationClient.getOptions().setAction("FileSpray/UpdateDFUWorkunit?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - updateDFUWorkunit55, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "updateDFUWorkunit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "UpdateDFUWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "UpdateDFUWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "UpdateDFUWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "UpdateDFUWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUProgress - * @param progressRequest57 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse getDFUProgress( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest progressRequest57) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[28].getName()); - _operationClient.getOptions().setAction("FileSpray/GetDFUProgress?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - progressRequest57, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUProgress")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUProgress"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUProgress")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUProgress")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#openSave - * @param openSaveRequest59 - * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse openSave( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest openSaveRequest59) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[29].getName()); - _operationClient.getOptions().setAction("FileSpray/OpenSave?ver_=1.25"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - openSaveRequest59, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "openSave")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OpenSaveRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "OpenSave"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "OpenSave")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "OpenSave")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - private javax.xml.namespace.QName[] opNameArray = null; - - private boolean optimizeContent(javax.xml.namespace.QName opName) { - - if (opNameArray == null) { - return false; - } - for (int i = 0; i < opNameArray.length; i++) { - if (opName.equals(opNameArray[i])) { - return true; - } - } - return false; - } - // http://10.1.1.180:8888/FileSpray?ver_=1.25 - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - /** get the default envelope */ - private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { - return factory.getDefaultEnvelope(); - } - - private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) - throws org.apache.axis2.AxisFault { - - try { - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - } catch (java.lang.Exception e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - return null; - } -} +/** + * FileSprayStub.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/* + * FileSprayStub java implementation + */ + +public class FileSprayStub extends org.apache.axis2.client.Stub implements FileSpray { + protected org.apache.axis2.description.AxisOperation[] _operations; + + // hashmaps to keep the fault mapping + private java.util.Map + faultExceptionNameMap = + new java.util.HashMap(); + private java.util.Map + faultExceptionClassNameMap = + new java.util.HashMap(); + private java.util.Map faultMessageMap = + new java.util.HashMap(); + + private static int counter = 0; + + private static synchronized java.lang.String getUniqueSuffix() { + // reset the counter if it is greater than 99999 + if (counter > 99999) { + counter = 0; + } + counter = counter + 1; + return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; + } + + private void populateAxisService() throws org.apache.axis2.AxisFault { + + // creating the Service with a unique name + _service = new org.apache.axis2.description.AxisService("FileSpray" + getUniqueSuffix()); + addAnonymousOperations(); + + // creating the operations + org.apache.axis2.description.AxisOperation __operation; + + _operations = new org.apache.axis2.description.AxisOperation[32]; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sprayVariable")); + _service.addOperation(__operation); + + _operations[0] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWUFile")); + _service.addOperation(__operation); + + _operations[1] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ping")); + _service.addOperation(__operation); + + _operations[2] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "copy")); + _service.addOperation(__operation); + + _operations[3] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate")); + _service.addOperation(__operation); + + _operations[4] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "createDFUWorkunit")); + _service.addOperation(__operation); + + _operations[5] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUWorkunit")); + _service.addOperation(__operation); + + _operations[6] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "rename")); + _service.addOperation(__operation); + + _operations[7] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sprayFixed")); + _service.addOperation(__operation); + + _operations[8] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "showResult")); + _service.addOperation(__operation); + + _operations[9] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "abortDFUWorkunit")); + _service.addOperation(__operation); + + _operations[10] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dropZoneFileSearch")); + _service.addOperation(__operation); + + _operations[11] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getRemoteTargets")); + _service.addOperation(__operation); + + _operations[12] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUServerQueues")); + _service.addOperation(__operation); + + _operations[13] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "deleteDFUWorkunits")); + _service.addOperation(__operation); + + _operations[14] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "despray")); + _service.addOperation(__operation); + + _operations[15] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "fileList")); + _service.addOperation(__operation); + + _operations[16] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWorkunitsAction")); + _service.addOperation(__operation); + + _operations[17] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dropZoneFiles")); + _service.addOperation(__operation); + + _operations[18] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "deleteDFUWorkunit")); + _service.addOperation(__operation); + + _operations[19] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "submitDFUWorkunit")); + _service.addOperation(__operation); + + _operations[20] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dfuMonitor")); + _service.addOperation(__operation); + + _operations[21] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWUSearch")); + _service.addOperation(__operation); + + _operations[22] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUWorkunits")); + _service.addOperation(__operation); + + _operations[23] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "deleteDropZoneFiles")); + _service.addOperation(__operation); + + _operations[24] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getSprayTargets")); + _service.addOperation(__operation); + + _operations[25] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUExceptions")); + _service.addOperation(__operation); + + _operations[26] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "echoDateTime")); + _service.addOperation(__operation); + + _operations[27] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "createDFUPublisherWorkunit")); + _service.addOperation(__operation); + + _operations[28] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "updateDFUWorkunit")); + _service.addOperation(__operation); + + _operations[29] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUProgress")); + _service.addOperation(__operation); + + _operations[30] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "openSave")); + _service.addOperation(__operation); + + _operations[31] = __operation; + } + + // populates the faults + private void populateFaults() { + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SprayVariable"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SprayVariable"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SprayVariable"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWUFile"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWUFile"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWUFile"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Copy"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Copy"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Copy"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "Replicate"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "Replicate"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "Replicate"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "CreateDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "CreateDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "CreateDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Rename"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Rename"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Rename"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SprayFixed"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SprayFixed"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SprayFixed"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "ShowResult"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "ShowResult"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "ShowResult"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "AbortDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "AbortDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "AbortDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DropZoneFileSearch"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DropZoneFileSearch"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DropZoneFileSearch"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetRemoteTargets"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetRemoteTargets"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetRemoteTargets"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUServerQueues"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUServerQueues"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUServerQueues"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDFUWorkunits"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDFUWorkunits"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDFUWorkunits"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Despray"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Despray"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), "Despray"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "FileList"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "FileList"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "FileList"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWorkunitsAction"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWorkunitsAction"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWorkunitsAction"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DropZoneFiles"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DropZoneFiles"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DropZoneFiles"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SubmitDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SubmitDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "SubmitDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DfuMonitor"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DfuMonitor"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DfuMonitor"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWUSearch"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWUSearch"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DFUWUSearch"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUWorkunits"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUWorkunits"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUWorkunits"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDropZoneFiles"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDropZoneFiles"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "DeleteDropZoneFiles"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetSprayTargets"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetSprayTargets"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetSprayTargets"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUExceptions"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUExceptions"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUExceptions"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "EchoDateTime"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "EchoDateTime"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "EchoDateTime"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "CreateDFUPublisherWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "CreateDFUPublisherWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "CreateDFUPublisherWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "UpdateDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "UpdateDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "UpdateDFUWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUProgress"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUProgress"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "GetDFUProgress"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "OpenSave"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "OpenSave"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), + "OpenSave"), + "org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions"); + } + + /** Constructor that takes in a configContext */ + public FileSprayStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint) + throws org.apache.axis2.AxisFault { + this(configurationContext, targetEndpoint, false); + } + + /** Constructor that takes in a configContext and useseperate listner */ + public FileSprayStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint, + boolean useSeparateListener) + throws org.apache.axis2.AxisFault { + // To populate AxisService + populateAxisService(); + populateFaults(); + + _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); + + _serviceClient + .getOptions() + .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); + _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); + } + + /** Default Constructor */ + public FileSprayStub(org.apache.axis2.context.ConfigurationContext configurationContext) + throws org.apache.axis2.AxisFault { + + this(configurationContext, "http://eclwatch-66ff99685c-4bl4k:8888/FileSpray?ver_=1.26"); + } + + /** Default Constructor */ + public FileSprayStub() throws org.apache.axis2.AxisFault { + + this("http://eclwatch-66ff99685c-4bl4k:8888/FileSpray?ver_=1.26"); + } + + /** Constructor taking the target endpoint */ + public FileSprayStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { + this(null, targetEndpoint); + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#sprayVariable + * @param sprayVariable1 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse sprayVariable( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable sprayVariable1) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[0].getName()); + _operationClient.getOptions().setAction("FileSpray/SprayVariable?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + sprayVariable1, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sprayVariable")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayVariable")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayVariable"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayVariable")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayVariable")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dFUWUFile + * @param dFUWUFileRequest3 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse dFUWUFile( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest dFUWUFileRequest3) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[1].getName()); + _operationClient.getOptions().setAction("FileSpray/DFUWUFile?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUWUFileRequest3, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWUFile")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUFileRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUFile"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUFile")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUFile")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#ping + * @param fileSprayPingRequest5 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest + fileSprayPingRequest5) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[2].getName()); + _operationClient.getOptions().setAction("FileSpray/Ping?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + fileSprayPingRequest5, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ping")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "FileSprayPingRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#copy + * @param copy7 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse copy( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy copy7) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[3].getName()); + _operationClient.getOptions().setAction("FileSpray/Copy?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + copy7, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "copy")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Copy")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Copy"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Copy")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Copy")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#replicate + * @param replicate9 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse replicate( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate replicate9) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[4].getName()); + _operationClient.getOptions().setAction("FileSpray/Replicate?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + replicate9, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Replicate")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Replicate"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Replicate")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Replicate")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#createDFUWorkunit + * @param createDFUWorkunit11 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse + createDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit + createDFUWorkunit11) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[5].getName()); + _operationClient.getOptions().setAction("FileSpray/CreateDFUWorkunit?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + createDFUWorkunit11, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "createDFUWorkunit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CreateDFUWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "CreateDFUWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "CreateDFUWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "CreateDFUWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUWorkunit + * @param getDFUWorkunit13 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse getDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit getDFUWorkunit13) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[6].getName()); + _operationClient.getOptions().setAction("FileSpray/GetDFUWorkunit?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getDFUWorkunit13, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUWorkunit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#rename + * @param rename15 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse rename( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename rename15) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[7].getName()); + _operationClient.getOptions().setAction("FileSpray/Rename?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + rename15, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "rename")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Rename")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Rename"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Rename")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Rename")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#sprayFixed + * @param sprayFixed17 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse sprayFixed( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed sprayFixed17) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[8].getName()); + _operationClient.getOptions().setAction("FileSpray/SprayFixed?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + sprayFixed17, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sprayFixed")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayFixed")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayFixed"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayFixed")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SprayFixed")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#showResult + * @param showResultRequest19 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse showResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest showResultRequest19) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[9].getName()); + _operationClient.getOptions().setAction("FileSpray/ShowResult?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + showResultRequest19, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "showResult")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ShowResultRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ShowResult"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ShowResult")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ShowResult")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#abortDFUWorkunit + * @param abortDFUWorkunit21 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse + abortDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit abortDFUWorkunit21) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[10].getName()); + _operationClient.getOptions().setAction("FileSpray/AbortDFUWorkunit?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + abortDFUWorkunit21, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "abortDFUWorkunit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AbortDFUWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "AbortDFUWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "AbortDFUWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "AbortDFUWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dropZoneFileSearch + * @param dropZoneFileSearchRequest23 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse + dropZoneFileSearch( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest + dropZoneFileSearchRequest23) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[11].getName()); + _operationClient.getOptions().setAction("FileSpray/DropZoneFileSearch?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dropZoneFileSearchRequest23, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "dropZoneFileSearch")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DropZoneFileSearchRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DropZoneFileSearch"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DropZoneFileSearch")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DropZoneFileSearch")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getRemoteTargets + * @param getRemoteTargetsRequest25 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsResponse + getRemoteTargets( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsRequest + getRemoteTargetsRequest25) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[12].getName()); + _operationClient.getOptions().setAction("FileSpray/GetRemoteTargets?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getRemoteTargetsRequest25, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "getRemoteTargets")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetRemoteTargetsRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetRemoteTargets"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetRemoteTargets")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetRemoteTargets")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUServerQueues + * @param getDFUServerQueuesRequest27 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse + getDFUServerQueues( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest + getDFUServerQueuesRequest27) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[13].getName()); + _operationClient.getOptions().setAction("FileSpray/GetDFUServerQueues?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getDFUServerQueuesRequest27, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "getDFUServerQueues")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetDFUServerQueuesRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUServerQueues"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetDFUServerQueues")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetDFUServerQueues")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#deleteDFUWorkunits + * @param deleteDFUWorkunits29 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse + deleteDFUWorkunits( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits + deleteDFUWorkunits29) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[14].getName()); + _operationClient.getOptions().setAction("FileSpray/DeleteDFUWorkunits?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + deleteDFUWorkunits29, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "deleteDFUWorkunits")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DeleteDFUWorkunits")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DeleteDFUWorkunits"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DeleteDFUWorkunits")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DeleteDFUWorkunits")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#despray + * @param despray31 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse despray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray despray31) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[15].getName()); + _operationClient.getOptions().setAction("FileSpray/Despray?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + despray31, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "despray")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Despray")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Despray"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Despray")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Despray")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#fileList + * @param fileListRequest33 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse fileList( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest fileListRequest33) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[16].getName()); + _operationClient.getOptions().setAction("FileSpray/FileList?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + fileListRequest33, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "fileList")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "FileListRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "FileList"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "FileList")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "FileList")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dFUWorkunitsAction + * @param dFUWorkunitsActionRequest35 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse + dFUWorkunitsAction( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest + dFUWorkunitsActionRequest35) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[17].getName()); + _operationClient.getOptions().setAction("FileSpray/DFUWorkunitsAction?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUWorkunitsActionRequest35, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "dFUWorkunitsAction")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DFUWorkunitsActionRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWorkunitsAction"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUWorkunitsAction")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUWorkunitsAction")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dropZoneFiles + * @param dropZoneFilesRequest37 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse dropZoneFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest + dropZoneFilesRequest37) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[18].getName()); + _operationClient.getOptions().setAction("FileSpray/DropZoneFiles?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dropZoneFilesRequest37, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dropZoneFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DropZoneFilesRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DropZoneFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DropZoneFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DropZoneFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#deleteDFUWorkunit + * @param deleteDFUWorkunit39 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse + deleteDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit + deleteDFUWorkunit39) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[19].getName()); + _operationClient.getOptions().setAction("FileSpray/DeleteDFUWorkunit?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + deleteDFUWorkunit39, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "deleteDFUWorkunit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DeleteDFUWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DeleteDFUWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DeleteDFUWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DeleteDFUWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#submitDFUWorkunit + * @param submitDFUWorkunit41 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse + submitDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit + submitDFUWorkunit41) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[20].getName()); + _operationClient.getOptions().setAction("FileSpray/SubmitDFUWorkunit?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + submitDFUWorkunit41, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "submitDFUWorkunit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SubmitDFUWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SubmitDFUWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "SubmitDFUWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "SubmitDFUWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dfuMonitor + * @param dfuMonitorRequest43 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse dfuMonitor( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest dfuMonitorRequest43) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[21].getName()); + _operationClient.getOptions().setAction("FileSpray/DfuMonitor?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dfuMonitorRequest43, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dfuMonitor")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DfuMonitorRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DfuMonitor"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DfuMonitor")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DfuMonitor")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#dFUWUSearch + * @param dFUWUSearchRequest45 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse dFUWUSearch( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest dFUWUSearchRequest45) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[22].getName()); + _operationClient.getOptions().setAction("FileSpray/DFUWUSearch?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUWUSearchRequest45, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dFUWUSearch")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUWUSearchRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUSearch"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUSearch")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUWUSearch")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUWorkunits + * @param getDFUWorkunits47 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse + getDFUWorkunits( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits getDFUWorkunits47) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[23].getName()); + _operationClient.getOptions().setAction("FileSpray/GetDFUWorkunits?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getDFUWorkunits47, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUWorkunits")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUWorkunits")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUWorkunits"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetDFUWorkunits")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetDFUWorkunits")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#deleteDropZoneFiles + * @param deleteDropZoneFilesRequest49 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse + deleteDropZoneFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest + deleteDropZoneFilesRequest49) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[24].getName()); + _operationClient.getOptions().setAction("FileSpray/DeleteDropZoneFiles?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + deleteDropZoneFilesRequest49, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "deleteDropZoneFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "DeleteDropZoneFilesRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DeleteDropZoneFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DeleteDropZoneFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DeleteDropZoneFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getSprayTargets + * @param getSprayTargetsRequest51 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse + getSprayTargets( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest + getSprayTargetsRequest51) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[25].getName()); + _operationClient.getOptions().setAction("FileSpray/GetSprayTargets?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getSprayTargetsRequest51, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getSprayTargets")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetSprayTargetsRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetSprayTargets"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetSprayTargets")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetSprayTargets")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUExceptions + * @param getDFUExceptions53 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse + getDFUExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions getDFUExceptions53) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[26].getName()); + _operationClient.getOptions().setAction("FileSpray/GetDFUExceptions?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getDFUExceptions53, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "getDFUExceptions")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUExceptions")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUExceptions"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetDFUExceptions")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetDFUExceptions")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#echoDateTime + * @param echoDateTime55 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse echoDateTime( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime echoDateTime55) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[27].getName()); + _operationClient.getOptions().setAction("FileSpray/EchoDateTime?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + echoDateTime55, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "echoDateTime")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "EchoDateTime")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "EchoDateTime"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "EchoDateTime")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "EchoDateTime")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#createDFUPublisherWorkunit + * @param createDFUPublisherWorkunit57 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunitResponse + createDFUPublisherWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunit + createDFUPublisherWorkunit57) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[28].getName()); + _operationClient.getOptions().setAction("FileSpray/CreateDFUPublisherWorkunit?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + createDFUPublisherWorkunit57, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "createDFUPublisherWorkunit")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "CreateDFUPublisherWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest + .CreateDFUPublisherWorkunitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest + .CreateDFUPublisherWorkunitResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "CreateDFUPublisherWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "CreateDFUPublisherWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "CreateDFUPublisherWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#updateDFUWorkunit + * @param updateDFUWorkunit59 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse + updateDFUWorkunit( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit + updateDFUWorkunit59) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[29].getName()); + _operationClient.getOptions().setAction("FileSpray/UpdateDFUWorkunit?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + updateDFUWorkunit59, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "updateDFUWorkunit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "UpdateDFUWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "UpdateDFUWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "UpdateDFUWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "UpdateDFUWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#getDFUProgress + * @param progressRequest61 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse getDFUProgress( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest progressRequest61) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[30].getName()); + _operationClient.getOptions().setAction("FileSpray/GetDFUProgress?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + progressRequest61, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "getDFUProgress")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUProgress"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUProgress")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetDFUProgress")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSpray#openSave + * @param openSaveRequest63 + * @throws org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse openSave( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest openSaveRequest63) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[31].getName()); + _operationClient.getOptions().setAction("FileSpray/OpenSave?ver_=1.26"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + openSaveRequest63, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "openSave")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OpenSaveRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "OpenSave"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "OpenSave")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "OpenSave")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + private javax.xml.namespace.QName[] opNameArray = null; + + private boolean optimizeContent(javax.xml.namespace.QName opName) { + + if (opNameArray == null) { + return false; + } + for (int i = 0; i < opNameArray.length; i++) { + if (opName.equals(opNameArray[i])) { + return true; + } + } + return false; + } + // http://eclwatch-66ff99685c-4bl4k:8888/FileSpray?ver_=1.26 + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunitResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunit + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + /** get the default envelope */ + private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { + return factory.getDefaultEnvelope(); + } + + private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) + throws org.apache.axis2.AxisFault { + + try { + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunit.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.AbortDFUWorkunitResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Copy.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CopyResponse.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunit.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunit.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunitResponse + .class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUPublisherWorkunitResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunit.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.CreateDFUWorkunitResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunit.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunits.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDFUWorkunitsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DeleteDropZoneFilesRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Despray.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DesprayResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DfuMonitorResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunitsActionResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUFileResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWUSearchResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFileSearchResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DropZoneFilesResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTime.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EchoDateTimeResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Exceptions.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileListResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.FileSprayPingResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptions.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUExceptionsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUServerQueuesResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunit.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunits.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetDFUWorkunitsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetRemoteTargetsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GetSprayTargetsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.OpenSaveResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ProgressResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Rename.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.RenameResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.Replicate.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ReplicateResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ShowResultResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixed.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayFixedResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SprayVariable.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunit.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.SubmitDFUWorkunitResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunit.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.filespray.latest.UpdateDFUWorkunitResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + } catch (java.lang.Exception e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + return null; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUExceptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUExceptions.java index 04c13a9ed..f7992a785 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUExceptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUExceptions.java @@ -1,396 +1,396 @@ -/** - * GetDFUExceptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetDFUExceptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetDFUExceptions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUExceptions", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetDFUExceptions", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetDFUExceptions", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetDFUExceptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetDFUExceptions object = new GetDFUExceptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetDFUExceptions".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetDFUExceptions) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetDFUExceptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetDFUExceptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetDFUExceptions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUExceptions", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetDFUExceptions", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetDFUExceptions", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetDFUExceptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetDFUExceptions object = new GetDFUExceptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetDFUExceptions".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetDFUExceptions) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUExceptionsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUExceptionsResponse.java index 2f8425b7a..43e56cfe0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUExceptionsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUExceptionsResponse.java @@ -1,434 +1,434 @@ -/** - * GetDFUExceptionsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetDFUExceptionsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetDFUExceptionsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetDFUExceptionsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetDFUExceptionsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetDFUExceptionsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - if (localResult == null) { - throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); - } - localResult.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetDFUExceptionsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetDFUExceptionsResponse object = new GetDFUExceptionsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetDFUExceptionsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetDFUExceptionsResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") - .equals(reader.getName())) { - - object.setResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetDFUExceptionsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetDFUExceptionsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetDFUExceptionsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetDFUExceptionsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetDFUExceptionsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetDFUExceptionsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + if (localResult == null) { + throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); + } + localResult.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetDFUExceptionsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetDFUExceptionsResponse object = new GetDFUExceptionsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetDFUExceptionsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetDFUExceptionsResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") + .equals(reader.getName())) { + + object.setResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUServerQueuesRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUServerQueuesRequest.java index 35f9ff25a..d84b78aec 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUServerQueuesRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUServerQueuesRequest.java @@ -1,397 +1,397 @@ -/** - * GetDFUServerQueuesRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetDFUServerQueuesRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetDFUServerQueuesRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetDFUServerQueuesRequest", "ns1"); - - /** field for DFUServerName */ - protected java.lang.String localDFUServerName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerNameTracker = false; - - public boolean isDFUServerNameSpecified() { - return localDFUServerNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerName() { - return localDFUServerName; - } - - /** - * Auto generated setter method - * - * @param param DFUServerName - */ - public void setDFUServerName(java.lang.String param) { - localDFUServerNameTracker = param != null; - - this.localDFUServerName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetDFUServerQueuesRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetDFUServerQueuesRequest", - xmlWriter); - } - } - if (localDFUServerNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerName", xmlWriter); - - if (localDFUServerName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetDFUServerQueuesRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetDFUServerQueuesRequest object = new GetDFUServerQueuesRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetDFUServerQueuesRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetDFUServerQueuesRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetDFUServerQueuesRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetDFUServerQueuesRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetDFUServerQueuesRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetDFUServerQueuesRequest", "ns1"); + + /** field for DFUServerName */ + protected java.lang.String localDFUServerName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerNameTracker = false; + + public boolean isDFUServerNameSpecified() { + return localDFUServerNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerName() { + return localDFUServerName; + } + + /** + * Auto generated setter method + * + * @param param DFUServerName + */ + public void setDFUServerName(java.lang.String param) { + localDFUServerNameTracker = param != null; + + this.localDFUServerName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetDFUServerQueuesRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetDFUServerQueuesRequest", + xmlWriter); + } + } + if (localDFUServerNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerName", xmlWriter); + + if (localDFUServerName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetDFUServerQueuesRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetDFUServerQueuesRequest object = new GetDFUServerQueuesRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetDFUServerQueuesRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetDFUServerQueuesRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUServerQueuesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUServerQueuesResponse.java index 1852d2132..00de7cdfc 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUServerQueuesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUServerQueuesResponse.java @@ -1,433 +1,433 @@ -/** - * GetDFUServerQueuesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetDFUServerQueuesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetDFUServerQueuesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetDFUServerQueuesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Names */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localNames; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNamesTracker = false; - - public boolean isNamesSpecified() { - return localNamesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getNames() { - return localNames; - } - - /** - * Auto generated setter method - * - * @param param Names - */ - public void setNames(org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { - localNamesTracker = param != null; - - this.localNames = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetDFUServerQueuesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetDFUServerQueuesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localNamesTracker) { - if (localNames == null) { - throw new org.apache.axis2.databinding.ADBException("Names cannot be null!!"); - } - localNames.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Names"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetDFUServerQueuesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetDFUServerQueuesResponse object = new GetDFUServerQueuesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetDFUServerQueuesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetDFUServerQueuesResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Names") - .equals(reader.getName())) { - - object.setNames( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetDFUServerQueuesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetDFUServerQueuesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetDFUServerQueuesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetDFUServerQueuesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Names */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localNames; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNamesTracker = false; + + public boolean isNamesSpecified() { + return localNamesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getNames() { + return localNames; + } + + /** + * Auto generated setter method + * + * @param param Names + */ + public void setNames(org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { + localNamesTracker = param != null; + + this.localNames = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetDFUServerQueuesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetDFUServerQueuesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localNamesTracker) { + if (localNames == null) { + throw new org.apache.axis2.databinding.ADBException("Names cannot be null!!"); + } + localNames.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Names"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetDFUServerQueuesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetDFUServerQueuesResponse object = new GetDFUServerQueuesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetDFUServerQueuesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetDFUServerQueuesResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Names") + .equals(reader.getName())) { + + object.setNames( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunit.java index ae7f0f0d7..1b819235a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunit.java @@ -1,396 +1,396 @@ -/** - * GetDFUWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetDFUWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetDFUWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUWorkunit", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetDFUWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetDFUWorkunit", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetDFUWorkunit object = new GetDFUWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetDFUWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetDFUWorkunit) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetDFUWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetDFUWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetDFUWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUWorkunit", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetDFUWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetDFUWorkunit", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetDFUWorkunit object = new GetDFUWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetDFUWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetDFUWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunitResponse.java index f2bee8fa1..2bad70157 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunitResponse.java @@ -1,502 +1,503 @@ -/** - * GetDFUWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetDFUWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetDFUWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** field for AutoRefresh */ - protected int localAutoRefresh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAutoRefreshTracker = false; - - public boolean isAutoRefreshSpecified() { - return localAutoRefreshTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAutoRefresh() { - return localAutoRefresh; - } - - /** - * Auto generated setter method - * - * @param param AutoRefresh - */ - public void setAutoRefresh(int param) { - - // setting primitive attribute tracker to true - localAutoRefreshTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAutoRefresh = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetDFUWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetDFUWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - if (localResult == null) { - throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); - } - localResult.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result"), xmlWriter); - } - if (localAutoRefreshTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "AutoRefresh", xmlWriter); - - if (localAutoRefresh == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("AutoRefresh cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAutoRefresh)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetDFUWorkunitResponse object = new GetDFUWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetDFUWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetDFUWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") - .equals(reader.getName())) { - - object.setResult( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AutoRefresh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AutoRefresh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAutoRefresh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetDFUWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetDFUWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetDFUWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** field for AutoRefresh */ + protected int localAutoRefresh = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAutoRefreshTracker = false; + + public boolean isAutoRefreshSpecified() { + return localAutoRefreshTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAutoRefresh() { + return localAutoRefresh; + } + + /** + * Auto generated setter method + * + * @param param AutoRefresh + */ + public void setAutoRefresh(int param) { + + // setting primitive attribute tracker to true + localAutoRefreshTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAutoRefresh = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetDFUWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetDFUWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + if (localResult == null) { + throw new org.apache.axis2.databinding.ADBException("result cannot be null!!"); + } + localResult.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result"), xmlWriter); + } + if (localAutoRefreshTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "AutoRefresh", xmlWriter); + + if (localAutoRefresh == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("AutoRefresh cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAutoRefresh)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetDFUWorkunitResponse object = new GetDFUWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetDFUWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetDFUWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "result") + .equals(reader.getName())) { + + object.setResult( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AutoRefresh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AutoRefresh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAutoRefresh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunits.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunits.java index f4ca76479..4ba122306 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunits.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunits.java @@ -1,1503 +1,1503 @@ -/** - * GetDFUWorkunits.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetDFUWorkunits bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetDFUWorkunits implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUWorkunits", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for StateReq */ - protected java.lang.String localStateReq; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateReqTracker = false; - - public boolean isStateReqSpecified() { - return localStateReqTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStateReq() { - return localStateReq; - } - - /** - * Auto generated setter method - * - * @param param StateReq - */ - public void setStateReq(java.lang.String param) { - localStateReqTracker = param != null; - - this.localStateReq = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** field for PageSize */ - protected long localPageSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageSizeTracker = false; - - public boolean isPageSizeSpecified() { - return localPageSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageSize() { - return localPageSize; - } - - /** - * Auto generated setter method - * - * @param param PageSize - */ - public void setPageSize(long param) { - - // setting primitive attribute tracker to true - localPageSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageSize = param; - } - - /** field for CurrentPage */ - protected int localCurrentPage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCurrentPageTracker = false; - - public boolean isCurrentPageSpecified() { - return localCurrentPageTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCurrentPage() { - return localCurrentPage; - } - - /** - * Auto generated setter method - * - * @param param CurrentPage - */ - public void setCurrentPage(int param) { - - // setting primitive attribute tracker to true - localCurrentPageTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCurrentPage = param; - } - - /** field for PageStartFrom */ - protected long localPageStartFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageStartFromTracker = false; - - public boolean isPageStartFromSpecified() { - return localPageStartFromTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageStartFrom() { - return localPageStartFrom; - } - - /** - * Auto generated setter method - * - * @param param PageStartFrom - */ - public void setPageStartFrom(long param) { - - // setting primitive attribute tracker to true - localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageStartFrom = param; - } - - /** field for Sortby */ - protected java.lang.String localSortby; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortbyTracker = false; - - public boolean isSortbySpecified() { - return localSortbyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortby() { - return localSortby; - } - - /** - * Auto generated setter method - * - * @param param Sortby - */ - public void setSortby(java.lang.String param) { - localSortbyTracker = param != null; - - this.localSortby = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for CacheHint */ - protected long localCacheHint = - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** field for ParentWuid */ - protected java.lang.String localParentWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localParentWuidTracker = false; - - public boolean isParentWuidSpecified() { - return localParentWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getParentWuid() { - return localParentWuid; - } - - /** - * Auto generated setter method - * - * @param param ParentWuid - */ - public void setParentWuid(java.lang.String param) { - localParentWuidTracker = param != null; - - this.localParentWuid = param; - } - - /** field for PublisherWuid */ - protected java.lang.String localPublisherWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPublisherWuidTracker = false; - - public boolean isPublisherWuidSpecified() { - return localPublisherWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPublisherWuid() { - return localPublisherWuid; - } - - /** - * Auto generated setter method - * - * @param param PublisherWuid - */ - public void setPublisherWuid(java.lang.String param) { - localPublisherWuidTracker = param != null; - - this.localPublisherWuid = param; - } - - /** field for IncludeProgressMessages */ - protected boolean localIncludeProgressMessages = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeProgressMessagesTracker = false; - - public boolean isIncludeProgressMessagesSpecified() { - return localIncludeProgressMessagesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeProgressMessages() { - return localIncludeProgressMessages; - } - - /** - * Auto generated setter method - * - * @param param IncludeProgressMessages - */ - public void setIncludeProgressMessages(boolean param) { - - // setting primitive attribute tracker to true - localIncludeProgressMessagesTracker = true; - - this.localIncludeProgressMessages = param; - } - - /** field for IncludeTimings */ - protected boolean localIncludeTimings = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeTimingsTracker = false; - - public boolean isIncludeTimingsSpecified() { - return localIncludeTimingsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeTimings() { - return localIncludeTimings; - } - - /** - * Auto generated setter method - * - * @param param IncludeTimings - */ - public void setIncludeTimings(boolean param) { - - // setting primitive attribute tracker to true - localIncludeTimingsTracker = true; - - this.localIncludeTimings = param; - } - - /** field for IncludeTransferRate */ - protected boolean localIncludeTransferRate = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeTransferRateTracker = false; - - public boolean isIncludeTransferRateSpecified() { - return localIncludeTransferRateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeTransferRate() { - return localIncludeTransferRate; - } - - /** - * Auto generated setter method - * - * @param param IncludeTransferRate - */ - public void setIncludeTransferRate(boolean param) { - - // setting primitive attribute tracker to true - localIncludeTransferRateTracker = true; - - this.localIncludeTransferRate = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetDFUWorkunits", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetDFUWorkunits", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStateReqTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "StateReq", xmlWriter); - - if (localStateReq == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StateReq cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStateReq); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - if (localPageSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PageSize", xmlWriter); - - if (localPageSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); - } - - xmlWriter.writeEndElement(); - } - if (localCurrentPageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "CurrentPage", xmlWriter); - - if (localCurrentPage == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CurrentPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCurrentPage)); - } - - xmlWriter.writeEndElement(); - } - if (localPageStartFromTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PageStartFrom", xmlWriter); - - if (localPageStartFrom == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localSortbyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Sortby", xmlWriter); - - if (localSortby == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortby); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - if (localParentWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ParentWuid", xmlWriter); - - if (localParentWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ParentWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localParentWuid); - } - - xmlWriter.writeEndElement(); - } - if (localPublisherWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PublisherWuid", xmlWriter); - - if (localPublisherWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PublisherWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPublisherWuid); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeProgressMessagesTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "includeProgressMessages", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "includeProgressMessages cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeProgressMessages)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeTimingsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "includeTimings", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("includeTimings cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeTimings)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeTransferRateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "includeTransferRate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("includeTransferRate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeTransferRate)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetDFUWorkunits parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetDFUWorkunits object = new GetDFUWorkunits(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetDFUWorkunits".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetDFUWorkunits) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "StateReq") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateReq" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateReq( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CurrentPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CurrentPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCurrentPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageStartFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageStartFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageStartFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Sortby") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sortby" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortby( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ParentWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ParentWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setParentWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PublisherWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PublisherWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPublisherWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "includeProgressMessages") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "includeProgressMessages" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeProgressMessages( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "includeTimings") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "includeTimings" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeTimings( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "includeTransferRate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "includeTransferRate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeTransferRate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetDFUWorkunits.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetDFUWorkunits bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetDFUWorkunits implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GetDFUWorkunits", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for StateReq */ + protected java.lang.String localStateReq; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateReqTracker = false; + + public boolean isStateReqSpecified() { + return localStateReqTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStateReq() { + return localStateReq; + } + + /** + * Auto generated setter method + * + * @param param StateReq + */ + public void setStateReq(java.lang.String param) { + localStateReqTracker = param != null; + + this.localStateReq = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** field for PageSize */ + protected long localPageSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageSizeTracker = false; + + public boolean isPageSizeSpecified() { + return localPageSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageSize() { + return localPageSize; + } + + /** + * Auto generated setter method + * + * @param param PageSize + */ + public void setPageSize(long param) { + + // setting primitive attribute tracker to true + localPageSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageSize = param; + } + + /** field for CurrentPage */ + protected int localCurrentPage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCurrentPageTracker = false; + + public boolean isCurrentPageSpecified() { + return localCurrentPageTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCurrentPage() { + return localCurrentPage; + } + + /** + * Auto generated setter method + * + * @param param CurrentPage + */ + public void setCurrentPage(int param) { + + // setting primitive attribute tracker to true + localCurrentPageTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCurrentPage = param; + } + + /** field for PageStartFrom */ + protected long localPageStartFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageStartFromTracker = false; + + public boolean isPageStartFromSpecified() { + return localPageStartFromTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageStartFrom() { + return localPageStartFrom; + } + + /** + * Auto generated setter method + * + * @param param PageStartFrom + */ + public void setPageStartFrom(long param) { + + // setting primitive attribute tracker to true + localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageStartFrom = param; + } + + /** field for Sortby */ + protected java.lang.String localSortby; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortbyTracker = false; + + public boolean isSortbySpecified() { + return localSortbyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortby() { + return localSortby; + } + + /** + * Auto generated setter method + * + * @param param Sortby + */ + public void setSortby(java.lang.String param) { + localSortbyTracker = param != null; + + this.localSortby = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for CacheHint */ + protected long localCacheHint = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** field for ParentWuid */ + protected java.lang.String localParentWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localParentWuidTracker = false; + + public boolean isParentWuidSpecified() { + return localParentWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getParentWuid() { + return localParentWuid; + } + + /** + * Auto generated setter method + * + * @param param ParentWuid + */ + public void setParentWuid(java.lang.String param) { + localParentWuidTracker = param != null; + + this.localParentWuid = param; + } + + /** field for PublisherWuid */ + protected java.lang.String localPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPublisherWuidTracker = false; + + public boolean isPublisherWuidSpecified() { + return localPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPublisherWuid() { + return localPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param PublisherWuid + */ + public void setPublisherWuid(java.lang.String param) { + localPublisherWuidTracker = param != null; + + this.localPublisherWuid = param; + } + + /** field for IncludeProgressMessages */ + protected boolean localIncludeProgressMessages = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeProgressMessagesTracker = false; + + public boolean isIncludeProgressMessagesSpecified() { + return localIncludeProgressMessagesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeProgressMessages() { + return localIncludeProgressMessages; + } + + /** + * Auto generated setter method + * + * @param param IncludeProgressMessages + */ + public void setIncludeProgressMessages(boolean param) { + + // setting primitive attribute tracker to true + localIncludeProgressMessagesTracker = true; + + this.localIncludeProgressMessages = param; + } + + /** field for IncludeTimings */ + protected boolean localIncludeTimings = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeTimingsTracker = false; + + public boolean isIncludeTimingsSpecified() { + return localIncludeTimingsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeTimings() { + return localIncludeTimings; + } + + /** + * Auto generated setter method + * + * @param param IncludeTimings + */ + public void setIncludeTimings(boolean param) { + + // setting primitive attribute tracker to true + localIncludeTimingsTracker = true; + + this.localIncludeTimings = param; + } + + /** field for IncludeTransferRate */ + protected boolean localIncludeTransferRate = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeTransferRateTracker = false; + + public boolean isIncludeTransferRateSpecified() { + return localIncludeTransferRateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeTransferRate() { + return localIncludeTransferRate; + } + + /** + * Auto generated setter method + * + * @param param IncludeTransferRate + */ + public void setIncludeTransferRate(boolean param) { + + // setting primitive attribute tracker to true + localIncludeTransferRateTracker = true; + + this.localIncludeTransferRate = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetDFUWorkunits", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetDFUWorkunits", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStateReqTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "StateReq", xmlWriter); + + if (localStateReq == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StateReq cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStateReq); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + if (localPageSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PageSize", xmlWriter); + + if (localPageSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); + } + + xmlWriter.writeEndElement(); + } + if (localCurrentPageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "CurrentPage", xmlWriter); + + if (localCurrentPage == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CurrentPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCurrentPage)); + } + + xmlWriter.writeEndElement(); + } + if (localPageStartFromTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PageStartFrom", xmlWriter); + + if (localPageStartFrom == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localSortbyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Sortby", xmlWriter); + + if (localSortby == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortby); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + if (localParentWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ParentWuid", xmlWriter); + + if (localParentWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ParentWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localParentWuid); + } + + xmlWriter.writeEndElement(); + } + if (localPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PublisherWuid", xmlWriter); + + if (localPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeProgressMessagesTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "includeProgressMessages", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "includeProgressMessages cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeProgressMessages)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeTimingsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "includeTimings", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("includeTimings cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeTimings)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeTransferRateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "includeTransferRate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("includeTransferRate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeTransferRate)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetDFUWorkunits parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetDFUWorkunits object = new GetDFUWorkunits(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetDFUWorkunits".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetDFUWorkunits) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "StateReq") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateReq" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateReq( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CurrentPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CurrentPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCurrentPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageStartFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageStartFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageStartFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Sortby") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sortby" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortby( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ParentWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ParentWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setParentWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "includeProgressMessages") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "includeProgressMessages" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeProgressMessages( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "includeTimings") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "includeTimings" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeTimings( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "includeTransferRate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "includeTransferRate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeTransferRate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunitsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunitsResponse.java index d8e6d2162..e4a3dffd6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunitsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetDFUWorkunitsResponse.java @@ -1,1604 +1,1604 @@ -/** - * GetDFUWorkunitsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetDFUWorkunitsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetDFUWorkunitsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetDFUWorkunitsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Results */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit localResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultsTracker = false; - - public boolean isResultsSpecified() { - return localResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit getResults() { - return localResults; - } - - /** - * Auto generated setter method - * - * @param param Results - */ - public void setResults( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit param) { - localResultsTracker = param != null; - - this.localResults = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for StateReq */ - protected java.lang.String localStateReq; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateReqTracker = false; - - public boolean isStateReqSpecified() { - return localStateReqTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStateReq() { - return localStateReq; - } - - /** - * Auto generated setter method - * - * @param param StateReq - */ - public void setStateReq(java.lang.String param) { - localStateReqTracker = param != null; - - this.localStateReq = param; - } - - /** field for PageSize */ - protected long localPageSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageSizeTracker = false; - - public boolean isPageSizeSpecified() { - return localPageSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageSize() { - return localPageSize; - } - - /** - * Auto generated setter method - * - * @param param PageSize - */ - public void setPageSize(long param) { - - // setting primitive attribute tracker to true - localPageSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageSize = param; - } - - /** field for PrevPage */ - protected long localPrevPage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPrevPageTracker = false; - - public boolean isPrevPageSpecified() { - return localPrevPageTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPrevPage() { - return localPrevPage; - } - - /** - * Auto generated setter method - * - * @param param PrevPage - */ - public void setPrevPage(long param) { - - // setting primitive attribute tracker to true - localPrevPageTracker = param != java.lang.Long.MIN_VALUE; - - this.localPrevPage = param; - } - - /** field for NextPage */ - protected long localNextPage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNextPageTracker = false; - - public boolean isNextPageSpecified() { - return localNextPageTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getNextPage() { - return localNextPage; - } - - /** - * Auto generated setter method - * - * @param param NextPage - */ - public void setNextPage(long param) { - - // setting primitive attribute tracker to true - localNextPageTracker = param != java.lang.Long.MIN_VALUE; - - this.localNextPage = param; - } - - /** field for LastPage */ - protected long localLastPage = - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLastPageTracker = false; - - public boolean isLastPageSpecified() { - return localLastPageTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getLastPage() { - return localLastPage; - } - - /** - * Auto generated setter method - * - * @param param LastPage - */ - public void setLastPage(long param) { - - // setting primitive attribute tracker to true - localLastPageTracker = param != java.lang.Long.MIN_VALUE; - - this.localLastPage = param; - } - - /** field for NumWUs */ - protected long localNumWUs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumWUsTracker = false; - - public boolean isNumWUsSpecified() { - return localNumWUsTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getNumWUs() { - return localNumWUs; - } - - /** - * Auto generated setter method - * - * @param param NumWUs - */ - public void setNumWUs(long param) { - - // setting primitive attribute tracker to true - localNumWUsTracker = param != java.lang.Long.MIN_VALUE; - - this.localNumWUs = param; - } - - /** field for PageStartFrom */ - protected long localPageStartFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageStartFromTracker = false; - - public boolean isPageStartFromSpecified() { - return localPageStartFromTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageStartFrom() { - return localPageStartFrom; - } - - /** - * Auto generated setter method - * - * @param param PageStartFrom - */ - public void setPageStartFrom(long param) { - - // setting primitive attribute tracker to true - localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageStartFrom = param; - } - - /** field for PageEndAt */ - protected long localPageEndAt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageEndAtTracker = false; - - public boolean isPageEndAtSpecified() { - return localPageEndAtTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageEndAt() { - return localPageEndAt; - } - - /** - * Auto generated setter method - * - * @param param PageEndAt - */ - public void setPageEndAt(long param) { - - // setting primitive attribute tracker to true - localPageEndAtTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageEndAt = param; - } - - /** field for First */ - protected boolean localFirst = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFirstTracker = false; - - public boolean isFirstSpecified() { - return localFirstTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFirst() { - return localFirst; - } - - /** - * Auto generated setter method - * - * @param param First - */ - public void setFirst(boolean param) { - - // setting primitive attribute tracker to true - localFirstTracker = true; - - this.localFirst = param; - } - - /** field for Sortby */ - protected java.lang.String localSortby; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortbyTracker = false; - - public boolean isSortbySpecified() { - return localSortbyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortby() { - return localSortby; - } - - /** - * Auto generated setter method - * - * @param param Sortby - */ - public void setSortby(java.lang.String param) { - localSortbyTracker = param != null; - - this.localSortby = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for BasicQuery */ - protected java.lang.String localBasicQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBasicQueryTracker = false; - - public boolean isBasicQuerySpecified() { - return localBasicQueryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBasicQuery() { - return localBasicQuery; - } - - /** - * Auto generated setter method - * - * @param param BasicQuery - */ - public void setBasicQuery(java.lang.String param) { - localBasicQueryTracker = param != null; - - this.localBasicQuery = param; - } - - /** field for Filters */ - protected java.lang.String localFilters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFiltersTracker = false; - - public boolean isFiltersSpecified() { - return localFiltersTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFilters() { - return localFilters; - } - - /** - * Auto generated setter method - * - * @param param Filters - */ - public void setFilters(java.lang.String param) { - localFiltersTracker = param != null; - - this.localFilters = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetDFUWorkunitsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetDFUWorkunitsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localResultsTracker) { - if (localResults == null) { - throw new org.apache.axis2.databinding.ADBException("results cannot be null!!"); - } - localResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "results"), xmlWriter); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStateReqTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "StateReq", xmlWriter); - - if (localStateReq == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StateReq cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStateReq); - } - - xmlWriter.writeEndElement(); - } - if (localPageSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PageSize", xmlWriter); - - if (localPageSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPrevPageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PrevPage", xmlWriter); - - if (localPrevPage == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PrevPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrevPage)); - } - - xmlWriter.writeEndElement(); - } - if (localNextPageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "NextPage", xmlWriter); - - if (localNextPage == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NextPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNextPage)); - } - - xmlWriter.writeEndElement(); - } - if (localLastPageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "LastPage", xmlWriter); - - if (localLastPage == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("LastPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastPage)); - } - - xmlWriter.writeEndElement(); - } - if (localNumWUsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "NumWUs", xmlWriter); - - if (localNumWUs == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NumWUs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumWUs)); - } - - xmlWriter.writeEndElement(); - } - if (localPageStartFromTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PageStartFrom", xmlWriter); - - if (localPageStartFrom == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localPageEndAtTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PageEndAt", xmlWriter); - - if (localPageEndAt == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageEndAt cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageEndAt)); - } - - xmlWriter.writeEndElement(); - } - if (localFirstTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "First", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("First cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFirst)); - } - - xmlWriter.writeEndElement(); - } - if (localSortbyTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Sortby", xmlWriter); - - if (localSortby == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortby); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localBasicQueryTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "BasicQuery", xmlWriter); - - if (localBasicQuery == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BasicQuery cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBasicQuery); - } - - xmlWriter.writeEndElement(); - } - if (localFiltersTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Filters", xmlWriter); - - if (localFilters == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Filters cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFilters); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetDFUWorkunitsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetDFUWorkunitsResponse object = new GetDFUWorkunitsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetDFUWorkunitsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetDFUWorkunitsResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "results") - .equals(reader.getName())) { - - object.setResults( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "StateReq") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateReq" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateReq( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PrevPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PrevPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPrevPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NextPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NextPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNextPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "LastPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LastPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLastPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NumWUs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumWUs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumWUs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageStartFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageStartFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageStartFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageEndAt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageEndAt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageEndAt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "First") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "First" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFirst( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Sortby") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sortby" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortby( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "BasicQuery") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BasicQuery" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBasicQuery( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Filters") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Filters" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetDFUWorkunitsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetDFUWorkunitsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetDFUWorkunitsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetDFUWorkunitsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Results */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit localResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultsTracker = false; + + public boolean isResultsSpecified() { + return localResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit getResults() { + return localResults; + } + + /** + * Auto generated setter method + * + * @param param Results + */ + public void setResults( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit param) { + localResultsTracker = param != null; + + this.localResults = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for StateReq */ + protected java.lang.String localStateReq; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateReqTracker = false; + + public boolean isStateReqSpecified() { + return localStateReqTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStateReq() { + return localStateReq; + } + + /** + * Auto generated setter method + * + * @param param StateReq + */ + public void setStateReq(java.lang.String param) { + localStateReqTracker = param != null; + + this.localStateReq = param; + } + + /** field for PageSize */ + protected long localPageSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageSizeTracker = false; + + public boolean isPageSizeSpecified() { + return localPageSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageSize() { + return localPageSize; + } + + /** + * Auto generated setter method + * + * @param param PageSize + */ + public void setPageSize(long param) { + + // setting primitive attribute tracker to true + localPageSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageSize = param; + } + + /** field for PrevPage */ + protected long localPrevPage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPrevPageTracker = false; + + public boolean isPrevPageSpecified() { + return localPrevPageTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPrevPage() { + return localPrevPage; + } + + /** + * Auto generated setter method + * + * @param param PrevPage + */ + public void setPrevPage(long param) { + + // setting primitive attribute tracker to true + localPrevPageTracker = param != java.lang.Long.MIN_VALUE; + + this.localPrevPage = param; + } + + /** field for NextPage */ + protected long localNextPage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNextPageTracker = false; + + public boolean isNextPageSpecified() { + return localNextPageTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getNextPage() { + return localNextPage; + } + + /** + * Auto generated setter method + * + * @param param NextPage + */ + public void setNextPage(long param) { + + // setting primitive attribute tracker to true + localNextPageTracker = param != java.lang.Long.MIN_VALUE; + + this.localNextPage = param; + } + + /** field for LastPage */ + protected long localLastPage = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLastPageTracker = false; + + public boolean isLastPageSpecified() { + return localLastPageTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getLastPage() { + return localLastPage; + } + + /** + * Auto generated setter method + * + * @param param LastPage + */ + public void setLastPage(long param) { + + // setting primitive attribute tracker to true + localLastPageTracker = param != java.lang.Long.MIN_VALUE; + + this.localLastPage = param; + } + + /** field for NumWUs */ + protected long localNumWUs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumWUsTracker = false; + + public boolean isNumWUsSpecified() { + return localNumWUsTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getNumWUs() { + return localNumWUs; + } + + /** + * Auto generated setter method + * + * @param param NumWUs + */ + public void setNumWUs(long param) { + + // setting primitive attribute tracker to true + localNumWUsTracker = param != java.lang.Long.MIN_VALUE; + + this.localNumWUs = param; + } + + /** field for PageStartFrom */ + protected long localPageStartFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageStartFromTracker = false; + + public boolean isPageStartFromSpecified() { + return localPageStartFromTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageStartFrom() { + return localPageStartFrom; + } + + /** + * Auto generated setter method + * + * @param param PageStartFrom + */ + public void setPageStartFrom(long param) { + + // setting primitive attribute tracker to true + localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageStartFrom = param; + } + + /** field for PageEndAt */ + protected long localPageEndAt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageEndAtTracker = false; + + public boolean isPageEndAtSpecified() { + return localPageEndAtTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageEndAt() { + return localPageEndAt; + } + + /** + * Auto generated setter method + * + * @param param PageEndAt + */ + public void setPageEndAt(long param) { + + // setting primitive attribute tracker to true + localPageEndAtTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageEndAt = param; + } + + /** field for First */ + protected boolean localFirst = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFirstTracker = false; + + public boolean isFirstSpecified() { + return localFirstTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFirst() { + return localFirst; + } + + /** + * Auto generated setter method + * + * @param param First + */ + public void setFirst(boolean param) { + + // setting primitive attribute tracker to true + localFirstTracker = true; + + this.localFirst = param; + } + + /** field for Sortby */ + protected java.lang.String localSortby; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortbyTracker = false; + + public boolean isSortbySpecified() { + return localSortbyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortby() { + return localSortby; + } + + /** + * Auto generated setter method + * + * @param param Sortby + */ + public void setSortby(java.lang.String param) { + localSortbyTracker = param != null; + + this.localSortby = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for BasicQuery */ + protected java.lang.String localBasicQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBasicQueryTracker = false; + + public boolean isBasicQuerySpecified() { + return localBasicQueryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBasicQuery() { + return localBasicQuery; + } + + /** + * Auto generated setter method + * + * @param param BasicQuery + */ + public void setBasicQuery(java.lang.String param) { + localBasicQueryTracker = param != null; + + this.localBasicQuery = param; + } + + /** field for Filters */ + protected java.lang.String localFilters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFiltersTracker = false; + + public boolean isFiltersSpecified() { + return localFiltersTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFilters() { + return localFilters; + } + + /** + * Auto generated setter method + * + * @param param Filters + */ + public void setFilters(java.lang.String param) { + localFiltersTracker = param != null; + + this.localFilters = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetDFUWorkunitsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetDFUWorkunitsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localResultsTracker) { + if (localResults == null) { + throw new org.apache.axis2.databinding.ADBException("results cannot be null!!"); + } + localResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "results"), xmlWriter); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStateReqTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "StateReq", xmlWriter); + + if (localStateReq == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StateReq cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStateReq); + } + + xmlWriter.writeEndElement(); + } + if (localPageSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PageSize", xmlWriter); + + if (localPageSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPrevPageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PrevPage", xmlWriter); + + if (localPrevPage == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PrevPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrevPage)); + } + + xmlWriter.writeEndElement(); + } + if (localNextPageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "NextPage", xmlWriter); + + if (localNextPage == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NextPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNextPage)); + } + + xmlWriter.writeEndElement(); + } + if (localLastPageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "LastPage", xmlWriter); + + if (localLastPage == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LastPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastPage)); + } + + xmlWriter.writeEndElement(); + } + if (localNumWUsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "NumWUs", xmlWriter); + + if (localNumWUs == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NumWUs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumWUs)); + } + + xmlWriter.writeEndElement(); + } + if (localPageStartFromTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PageStartFrom", xmlWriter); + + if (localPageStartFrom == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localPageEndAtTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PageEndAt", xmlWriter); + + if (localPageEndAt == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageEndAt cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageEndAt)); + } + + xmlWriter.writeEndElement(); + } + if (localFirstTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "First", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("First cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFirst)); + } + + xmlWriter.writeEndElement(); + } + if (localSortbyTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Sortby", xmlWriter); + + if (localSortby == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortby); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localBasicQueryTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "BasicQuery", xmlWriter); + + if (localBasicQuery == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BasicQuery cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBasicQuery); + } + + xmlWriter.writeEndElement(); + } + if (localFiltersTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Filters", xmlWriter); + + if (localFilters == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Filters cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFilters); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetDFUWorkunitsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetDFUWorkunitsResponse object = new GetDFUWorkunitsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetDFUWorkunitsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetDFUWorkunitsResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "results") + .equals(reader.getName())) { + + object.setResults( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfDFUWorkunit.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "StateReq") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateReq" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateReq( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PrevPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PrevPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPrevPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NextPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NextPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNextPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "LastPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LastPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLastPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "NumWUs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumWUs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumWUs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageStartFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageStartFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageStartFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PageEndAt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageEndAt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageEndAt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "First") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "First" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFirst( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Sortby") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sortby" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortby( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "BasicQuery") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BasicQuery" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBasicQuery( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Filters") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Filters" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetRemoteTargetsRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetRemoteTargetsRequest.java new file mode 100644 index 000000000..5384e990d --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetRemoteTargetsRequest.java @@ -0,0 +1,315 @@ +/** + * GetRemoteTargetsRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetRemoteTargetsRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetRemoteTargetsRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetRemoteTargetsRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetRemoteTargetsRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetRemoteTargetsRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetRemoteTargetsRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetRemoteTargetsRequest object = new GetRemoteTargetsRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetRemoteTargetsRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetRemoteTargetsRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetRemoteTargetsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetRemoteTargetsResponse.java new file mode 100644 index 000000000..b7912cc05 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetRemoteTargetsResponse.java @@ -0,0 +1,503 @@ +/** + * GetRemoteTargetsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetRemoteTargetsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetRemoteTargetsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetRemoteTargetsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for TargetNames */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray localTargetNames; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetNamesTracker = false; + + public boolean isTargetNamesSpecified() { + return localTargetNamesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray getTargetNames() { + return localTargetNames; + } + + /** + * Auto generated setter method + * + * @param param TargetNames + */ + public void setTargetNames( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray param) { + localTargetNamesTracker = param != null; + + this.localTargetNames = param; + } + + /** field for AllowForeign */ + protected boolean localAllowForeign; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowForeignTracker = false; + + public boolean isAllowForeignSpecified() { + return localAllowForeignTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllowForeign() { + return localAllowForeign; + } + + /** + * Auto generated setter method + * + * @param param AllowForeign + */ + public void setAllowForeign(boolean param) { + + // setting primitive attribute tracker to true + localAllowForeignTracker = true; + + this.localAllowForeign = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetRemoteTargetsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetRemoteTargetsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localTargetNamesTracker) { + if (localTargetNames == null) { + throw new org.apache.axis2.databinding.ADBException("TargetNames cannot be null!!"); + } + localTargetNames.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "TargetNames"), xmlWriter); + } + if (localAllowForeignTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "AllowForeign", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllowForeign cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllowForeign)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetRemoteTargetsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetRemoteTargetsResponse object = new GetRemoteTargetsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetRemoteTargetsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetRemoteTargetsResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "TargetNames") + .equals(reader.getName())) { + + object.setTargetNames( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "AllowForeign") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllowForeign" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllowForeign( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetSprayTargetsRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetSprayTargetsRequest.java index 830c2e444..d7be34289 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetSprayTargetsRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetSprayTargetsRequest.java @@ -1,315 +1,315 @@ -/** - * GetSprayTargetsRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetSprayTargetsRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetSprayTargetsRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetSprayTargetsRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetSprayTargetsRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetSprayTargetsRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetSprayTargetsRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetSprayTargetsRequest object = new GetSprayTargetsRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetSprayTargetsRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetSprayTargetsRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetSprayTargetsRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetSprayTargetsRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetSprayTargetsRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetSprayTargetsRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetSprayTargetsRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetSprayTargetsRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetSprayTargetsRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetSprayTargetsRequest object = new GetSprayTargetsRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetSprayTargetsRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetSprayTargetsRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetSprayTargetsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetSprayTargetsResponse.java index 7f8162d82..bd8cee157 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetSprayTargetsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GetSprayTargetsResponse.java @@ -1,434 +1,434 @@ -/** - * GetSprayTargetsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GetSprayTargetsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetSprayTargetsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "GetSprayTargetsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for GroupNodes */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0 localGroupNodes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGroupNodesTracker = false; - - public boolean isGroupNodesSpecified() { - return localGroupNodesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0 getGroupNodes() { - return localGroupNodes; - } - - /** - * Auto generated setter method - * - * @param param GroupNodes - */ - public void setGroupNodes( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0 param) { - localGroupNodesTracker = param != null; - - this.localGroupNodes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetSprayTargetsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetSprayTargetsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localGroupNodesTracker) { - if (localGroupNodes == null) { - throw new org.apache.axis2.databinding.ADBException("GroupNodes cannot be null!!"); - } - localGroupNodes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNodes"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetSprayTargetsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetSprayTargetsResponse object = new GetSprayTargetsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetSprayTargetsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetSprayTargetsResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNodes") - .equals(reader.getName())) { - - object.setGroupNodes( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetSprayTargetsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GetSprayTargetsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetSprayTargetsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "GetSprayTargetsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for GroupNodes */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0 localGroupNodes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGroupNodesTracker = false; + + public boolean isGroupNodesSpecified() { + return localGroupNodesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0 getGroupNodes() { + return localGroupNodes; + } + + /** + * Auto generated setter method + * + * @param param GroupNodes + */ + public void setGroupNodes( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0 param) { + localGroupNodesTracker = param != null; + + this.localGroupNodes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetSprayTargetsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetSprayTargetsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localGroupNodesTracker) { + if (localGroupNodes == null) { + throw new org.apache.axis2.databinding.ADBException("GroupNodes cannot be null!!"); + } + localGroupNodes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNodes"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetSprayTargetsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetSprayTargetsResponse object = new GetSprayTargetsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetSprayTargetsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetSprayTargetsResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNodes") + .equals(reader.getName())) { + + object.setGroupNodes( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNodes_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GroupNode.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GroupNode.java index cc89581b3..7c97ea87e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GroupNode.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GroupNode.java @@ -1,533 +1,533 @@ -/** - * GroupNode.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GroupNode bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GroupNode implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = GroupNode - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for ClusterType */ - protected java.lang.String localClusterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTypeTracker = false; - - public boolean isClusterTypeSpecified() { - return localClusterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterType() { - return localClusterType; - } - - /** - * Auto generated setter method - * - * @param param ClusterType - */ - public void setClusterType(java.lang.String param) { - localClusterTypeTracker = param != null; - - this.localClusterType = param; - } - - /** field for ReplicateOutputs */ - protected boolean localReplicateOutputs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateOutputsTracker = false; - - public boolean isReplicateOutputsSpecified() { - return localReplicateOutputsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReplicateOutputs() { - return localReplicateOutputs; - } - - /** - * Auto generated setter method - * - * @param param ReplicateOutputs - */ - public void setReplicateOutputs(boolean param) { - - // setting primitive attribute tracker to true - localReplicateOutputsTracker = true; - - this.localReplicateOutputs = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GroupNode", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "GroupNode", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localClusterTypeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ClusterType", xmlWriter); - - if (localClusterType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterType); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateOutputsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ReplicateOutputs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ReplicateOutputs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localReplicateOutputs)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GroupNode parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GroupNode object = new GroupNode(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GroupNode".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GroupNode) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateOutputs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReplicateOutputs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicateOutputs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GroupNode.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GroupNode bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GroupNode implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = GroupNode + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for ClusterType */ + protected java.lang.String localClusterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTypeTracker = false; + + public boolean isClusterTypeSpecified() { + return localClusterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterType() { + return localClusterType; + } + + /** + * Auto generated setter method + * + * @param param ClusterType + */ + public void setClusterType(java.lang.String param) { + localClusterTypeTracker = param != null; + + this.localClusterType = param; + } + + /** field for ReplicateOutputs */ + protected boolean localReplicateOutputs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateOutputsTracker = false; + + public boolean isReplicateOutputsSpecified() { + return localReplicateOutputsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReplicateOutputs() { + return localReplicateOutputs; + } + + /** + * Auto generated setter method + * + * @param param ReplicateOutputs + */ + public void setReplicateOutputs(boolean param) { + + // setting primitive attribute tracker to true + localReplicateOutputsTracker = true; + + this.localReplicateOutputs = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GroupNode", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "GroupNode", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localClusterTypeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ClusterType", xmlWriter); + + if (localClusterType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterType); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateOutputsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ReplicateOutputs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ReplicateOutputs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localReplicateOutputs)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GroupNode parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GroupNode object = new GroupNode(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GroupNode".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GroupNode) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateOutputs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReplicateOutputs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicateOutputs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GroupNodes_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GroupNodes_type0.java index 1b242c2e1..900907adf 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GroupNodes_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/GroupNodes_type0.java @@ -1,452 +1,452 @@ -/** - * GroupNodes_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** GroupNodes_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GroupNodes_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = GroupNodes_type0 - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for GroupNode This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] localGroupNode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGroupNodeTracker = false; - - public boolean isGroupNodeSpecified() { - return localGroupNodeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] getGroupNode() { - return localGroupNode; - } - - /** validate the array for GroupNode */ - protected void validateGroupNode( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] param) {} - - /** - * Auto generated setter method - * - * @param param GroupNode - */ - public void setGroupNode(org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] param) { - - validateGroupNode(param); - - localGroupNodeTracker = param != null; - - this.localGroupNode = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode - */ - public void addGroupNode(org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode param) { - if (localGroupNode == null) { - localGroupNode = new org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] {}; - } - - // update the setting tracker - localGroupNodeTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localGroupNode); - list.add(param); - this.localGroupNode = - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GroupNodes_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GroupNodes_type0", - xmlWriter); - } - } - if (localGroupNodeTracker) { - if (localGroupNode != null) { - for (int i = 0; i < localGroupNode.length; i++) { - if (localGroupNode[i] != null) { - localGroupNode[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNode"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("GroupNode cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GroupNodes_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GroupNodes_type0 object = new GroupNodes_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GroupNodes_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GroupNodes_type0) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNode") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNode") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setGroupNode( - (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GroupNodes_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** GroupNodes_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GroupNodes_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = GroupNodes_type0 + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for GroupNode This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] localGroupNode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGroupNodeTracker = false; + + public boolean isGroupNodeSpecified() { + return localGroupNodeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] getGroupNode() { + return localGroupNode; + } + + /** validate the array for GroupNode */ + protected void validateGroupNode( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] param) {} + + /** + * Auto generated setter method + * + * @param param GroupNode + */ + public void setGroupNode(org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] param) { + + validateGroupNode(param); + + localGroupNodeTracker = param != null; + + this.localGroupNode = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode + */ + public void addGroupNode(org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode param) { + if (localGroupNode == null) { + localGroupNode = new org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[] {}; + } + + // update the setting tracker + localGroupNodeTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localGroupNode); + list.add(param); + this.localGroupNode = + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GroupNodes_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GroupNodes_type0", + xmlWriter); + } + } + if (localGroupNodeTracker) { + if (localGroupNode != null) { + for (int i = 0; i < localGroupNode.length; i++) { + if (localGroupNode[i] != null) { + localGroupNode[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNode"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("GroupNode cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GroupNodes_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GroupNodes_type0 object = new GroupNodes_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GroupNodes_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GroupNodes_type0) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNode") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "GroupNode") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setGroupNode( + (org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.GroupNode.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/OpenSaveRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/OpenSaveRequest.java index f527f5efb..029c5dcea 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/OpenSaveRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/OpenSaveRequest.java @@ -1,738 +1,738 @@ -/** - * OpenSaveRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** OpenSaveRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class OpenSaveRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OpenSaveRequest", "ns1"); - - /** field for Location */ - protected java.lang.String localLocation; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLocationTracker = false; - - public boolean isLocationSpecified() { - return localLocationTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLocation() { - return localLocation; - } - - /** - * Auto generated setter method - * - * @param param Location - */ - public void setLocation(java.lang.String param) { - localLocationTracker = param != null; - - this.localLocation = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for DateTime */ - protected java.lang.String localDateTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDateTimeTracker = false; - - public boolean isDateTimeSpecified() { - return localDateTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDateTime() { - return localDateTime; - } - - /** - * Auto generated setter method - * - * @param param DateTime - */ - public void setDateTime(java.lang.String param) { - localDateTimeTracker = param != null; - - this.localDateTime = param; - } - - /** field for BinaryFile */ - protected boolean localBinaryFile = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBinaryFileTracker = false; - - public boolean isBinaryFileSpecified() { - return localBinaryFileTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getBinaryFile() { - return localBinaryFile; - } - - /** - * Auto generated setter method - * - * @param param BinaryFile - */ - public void setBinaryFile(boolean param) { - - // setting primitive attribute tracker to true - localBinaryFileTracker = true; - - this.localBinaryFile = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":OpenSaveRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "OpenSaveRequest", - xmlWriter); - } - } - if (localLocationTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Location", xmlWriter); - - if (localLocation == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Location cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLocation); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localTypeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localDateTimeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DateTime", xmlWriter); - - if (localDateTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DateTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDateTime); - } - - xmlWriter.writeEndElement(); - } - if (localBinaryFileTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "BinaryFile", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("BinaryFile cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBinaryFile)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static OpenSaveRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - OpenSaveRequest object = new OpenSaveRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"OpenSaveRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (OpenSaveRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Location") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Location" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLocation( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DateTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DateTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDateTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "BinaryFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BinaryFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBinaryFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * OpenSaveRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** OpenSaveRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class OpenSaveRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OpenSaveRequest", "ns1"); + + /** field for Location */ + protected java.lang.String localLocation; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLocationTracker = false; + + public boolean isLocationSpecified() { + return localLocationTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLocation() { + return localLocation; + } + + /** + * Auto generated setter method + * + * @param param Location + */ + public void setLocation(java.lang.String param) { + localLocationTracker = param != null; + + this.localLocation = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for DateTime */ + protected java.lang.String localDateTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDateTimeTracker = false; + + public boolean isDateTimeSpecified() { + return localDateTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDateTime() { + return localDateTime; + } + + /** + * Auto generated setter method + * + * @param param DateTime + */ + public void setDateTime(java.lang.String param) { + localDateTimeTracker = param != null; + + this.localDateTime = param; + } + + /** field for BinaryFile */ + protected boolean localBinaryFile = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBinaryFileTracker = false; + + public boolean isBinaryFileSpecified() { + return localBinaryFileTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getBinaryFile() { + return localBinaryFile; + } + + /** + * Auto generated setter method + * + * @param param BinaryFile + */ + public void setBinaryFile(boolean param) { + + // setting primitive attribute tracker to true + localBinaryFileTracker = true; + + this.localBinaryFile = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":OpenSaveRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "OpenSaveRequest", + xmlWriter); + } + } + if (localLocationTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Location", xmlWriter); + + if (localLocation == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Location cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLocation); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localDateTimeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DateTime", xmlWriter); + + if (localDateTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DateTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDateTime); + } + + xmlWriter.writeEndElement(); + } + if (localBinaryFileTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "BinaryFile", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("BinaryFile cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBinaryFile)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static OpenSaveRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + OpenSaveRequest object = new OpenSaveRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"OpenSaveRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (OpenSaveRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Location") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Location" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLocation( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DateTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DateTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDateTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "BinaryFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BinaryFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBinaryFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/OpenSaveResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/OpenSaveResponse.java index 838ab2bc0..cc5d3cecb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/OpenSaveResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/OpenSaveResponse.java @@ -1,791 +1,791 @@ -/** - * OpenSaveResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** OpenSaveResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class OpenSaveResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OpenSaveResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Location */ - protected java.lang.String localLocation; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLocationTracker = false; - - public boolean isLocationSpecified() { - return localLocationTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLocation() { - return localLocation; - } - - /** - * Auto generated setter method - * - * @param param Location - */ - public void setLocation(java.lang.String param) { - localLocationTracker = param != null; - - this.localLocation = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for DateTime */ - protected java.lang.String localDateTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDateTimeTracker = false; - - public boolean isDateTimeSpecified() { - return localDateTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDateTime() { - return localDateTime; - } - - /** - * Auto generated setter method - * - * @param param DateTime - */ - public void setDateTime(java.lang.String param) { - localDateTimeTracker = param != null; - - this.localDateTime = param; - } - - /** field for Viewable */ - protected boolean localViewable = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localViewableTracker = false; - - public boolean isViewableSpecified() { - return localViewableTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getViewable() { - return localViewable; - } - - /** - * Auto generated setter method - * - * @param param Viewable - */ - public void setViewable(boolean param) { - - // setting primitive attribute tracker to true - localViewableTracker = true; - - this.localViewable = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":OpenSaveResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "OpenSaveResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localLocationTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Location", xmlWriter); - - if (localLocation == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Location cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLocation); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localTypeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localDateTimeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DateTime", xmlWriter); - - if (localDateTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DateTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDateTime); - } - - xmlWriter.writeEndElement(); - } - if (localViewableTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Viewable", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Viewable cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localViewable)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static OpenSaveResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - OpenSaveResponse object = new OpenSaveResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"OpenSaveResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (OpenSaveResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Location") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Location" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLocation( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DateTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DateTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDateTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Viewable") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Viewable" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setViewable( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * OpenSaveResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** OpenSaveResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class OpenSaveResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "OpenSaveResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Location */ + protected java.lang.String localLocation; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLocationTracker = false; + + public boolean isLocationSpecified() { + return localLocationTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLocation() { + return localLocation; + } + + /** + * Auto generated setter method + * + * @param param Location + */ + public void setLocation(java.lang.String param) { + localLocationTracker = param != null; + + this.localLocation = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for DateTime */ + protected java.lang.String localDateTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDateTimeTracker = false; + + public boolean isDateTimeSpecified() { + return localDateTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDateTime() { + return localDateTime; + } + + /** + * Auto generated setter method + * + * @param param DateTime + */ + public void setDateTime(java.lang.String param) { + localDateTimeTracker = param != null; + + this.localDateTime = param; + } + + /** field for Viewable */ + protected boolean localViewable = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localViewableTracker = false; + + public boolean isViewableSpecified() { + return localViewableTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getViewable() { + return localViewable; + } + + /** + * Auto generated setter method + * + * @param param Viewable + */ + public void setViewable(boolean param) { + + // setting primitive attribute tracker to true + localViewableTracker = true; + + this.localViewable = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":OpenSaveResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "OpenSaveResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localLocationTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Location", xmlWriter); + + if (localLocation == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Location cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLocation); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localDateTimeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DateTime", xmlWriter); + + if (localDateTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DateTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDateTime); + } + + xmlWriter.writeEndElement(); + } + if (localViewableTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Viewable", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Viewable cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localViewable)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static OpenSaveResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + OpenSaveResponse object = new OpenSaveResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"OpenSaveResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (OpenSaveResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Location") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Location" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLocation( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DateTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DateTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDateTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Viewable") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Viewable" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setViewable( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/PhysicalFileStruct.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/PhysicalFileStruct.java index ca16ad44a..5c662a46f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/PhysicalFileStruct.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/PhysicalFileStruct.java @@ -1,794 +1,794 @@ -/** - * PhysicalFileStruct.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** PhysicalFileStruct bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class PhysicalFileStruct implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = PhysicalFileStruct - Namespace URI = urn:hpccsystems:ws:filespray - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Server */ - protected java.lang.String localServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTracker = false; - - public boolean isServerSpecified() { - return localServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServer() { - return localServer; - } - - /** - * Auto generated setter method - * - * @param param Server - */ - public void setServer(java.lang.String param) { - localServerTracker = param != null; - - this.localServer = param; - } - - /** field for IsDir */ - protected boolean localIsDir; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsDirTracker = false; - - public boolean isIsDirSpecified() { - return localIsDirTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsDir() { - return localIsDir; - } - - /** - * Auto generated setter method - * - * @param param IsDir - */ - public void setIsDir(boolean param) { - - // setting primitive attribute tracker to true - localIsDirTracker = true; - - this.localIsDir = param; - } - - /** field for Filesize */ - protected long localFilesize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesizeTracker = false; - - public boolean isFilesizeSpecified() { - return localFilesizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getFilesize() { - return localFilesize; - } - - /** - * Auto generated setter method - * - * @param param Filesize - */ - public void setFilesize(long param) { - - // setting primitive attribute tracker to true - localFilesizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localFilesize = param; - } - - /** field for Modifiedtime */ - protected java.lang.String localModifiedtime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModifiedtimeTracker = false; - - public boolean isModifiedtimeSpecified() { - return localModifiedtimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getModifiedtime() { - return localModifiedtime; - } - - /** - * Auto generated setter method - * - * @param param Modifiedtime - */ - public void setModifiedtime(java.lang.String param) { - localModifiedtimeTracker = param != null; - - this.localModifiedtime = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Files */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - localFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesTracker = false; - - public boolean isFilesSpecified() { - return localFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct getFiles() { - return localFiles; - } - - /** - * Auto generated setter method - * - * @param param Files - */ - public void setFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct param) { - localFilesTracker = param != null; - - this.localFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":PhysicalFileStruct", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "PhysicalFileStruct", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "name", xmlWriter); - - 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 (localServerTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Server", xmlWriter); - - if (localServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Server cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServer); - } - - xmlWriter.writeEndElement(); - } - if (localIsDirTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "isDir", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("isDir cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsDir)); - } - - xmlWriter.writeEndElement(); - } - if (localFilesizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "filesize", xmlWriter); - - if (localFilesize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("filesize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFilesize)); - } - - xmlWriter.writeEndElement(); - } - if (localModifiedtimeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "modifiedtime", xmlWriter); - - if (localModifiedtime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("modifiedtime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localModifiedtime); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localFilesTracker) { - if (localFiles == null) { - throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); - } - localFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static PhysicalFileStruct parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - PhysicalFileStruct object = new PhysicalFileStruct(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"PhysicalFileStruct".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (PhysicalFileStruct) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Server") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Server" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "isDir") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "isDir" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsDir( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "filesize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "filesize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilesize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "modifiedtime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "modifiedtime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setModifiedtime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files") - .equals(reader.getName())) { - - object.setFiles( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * PhysicalFileStruct.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** PhysicalFileStruct bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class PhysicalFileStruct implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = PhysicalFileStruct + Namespace URI = urn:hpccsystems:ws:filespray + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Server */ + protected java.lang.String localServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTracker = false; + + public boolean isServerSpecified() { + return localServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServer() { + return localServer; + } + + /** + * Auto generated setter method + * + * @param param Server + */ + public void setServer(java.lang.String param) { + localServerTracker = param != null; + + this.localServer = param; + } + + /** field for IsDir */ + protected boolean localIsDir; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsDirTracker = false; + + public boolean isIsDirSpecified() { + return localIsDirTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsDir() { + return localIsDir; + } + + /** + * Auto generated setter method + * + * @param param IsDir + */ + public void setIsDir(boolean param) { + + // setting primitive attribute tracker to true + localIsDirTracker = true; + + this.localIsDir = param; + } + + /** field for Filesize */ + protected long localFilesize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesizeTracker = false; + + public boolean isFilesizeSpecified() { + return localFilesizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getFilesize() { + return localFilesize; + } + + /** + * Auto generated setter method + * + * @param param Filesize + */ + public void setFilesize(long param) { + + // setting primitive attribute tracker to true + localFilesizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localFilesize = param; + } + + /** field for Modifiedtime */ + protected java.lang.String localModifiedtime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModifiedtimeTracker = false; + + public boolean isModifiedtimeSpecified() { + return localModifiedtimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getModifiedtime() { + return localModifiedtime; + } + + /** + * Auto generated setter method + * + * @param param Modifiedtime + */ + public void setModifiedtime(java.lang.String param) { + localModifiedtimeTracker = param != null; + + this.localModifiedtime = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":PhysicalFileStruct", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "PhysicalFileStruct", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "name", xmlWriter); + + 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 (localServerTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Server", xmlWriter); + + if (localServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Server cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServer); + } + + xmlWriter.writeEndElement(); + } + if (localIsDirTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "isDir", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("isDir cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsDir)); + } + + xmlWriter.writeEndElement(); + } + if (localFilesizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "filesize", xmlWriter); + + if (localFilesize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("filesize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFilesize)); + } + + xmlWriter.writeEndElement(); + } + if (localModifiedtimeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "modifiedtime", xmlWriter); + + if (localModifiedtime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("modifiedtime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localModifiedtime); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static PhysicalFileStruct parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + PhysicalFileStruct object = new PhysicalFileStruct(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"PhysicalFileStruct".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (PhysicalFileStruct) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Server") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Server" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "isDir") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "isDir" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsDir( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "filesize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "filesize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilesize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "modifiedtime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "modifiedtime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setModifiedtime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfPhysicalFileStruct + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ProgressRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ProgressRequest.java index d8404994a..566c4f6e5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ProgressRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ProgressRequest.java @@ -1,396 +1,396 @@ -/** - * ProgressRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ProgressRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ProgressRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressRequest", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ProgressRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ProgressRequest", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ProgressRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ProgressRequest object = new ProgressRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ProgressRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ProgressRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ProgressRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ProgressRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ProgressRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressRequest", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ProgressRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ProgressRequest", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ProgressRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ProgressRequest object = new ProgressRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ProgressRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ProgressRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ProgressResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ProgressResponse.java index fdf5feb48..ff97ded0f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ProgressResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ProgressResponse.java @@ -1,1066 +1,1066 @@ -/** - * ProgressResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ProgressResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ProgressResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for PercentDone */ - protected int localPercentDone; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPercentDoneTracker = false; - - public boolean isPercentDoneSpecified() { - return localPercentDoneTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPercentDone() { - return localPercentDone; - } - - /** - * Auto generated setter method - * - * @param param PercentDone - */ - public void setPercentDone(int param) { - - // setting primitive attribute tracker to true - localPercentDoneTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPercentDone = param; - } - - /** field for SecsLeft */ - protected int localSecsLeft; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSecsLeftTracker = false; - - public boolean isSecsLeftSpecified() { - return localSecsLeftTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSecsLeft() { - return localSecsLeft; - } - - /** - * Auto generated setter method - * - * @param param SecsLeft - */ - public void setSecsLeft(int param) { - - // setting primitive attribute tracker to true - localSecsLeftTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSecsLeft = param; - } - - /** field for KbPerSecAve */ - protected int localKbPerSecAve; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKbPerSecAveTracker = false; - - public boolean isKbPerSecAveSpecified() { - return localKbPerSecAveTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getKbPerSecAve() { - return localKbPerSecAve; - } - - /** - * Auto generated setter method - * - * @param param KbPerSecAve - */ - public void setKbPerSecAve(int param) { - - // setting primitive attribute tracker to true - localKbPerSecAveTracker = param != java.lang.Integer.MIN_VALUE; - - this.localKbPerSecAve = param; - } - - /** field for KbPerSec */ - protected int localKbPerSec; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKbPerSecTracker = false; - - public boolean isKbPerSecSpecified() { - return localKbPerSecTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getKbPerSec() { - return localKbPerSec; - } - - /** - * Auto generated setter method - * - * @param param KbPerSec - */ - public void setKbPerSec(int param) { - - // setting primitive attribute tracker to true - localKbPerSecTracker = param != java.lang.Integer.MIN_VALUE; - - this.localKbPerSec = param; - } - - /** field for SlavesDone */ - protected int localSlavesDone; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSlavesDoneTracker = false; - - public boolean isSlavesDoneSpecified() { - return localSlavesDoneTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSlavesDone() { - return localSlavesDone; - } - - /** - * Auto generated setter method - * - * @param param SlavesDone - */ - public void setSlavesDone(int param) { - - // setting primitive attribute tracker to true - localSlavesDoneTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSlavesDone = param; - } - - /** field for TimeTaken */ - protected java.lang.String localTimeTaken; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeTakenTracker = false; - - public boolean isTimeTakenSpecified() { - return localTimeTakenTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeTaken() { - return localTimeTaken; - } - - /** - * Auto generated setter method - * - * @param param TimeTaken - */ - public void setTimeTaken(java.lang.String param) { - localTimeTakenTracker = param != null; - - this.localTimeTaken = param; - } - - /** field for ProgressMessage */ - protected java.lang.String localProgressMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProgressMessageTracker = false; - - public boolean isProgressMessageSpecified() { - return localProgressMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProgressMessage() { - return localProgressMessage; - } - - /** - * Auto generated setter method - * - * @param param ProgressMessage - */ - public void setProgressMessage(java.lang.String param) { - localProgressMessageTracker = param != null; - - this.localProgressMessage = param; - } - - /** field for SummaryMessage */ - protected java.lang.String localSummaryMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSummaryMessageTracker = false; - - public boolean isSummaryMessageSpecified() { - return localSummaryMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSummaryMessage() { - return localSummaryMessage; - } - - /** - * Auto generated setter method - * - * @param param SummaryMessage - */ - public void setSummaryMessage(java.lang.String param) { - localSummaryMessageTracker = param != null; - - this.localSummaryMessage = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ProgressResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ProgressResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localPercentDoneTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "PercentDone", xmlWriter); - - if (localPercentDone == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PercentDone cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPercentDone)); - } - - xmlWriter.writeEndElement(); - } - if (localSecsLeftTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SecsLeft", xmlWriter); - - if (localSecsLeft == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SecsLeft cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSecsLeft)); - } - - xmlWriter.writeEndElement(); - } - if (localKbPerSecAveTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "KbPerSecAve", xmlWriter); - - if (localKbPerSecAve == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("KbPerSecAve cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKbPerSecAve)); - } - - xmlWriter.writeEndElement(); - } - if (localKbPerSecTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "KbPerSec", xmlWriter); - - if (localKbPerSec == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("KbPerSec cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKbPerSec)); - } - - xmlWriter.writeEndElement(); - } - if (localSlavesDoneTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SlavesDone", xmlWriter); - - if (localSlavesDone == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SlavesDone cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSlavesDone)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeTakenTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "TimeTaken", xmlWriter); - - if (localTimeTaken == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeTaken cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeTaken); - } - - xmlWriter.writeEndElement(); - } - if (localProgressMessageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ProgressMessage", xmlWriter); - - if (localProgressMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ProgressMessage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProgressMessage); - } - - xmlWriter.writeEndElement(); - } - if (localSummaryMessageTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "SummaryMessage", xmlWriter); - - if (localSummaryMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SummaryMessage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSummaryMessage); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ProgressResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ProgressResponse object = new ProgressResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ProgressResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ProgressResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PercentDone") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PercentDone" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPercentDone( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SecsLeft") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SecsLeft" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSecsLeft( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "KbPerSecAve") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "KbPerSecAve" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKbPerSecAve( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "KbPerSec") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "KbPerSec" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKbPerSec( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SlavesDone") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SlavesDone" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSlavesDone( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "TimeTaken") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeTaken" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeTaken( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressMessage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProgressMessage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProgressMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SummaryMessage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SummaryMessage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSummaryMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ProgressResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ProgressResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ProgressResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for PercentDone */ + protected int localPercentDone; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPercentDoneTracker = false; + + public boolean isPercentDoneSpecified() { + return localPercentDoneTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPercentDone() { + return localPercentDone; + } + + /** + * Auto generated setter method + * + * @param param PercentDone + */ + public void setPercentDone(int param) { + + // setting primitive attribute tracker to true + localPercentDoneTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPercentDone = param; + } + + /** field for SecsLeft */ + protected int localSecsLeft; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSecsLeftTracker = false; + + public boolean isSecsLeftSpecified() { + return localSecsLeftTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSecsLeft() { + return localSecsLeft; + } + + /** + * Auto generated setter method + * + * @param param SecsLeft + */ + public void setSecsLeft(int param) { + + // setting primitive attribute tracker to true + localSecsLeftTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSecsLeft = param; + } + + /** field for KbPerSecAve */ + protected int localKbPerSecAve; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKbPerSecAveTracker = false; + + public boolean isKbPerSecAveSpecified() { + return localKbPerSecAveTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getKbPerSecAve() { + return localKbPerSecAve; + } + + /** + * Auto generated setter method + * + * @param param KbPerSecAve + */ + public void setKbPerSecAve(int param) { + + // setting primitive attribute tracker to true + localKbPerSecAveTracker = param != java.lang.Integer.MIN_VALUE; + + this.localKbPerSecAve = param; + } + + /** field for KbPerSec */ + protected int localKbPerSec; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKbPerSecTracker = false; + + public boolean isKbPerSecSpecified() { + return localKbPerSecTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getKbPerSec() { + return localKbPerSec; + } + + /** + * Auto generated setter method + * + * @param param KbPerSec + */ + public void setKbPerSec(int param) { + + // setting primitive attribute tracker to true + localKbPerSecTracker = param != java.lang.Integer.MIN_VALUE; + + this.localKbPerSec = param; + } + + /** field for SlavesDone */ + protected int localSlavesDone; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSlavesDoneTracker = false; + + public boolean isSlavesDoneSpecified() { + return localSlavesDoneTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSlavesDone() { + return localSlavesDone; + } + + /** + * Auto generated setter method + * + * @param param SlavesDone + */ + public void setSlavesDone(int param) { + + // setting primitive attribute tracker to true + localSlavesDoneTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSlavesDone = param; + } + + /** field for TimeTaken */ + protected java.lang.String localTimeTaken; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeTakenTracker = false; + + public boolean isTimeTakenSpecified() { + return localTimeTakenTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeTaken() { + return localTimeTaken; + } + + /** + * Auto generated setter method + * + * @param param TimeTaken + */ + public void setTimeTaken(java.lang.String param) { + localTimeTakenTracker = param != null; + + this.localTimeTaken = param; + } + + /** field for ProgressMessage */ + protected java.lang.String localProgressMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProgressMessageTracker = false; + + public boolean isProgressMessageSpecified() { + return localProgressMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProgressMessage() { + return localProgressMessage; + } + + /** + * Auto generated setter method + * + * @param param ProgressMessage + */ + public void setProgressMessage(java.lang.String param) { + localProgressMessageTracker = param != null; + + this.localProgressMessage = param; + } + + /** field for SummaryMessage */ + protected java.lang.String localSummaryMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSummaryMessageTracker = false; + + public boolean isSummaryMessageSpecified() { + return localSummaryMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSummaryMessage() { + return localSummaryMessage; + } + + /** + * Auto generated setter method + * + * @param param SummaryMessage + */ + public void setSummaryMessage(java.lang.String param) { + localSummaryMessageTracker = param != null; + + this.localSummaryMessage = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ProgressResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ProgressResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localPercentDoneTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "PercentDone", xmlWriter); + + if (localPercentDone == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PercentDone cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPercentDone)); + } + + xmlWriter.writeEndElement(); + } + if (localSecsLeftTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SecsLeft", xmlWriter); + + if (localSecsLeft == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SecsLeft cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSecsLeft)); + } + + xmlWriter.writeEndElement(); + } + if (localKbPerSecAveTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "KbPerSecAve", xmlWriter); + + if (localKbPerSecAve == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("KbPerSecAve cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKbPerSecAve)); + } + + xmlWriter.writeEndElement(); + } + if (localKbPerSecTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "KbPerSec", xmlWriter); + + if (localKbPerSec == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("KbPerSec cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKbPerSec)); + } + + xmlWriter.writeEndElement(); + } + if (localSlavesDoneTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SlavesDone", xmlWriter); + + if (localSlavesDone == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SlavesDone cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSlavesDone)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeTakenTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "TimeTaken", xmlWriter); + + if (localTimeTaken == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeTaken cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeTaken); + } + + xmlWriter.writeEndElement(); + } + if (localProgressMessageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ProgressMessage", xmlWriter); + + if (localProgressMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ProgressMessage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProgressMessage); + } + + xmlWriter.writeEndElement(); + } + if (localSummaryMessageTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "SummaryMessage", xmlWriter); + + if (localSummaryMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SummaryMessage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSummaryMessage); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ProgressResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ProgressResponse object = new ProgressResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ProgressResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ProgressResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "PercentDone") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PercentDone" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPercentDone( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SecsLeft") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SecsLeft" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSecsLeft( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "KbPerSecAve") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "KbPerSecAve" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKbPerSecAve( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "KbPerSec") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "KbPerSec" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKbPerSec( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SlavesDone") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SlavesDone" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSlavesDone( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "TimeTaken") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeTaken" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeTaken( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ProgressMessage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProgressMessage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProgressMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SummaryMessage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SummaryMessage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSummaryMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Rename.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Rename.java index 5261ad0f5..a8f6b2684 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Rename.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Rename.java @@ -1,596 +1,596 @@ -/** - * Rename.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** Rename bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Rename implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Rename", "ns1"); - - /** field for Srcname */ - protected java.lang.String localSrcname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSrcnameTracker = false; - - public boolean isSrcnameSpecified() { - return localSrcnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSrcname() { - return localSrcname; - } - - /** - * Auto generated setter method - * - * @param param Srcname - */ - public void setSrcname(java.lang.String param) { - localSrcnameTracker = param != null; - - this.localSrcname = param; - } - - /** field for Dstname */ - protected java.lang.String localDstname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDstnameTracker = false; - - public boolean isDstnameSpecified() { - return localDstnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDstname() { - return localDstname; - } - - /** - * Auto generated setter method - * - * @param param Dstname - */ - public void setDstname(java.lang.String param) { - localDstnameTracker = param != null; - - this.localDstname = param; - } - - /** field for Overwrite */ - protected boolean localOverwrite; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteTracker = false; - - public boolean isOverwriteSpecified() { - return localOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwrite() { - return localOverwrite; - } - - /** - * Auto generated setter method - * - * @param param Overwrite - */ - public void setOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteTracker = true; - - this.localOverwrite = param; - } - - /** field for DFUServerQueue */ - protected java.lang.String localDFUServerQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerQueueTracker = false; - - public boolean isDFUServerQueueSpecified() { - return localDFUServerQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerQueue() { - return localDFUServerQueue; - } - - /** - * Auto generated setter method - * - * @param param DFUServerQueue - */ - public void setDFUServerQueue(java.lang.String param) { - localDFUServerQueueTracker = param != null; - - this.localDFUServerQueue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Rename", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Rename", xmlWriter); - } - } - if (localSrcnameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "srcname", xmlWriter); - - if (localSrcname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("srcname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSrcname); - } - - xmlWriter.writeEndElement(); - } - if (localDstnameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "dstname", xmlWriter); - - if (localDstname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("dstname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDstname); - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "overwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localDFUServerQueueTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); - - if (localDFUServerQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerQueue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Rename parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - Rename object = new Rename(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Rename".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Rename) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "srcname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSrcname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dstname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "dstname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDstname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "overwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Rename.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** Rename bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Rename implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Rename", "ns1"); + + /** field for Srcname */ + protected java.lang.String localSrcname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSrcnameTracker = false; + + public boolean isSrcnameSpecified() { + return localSrcnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSrcname() { + return localSrcname; + } + + /** + * Auto generated setter method + * + * @param param Srcname + */ + public void setSrcname(java.lang.String param) { + localSrcnameTracker = param != null; + + this.localSrcname = param; + } + + /** field for Dstname */ + protected java.lang.String localDstname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDstnameTracker = false; + + public boolean isDstnameSpecified() { + return localDstnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDstname() { + return localDstname; + } + + /** + * Auto generated setter method + * + * @param param Dstname + */ + public void setDstname(java.lang.String param) { + localDstnameTracker = param != null; + + this.localDstname = param; + } + + /** field for Overwrite */ + protected boolean localOverwrite; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteTracker = false; + + public boolean isOverwriteSpecified() { + return localOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwrite() { + return localOverwrite; + } + + /** + * Auto generated setter method + * + * @param param Overwrite + */ + public void setOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteTracker = true; + + this.localOverwrite = param; + } + + /** field for DFUServerQueue */ + protected java.lang.String localDFUServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerQueueTracker = false; + + public boolean isDFUServerQueueSpecified() { + return localDFUServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerQueue() { + return localDFUServerQueue; + } + + /** + * Auto generated setter method + * + * @param param DFUServerQueue + */ + public void setDFUServerQueue(java.lang.String param) { + localDFUServerQueueTracker = param != null; + + this.localDFUServerQueue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Rename", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Rename", xmlWriter); + } + } + if (localSrcnameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "srcname", xmlWriter); + + if (localSrcname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("srcname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSrcname); + } + + xmlWriter.writeEndElement(); + } + if (localDstnameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "dstname", xmlWriter); + + if (localDstname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("dstname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDstname); + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "overwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localDFUServerQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); + + if (localDFUServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerQueue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Rename parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + Rename object = new Rename(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Rename".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Rename) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "srcname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSrcname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "dstname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "dstname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDstname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "overwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/RenameResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/RenameResponse.java index ac82f88d4..436445c27 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/RenameResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/RenameResponse.java @@ -1,449 +1,449 @@ -/** - * RenameResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** RenameResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RenameResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "RenameResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RenameResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "RenameResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RenameResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RenameResponse object = new RenameResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"RenameResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (RenameResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RenameResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** RenameResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RenameResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "RenameResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RenameResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "RenameResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RenameResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RenameResponse object = new RenameResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"RenameResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (RenameResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Replicate.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Replicate.java index a7b514f7a..208490599 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Replicate.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/Replicate.java @@ -1,739 +1,739 @@ -/** - * Replicate.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** Replicate bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Replicate implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Replicate", "ns1"); - - /** field for SourceLogicalName */ - protected java.lang.String localSourceLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceLogicalNameTracker = false; - - public boolean isSourceLogicalNameSpecified() { - return localSourceLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceLogicalName() { - return localSourceLogicalName; - } - - /** - * Auto generated setter method - * - * @param param SourceLogicalName - */ - public void setSourceLogicalName(java.lang.String param) { - localSourceLogicalNameTracker = param != null; - - this.localSourceLogicalName = param; - } - - /** field for ReplicateOffset */ - protected int localReplicateOffset = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateOffsetTracker = false; - - public boolean isReplicateOffsetSpecified() { - return localReplicateOffsetTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getReplicateOffset() { - return localReplicateOffset; - } - - /** - * Auto generated setter method - * - * @param param ReplicateOffset - */ - public void setReplicateOffset(int param) { - - // setting primitive attribute tracker to true - localReplicateOffsetTracker = param != java.lang.Integer.MIN_VALUE; - - this.localReplicateOffset = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for RepeatLast */ - protected boolean localRepeatLast = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRepeatLastTracker = false; - - public boolean isRepeatLastSpecified() { - return localRepeatLastTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRepeatLast() { - return localRepeatLast; - } - - /** - * Auto generated setter method - * - * @param param RepeatLast - */ - public void setRepeatLast(boolean param) { - - // setting primitive attribute tracker to true - localRepeatLastTracker = true; - - this.localRepeatLast = param; - } - - /** field for OnlyRepeated */ - protected boolean localOnlyRepeated = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnlyRepeatedTracker = false; - - public boolean isOnlyRepeatedSpecified() { - return localOnlyRepeatedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOnlyRepeated() { - return localOnlyRepeated; - } - - /** - * Auto generated setter method - * - * @param param OnlyRepeated - */ - public void setOnlyRepeated(boolean param) { - - // setting primitive attribute tracker to true - localOnlyRepeatedTracker = true; - - this.localOnlyRepeated = param; - } - - /** field for DFUServerQueue */ - protected java.lang.String localDFUServerQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerQueueTracker = false; - - public boolean isDFUServerQueueSpecified() { - return localDFUServerQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerQueue() { - return localDFUServerQueue; - } - - /** - * Auto generated setter method - * - * @param param DFUServerQueue - */ - public void setDFUServerQueue(java.lang.String param) { - localDFUServerQueueTracker = param != null; - - this.localDFUServerQueue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Replicate", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Replicate", xmlWriter); - } - } - if (localSourceLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceLogicalName", xmlWriter); - - if (localSourceLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceLogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateOffsetTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "replicateOffset", xmlWriter); - - if (localReplicateOffset == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("replicateOffset cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicateOffset)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localRepeatLastTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "repeatLast", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("repeatLast cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRepeatLast)); - } - - xmlWriter.writeEndElement(); - } - if (localOnlyRepeatedTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "onlyRepeated", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("onlyRepeated cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyRepeated)); - } - - xmlWriter.writeEndElement(); - } - if (localDFUServerQueueTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); - - if (localDFUServerQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerQueue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Replicate parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Replicate object = new Replicate(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Replicate".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Replicate) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "sourceLogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceLogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicateOffset") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "replicateOffset" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicateOffset( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "repeatLast") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "repeatLast" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRepeatLast( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "onlyRepeated") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "onlyRepeated" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOnlyRepeated( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Replicate.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** Replicate bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Replicate implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Replicate", "ns1"); + + /** field for SourceLogicalName */ + protected java.lang.String localSourceLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceLogicalNameTracker = false; + + public boolean isSourceLogicalNameSpecified() { + return localSourceLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceLogicalName() { + return localSourceLogicalName; + } + + /** + * Auto generated setter method + * + * @param param SourceLogicalName + */ + public void setSourceLogicalName(java.lang.String param) { + localSourceLogicalNameTracker = param != null; + + this.localSourceLogicalName = param; + } + + /** field for ReplicateOffset */ + protected int localReplicateOffset = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateOffsetTracker = false; + + public boolean isReplicateOffsetSpecified() { + return localReplicateOffsetTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getReplicateOffset() { + return localReplicateOffset; + } + + /** + * Auto generated setter method + * + * @param param ReplicateOffset + */ + public void setReplicateOffset(int param) { + + // setting primitive attribute tracker to true + localReplicateOffsetTracker = param != java.lang.Integer.MIN_VALUE; + + this.localReplicateOffset = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for RepeatLast */ + protected boolean localRepeatLast = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRepeatLastTracker = false; + + public boolean isRepeatLastSpecified() { + return localRepeatLastTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRepeatLast() { + return localRepeatLast; + } + + /** + * Auto generated setter method + * + * @param param RepeatLast + */ + public void setRepeatLast(boolean param) { + + // setting primitive attribute tracker to true + localRepeatLastTracker = true; + + this.localRepeatLast = param; + } + + /** field for OnlyRepeated */ + protected boolean localOnlyRepeated = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnlyRepeatedTracker = false; + + public boolean isOnlyRepeatedSpecified() { + return localOnlyRepeatedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOnlyRepeated() { + return localOnlyRepeated; + } + + /** + * Auto generated setter method + * + * @param param OnlyRepeated + */ + public void setOnlyRepeated(boolean param) { + + // setting primitive attribute tracker to true + localOnlyRepeatedTracker = true; + + this.localOnlyRepeated = param; + } + + /** field for DFUServerQueue */ + protected java.lang.String localDFUServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerQueueTracker = false; + + public boolean isDFUServerQueueSpecified() { + return localDFUServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerQueue() { + return localDFUServerQueue; + } + + /** + * Auto generated setter method + * + * @param param DFUServerQueue + */ + public void setDFUServerQueue(java.lang.String param) { + localDFUServerQueueTracker = param != null; + + this.localDFUServerQueue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Replicate", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Replicate", xmlWriter); + } + } + if (localSourceLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceLogicalName", xmlWriter); + + if (localSourceLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceLogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateOffsetTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "replicateOffset", xmlWriter); + + if (localReplicateOffset == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("replicateOffset cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicateOffset)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localRepeatLastTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "repeatLast", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("repeatLast cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRepeatLast)); + } + + xmlWriter.writeEndElement(); + } + if (localOnlyRepeatedTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "onlyRepeated", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("onlyRepeated cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyRepeated)); + } + + xmlWriter.writeEndElement(); + } + if (localDFUServerQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); + + if (localDFUServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerQueue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Replicate parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Replicate object = new Replicate(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Replicate".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Replicate) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "sourceLogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceLogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicateOffset") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "replicateOffset" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicateOffset( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "repeatLast") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "repeatLast" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRepeatLast( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "onlyRepeated") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "onlyRepeated" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOnlyRepeated( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ReplicateResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ReplicateResponse.java index de8c3738b..4e6f1a9d7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ReplicateResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ReplicateResponse.java @@ -1,449 +1,449 @@ -/** - * ReplicateResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ReplicateResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ReplicateResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ReplicateResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ReplicateResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ReplicateResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ReplicateResponse object = new ReplicateResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ReplicateResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ReplicateResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ReplicateResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ReplicateResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ReplicateResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ReplicateResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ReplicateResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ReplicateResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ReplicateResponse object = new ReplicateResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ReplicateResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ReplicateResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ShowResultRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ShowResultRequest.java index 16593132d..c542d2dd0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ShowResultRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ShowResultRequest.java @@ -1,396 +1,396 @@ -/** - * ShowResultRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ShowResultRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ShowResultRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ShowResultRequest", "ns1"); - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ShowResultRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ShowResultRequest", - xmlWriter); - } - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ShowResultRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ShowResultRequest object = new ShowResultRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ShowResultRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ShowResultRequest) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ShowResultRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ShowResultRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ShowResultRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ShowResultRequest", "ns1"); + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ShowResultRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ShowResultRequest", + xmlWriter); + } + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ShowResultRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ShowResultRequest object = new ShowResultRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ShowResultRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ShowResultRequest) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ShowResultResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ShowResultResponse.java index c42ccfc9a..2b231c39e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ShowResultResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/ShowResultResponse.java @@ -1,449 +1,449 @@ -/** - * ShowResultResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** ShowResultResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ShowResultResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ShowResultResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ShowResultResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ShowResultResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ShowResultResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ShowResultResponse object = new ShowResultResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ShowResultResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ShowResultResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ShowResultResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** ShowResultResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ShowResultResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ShowResultResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ShowResultResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ShowResultResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ShowResultResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ShowResultResponse object = new ShowResultResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ShowResultResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ShowResultResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayFixed.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayFixed.java index 1234fe0a8..ae96e7391 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayFixed.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayFixed.java @@ -1,2328 +1,2398 @@ -/** - * SprayFixed.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** SprayFixed bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SprayFixed implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayFixed", "ns1"); - - /** field for SourceIP */ - protected java.lang.String localSourceIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceIPTracker = false; - - public boolean isSourceIPSpecified() { - return localSourceIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceIP() { - return localSourceIP; - } - - /** - * Auto generated setter method - * - * @param param SourceIP - */ - public void setSourceIP(java.lang.String param) { - localSourceIPTracker = param != null; - - this.localSourceIP = param; - } - - /** field for SourcePlane */ - protected java.lang.String localSourcePlane; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourcePlaneTracker = false; - - public boolean isSourcePlaneSpecified() { - return localSourcePlaneTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourcePlane() { - return localSourcePlane; - } - - /** - * Auto generated setter method - * - * @param param SourcePlane - */ - public void setSourcePlane(java.lang.String param) { - localSourcePlaneTracker = param != null; - - this.localSourcePlane = param; - } - - /** field for SourcePath */ - protected java.lang.String localSourcePath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourcePathTracker = false; - - public boolean isSourcePathSpecified() { - return localSourcePathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourcePath() { - return localSourcePath; - } - - /** - * Auto generated setter method - * - * @param param SourcePath - */ - public void setSourcePath(java.lang.String param) { - localSourcePathTracker = param != null; - - this.localSourcePath = param; - } - - /** field for Srcxml */ - protected javax.activation.DataHandler localSrcxml; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSrcxmlTracker = false; - - public boolean isSrcxmlSpecified() { - return localSrcxmlTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getSrcxml() { - return localSrcxml; - } - - /** - * Auto generated setter method - * - * @param param Srcxml - */ - public void setSrcxml(javax.activation.DataHandler param) { - localSrcxmlTracker = param != null; - - this.localSrcxml = param; - } - - /** field for SourceFormat */ - protected java.lang.String localSourceFormat; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceFormatTracker = false; - - public boolean isSourceFormatSpecified() { - return localSourceFormatTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceFormat() { - return localSourceFormat; - } - - /** - * Auto generated setter method - * - * @param param SourceFormat - */ - public void setSourceFormat(java.lang.String param) { - localSourceFormatTracker = param != null; - - this.localSourceFormat = param; - } - - /** field for SourceRecordSize */ - protected int localSourceRecordSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceRecordSizeTracker = false; - - public boolean isSourceRecordSizeSpecified() { - return localSourceRecordSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSourceRecordSize() { - return localSourceRecordSize; - } - - /** - * Auto generated setter method - * - * @param param SourceRecordSize - */ - public void setSourceRecordSize(int param) { - - // setting primitive attribute tracker to true - localSourceRecordSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSourceRecordSize = param; - } - - /** field for DestGroup */ - protected java.lang.String localDestGroup; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestGroupTracker = false; - - public boolean isDestGroupSpecified() { - return localDestGroupTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestGroup() { - return localDestGroup; - } - - /** - * Auto generated setter method - * - * @param param DestGroup - */ - public void setDestGroup(java.lang.String param) { - localDestGroupTracker = param != null; - - this.localDestGroup = param; - } - - /** field for DestLogicalName */ - protected java.lang.String localDestLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestLogicalNameTracker = false; - - public boolean isDestLogicalNameSpecified() { - return localDestLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestLogicalName() { - return localDestLogicalName; - } - - /** - * Auto generated setter method - * - * @param param DestLogicalName - */ - public void setDestLogicalName(java.lang.String param) { - localDestLogicalNameTracker = param != null; - - this.localDestLogicalName = param; - } - - /** field for Overwrite */ - protected boolean localOverwrite; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteTracker = false; - - public boolean isOverwriteSpecified() { - return localOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwrite() { - return localOverwrite; - } - - /** - * Auto generated setter method - * - * @param param Overwrite - */ - public void setOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteTracker = true; - - this.localOverwrite = param; - } - - /** field for Replicate */ - protected boolean localReplicate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateTracker = false; - - public boolean isReplicateSpecified() { - return localReplicateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReplicate() { - return localReplicate; - } - - /** - * Auto generated setter method - * - * @param param Replicate - */ - public void setReplicate(boolean param) { - - // setting primitive attribute tracker to true - localReplicateTracker = true; - - this.localReplicate = param; - } - - /** field for ReplicateOffset */ - protected int localReplicateOffset = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateOffsetTracker = false; - - public boolean isReplicateOffsetSpecified() { - return localReplicateOffsetTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getReplicateOffset() { - return localReplicateOffset; - } - - /** - * Auto generated setter method - * - * @param param ReplicateOffset - */ - public void setReplicateOffset(int param) { - - // setting primitive attribute tracker to true - localReplicateOffsetTracker = param != java.lang.Integer.MIN_VALUE; - - this.localReplicateOffset = param; - } - - /** field for MaxConnections */ - protected int localMaxConnections; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxConnectionsTracker = false; - - public boolean isMaxConnectionsSpecified() { - return localMaxConnectionsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMaxConnections() { - return localMaxConnections; - } - - /** - * Auto generated setter method - * - * @param param MaxConnections - */ - public void setMaxConnections(int param) { - - // setting primitive attribute tracker to true - localMaxConnectionsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMaxConnections = param; - } - - /** field for Throttle */ - protected int localThrottle; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThrottleTracker = false; - - public boolean isThrottleSpecified() { - return localThrottleTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getThrottle() { - return localThrottle; - } - - /** - * Auto generated setter method - * - * @param param Throttle - */ - public void setThrottle(int param) { - - // setting primitive attribute tracker to true - localThrottleTracker = param != java.lang.Integer.MIN_VALUE; - - this.localThrottle = param; - } - - /** field for TransferBufferSize */ - protected int localTransferBufferSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTransferBufferSizeTracker = false; - - public boolean isTransferBufferSizeSpecified() { - return localTransferBufferSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTransferBufferSize() { - return localTransferBufferSize; - } - - /** - * Auto generated setter method - * - * @param param TransferBufferSize - */ - public void setTransferBufferSize(int param) { - - // setting primitive attribute tracker to true - localTransferBufferSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTransferBufferSize = param; - } - - /** field for Prefix */ - protected java.lang.String localPrefix; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPrefixTracker = false; - - public boolean isPrefixSpecified() { - return localPrefixTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPrefix() { - return localPrefix; - } - - /** - * Auto generated setter method - * - * @param param Prefix - */ - public void setPrefix(java.lang.String param) { - localPrefixTracker = param != null; - - this.localPrefix = param; - } - - /** field for Nosplit */ - protected boolean localNosplit = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNosplitTracker = false; - - public boolean isNosplitSpecified() { - return localNosplitTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNosplit() { - return localNosplit; - } - - /** - * Auto generated setter method - * - * @param param Nosplit - */ - public void setNosplit(boolean param) { - - // setting primitive attribute tracker to true - localNosplitTracker = true; - - this.localNosplit = param; - } - - /** field for Norecover */ - protected boolean localNorecover = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNorecoverTracker = false; - - public boolean isNorecoverSpecified() { - return localNorecoverTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNorecover() { - return localNorecover; - } - - /** - * Auto generated setter method - * - * @param param Norecover - */ - public void setNorecover(boolean param) { - - // setting primitive attribute tracker to true - localNorecoverTracker = true; - - this.localNorecover = param; - } - - /** field for Compress */ - protected boolean localCompress = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompressTracker = false; - - public boolean isCompressSpecified() { - return localCompressTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCompress() { - return localCompress; - } - - /** - * Auto generated setter method - * - * @param param Compress - */ - public void setCompress(boolean param) { - - // setting primitive attribute tracker to true - localCompressTracker = true; - - this.localCompress = param; - } - - /** field for Push */ - protected boolean localPush = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPushTracker = false; - - public boolean isPushSpecified() { - return localPushTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPush() { - return localPush; - } - - /** - * Auto generated setter method - * - * @param param Push - */ - public void setPush(boolean param) { - - // setting primitive attribute tracker to true - localPushTracker = true; - - this.localPush = param; - } - - /** field for Pull */ - protected boolean localPull = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPullTracker = false; - - public boolean isPullSpecified() { - return localPullTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPull() { - return localPull; - } - - /** - * Auto generated setter method - * - * @param param Pull - */ - public void setPull(boolean param) { - - // setting primitive attribute tracker to true - localPullTracker = true; - - this.localPull = param; - } - - /** field for NoCommon */ - protected boolean localNoCommon = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoCommonTracker = false; - - public boolean isNoCommonSpecified() { - return localNoCommonTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoCommon() { - return localNoCommon; - } - - /** - * Auto generated setter method - * - * @param param NoCommon - */ - public void setNoCommon(boolean param) { - - // setting primitive attribute tracker to true - localNoCommonTracker = true; - - this.localNoCommon = param; - } - - /** field for Encrypt */ - protected java.lang.String localEncrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEncryptTracker = false; - - public boolean isEncryptSpecified() { - return localEncryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEncrypt() { - return localEncrypt; - } - - /** - * Auto generated setter method - * - * @param param Encrypt - */ - public void setEncrypt(java.lang.String param) { - localEncryptTracker = param != null; - - this.localEncrypt = param; - } - - /** field for Decrypt */ - protected java.lang.String localDecrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDecryptTracker = false; - - public boolean isDecryptSpecified() { - return localDecryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDecrypt() { - return localDecrypt; - } - - /** - * Auto generated setter method - * - * @param param Decrypt - */ - public void setDecrypt(java.lang.String param) { - localDecryptTracker = param != null; - - this.localDecrypt = param; - } - - /** field for Wrap */ - protected boolean localWrap = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWrapTracker = false; - - public boolean isWrapSpecified() { - return localWrapTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getWrap() { - return localWrap; - } - - /** - * Auto generated setter method - * - * @param param Wrap - */ - public void setWrap(boolean param) { - - // setting primitive attribute tracker to true - localWrapTracker = true; - - this.localWrap = param; - } - - /** field for FailIfNoSourceFile */ - protected boolean localFailIfNoSourceFile = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFailIfNoSourceFileTracker = false; - - public boolean isFailIfNoSourceFileSpecified() { - return localFailIfNoSourceFileTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFailIfNoSourceFile() { - return localFailIfNoSourceFile; - } - - /** - * Auto generated setter method - * - * @param param FailIfNoSourceFile - */ - public void setFailIfNoSourceFile(boolean param) { - - // setting primitive attribute tracker to true - localFailIfNoSourceFileTracker = true; - - this.localFailIfNoSourceFile = param; - } - - /** field for RecordStructurePresent */ - protected boolean localRecordStructurePresent = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRecordStructurePresentTracker = false; - - public boolean isRecordStructurePresentSpecified() { - return localRecordStructurePresentTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRecordStructurePresent() { - return localRecordStructurePresent; - } - - /** - * Auto generated setter method - * - * @param param RecordStructurePresent - */ - public void setRecordStructurePresent(boolean param) { - - // setting primitive attribute tracker to true - localRecordStructurePresentTracker = true; - - this.localRecordStructurePresent = param; - } - - /** field for QuotedTerminator */ - protected boolean localQuotedTerminator = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuotedTerminatorTracker = false; - - public boolean isQuotedTerminatorSpecified() { - return localQuotedTerminatorTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getQuotedTerminator() { - return localQuotedTerminator; - } - - /** - * Auto generated setter method - * - * @param param QuotedTerminator - */ - public void setQuotedTerminator(boolean param) { - - // setting primitive attribute tracker to true - localQuotedTerminatorTracker = true; - - this.localQuotedTerminator = param; - } - - /** field for ExpireDays */ - protected int localExpireDays; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExpireDaysTracker = false; - - public boolean isExpireDaysSpecified() { - return localExpireDaysTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getExpireDays() { - return localExpireDays; - } - - /** - * Auto generated setter method - * - * @param param ExpireDays - */ - public void setExpireDays(int param) { - - // setting primitive attribute tracker to true - localExpireDaysTracker = param != java.lang.Integer.MIN_VALUE; - - this.localExpireDays = param; - } - - /** field for DFUServerQueue */ - protected java.lang.String localDFUServerQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerQueueTracker = false; - - public boolean isDFUServerQueueSpecified() { - return localDFUServerQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerQueue() { - return localDFUServerQueue; - } - - /** - * Auto generated setter method - * - * @param param DFUServerQueue - */ - public void setDFUServerQueue(java.lang.String param) { - localDFUServerQueueTracker = param != null; - - this.localDFUServerQueue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SprayFixed", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SprayFixed", xmlWriter); - } - } - if (localSourceIPTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceIP", xmlWriter); - - if (localSourceIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceIP); - } - - xmlWriter.writeEndElement(); - } - if (localSourcePlaneTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourcePlane", xmlWriter); - - if (localSourcePlane == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourcePlane cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourcePlane); - } - - xmlWriter.writeEndElement(); - } - if (localSourcePathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourcePath", xmlWriter); - - if (localSourcePath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourcePath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourcePath); - } - - xmlWriter.writeEndElement(); - } - if (localSrcxmlTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "srcxml", xmlWriter); - - if (localSrcxml != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localSrcxml, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for srcxml", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - if (localSourceFormatTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceFormat", xmlWriter); - - if (localSourceFormat == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceFormat cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceFormat); - } - - xmlWriter.writeEndElement(); - } - if (localSourceRecordSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceRecordSize", xmlWriter); - - if (localSourceRecordSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("sourceRecordSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSourceRecordSize)); - } - - xmlWriter.writeEndElement(); - } - if (localDestGroupTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destGroup", xmlWriter); - - if (localDestGroup == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destGroup cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestGroup); - } - - xmlWriter.writeEndElement(); - } - if (localDestLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destLogicalName", xmlWriter); - - if (localDestLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destLogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "overwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "replicate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("replicate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateOffsetTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ReplicateOffset", xmlWriter); - - if (localReplicateOffset == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ReplicateOffset cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicateOffset)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxConnectionsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "maxConnections", xmlWriter); - - if (localMaxConnections == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("maxConnections cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxConnections)); - } - - xmlWriter.writeEndElement(); - } - if (localThrottleTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "throttle", xmlWriter); - - if (localThrottle == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("throttle cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThrottle)); - } - - xmlWriter.writeEndElement(); - } - if (localTransferBufferSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "transferBufferSize", xmlWriter); - - if (localTransferBufferSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("transferBufferSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTransferBufferSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPrefixTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "prefix", xmlWriter); - - if (localPrefix == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("prefix cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPrefix); - } - - xmlWriter.writeEndElement(); - } - if (localNosplitTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "nosplit", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("nosplit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNosplit)); - } - - xmlWriter.writeEndElement(); - } - if (localNorecoverTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "norecover", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("norecover cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNorecover)); - } - - xmlWriter.writeEndElement(); - } - if (localCompressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "compress", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("compress cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); - } - - xmlWriter.writeEndElement(); - } - if (localPushTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "push", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("push cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPush)); - } - - xmlWriter.writeEndElement(); - } - if (localPullTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "pull", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("pull cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPull)); - } - - xmlWriter.writeEndElement(); - } - if (localNoCommonTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "noCommon", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("noCommon cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoCommon)); - } - - xmlWriter.writeEndElement(); - } - if (localEncryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "encrypt", xmlWriter); - - if (localEncrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEncrypt); - } - - xmlWriter.writeEndElement(); - } - if (localDecryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "decrypt", xmlWriter); - - if (localDecrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDecrypt); - } - - xmlWriter.writeEndElement(); - } - if (localWrapTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wrap", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("wrap cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWrap)); - } - - xmlWriter.writeEndElement(); - } - if (localFailIfNoSourceFileTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "failIfNoSourceFile", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("failIfNoSourceFile cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localFailIfNoSourceFile)); - } - - xmlWriter.writeEndElement(); - } - if (localRecordStructurePresentTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "recordStructurePresent", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "recordStructurePresent cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localRecordStructurePresent)); - } - - xmlWriter.writeEndElement(); - } - if (localQuotedTerminatorTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "quotedTerminator", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("quotedTerminator cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localQuotedTerminator)); - } - - xmlWriter.writeEndElement(); - } - if (localExpireDaysTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "expireDays", xmlWriter); - - if (localExpireDays == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("expireDays cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpireDays)); - } - - xmlWriter.writeEndElement(); - } - if (localDFUServerQueueTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); - - if (localDFUServerQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerQueue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SprayFixed parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SprayFixed object = new SprayFixed(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SprayFixed".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SprayFixed) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourcePlane") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourcePlane" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourcePlane( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourcePath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourcePath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourcePath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcxml") - .equals(reader.getName())) { - - object.setSrcxml( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceFormat") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceFormat" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceFormat( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceRecordSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceRecordSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceRecordSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroup") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destGroup" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestGroup( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destLogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destLogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "overwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "replicate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateOffset") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReplicateOffset" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicateOffset( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "maxConnections") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "maxConnections" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxConnections( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "throttle") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "throttle" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThrottle( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "transferBufferSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "transferBufferSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTransferBufferSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "prefix") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "prefix" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPrefix( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "nosplit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "nosplit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNosplit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "norecover") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "norecover" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNorecover( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "compress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "compress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "push") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "push" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPush( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "pull") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "pull" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPull( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "noCommon") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "noCommon" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoCommon( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "encrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEncrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "decrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDecrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wrap") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wrap" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWrap( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "failIfNoSourceFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "failIfNoSourceFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFailIfNoSourceFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "recordStructurePresent") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "recordStructurePresent" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRecordStructurePresent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "quotedTerminator") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "quotedTerminator" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuotedTerminator( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "expireDays") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "expireDays" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setExpireDays( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SprayFixed.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** SprayFixed bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SprayFixed implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayFixed", "ns1"); + + /** field for SourceIP */ + protected java.lang.String localSourceIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceIPTracker = false; + + public boolean isSourceIPSpecified() { + return localSourceIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceIP() { + return localSourceIP; + } + + /** + * Auto generated setter method + * + * @param param SourceIP + */ + public void setSourceIP(java.lang.String param) { + localSourceIPTracker = param != null; + + this.localSourceIP = param; + } + + /** field for SourcePlane */ + protected java.lang.String localSourcePlane; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourcePlaneTracker = false; + + public boolean isSourcePlaneSpecified() { + return localSourcePlaneTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourcePlane() { + return localSourcePlane; + } + + /** + * Auto generated setter method + * + * @param param SourcePlane + */ + public void setSourcePlane(java.lang.String param) { + localSourcePlaneTracker = param != null; + + this.localSourcePlane = param; + } + + /** field for SourcePath */ + protected java.lang.String localSourcePath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourcePathTracker = false; + + public boolean isSourcePathSpecified() { + return localSourcePathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourcePath() { + return localSourcePath; + } + + /** + * Auto generated setter method + * + * @param param SourcePath + */ + public void setSourcePath(java.lang.String param) { + localSourcePathTracker = param != null; + + this.localSourcePath = param; + } + + /** field for Srcxml */ + protected javax.activation.DataHandler localSrcxml; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSrcxmlTracker = false; + + public boolean isSrcxmlSpecified() { + return localSrcxmlTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getSrcxml() { + return localSrcxml; + } + + /** + * Auto generated setter method + * + * @param param Srcxml + */ + public void setSrcxml(javax.activation.DataHandler param) { + localSrcxmlTracker = param != null; + + this.localSrcxml = param; + } + + /** field for SourceFormat */ + protected java.lang.String localSourceFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceFormatTracker = false; + + public boolean isSourceFormatSpecified() { + return localSourceFormatTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceFormat() { + return localSourceFormat; + } + + /** + * Auto generated setter method + * + * @param param SourceFormat + */ + public void setSourceFormat(java.lang.String param) { + localSourceFormatTracker = param != null; + + this.localSourceFormat = param; + } + + /** field for SourceRecordSize */ + protected int localSourceRecordSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceRecordSizeTracker = false; + + public boolean isSourceRecordSizeSpecified() { + return localSourceRecordSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSourceRecordSize() { + return localSourceRecordSize; + } + + /** + * Auto generated setter method + * + * @param param SourceRecordSize + */ + public void setSourceRecordSize(int param) { + + // setting primitive attribute tracker to true + localSourceRecordSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSourceRecordSize = param; + } + + /** field for DestGroup */ + protected java.lang.String localDestGroup; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestGroupTracker = false; + + public boolean isDestGroupSpecified() { + return localDestGroupTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestGroup() { + return localDestGroup; + } + + /** + * Auto generated setter method + * + * @param param DestGroup + */ + public void setDestGroup(java.lang.String param) { + localDestGroupTracker = param != null; + + this.localDestGroup = param; + } + + /** field for DestLogicalName */ + protected java.lang.String localDestLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestLogicalNameTracker = false; + + public boolean isDestLogicalNameSpecified() { + return localDestLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestLogicalName() { + return localDestLogicalName; + } + + /** + * Auto generated setter method + * + * @param param DestLogicalName + */ + public void setDestLogicalName(java.lang.String param) { + localDestLogicalNameTracker = param != null; + + this.localDestLogicalName = param; + } + + /** field for DestNumParts */ + protected int localDestNumParts = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestNumPartsTracker = false; + + public boolean isDestNumPartsSpecified() { + return localDestNumPartsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDestNumParts() { + return localDestNumParts; + } + + /** + * Auto generated setter method + * + * @param param DestNumParts + */ + public void setDestNumParts(int param) { + + // setting primitive attribute tracker to true + localDestNumPartsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDestNumParts = param; + } + + /** field for Overwrite */ + protected boolean localOverwrite; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteTracker = false; + + public boolean isOverwriteSpecified() { + return localOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwrite() { + return localOverwrite; + } + + /** + * Auto generated setter method + * + * @param param Overwrite + */ + public void setOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteTracker = true; + + this.localOverwrite = param; + } + + /** field for Replicate */ + protected boolean localReplicate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateTracker = false; + + public boolean isReplicateSpecified() { + return localReplicateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReplicate() { + return localReplicate; + } + + /** + * Auto generated setter method + * + * @param param Replicate + */ + public void setReplicate(boolean param) { + + // setting primitive attribute tracker to true + localReplicateTracker = true; + + this.localReplicate = param; + } + + /** field for ReplicateOffset */ + protected int localReplicateOffset = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateOffsetTracker = false; + + public boolean isReplicateOffsetSpecified() { + return localReplicateOffsetTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getReplicateOffset() { + return localReplicateOffset; + } + + /** + * Auto generated setter method + * + * @param param ReplicateOffset + */ + public void setReplicateOffset(int param) { + + // setting primitive attribute tracker to true + localReplicateOffsetTracker = param != java.lang.Integer.MIN_VALUE; + + this.localReplicateOffset = param; + } + + /** field for MaxConnections */ + protected int localMaxConnections; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxConnectionsTracker = false; + + public boolean isMaxConnectionsSpecified() { + return localMaxConnectionsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMaxConnections() { + return localMaxConnections; + } + + /** + * Auto generated setter method + * + * @param param MaxConnections + */ + public void setMaxConnections(int param) { + + // setting primitive attribute tracker to true + localMaxConnectionsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMaxConnections = param; + } + + /** field for Throttle */ + protected int localThrottle; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThrottleTracker = false; + + public boolean isThrottleSpecified() { + return localThrottleTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getThrottle() { + return localThrottle; + } + + /** + * Auto generated setter method + * + * @param param Throttle + */ + public void setThrottle(int param) { + + // setting primitive attribute tracker to true + localThrottleTracker = param != java.lang.Integer.MIN_VALUE; + + this.localThrottle = param; + } + + /** field for TransferBufferSize */ + protected int localTransferBufferSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTransferBufferSizeTracker = false; + + public boolean isTransferBufferSizeSpecified() { + return localTransferBufferSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTransferBufferSize() { + return localTransferBufferSize; + } + + /** + * Auto generated setter method + * + * @param param TransferBufferSize + */ + public void setTransferBufferSize(int param) { + + // setting primitive attribute tracker to true + localTransferBufferSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTransferBufferSize = param; + } + + /** field for Prefix */ + protected java.lang.String localPrefix; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPrefixTracker = false; + + public boolean isPrefixSpecified() { + return localPrefixTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPrefix() { + return localPrefix; + } + + /** + * Auto generated setter method + * + * @param param Prefix + */ + public void setPrefix(java.lang.String param) { + localPrefixTracker = param != null; + + this.localPrefix = param; + } + + /** field for Nosplit */ + protected boolean localNosplit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNosplitTracker = false; + + public boolean isNosplitSpecified() { + return localNosplitTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNosplit() { + return localNosplit; + } + + /** + * Auto generated setter method + * + * @param param Nosplit + */ + public void setNosplit(boolean param) { + + // setting primitive attribute tracker to true + localNosplitTracker = true; + + this.localNosplit = param; + } + + /** field for Norecover */ + protected boolean localNorecover = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNorecoverTracker = false; + + public boolean isNorecoverSpecified() { + return localNorecoverTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNorecover() { + return localNorecover; + } + + /** + * Auto generated setter method + * + * @param param Norecover + */ + public void setNorecover(boolean param) { + + // setting primitive attribute tracker to true + localNorecoverTracker = true; + + this.localNorecover = param; + } + + /** field for Compress */ + protected boolean localCompress = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompressTracker = false; + + public boolean isCompressSpecified() { + return localCompressTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCompress() { + return localCompress; + } + + /** + * Auto generated setter method + * + * @param param Compress + */ + public void setCompress(boolean param) { + + // setting primitive attribute tracker to true + localCompressTracker = true; + + this.localCompress = param; + } + + /** field for Push */ + protected boolean localPush = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPushTracker = false; + + public boolean isPushSpecified() { + return localPushTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPush() { + return localPush; + } + + /** + * Auto generated setter method + * + * @param param Push + */ + public void setPush(boolean param) { + + // setting primitive attribute tracker to true + localPushTracker = true; + + this.localPush = param; + } + + /** field for Pull */ + protected boolean localPull = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPullTracker = false; + + public boolean isPullSpecified() { + return localPullTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPull() { + return localPull; + } + + /** + * Auto generated setter method + * + * @param param Pull + */ + public void setPull(boolean param) { + + // setting primitive attribute tracker to true + localPullTracker = true; + + this.localPull = param; + } + + /** field for NoCommon */ + protected boolean localNoCommon = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoCommonTracker = false; + + public boolean isNoCommonSpecified() { + return localNoCommonTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoCommon() { + return localNoCommon; + } + + /** + * Auto generated setter method + * + * @param param NoCommon + */ + public void setNoCommon(boolean param) { + + // setting primitive attribute tracker to true + localNoCommonTracker = true; + + this.localNoCommon = param; + } + + /** field for Encrypt */ + protected java.lang.String localEncrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEncryptTracker = false; + + public boolean isEncryptSpecified() { + return localEncryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEncrypt() { + return localEncrypt; + } + + /** + * Auto generated setter method + * + * @param param Encrypt + */ + public void setEncrypt(java.lang.String param) { + localEncryptTracker = param != null; + + this.localEncrypt = param; + } + + /** field for Decrypt */ + protected java.lang.String localDecrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDecryptTracker = false; + + public boolean isDecryptSpecified() { + return localDecryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDecrypt() { + return localDecrypt; + } + + /** + * Auto generated setter method + * + * @param param Decrypt + */ + public void setDecrypt(java.lang.String param) { + localDecryptTracker = param != null; + + this.localDecrypt = param; + } + + /** field for Wrap */ + protected boolean localWrap = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWrapTracker = false; + + public boolean isWrapSpecified() { + return localWrapTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getWrap() { + return localWrap; + } + + /** + * Auto generated setter method + * + * @param param Wrap + */ + public void setWrap(boolean param) { + + // setting primitive attribute tracker to true + localWrapTracker = true; + + this.localWrap = param; + } + + /** field for FailIfNoSourceFile */ + protected boolean localFailIfNoSourceFile = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFailIfNoSourceFileTracker = false; + + public boolean isFailIfNoSourceFileSpecified() { + return localFailIfNoSourceFileTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFailIfNoSourceFile() { + return localFailIfNoSourceFile; + } + + /** + * Auto generated setter method + * + * @param param FailIfNoSourceFile + */ + public void setFailIfNoSourceFile(boolean param) { + + // setting primitive attribute tracker to true + localFailIfNoSourceFileTracker = true; + + this.localFailIfNoSourceFile = param; + } + + /** field for RecordStructurePresent */ + protected boolean localRecordStructurePresent = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRecordStructurePresentTracker = false; + + public boolean isRecordStructurePresentSpecified() { + return localRecordStructurePresentTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRecordStructurePresent() { + return localRecordStructurePresent; + } + + /** + * Auto generated setter method + * + * @param param RecordStructurePresent + */ + public void setRecordStructurePresent(boolean param) { + + // setting primitive attribute tracker to true + localRecordStructurePresentTracker = true; + + this.localRecordStructurePresent = param; + } + + /** field for QuotedTerminator */ + protected boolean localQuotedTerminator = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuotedTerminatorTracker = false; + + public boolean isQuotedTerminatorSpecified() { + return localQuotedTerminatorTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getQuotedTerminator() { + return localQuotedTerminator; + } + + /** + * Auto generated setter method + * + * @param param QuotedTerminator + */ + public void setQuotedTerminator(boolean param) { + + // setting primitive attribute tracker to true + localQuotedTerminatorTracker = true; + + this.localQuotedTerminator = param; + } + + /** field for ExpireDays */ + protected int localExpireDays; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExpireDaysTracker = false; + + public boolean isExpireDaysSpecified() { + return localExpireDaysTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getExpireDays() { + return localExpireDays; + } + + /** + * Auto generated setter method + * + * @param param ExpireDays + */ + public void setExpireDays(int param) { + + // setting primitive attribute tracker to true + localExpireDaysTracker = param != java.lang.Integer.MIN_VALUE; + + this.localExpireDays = param; + } + + /** field for DFUServerQueue */ + protected java.lang.String localDFUServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerQueueTracker = false; + + public boolean isDFUServerQueueSpecified() { + return localDFUServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerQueue() { + return localDFUServerQueue; + } + + /** + * Auto generated setter method + * + * @param param DFUServerQueue + */ + public void setDFUServerQueue(java.lang.String param) { + localDFUServerQueueTracker = param != null; + + this.localDFUServerQueue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SprayFixed", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SprayFixed", xmlWriter); + } + } + if (localSourceIPTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceIP", xmlWriter); + + if (localSourceIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceIP); + } + + xmlWriter.writeEndElement(); + } + if (localSourcePlaneTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourcePlane", xmlWriter); + + if (localSourcePlane == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourcePlane cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourcePlane); + } + + xmlWriter.writeEndElement(); + } + if (localSourcePathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourcePath", xmlWriter); + + if (localSourcePath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourcePath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourcePath); + } + + xmlWriter.writeEndElement(); + } + if (localSrcxmlTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "srcxml", xmlWriter); + + if (localSrcxml != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localSrcxml, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for srcxml", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + if (localSourceFormatTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceFormat", xmlWriter); + + if (localSourceFormat == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceFormat cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceFormat); + } + + xmlWriter.writeEndElement(); + } + if (localSourceRecordSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceRecordSize", xmlWriter); + + if (localSourceRecordSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("sourceRecordSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSourceRecordSize)); + } + + xmlWriter.writeEndElement(); + } + if (localDestGroupTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destGroup", xmlWriter); + + if (localDestGroup == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destGroup cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestGroup); + } + + xmlWriter.writeEndElement(); + } + if (localDestLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destLogicalName", xmlWriter); + + if (localDestLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destLogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localDestNumPartsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destNumParts", xmlWriter); + + if (localDestNumParts == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("destNumParts cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDestNumParts)); + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "overwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "replicate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("replicate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateOffsetTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ReplicateOffset", xmlWriter); + + if (localReplicateOffset == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ReplicateOffset cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicateOffset)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxConnectionsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "maxConnections", xmlWriter); + + if (localMaxConnections == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("maxConnections cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxConnections)); + } + + xmlWriter.writeEndElement(); + } + if (localThrottleTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "throttle", xmlWriter); + + if (localThrottle == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("throttle cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThrottle)); + } + + xmlWriter.writeEndElement(); + } + if (localTransferBufferSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "transferBufferSize", xmlWriter); + + if (localTransferBufferSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("transferBufferSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTransferBufferSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPrefixTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "prefix", xmlWriter); + + if (localPrefix == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("prefix cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPrefix); + } + + xmlWriter.writeEndElement(); + } + if (localNosplitTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "nosplit", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("nosplit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNosplit)); + } + + xmlWriter.writeEndElement(); + } + if (localNorecoverTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "norecover", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("norecover cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNorecover)); + } + + xmlWriter.writeEndElement(); + } + if (localCompressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "compress", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("compress cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); + } + + xmlWriter.writeEndElement(); + } + if (localPushTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "push", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("push cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPush)); + } + + xmlWriter.writeEndElement(); + } + if (localPullTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "pull", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("pull cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPull)); + } + + xmlWriter.writeEndElement(); + } + if (localNoCommonTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "noCommon", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("noCommon cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoCommon)); + } + + xmlWriter.writeEndElement(); + } + if (localEncryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "encrypt", xmlWriter); + + if (localEncrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEncrypt); + } + + xmlWriter.writeEndElement(); + } + if (localDecryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "decrypt", xmlWriter); + + if (localDecrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDecrypt); + } + + xmlWriter.writeEndElement(); + } + if (localWrapTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wrap", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("wrap cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWrap)); + } + + xmlWriter.writeEndElement(); + } + if (localFailIfNoSourceFileTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "failIfNoSourceFile", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("failIfNoSourceFile cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localFailIfNoSourceFile)); + } + + xmlWriter.writeEndElement(); + } + if (localRecordStructurePresentTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "recordStructurePresent", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "recordStructurePresent cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localRecordStructurePresent)); + } + + xmlWriter.writeEndElement(); + } + if (localQuotedTerminatorTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "quotedTerminator", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("quotedTerminator cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localQuotedTerminator)); + } + + xmlWriter.writeEndElement(); + } + if (localExpireDaysTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "expireDays", xmlWriter); + + if (localExpireDays == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("expireDays cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpireDays)); + } + + xmlWriter.writeEndElement(); + } + if (localDFUServerQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); + + if (localDFUServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerQueue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SprayFixed parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SprayFixed object = new SprayFixed(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SprayFixed".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SprayFixed) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourcePlane") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourcePlane" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourcePlane( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourcePath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourcePath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourcePath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcxml") + .equals(reader.getName())) { + + object.setSrcxml( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceFormat") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceFormat" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceFormat( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceRecordSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceRecordSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceRecordSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroup") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destGroup" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestGroup( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destLogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destLogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destNumParts") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destNumParts" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestNumParts( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "overwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "replicate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateOffset") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReplicateOffset" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicateOffset( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "maxConnections") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "maxConnections" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxConnections( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "throttle") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "throttle" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThrottle( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "transferBufferSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "transferBufferSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTransferBufferSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "prefix") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "prefix" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPrefix( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "nosplit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "nosplit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNosplit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "norecover") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "norecover" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNorecover( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "compress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "compress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "push") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "push" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPush( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "pull") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "pull" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPull( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "noCommon") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "noCommon" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoCommon( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "encrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEncrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "decrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDecrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wrap") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wrap" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWrap( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "failIfNoSourceFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "failIfNoSourceFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFailIfNoSourceFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "recordStructurePresent") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "recordStructurePresent" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRecordStructurePresent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "quotedTerminator") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "quotedTerminator" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuotedTerminator( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "expireDays") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "expireDays" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setExpireDays( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayFixedResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayFixedResponse.java index 5a6f581a0..5985b42f2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayFixedResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayFixedResponse.java @@ -1,449 +1,449 @@ -/** - * SprayFixedResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** SprayFixedResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SprayFixedResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayFixedResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SprayFixedResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SprayFixedResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SprayFixedResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SprayFixedResponse object = new SprayFixedResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SprayFixedResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SprayFixedResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SprayFixedResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** SprayFixedResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SprayFixedResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayFixedResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SprayFixedResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SprayFixedResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SprayFixedResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SprayFixedResponse object = new SprayFixedResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SprayFixedResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SprayFixedResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayResponse.java index d2640e2ca..3d40cc5e9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayResponse.java @@ -1,445 +1,445 @@ -/** - * SprayResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** SprayResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SprayResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SprayResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SprayResponse", xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SprayResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SprayResponse object = new SprayResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SprayResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SprayResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SprayResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** SprayResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SprayResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SprayResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SprayResponse", xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SprayResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SprayResponse object = new SprayResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SprayResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SprayResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayVariable.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayVariable.java index a152eea9b..da85f0007 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayVariable.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SprayVariable.java @@ -1,2949 +1,3019 @@ -/** - * SprayVariable.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** SprayVariable bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SprayVariable implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayVariable", "ns1"); - - /** field for SourceIP */ - protected java.lang.String localSourceIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceIPTracker = false; - - public boolean isSourceIPSpecified() { - return localSourceIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceIP() { - return localSourceIP; - } - - /** - * Auto generated setter method - * - * @param param SourceIP - */ - public void setSourceIP(java.lang.String param) { - localSourceIPTracker = param != null; - - this.localSourceIP = param; - } - - /** field for SourcePlane */ - protected java.lang.String localSourcePlane; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourcePlaneTracker = false; - - public boolean isSourcePlaneSpecified() { - return localSourcePlaneTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourcePlane() { - return localSourcePlane; - } - - /** - * Auto generated setter method - * - * @param param SourcePlane - */ - public void setSourcePlane(java.lang.String param) { - localSourcePlaneTracker = param != null; - - this.localSourcePlane = param; - } - - /** field for SourcePath */ - protected java.lang.String localSourcePath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourcePathTracker = false; - - public boolean isSourcePathSpecified() { - return localSourcePathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourcePath() { - return localSourcePath; - } - - /** - * Auto generated setter method - * - * @param param SourcePath - */ - public void setSourcePath(java.lang.String param) { - localSourcePathTracker = param != null; - - this.localSourcePath = param; - } - - /** field for Srcxml */ - protected javax.activation.DataHandler localSrcxml; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSrcxmlTracker = false; - - public boolean isSrcxmlSpecified() { - return localSrcxmlTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getSrcxml() { - return localSrcxml; - } - - /** - * Auto generated setter method - * - * @param param Srcxml - */ - public void setSrcxml(javax.activation.DataHandler param) { - localSrcxmlTracker = param != null; - - this.localSrcxml = param; - } - - /** field for SourceMaxRecordSize */ - protected int localSourceMaxRecordSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceMaxRecordSizeTracker = false; - - public boolean isSourceMaxRecordSizeSpecified() { - return localSourceMaxRecordSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSourceMaxRecordSize() { - return localSourceMaxRecordSize; - } - - /** - * Auto generated setter method - * - * @param param SourceMaxRecordSize - */ - public void setSourceMaxRecordSize(int param) { - - // setting primitive attribute tracker to true - localSourceMaxRecordSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSourceMaxRecordSize = param; - } - - /** field for SourceFormat */ - protected int localSourceFormat; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceFormatTracker = false; - - public boolean isSourceFormatSpecified() { - return localSourceFormatTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSourceFormat() { - return localSourceFormat; - } - - /** - * Auto generated setter method - * - * @param param SourceFormat - */ - public void setSourceFormat(int param) { - - // setting primitive attribute tracker to true - localSourceFormatTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSourceFormat = param; - } - - /** field for NoSourceCsvSeparator */ - protected boolean localNoSourceCsvSeparator = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoSourceCsvSeparatorTracker = false; - - public boolean isNoSourceCsvSeparatorSpecified() { - return localNoSourceCsvSeparatorTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoSourceCsvSeparator() { - return localNoSourceCsvSeparator; - } - - /** - * Auto generated setter method - * - * @param param NoSourceCsvSeparator - */ - public void setNoSourceCsvSeparator(boolean param) { - - // setting primitive attribute tracker to true - localNoSourceCsvSeparatorTracker = true; - - this.localNoSourceCsvSeparator = param; - } - - /** field for SourceCsvSeparate */ - protected java.lang.String localSourceCsvSeparate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceCsvSeparateTracker = false; - - public boolean isSourceCsvSeparateSpecified() { - return localSourceCsvSeparateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceCsvSeparate() { - return localSourceCsvSeparate; - } - - /** - * Auto generated setter method - * - * @param param SourceCsvSeparate - */ - public void setSourceCsvSeparate(java.lang.String param) { - localSourceCsvSeparateTracker = param != null; - - this.localSourceCsvSeparate = param; - } - - /** field for SourceCsvTerminate */ - protected java.lang.String localSourceCsvTerminate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceCsvTerminateTracker = false; - - public boolean isSourceCsvTerminateSpecified() { - return localSourceCsvTerminateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceCsvTerminate() { - return localSourceCsvTerminate; - } - - /** - * Auto generated setter method - * - * @param param SourceCsvTerminate - */ - public void setSourceCsvTerminate(java.lang.String param) { - localSourceCsvTerminateTracker = param != null; - - this.localSourceCsvTerminate = param; - } - - /** field for SourceCsvQuote */ - protected java.lang.String localSourceCsvQuote; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceCsvQuoteTracker = false; - - public boolean isSourceCsvQuoteSpecified() { - return localSourceCsvQuoteTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceCsvQuote() { - return localSourceCsvQuote; - } - - /** - * Auto generated setter method - * - * @param param SourceCsvQuote - */ - public void setSourceCsvQuote(java.lang.String param) { - localSourceCsvQuoteTracker = param != null; - - this.localSourceCsvQuote = param; - } - - /** field for SourceCsvEscape */ - protected java.lang.String localSourceCsvEscape; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceCsvEscapeTracker = false; - - public boolean isSourceCsvEscapeSpecified() { - return localSourceCsvEscapeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceCsvEscape() { - return localSourceCsvEscape; - } - - /** - * Auto generated setter method - * - * @param param SourceCsvEscape - */ - public void setSourceCsvEscape(java.lang.String param) { - localSourceCsvEscapeTracker = param != null; - - this.localSourceCsvEscape = param; - } - - /** field for SourceRowTag */ - protected java.lang.String localSourceRowTag; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceRowTagTracker = false; - - public boolean isSourceRowTagSpecified() { - return localSourceRowTagTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceRowTag() { - return localSourceRowTag; - } - - /** - * Auto generated setter method - * - * @param param SourceRowTag - */ - public void setSourceRowTag(java.lang.String param) { - localSourceRowTagTracker = param != null; - - this.localSourceRowTag = param; - } - - /** field for DestGroup */ - protected java.lang.String localDestGroup; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestGroupTracker = false; - - public boolean isDestGroupSpecified() { - return localDestGroupTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestGroup() { - return localDestGroup; - } - - /** - * Auto generated setter method - * - * @param param DestGroup - */ - public void setDestGroup(java.lang.String param) { - localDestGroupTracker = param != null; - - this.localDestGroup = param; - } - - /** field for DestLogicalName */ - protected java.lang.String localDestLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestLogicalNameTracker = false; - - public boolean isDestLogicalNameSpecified() { - return localDestLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestLogicalName() { - return localDestLogicalName; - } - - /** - * Auto generated setter method - * - * @param param DestLogicalName - */ - public void setDestLogicalName(java.lang.String param) { - localDestLogicalNameTracker = param != null; - - this.localDestLogicalName = param; - } - - /** field for Overwrite */ - protected boolean localOverwrite; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteTracker = false; - - public boolean isOverwriteSpecified() { - return localOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwrite() { - return localOverwrite; - } - - /** - * Auto generated setter method - * - * @param param Overwrite - */ - public void setOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteTracker = true; - - this.localOverwrite = param; - } - - /** field for Replicate */ - protected boolean localReplicate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateTracker = false; - - public boolean isReplicateSpecified() { - return localReplicateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReplicate() { - return localReplicate; - } - - /** - * Auto generated setter method - * - * @param param Replicate - */ - public void setReplicate(boolean param) { - - // setting primitive attribute tracker to true - localReplicateTracker = true; - - this.localReplicate = param; - } - - /** field for ReplicateOffset */ - protected int localReplicateOffset = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateOffsetTracker = false; - - public boolean isReplicateOffsetSpecified() { - return localReplicateOffsetTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getReplicateOffset() { - return localReplicateOffset; - } - - /** - * Auto generated setter method - * - * @param param ReplicateOffset - */ - public void setReplicateOffset(int param) { - - // setting primitive attribute tracker to true - localReplicateOffsetTracker = param != java.lang.Integer.MIN_VALUE; - - this.localReplicateOffset = param; - } - - /** field for MaxConnections */ - protected int localMaxConnections; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxConnectionsTracker = false; - - public boolean isMaxConnectionsSpecified() { - return localMaxConnectionsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMaxConnections() { - return localMaxConnections; - } - - /** - * Auto generated setter method - * - * @param param MaxConnections - */ - public void setMaxConnections(int param) { - - // setting primitive attribute tracker to true - localMaxConnectionsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMaxConnections = param; - } - - /** field for Throttle */ - protected int localThrottle; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThrottleTracker = false; - - public boolean isThrottleSpecified() { - return localThrottleTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getThrottle() { - return localThrottle; - } - - /** - * Auto generated setter method - * - * @param param Throttle - */ - public void setThrottle(int param) { - - // setting primitive attribute tracker to true - localThrottleTracker = param != java.lang.Integer.MIN_VALUE; - - this.localThrottle = param; - } - - /** field for TransferBufferSize */ - protected int localTransferBufferSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTransferBufferSizeTracker = false; - - public boolean isTransferBufferSizeSpecified() { - return localTransferBufferSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTransferBufferSize() { - return localTransferBufferSize; - } - - /** - * Auto generated setter method - * - * @param param TransferBufferSize - */ - public void setTransferBufferSize(int param) { - - // setting primitive attribute tracker to true - localTransferBufferSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTransferBufferSize = param; - } - - /** field for Prefix */ - protected java.lang.String localPrefix; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPrefixTracker = false; - - public boolean isPrefixSpecified() { - return localPrefixTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPrefix() { - return localPrefix; - } - - /** - * Auto generated setter method - * - * @param param Prefix - */ - public void setPrefix(java.lang.String param) { - localPrefixTracker = param != null; - - this.localPrefix = param; - } - - /** field for Nosplit */ - protected boolean localNosplit = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNosplitTracker = false; - - public boolean isNosplitSpecified() { - return localNosplitTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNosplit() { - return localNosplit; - } - - /** - * Auto generated setter method - * - * @param param Nosplit - */ - public void setNosplit(boolean param) { - - // setting primitive attribute tracker to true - localNosplitTracker = true; - - this.localNosplit = param; - } - - /** field for Norecover */ - protected boolean localNorecover = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNorecoverTracker = false; - - public boolean isNorecoverSpecified() { - return localNorecoverTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNorecover() { - return localNorecover; - } - - /** - * Auto generated setter method - * - * @param param Norecover - */ - public void setNorecover(boolean param) { - - // setting primitive attribute tracker to true - localNorecoverTracker = true; - - this.localNorecover = param; - } - - /** field for Compress */ - protected boolean localCompress = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompressTracker = false; - - public boolean isCompressSpecified() { - return localCompressTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCompress() { - return localCompress; - } - - /** - * Auto generated setter method - * - * @param param Compress - */ - public void setCompress(boolean param) { - - // setting primitive attribute tracker to true - localCompressTracker = true; - - this.localCompress = param; - } - - /** field for Push */ - protected boolean localPush = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPushTracker = false; - - public boolean isPushSpecified() { - return localPushTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPush() { - return localPush; - } - - /** - * Auto generated setter method - * - * @param param Push - */ - public void setPush(boolean param) { - - // setting primitive attribute tracker to true - localPushTracker = true; - - this.localPush = param; - } - - /** field for Pull */ - protected boolean localPull = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPullTracker = false; - - public boolean isPullSpecified() { - return localPullTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPull() { - return localPull; - } - - /** - * Auto generated setter method - * - * @param param Pull - */ - public void setPull(boolean param) { - - // setting primitive attribute tracker to true - localPullTracker = true; - - this.localPull = param; - } - - /** field for NoCommon */ - protected boolean localNoCommon = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoCommonTracker = false; - - public boolean isNoCommonSpecified() { - return localNoCommonTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoCommon() { - return localNoCommon; - } - - /** - * Auto generated setter method - * - * @param param NoCommon - */ - public void setNoCommon(boolean param) { - - // setting primitive attribute tracker to true - localNoCommonTracker = true; - - this.localNoCommon = param; - } - - /** field for Encrypt */ - protected java.lang.String localEncrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEncryptTracker = false; - - public boolean isEncryptSpecified() { - return localEncryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEncrypt() { - return localEncrypt; - } - - /** - * Auto generated setter method - * - * @param param Encrypt - */ - public void setEncrypt(java.lang.String param) { - localEncryptTracker = param != null; - - this.localEncrypt = param; - } - - /** field for Decrypt */ - protected java.lang.String localDecrypt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDecryptTracker = false; - - public boolean isDecryptSpecified() { - return localDecryptTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDecrypt() { - return localDecrypt; - } - - /** - * Auto generated setter method - * - * @param param Decrypt - */ - public void setDecrypt(java.lang.String param) { - localDecryptTracker = param != null; - - this.localDecrypt = param; - } - - /** field for FailIfNoSourceFile */ - protected boolean localFailIfNoSourceFile = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFailIfNoSourceFileTracker = false; - - public boolean isFailIfNoSourceFileSpecified() { - return localFailIfNoSourceFileTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFailIfNoSourceFile() { - return localFailIfNoSourceFile; - } - - /** - * Auto generated setter method - * - * @param param FailIfNoSourceFile - */ - public void setFailIfNoSourceFile(boolean param) { - - // setting primitive attribute tracker to true - localFailIfNoSourceFileTracker = true; - - this.localFailIfNoSourceFile = param; - } - - /** field for RecordStructurePresent */ - protected boolean localRecordStructurePresent = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRecordStructurePresentTracker = false; - - public boolean isRecordStructurePresentSpecified() { - return localRecordStructurePresentTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRecordStructurePresent() { - return localRecordStructurePresent; - } - - /** - * Auto generated setter method - * - * @param param RecordStructurePresent - */ - public void setRecordStructurePresent(boolean param) { - - // setting primitive attribute tracker to true - localRecordStructurePresentTracker = true; - - this.localRecordStructurePresent = param; - } - - /** field for QuotedTerminator */ - protected boolean localQuotedTerminator = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuotedTerminatorTracker = false; - - public boolean isQuotedTerminatorSpecified() { - return localQuotedTerminatorTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getQuotedTerminator() { - return localQuotedTerminator; - } - - /** - * Auto generated setter method - * - * @param param QuotedTerminator - */ - public void setQuotedTerminator(boolean param) { - - // setting primitive attribute tracker to true - localQuotedTerminatorTracker = true; - - this.localQuotedTerminator = param; - } - - /** field for SourceRowPath */ - protected java.lang.String localSourceRowPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceRowPathTracker = false; - - public boolean isSourceRowPathSpecified() { - return localSourceRowPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceRowPath() { - return localSourceRowPath; - } - - /** - * Auto generated setter method - * - * @param param SourceRowPath - */ - public void setSourceRowPath(java.lang.String param) { - localSourceRowPathTracker = param != null; - - this.localSourceRowPath = param; - } - - /** field for IsJSON */ - protected boolean localIsJSON = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsJSONTracker = false; - - public boolean isIsJSONSpecified() { - return localIsJSONTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsJSON() { - return localIsJSON; - } - - /** - * Auto generated setter method - * - * @param param IsJSON - */ - public void setIsJSON(boolean param) { - - // setting primitive attribute tracker to true - localIsJSONTracker = true; - - this.localIsJSON = param; - } - - /** field for ExpireDays */ - protected int localExpireDays; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExpireDaysTracker = false; - - public boolean isExpireDaysSpecified() { - return localExpireDaysTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getExpireDays() { - return localExpireDays; - } - - /** - * Auto generated setter method - * - * @param param ExpireDays - */ - public void setExpireDays(int param) { - - // setting primitive attribute tracker to true - localExpireDaysTracker = param != java.lang.Integer.MIN_VALUE; - - this.localExpireDays = param; - } - - /** field for DFUServerQueue */ - protected java.lang.String localDFUServerQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUServerQueueTracker = false; - - public boolean isDFUServerQueueSpecified() { - return localDFUServerQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUServerQueue() { - return localDFUServerQueue; - } - - /** - * Auto generated setter method - * - * @param param DFUServerQueue - */ - public void setDFUServerQueue(java.lang.String param) { - localDFUServerQueueTracker = param != null; - - this.localDFUServerQueue = param; - } - - /** field for SrcUsername */ - protected java.lang.String localSrcUsername; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSrcUsernameTracker = false; - - public boolean isSrcUsernameSpecified() { - return localSrcUsernameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSrcUsername() { - return localSrcUsername; - } - - /** - * Auto generated setter method - * - * @param param SrcUsername - */ - public void setSrcUsername(java.lang.String param) { - localSrcUsernameTracker = param != null; - - this.localSrcUsername = param; - } - - /** field for SrcPassword */ - protected java.lang.String localSrcPassword; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSrcPasswordTracker = false; - - public boolean isSrcPasswordSpecified() { - return localSrcPasswordTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSrcPassword() { - return localSrcPassword; - } - - /** - * Auto generated setter method - * - * @param param SrcPassword - */ - public void setSrcPassword(java.lang.String param) { - localSrcPasswordTracker = param != null; - - this.localSrcPassword = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SprayVariable", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SprayVariable", xmlWriter); - } - } - if (localSourceIPTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceIP", xmlWriter); - - if (localSourceIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceIP); - } - - xmlWriter.writeEndElement(); - } - if (localSourcePlaneTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourcePlane", xmlWriter); - - if (localSourcePlane == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourcePlane cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourcePlane); - } - - xmlWriter.writeEndElement(); - } - if (localSourcePathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourcePath", xmlWriter); - - if (localSourcePath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourcePath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourcePath); - } - - xmlWriter.writeEndElement(); - } - if (localSrcxmlTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "srcxml", xmlWriter); - - if (localSrcxml != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localSrcxml, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for srcxml", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - if (localSourceMaxRecordSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceMaxRecordSize", xmlWriter); - - if (localSourceMaxRecordSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("sourceMaxRecordSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSourceMaxRecordSize)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceFormatTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceFormat", xmlWriter); - - if (localSourceFormat == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("sourceFormat cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceFormat)); - } - - xmlWriter.writeEndElement(); - } - if (localNoSourceCsvSeparatorTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "NoSourceCsvSeparator", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "NoSourceCsvSeparator cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localNoSourceCsvSeparator)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceCsvSeparateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceCsvSeparate", xmlWriter); - - if (localSourceCsvSeparate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceCsvSeparate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceCsvSeparate); - } - - xmlWriter.writeEndElement(); - } - if (localSourceCsvTerminateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceCsvTerminate", xmlWriter); - - if (localSourceCsvTerminate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceCsvTerminate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceCsvTerminate); - } - - xmlWriter.writeEndElement(); - } - if (localSourceCsvQuoteTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceCsvQuote", xmlWriter); - - if (localSourceCsvQuote == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceCsvQuote cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceCsvQuote); - } - - xmlWriter.writeEndElement(); - } - if (localSourceCsvEscapeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceCsvEscape", xmlWriter); - - if (localSourceCsvEscape == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceCsvEscape cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceCsvEscape); - } - - xmlWriter.writeEndElement(); - } - if (localSourceRowTagTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceRowTag", xmlWriter); - - if (localSourceRowTag == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceRowTag cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceRowTag); - } - - xmlWriter.writeEndElement(); - } - if (localDestGroupTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destGroup", xmlWriter); - - if (localDestGroup == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destGroup cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestGroup); - } - - xmlWriter.writeEndElement(); - } - if (localDestLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "destLogicalName", xmlWriter); - - if (localDestLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("destLogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "overwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "replicate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("replicate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateOffsetTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ReplicateOffset", xmlWriter); - - if (localReplicateOffset == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ReplicateOffset cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicateOffset)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxConnectionsTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "maxConnections", xmlWriter); - - if (localMaxConnections == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("maxConnections cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxConnections)); - } - - xmlWriter.writeEndElement(); - } - if (localThrottleTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "throttle", xmlWriter); - - if (localThrottle == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("throttle cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThrottle)); - } - - xmlWriter.writeEndElement(); - } - if (localTransferBufferSizeTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "transferBufferSize", xmlWriter); - - if (localTransferBufferSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("transferBufferSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTransferBufferSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPrefixTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "prefix", xmlWriter); - - if (localPrefix == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("prefix cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPrefix); - } - - xmlWriter.writeEndElement(); - } - if (localNosplitTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "nosplit", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("nosplit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNosplit)); - } - - xmlWriter.writeEndElement(); - } - if (localNorecoverTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "norecover", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("norecover cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNorecover)); - } - - xmlWriter.writeEndElement(); - } - if (localCompressTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "compress", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("compress cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); - } - - xmlWriter.writeEndElement(); - } - if (localPushTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "push", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("push cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPush)); - } - - xmlWriter.writeEndElement(); - } - if (localPullTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "pull", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("pull cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPull)); - } - - xmlWriter.writeEndElement(); - } - if (localNoCommonTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "noCommon", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("noCommon cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoCommon)); - } - - xmlWriter.writeEndElement(); - } - if (localEncryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "encrypt", xmlWriter); - - if (localEncrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEncrypt); - } - - xmlWriter.writeEndElement(); - } - if (localDecryptTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "decrypt", xmlWriter); - - if (localDecrypt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDecrypt); - } - - xmlWriter.writeEndElement(); - } - if (localFailIfNoSourceFileTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "failIfNoSourceFile", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("failIfNoSourceFile cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localFailIfNoSourceFile)); - } - - xmlWriter.writeEndElement(); - } - if (localRecordStructurePresentTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "recordStructurePresent", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "recordStructurePresent cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localRecordStructurePresent)); - } - - xmlWriter.writeEndElement(); - } - if (localQuotedTerminatorTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "quotedTerminator", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("quotedTerminator cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localQuotedTerminator)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceRowPathTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "sourceRowPath", xmlWriter); - - if (localSourceRowPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("sourceRowPath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceRowPath); - } - - xmlWriter.writeEndElement(); - } - if (localIsJSONTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "isJSON", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("isJSON cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsJSON)); - } - - xmlWriter.writeEndElement(); - } - if (localExpireDaysTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "expireDays", xmlWriter); - - if (localExpireDays == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("expireDays cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpireDays)); - } - - xmlWriter.writeEndElement(); - } - if (localDFUServerQueueTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); - - if (localDFUServerQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUServerQueue); - } - - xmlWriter.writeEndElement(); - } - if (localSrcUsernameTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "srcUsername", xmlWriter); - - if (localSrcUsername == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("srcUsername cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSrcUsername); - } - - xmlWriter.writeEndElement(); - } - if (localSrcPasswordTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "srcPassword", xmlWriter); - - if (localSrcPassword == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("srcPassword cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSrcPassword); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SprayVariable parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SprayVariable object = new SprayVariable(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SprayVariable".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SprayVariable) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourcePlane") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourcePlane" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourcePlane( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourcePath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourcePath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourcePath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcxml") - .equals(reader.getName())) { - - object.setSrcxml( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "sourceMaxRecordSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceMaxRecordSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceMaxRecordSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceFormat") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceFormat" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceFormat( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "NoSourceCsvSeparator") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoSourceCsvSeparator" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoSourceCsvSeparator( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "sourceCsvSeparate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceCsvSeparate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceCsvSeparate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "sourceCsvTerminate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceCsvTerminate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceCsvTerminate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceCsvQuote") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceCsvQuote" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceCsvQuote( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceCsvEscape") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceCsvEscape" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceCsvEscape( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceRowTag") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceRowTag" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceRowTag( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroup") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destGroup" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestGroup( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destLogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "destLogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "overwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "replicate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateOffset") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReplicateOffset" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicateOffset( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "maxConnections") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "maxConnections" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxConnections( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "throttle") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "throttle" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThrottle( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "transferBufferSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "transferBufferSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTransferBufferSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "prefix") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "prefix" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPrefix( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "nosplit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "nosplit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNosplit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "norecover") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "norecover" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNorecover( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "compress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "compress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "push") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "push" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPush( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "pull") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "pull" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPull( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "noCommon") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "noCommon" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoCommon( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "encrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEncrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "decrypt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDecrypt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "failIfNoSourceFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "failIfNoSourceFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFailIfNoSourceFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "recordStructurePresent") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "recordStructurePresent" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRecordStructurePresent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "quotedTerminator") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "quotedTerminator" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuotedTerminator( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceRowPath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "sourceRowPath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceRowPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "isJSON") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "isJSON" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsJSON( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "expireDays") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "expireDays" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setExpireDays( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUServerQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUServerQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcUsername") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "srcUsername" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSrcUsername( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcPassword") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "srcPassword" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSrcPassword( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SprayVariable.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** SprayVariable bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SprayVariable implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SprayVariable", "ns1"); + + /** field for SourceIP */ + protected java.lang.String localSourceIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceIPTracker = false; + + public boolean isSourceIPSpecified() { + return localSourceIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceIP() { + return localSourceIP; + } + + /** + * Auto generated setter method + * + * @param param SourceIP + */ + public void setSourceIP(java.lang.String param) { + localSourceIPTracker = param != null; + + this.localSourceIP = param; + } + + /** field for SourcePlane */ + protected java.lang.String localSourcePlane; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourcePlaneTracker = false; + + public boolean isSourcePlaneSpecified() { + return localSourcePlaneTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourcePlane() { + return localSourcePlane; + } + + /** + * Auto generated setter method + * + * @param param SourcePlane + */ + public void setSourcePlane(java.lang.String param) { + localSourcePlaneTracker = param != null; + + this.localSourcePlane = param; + } + + /** field for SourcePath */ + protected java.lang.String localSourcePath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourcePathTracker = false; + + public boolean isSourcePathSpecified() { + return localSourcePathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourcePath() { + return localSourcePath; + } + + /** + * Auto generated setter method + * + * @param param SourcePath + */ + public void setSourcePath(java.lang.String param) { + localSourcePathTracker = param != null; + + this.localSourcePath = param; + } + + /** field for Srcxml */ + protected javax.activation.DataHandler localSrcxml; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSrcxmlTracker = false; + + public boolean isSrcxmlSpecified() { + return localSrcxmlTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getSrcxml() { + return localSrcxml; + } + + /** + * Auto generated setter method + * + * @param param Srcxml + */ + public void setSrcxml(javax.activation.DataHandler param) { + localSrcxmlTracker = param != null; + + this.localSrcxml = param; + } + + /** field for SourceMaxRecordSize */ + protected int localSourceMaxRecordSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceMaxRecordSizeTracker = false; + + public boolean isSourceMaxRecordSizeSpecified() { + return localSourceMaxRecordSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSourceMaxRecordSize() { + return localSourceMaxRecordSize; + } + + /** + * Auto generated setter method + * + * @param param SourceMaxRecordSize + */ + public void setSourceMaxRecordSize(int param) { + + // setting primitive attribute tracker to true + localSourceMaxRecordSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSourceMaxRecordSize = param; + } + + /** field for SourceFormat */ + protected int localSourceFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceFormatTracker = false; + + public boolean isSourceFormatSpecified() { + return localSourceFormatTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSourceFormat() { + return localSourceFormat; + } + + /** + * Auto generated setter method + * + * @param param SourceFormat + */ + public void setSourceFormat(int param) { + + // setting primitive attribute tracker to true + localSourceFormatTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSourceFormat = param; + } + + /** field for NoSourceCsvSeparator */ + protected boolean localNoSourceCsvSeparator = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoSourceCsvSeparatorTracker = false; + + public boolean isNoSourceCsvSeparatorSpecified() { + return localNoSourceCsvSeparatorTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoSourceCsvSeparator() { + return localNoSourceCsvSeparator; + } + + /** + * Auto generated setter method + * + * @param param NoSourceCsvSeparator + */ + public void setNoSourceCsvSeparator(boolean param) { + + // setting primitive attribute tracker to true + localNoSourceCsvSeparatorTracker = true; + + this.localNoSourceCsvSeparator = param; + } + + /** field for SourceCsvSeparate */ + protected java.lang.String localSourceCsvSeparate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceCsvSeparateTracker = false; + + public boolean isSourceCsvSeparateSpecified() { + return localSourceCsvSeparateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceCsvSeparate() { + return localSourceCsvSeparate; + } + + /** + * Auto generated setter method + * + * @param param SourceCsvSeparate + */ + public void setSourceCsvSeparate(java.lang.String param) { + localSourceCsvSeparateTracker = param != null; + + this.localSourceCsvSeparate = param; + } + + /** field for SourceCsvTerminate */ + protected java.lang.String localSourceCsvTerminate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceCsvTerminateTracker = false; + + public boolean isSourceCsvTerminateSpecified() { + return localSourceCsvTerminateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceCsvTerminate() { + return localSourceCsvTerminate; + } + + /** + * Auto generated setter method + * + * @param param SourceCsvTerminate + */ + public void setSourceCsvTerminate(java.lang.String param) { + localSourceCsvTerminateTracker = param != null; + + this.localSourceCsvTerminate = param; + } + + /** field for SourceCsvQuote */ + protected java.lang.String localSourceCsvQuote; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceCsvQuoteTracker = false; + + public boolean isSourceCsvQuoteSpecified() { + return localSourceCsvQuoteTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceCsvQuote() { + return localSourceCsvQuote; + } + + /** + * Auto generated setter method + * + * @param param SourceCsvQuote + */ + public void setSourceCsvQuote(java.lang.String param) { + localSourceCsvQuoteTracker = param != null; + + this.localSourceCsvQuote = param; + } + + /** field for SourceCsvEscape */ + protected java.lang.String localSourceCsvEscape; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceCsvEscapeTracker = false; + + public boolean isSourceCsvEscapeSpecified() { + return localSourceCsvEscapeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceCsvEscape() { + return localSourceCsvEscape; + } + + /** + * Auto generated setter method + * + * @param param SourceCsvEscape + */ + public void setSourceCsvEscape(java.lang.String param) { + localSourceCsvEscapeTracker = param != null; + + this.localSourceCsvEscape = param; + } + + /** field for SourceRowTag */ + protected java.lang.String localSourceRowTag; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceRowTagTracker = false; + + public boolean isSourceRowTagSpecified() { + return localSourceRowTagTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceRowTag() { + return localSourceRowTag; + } + + /** + * Auto generated setter method + * + * @param param SourceRowTag + */ + public void setSourceRowTag(java.lang.String param) { + localSourceRowTagTracker = param != null; + + this.localSourceRowTag = param; + } + + /** field for DestGroup */ + protected java.lang.String localDestGroup; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestGroupTracker = false; + + public boolean isDestGroupSpecified() { + return localDestGroupTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestGroup() { + return localDestGroup; + } + + /** + * Auto generated setter method + * + * @param param DestGroup + */ + public void setDestGroup(java.lang.String param) { + localDestGroupTracker = param != null; + + this.localDestGroup = param; + } + + /** field for DestLogicalName */ + protected java.lang.String localDestLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestLogicalNameTracker = false; + + public boolean isDestLogicalNameSpecified() { + return localDestLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestLogicalName() { + return localDestLogicalName; + } + + /** + * Auto generated setter method + * + * @param param DestLogicalName + */ + public void setDestLogicalName(java.lang.String param) { + localDestLogicalNameTracker = param != null; + + this.localDestLogicalName = param; + } + + /** field for DestNumParts */ + protected int localDestNumParts = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestNumPartsTracker = false; + + public boolean isDestNumPartsSpecified() { + return localDestNumPartsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDestNumParts() { + return localDestNumParts; + } + + /** + * Auto generated setter method + * + * @param param DestNumParts + */ + public void setDestNumParts(int param) { + + // setting primitive attribute tracker to true + localDestNumPartsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDestNumParts = param; + } + + /** field for Overwrite */ + protected boolean localOverwrite; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteTracker = false; + + public boolean isOverwriteSpecified() { + return localOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwrite() { + return localOverwrite; + } + + /** + * Auto generated setter method + * + * @param param Overwrite + */ + public void setOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteTracker = true; + + this.localOverwrite = param; + } + + /** field for Replicate */ + protected boolean localReplicate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateTracker = false; + + public boolean isReplicateSpecified() { + return localReplicateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReplicate() { + return localReplicate; + } + + /** + * Auto generated setter method + * + * @param param Replicate + */ + public void setReplicate(boolean param) { + + // setting primitive attribute tracker to true + localReplicateTracker = true; + + this.localReplicate = param; + } + + /** field for ReplicateOffset */ + protected int localReplicateOffset = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateOffsetTracker = false; + + public boolean isReplicateOffsetSpecified() { + return localReplicateOffsetTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getReplicateOffset() { + return localReplicateOffset; + } + + /** + * Auto generated setter method + * + * @param param ReplicateOffset + */ + public void setReplicateOffset(int param) { + + // setting primitive attribute tracker to true + localReplicateOffsetTracker = param != java.lang.Integer.MIN_VALUE; + + this.localReplicateOffset = param; + } + + /** field for MaxConnections */ + protected int localMaxConnections; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxConnectionsTracker = false; + + public boolean isMaxConnectionsSpecified() { + return localMaxConnectionsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMaxConnections() { + return localMaxConnections; + } + + /** + * Auto generated setter method + * + * @param param MaxConnections + */ + public void setMaxConnections(int param) { + + // setting primitive attribute tracker to true + localMaxConnectionsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMaxConnections = param; + } + + /** field for Throttle */ + protected int localThrottle; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThrottleTracker = false; + + public boolean isThrottleSpecified() { + return localThrottleTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getThrottle() { + return localThrottle; + } + + /** + * Auto generated setter method + * + * @param param Throttle + */ + public void setThrottle(int param) { + + // setting primitive attribute tracker to true + localThrottleTracker = param != java.lang.Integer.MIN_VALUE; + + this.localThrottle = param; + } + + /** field for TransferBufferSize */ + protected int localTransferBufferSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTransferBufferSizeTracker = false; + + public boolean isTransferBufferSizeSpecified() { + return localTransferBufferSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTransferBufferSize() { + return localTransferBufferSize; + } + + /** + * Auto generated setter method + * + * @param param TransferBufferSize + */ + public void setTransferBufferSize(int param) { + + // setting primitive attribute tracker to true + localTransferBufferSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTransferBufferSize = param; + } + + /** field for Prefix */ + protected java.lang.String localPrefix; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPrefixTracker = false; + + public boolean isPrefixSpecified() { + return localPrefixTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPrefix() { + return localPrefix; + } + + /** + * Auto generated setter method + * + * @param param Prefix + */ + public void setPrefix(java.lang.String param) { + localPrefixTracker = param != null; + + this.localPrefix = param; + } + + /** field for Nosplit */ + protected boolean localNosplit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNosplitTracker = false; + + public boolean isNosplitSpecified() { + return localNosplitTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNosplit() { + return localNosplit; + } + + /** + * Auto generated setter method + * + * @param param Nosplit + */ + public void setNosplit(boolean param) { + + // setting primitive attribute tracker to true + localNosplitTracker = true; + + this.localNosplit = param; + } + + /** field for Norecover */ + protected boolean localNorecover = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNorecoverTracker = false; + + public boolean isNorecoverSpecified() { + return localNorecoverTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNorecover() { + return localNorecover; + } + + /** + * Auto generated setter method + * + * @param param Norecover + */ + public void setNorecover(boolean param) { + + // setting primitive attribute tracker to true + localNorecoverTracker = true; + + this.localNorecover = param; + } + + /** field for Compress */ + protected boolean localCompress = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompressTracker = false; + + public boolean isCompressSpecified() { + return localCompressTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCompress() { + return localCompress; + } + + /** + * Auto generated setter method + * + * @param param Compress + */ + public void setCompress(boolean param) { + + // setting primitive attribute tracker to true + localCompressTracker = true; + + this.localCompress = param; + } + + /** field for Push */ + protected boolean localPush = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPushTracker = false; + + public boolean isPushSpecified() { + return localPushTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPush() { + return localPush; + } + + /** + * Auto generated setter method + * + * @param param Push + */ + public void setPush(boolean param) { + + // setting primitive attribute tracker to true + localPushTracker = true; + + this.localPush = param; + } + + /** field for Pull */ + protected boolean localPull = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPullTracker = false; + + public boolean isPullSpecified() { + return localPullTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPull() { + return localPull; + } + + /** + * Auto generated setter method + * + * @param param Pull + */ + public void setPull(boolean param) { + + // setting primitive attribute tracker to true + localPullTracker = true; + + this.localPull = param; + } + + /** field for NoCommon */ + protected boolean localNoCommon = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoCommonTracker = false; + + public boolean isNoCommonSpecified() { + return localNoCommonTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoCommon() { + return localNoCommon; + } + + /** + * Auto generated setter method + * + * @param param NoCommon + */ + public void setNoCommon(boolean param) { + + // setting primitive attribute tracker to true + localNoCommonTracker = true; + + this.localNoCommon = param; + } + + /** field for Encrypt */ + protected java.lang.String localEncrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEncryptTracker = false; + + public boolean isEncryptSpecified() { + return localEncryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEncrypt() { + return localEncrypt; + } + + /** + * Auto generated setter method + * + * @param param Encrypt + */ + public void setEncrypt(java.lang.String param) { + localEncryptTracker = param != null; + + this.localEncrypt = param; + } + + /** field for Decrypt */ + protected java.lang.String localDecrypt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDecryptTracker = false; + + public boolean isDecryptSpecified() { + return localDecryptTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDecrypt() { + return localDecrypt; + } + + /** + * Auto generated setter method + * + * @param param Decrypt + */ + public void setDecrypt(java.lang.String param) { + localDecryptTracker = param != null; + + this.localDecrypt = param; + } + + /** field for FailIfNoSourceFile */ + protected boolean localFailIfNoSourceFile = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFailIfNoSourceFileTracker = false; + + public boolean isFailIfNoSourceFileSpecified() { + return localFailIfNoSourceFileTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFailIfNoSourceFile() { + return localFailIfNoSourceFile; + } + + /** + * Auto generated setter method + * + * @param param FailIfNoSourceFile + */ + public void setFailIfNoSourceFile(boolean param) { + + // setting primitive attribute tracker to true + localFailIfNoSourceFileTracker = true; + + this.localFailIfNoSourceFile = param; + } + + /** field for RecordStructurePresent */ + protected boolean localRecordStructurePresent = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRecordStructurePresentTracker = false; + + public boolean isRecordStructurePresentSpecified() { + return localRecordStructurePresentTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRecordStructurePresent() { + return localRecordStructurePresent; + } + + /** + * Auto generated setter method + * + * @param param RecordStructurePresent + */ + public void setRecordStructurePresent(boolean param) { + + // setting primitive attribute tracker to true + localRecordStructurePresentTracker = true; + + this.localRecordStructurePresent = param; + } + + /** field for QuotedTerminator */ + protected boolean localQuotedTerminator = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuotedTerminatorTracker = false; + + public boolean isQuotedTerminatorSpecified() { + return localQuotedTerminatorTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getQuotedTerminator() { + return localQuotedTerminator; + } + + /** + * Auto generated setter method + * + * @param param QuotedTerminator + */ + public void setQuotedTerminator(boolean param) { + + // setting primitive attribute tracker to true + localQuotedTerminatorTracker = true; + + this.localQuotedTerminator = param; + } + + /** field for SourceRowPath */ + protected java.lang.String localSourceRowPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceRowPathTracker = false; + + public boolean isSourceRowPathSpecified() { + return localSourceRowPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceRowPath() { + return localSourceRowPath; + } + + /** + * Auto generated setter method + * + * @param param SourceRowPath + */ + public void setSourceRowPath(java.lang.String param) { + localSourceRowPathTracker = param != null; + + this.localSourceRowPath = param; + } + + /** field for IsJSON */ + protected boolean localIsJSON = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsJSONTracker = false; + + public boolean isIsJSONSpecified() { + return localIsJSONTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsJSON() { + return localIsJSON; + } + + /** + * Auto generated setter method + * + * @param param IsJSON + */ + public void setIsJSON(boolean param) { + + // setting primitive attribute tracker to true + localIsJSONTracker = true; + + this.localIsJSON = param; + } + + /** field for ExpireDays */ + protected int localExpireDays; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExpireDaysTracker = false; + + public boolean isExpireDaysSpecified() { + return localExpireDaysTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getExpireDays() { + return localExpireDays; + } + + /** + * Auto generated setter method + * + * @param param ExpireDays + */ + public void setExpireDays(int param) { + + // setting primitive attribute tracker to true + localExpireDaysTracker = param != java.lang.Integer.MIN_VALUE; + + this.localExpireDays = param; + } + + /** field for DFUServerQueue */ + protected java.lang.String localDFUServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUServerQueueTracker = false; + + public boolean isDFUServerQueueSpecified() { + return localDFUServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUServerQueue() { + return localDFUServerQueue; + } + + /** + * Auto generated setter method + * + * @param param DFUServerQueue + */ + public void setDFUServerQueue(java.lang.String param) { + localDFUServerQueueTracker = param != null; + + this.localDFUServerQueue = param; + } + + /** field for SrcUsername */ + protected java.lang.String localSrcUsername; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSrcUsernameTracker = false; + + public boolean isSrcUsernameSpecified() { + return localSrcUsernameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSrcUsername() { + return localSrcUsername; + } + + /** + * Auto generated setter method + * + * @param param SrcUsername + */ + public void setSrcUsername(java.lang.String param) { + localSrcUsernameTracker = param != null; + + this.localSrcUsername = param; + } + + /** field for SrcPassword */ + protected java.lang.String localSrcPassword; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSrcPasswordTracker = false; + + public boolean isSrcPasswordSpecified() { + return localSrcPasswordTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSrcPassword() { + return localSrcPassword; + } + + /** + * Auto generated setter method + * + * @param param SrcPassword + */ + public void setSrcPassword(java.lang.String param) { + localSrcPasswordTracker = param != null; + + this.localSrcPassword = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SprayVariable", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SprayVariable", xmlWriter); + } + } + if (localSourceIPTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceIP", xmlWriter); + + if (localSourceIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceIP); + } + + xmlWriter.writeEndElement(); + } + if (localSourcePlaneTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourcePlane", xmlWriter); + + if (localSourcePlane == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourcePlane cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourcePlane); + } + + xmlWriter.writeEndElement(); + } + if (localSourcePathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourcePath", xmlWriter); + + if (localSourcePath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourcePath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourcePath); + } + + xmlWriter.writeEndElement(); + } + if (localSrcxmlTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "srcxml", xmlWriter); + + if (localSrcxml != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localSrcxml, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for srcxml", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + if (localSourceMaxRecordSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceMaxRecordSize", xmlWriter); + + if (localSourceMaxRecordSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("sourceMaxRecordSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSourceMaxRecordSize)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceFormatTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceFormat", xmlWriter); + + if (localSourceFormat == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("sourceFormat cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceFormat)); + } + + xmlWriter.writeEndElement(); + } + if (localNoSourceCsvSeparatorTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "NoSourceCsvSeparator", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "NoSourceCsvSeparator cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localNoSourceCsvSeparator)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceCsvSeparateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceCsvSeparate", xmlWriter); + + if (localSourceCsvSeparate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceCsvSeparate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceCsvSeparate); + } + + xmlWriter.writeEndElement(); + } + if (localSourceCsvTerminateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceCsvTerminate", xmlWriter); + + if (localSourceCsvTerminate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceCsvTerminate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceCsvTerminate); + } + + xmlWriter.writeEndElement(); + } + if (localSourceCsvQuoteTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceCsvQuote", xmlWriter); + + if (localSourceCsvQuote == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceCsvQuote cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceCsvQuote); + } + + xmlWriter.writeEndElement(); + } + if (localSourceCsvEscapeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceCsvEscape", xmlWriter); + + if (localSourceCsvEscape == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceCsvEscape cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceCsvEscape); + } + + xmlWriter.writeEndElement(); + } + if (localSourceRowTagTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceRowTag", xmlWriter); + + if (localSourceRowTag == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceRowTag cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceRowTag); + } + + xmlWriter.writeEndElement(); + } + if (localDestGroupTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destGroup", xmlWriter); + + if (localDestGroup == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destGroup cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestGroup); + } + + xmlWriter.writeEndElement(); + } + if (localDestLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destLogicalName", xmlWriter); + + if (localDestLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("destLogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localDestNumPartsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "destNumParts", xmlWriter); + + if (localDestNumParts == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("destNumParts cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDestNumParts)); + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "overwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("overwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "replicate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("replicate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateOffsetTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ReplicateOffset", xmlWriter); + + if (localReplicateOffset == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ReplicateOffset cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicateOffset)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxConnectionsTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "maxConnections", xmlWriter); + + if (localMaxConnections == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("maxConnections cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxConnections)); + } + + xmlWriter.writeEndElement(); + } + if (localThrottleTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "throttle", xmlWriter); + + if (localThrottle == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("throttle cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThrottle)); + } + + xmlWriter.writeEndElement(); + } + if (localTransferBufferSizeTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "transferBufferSize", xmlWriter); + + if (localTransferBufferSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("transferBufferSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTransferBufferSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPrefixTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "prefix", xmlWriter); + + if (localPrefix == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("prefix cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPrefix); + } + + xmlWriter.writeEndElement(); + } + if (localNosplitTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "nosplit", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("nosplit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNosplit)); + } + + xmlWriter.writeEndElement(); + } + if (localNorecoverTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "norecover", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("norecover cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNorecover)); + } + + xmlWriter.writeEndElement(); + } + if (localCompressTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "compress", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("compress cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); + } + + xmlWriter.writeEndElement(); + } + if (localPushTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "push", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("push cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPush)); + } + + xmlWriter.writeEndElement(); + } + if (localPullTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "pull", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("pull cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPull)); + } + + xmlWriter.writeEndElement(); + } + if (localNoCommonTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "noCommon", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("noCommon cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoCommon)); + } + + xmlWriter.writeEndElement(); + } + if (localEncryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "encrypt", xmlWriter); + + if (localEncrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("encrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEncrypt); + } + + xmlWriter.writeEndElement(); + } + if (localDecryptTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "decrypt", xmlWriter); + + if (localDecrypt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("decrypt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDecrypt); + } + + xmlWriter.writeEndElement(); + } + if (localFailIfNoSourceFileTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "failIfNoSourceFile", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("failIfNoSourceFile cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localFailIfNoSourceFile)); + } + + xmlWriter.writeEndElement(); + } + if (localRecordStructurePresentTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "recordStructurePresent", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "recordStructurePresent cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localRecordStructurePresent)); + } + + xmlWriter.writeEndElement(); + } + if (localQuotedTerminatorTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "quotedTerminator", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("quotedTerminator cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localQuotedTerminator)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceRowPathTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "sourceRowPath", xmlWriter); + + if (localSourceRowPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("sourceRowPath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceRowPath); + } + + xmlWriter.writeEndElement(); + } + if (localIsJSONTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "isJSON", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("isJSON cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsJSON)); + } + + xmlWriter.writeEndElement(); + } + if (localExpireDaysTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "expireDays", xmlWriter); + + if (localExpireDays == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("expireDays cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExpireDays)); + } + + xmlWriter.writeEndElement(); + } + if (localDFUServerQueueTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "DFUServerQueue", xmlWriter); + + if (localDFUServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUServerQueue); + } + + xmlWriter.writeEndElement(); + } + if (localSrcUsernameTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "srcUsername", xmlWriter); + + if (localSrcUsername == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("srcUsername cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSrcUsername); + } + + xmlWriter.writeEndElement(); + } + if (localSrcPasswordTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "srcPassword", xmlWriter); + + if (localSrcPassword == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("srcPassword cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSrcPassword); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SprayVariable parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SprayVariable object = new SprayVariable(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SprayVariable".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SprayVariable) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourcePlane") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourcePlane" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourcePlane( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourcePath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourcePath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourcePath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcxml") + .equals(reader.getName())) { + + object.setSrcxml( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "sourceMaxRecordSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceMaxRecordSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceMaxRecordSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceFormat") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceFormat" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceFormat( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "NoSourceCsvSeparator") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoSourceCsvSeparator" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoSourceCsvSeparator( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "sourceCsvSeparate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceCsvSeparate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceCsvSeparate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "sourceCsvTerminate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceCsvTerminate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceCsvTerminate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceCsvQuote") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceCsvQuote" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceCsvQuote( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceCsvEscape") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceCsvEscape" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceCsvEscape( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceRowTag") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceRowTag" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceRowTag( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destGroup") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destGroup" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestGroup( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destLogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destLogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "destNumParts") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "destNumParts" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestNumParts( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "overwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "overwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "replicate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "replicate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ReplicateOffset") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReplicateOffset" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicateOffset( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "maxConnections") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "maxConnections" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxConnections( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "throttle") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "throttle" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThrottle( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "transferBufferSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "transferBufferSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTransferBufferSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "prefix") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "prefix" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPrefix( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "nosplit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "nosplit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNosplit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "norecover") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "norecover" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNorecover( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "compress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "compress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "push") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "push" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPush( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "pull") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "pull" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPull( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "noCommon") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "noCommon" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoCommon( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "encrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "encrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEncrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "decrypt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "decrypt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDecrypt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "failIfNoSourceFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "failIfNoSourceFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFailIfNoSourceFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "recordStructurePresent") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "recordStructurePresent" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRecordStructurePresent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "quotedTerminator") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "quotedTerminator" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuotedTerminator( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "sourceRowPath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "sourceRowPath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceRowPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "isJSON") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "isJSON" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsJSON( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "expireDays") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "expireDays" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setExpireDays( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "DFUServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcUsername") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "srcUsername" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSrcUsername( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "srcPassword") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "srcPassword" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSrcPassword( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/String.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/String.java index 4effbcf92..9313bc9ab 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/String.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/String.java @@ -1,360 +1,360 @@ -/** - * String.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** String bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class String implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "string", "ns1"); - - /** field for String */ - protected java.lang.String localString; - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getString() { - return localString; - } - - /** - * Auto generated setter method - * - * @param param String - */ - public void setString(java.lang.String param) { - - this.localString = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - java.lang.String namespace = "urn:hpccsystems:ws:filespray"; - java.lang.String _localName = "string"; - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":string", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); - } - } - - if (localString == null) { - - // write the nil attribute - writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); - - } else { - - xmlWriter.writeCharacters(localString); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - String object = new String(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - // Skip the element and report the null value. It cannot have subelements. - while (!reader.isEndElement()) reader.next(); - - return object; - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "string") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { - - java.lang.String content = reader.getElementText(); - - object.setString( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - } else { - - reader.getElementText(); // throw away text nodes if any. - } - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * String.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** String bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class String implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "string", "ns1"); + + /** field for String */ + protected java.lang.String localString; + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getString() { + return localString; + } + + /** + * Auto generated setter method + * + * @param param String + */ + public void setString(java.lang.String param) { + + this.localString = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + java.lang.String namespace = "urn:hpccsystems:ws:filespray"; + java.lang.String _localName = "string"; + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":string", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); + } + } + + if (localString == null) { + + // write the nil attribute + writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); + + } else { + + xmlWriter.writeCharacters(localString); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + String object = new String(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + // Skip the element and report the null value. It cannot have subelements. + while (!reader.isEndElement()) reader.next(); + + return object; + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "string") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { + + java.lang.String content = reader.getElementText(); + + object.setString( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + } else { + + reader.getElementText(); // throw away text nodes if any. + } + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SubmitDFUWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SubmitDFUWorkunit.java index 95dd25cd7..352748652 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SubmitDFUWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SubmitDFUWorkunit.java @@ -1,396 +1,396 @@ -/** - * SubmitDFUWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** SubmitDFUWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SubmitDFUWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SubmitDFUWorkunit", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SubmitDFUWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SubmitDFUWorkunit", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SubmitDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SubmitDFUWorkunit object = new SubmitDFUWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SubmitDFUWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SubmitDFUWorkunit) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SubmitDFUWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** SubmitDFUWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SubmitDFUWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "SubmitDFUWorkunit", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SubmitDFUWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SubmitDFUWorkunit", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SubmitDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SubmitDFUWorkunit object = new SubmitDFUWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SubmitDFUWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SubmitDFUWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SubmitDFUWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SubmitDFUWorkunitResponse.java index 4d2ecc985..4fd2a88c8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SubmitDFUWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/SubmitDFUWorkunitResponse.java @@ -1,382 +1,382 @@ -/** - * SubmitDFUWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** SubmitDFUWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SubmitDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "SubmitDFUWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SubmitDFUWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SubmitDFUWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SubmitDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SubmitDFUWorkunitResponse object = new SubmitDFUWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SubmitDFUWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SubmitDFUWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SubmitDFUWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** SubmitDFUWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SubmitDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "SubmitDFUWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SubmitDFUWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SubmitDFUWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SubmitDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SubmitDFUWorkunitResponse object = new SubmitDFUWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SubmitDFUWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SubmitDFUWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/UpdateDFUWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/UpdateDFUWorkunit.java index 80b611013..0c7f2a1ef 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/UpdateDFUWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/UpdateDFUWorkunit.java @@ -1,653 +1,653 @@ -/** - * UpdateDFUWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** UpdateDFUWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class UpdateDFUWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "UpdateDFUWorkunit", "ns1"); - - /** field for Wu */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit localWu; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuTracker = false; - - public boolean isWuSpecified() { - return localWuTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit getWu() { - return localWu; - } - - /** - * Auto generated setter method - * - * @param param Wu - */ - public void setWu(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { - localWuTracker = param != null; - - this.localWu = param; - } - - /** field for ClusterOrig */ - protected java.lang.String localClusterOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterOrigTracker = false; - - public boolean isClusterOrigSpecified() { - return localClusterOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterOrig() { - return localClusterOrig; - } - - /** - * Auto generated setter method - * - * @param param ClusterOrig - */ - public void setClusterOrig(java.lang.String param) { - localClusterOrigTracker = param != null; - - this.localClusterOrig = param; - } - - /** field for JobNameOrig */ - protected java.lang.String localJobNameOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobNameOrigTracker = false; - - public boolean isJobNameOrigSpecified() { - return localJobNameOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobNameOrig() { - return localJobNameOrig; - } - - /** - * Auto generated setter method - * - * @param param JobNameOrig - */ - public void setJobNameOrig(java.lang.String param) { - localJobNameOrigTracker = param != null; - - this.localJobNameOrig = param; - } - - /** field for IsProtectedOrig */ - protected boolean localIsProtectedOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsProtectedOrigTracker = false; - - public boolean isIsProtectedOrigSpecified() { - return localIsProtectedOrigTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsProtectedOrig() { - return localIsProtectedOrig; - } - - /** - * Auto generated setter method - * - * @param param IsProtectedOrig - */ - public void setIsProtectedOrig(boolean param) { - - // setting primitive attribute tracker to true - localIsProtectedOrigTracker = true; - - this.localIsProtectedOrig = param; - } - - /** field for StateOrig */ - protected int localStateOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateOrigTracker = false; - - public boolean isStateOrigSpecified() { - return localStateOrigTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getStateOrig() { - return localStateOrig; - } - - /** - * Auto generated setter method - * - * @param param StateOrig - */ - public void setStateOrig(int param) { - - // setting primitive attribute tracker to true - localStateOrigTracker = param != java.lang.Integer.MIN_VALUE; - - this.localStateOrig = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":UpdateDFUWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "UpdateDFUWorkunit", - xmlWriter); - } - } - if (localWuTracker) { - if (localWu == null) { - throw new org.apache.axis2.databinding.ADBException("wu cannot be null!!"); - } - localWu.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wu"), xmlWriter); - } - if (localClusterOrigTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "ClusterOrig", xmlWriter); - - if (localClusterOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterOrig); - } - - xmlWriter.writeEndElement(); - } - if (localJobNameOrigTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "JobNameOrig", xmlWriter); - - if (localJobNameOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobNameOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobNameOrig); - } - - xmlWriter.writeEndElement(); - } - if (localIsProtectedOrigTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "isProtectedOrig", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("isProtectedOrig cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsProtectedOrig)); - } - - xmlWriter.writeEndElement(); - } - if (localStateOrigTracker) { - namespace = "urn:hpccsystems:ws:filespray"; - writeStartElement(null, namespace, "StateOrig", xmlWriter); - - if (localStateOrig == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("StateOrig cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateOrig)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static UpdateDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - UpdateDFUWorkunit object = new UpdateDFUWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"UpdateDFUWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (UpdateDFUWorkunit) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wu") - .equals(reader.getName())) { - - object.setWu( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "JobNameOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobNameOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobNameOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "isProtectedOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "isProtectedOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsProtectedOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "StateOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * UpdateDFUWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** UpdateDFUWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class UpdateDFUWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "UpdateDFUWorkunit", "ns1"); + + /** field for Wu */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit localWu; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuTracker = false; + + public boolean isWuSpecified() { + return localWuTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit getWu() { + return localWu; + } + + /** + * Auto generated setter method + * + * @param param Wu + */ + public void setWu(org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit param) { + localWuTracker = param != null; + + this.localWu = param; + } + + /** field for ClusterOrig */ + protected java.lang.String localClusterOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterOrigTracker = false; + + public boolean isClusterOrigSpecified() { + return localClusterOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterOrig() { + return localClusterOrig; + } + + /** + * Auto generated setter method + * + * @param param ClusterOrig + */ + public void setClusterOrig(java.lang.String param) { + localClusterOrigTracker = param != null; + + this.localClusterOrig = param; + } + + /** field for JobNameOrig */ + protected java.lang.String localJobNameOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobNameOrigTracker = false; + + public boolean isJobNameOrigSpecified() { + return localJobNameOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobNameOrig() { + return localJobNameOrig; + } + + /** + * Auto generated setter method + * + * @param param JobNameOrig + */ + public void setJobNameOrig(java.lang.String param) { + localJobNameOrigTracker = param != null; + + this.localJobNameOrig = param; + } + + /** field for IsProtectedOrig */ + protected boolean localIsProtectedOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsProtectedOrigTracker = false; + + public boolean isIsProtectedOrigSpecified() { + return localIsProtectedOrigTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsProtectedOrig() { + return localIsProtectedOrig; + } + + /** + * Auto generated setter method + * + * @param param IsProtectedOrig + */ + public void setIsProtectedOrig(boolean param) { + + // setting primitive attribute tracker to true + localIsProtectedOrigTracker = true; + + this.localIsProtectedOrig = param; + } + + /** field for StateOrig */ + protected int localStateOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateOrigTracker = false; + + public boolean isStateOrigSpecified() { + return localStateOrigTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getStateOrig() { + return localStateOrig; + } + + /** + * Auto generated setter method + * + * @param param StateOrig + */ + public void setStateOrig(int param) { + + // setting primitive attribute tracker to true + localStateOrigTracker = param != java.lang.Integer.MIN_VALUE; + + this.localStateOrig = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":UpdateDFUWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "UpdateDFUWorkunit", + xmlWriter); + } + } + if (localWuTracker) { + if (localWu == null) { + throw new org.apache.axis2.databinding.ADBException("wu cannot be null!!"); + } + localWu.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wu"), xmlWriter); + } + if (localClusterOrigTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "ClusterOrig", xmlWriter); + + if (localClusterOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterOrig); + } + + xmlWriter.writeEndElement(); + } + if (localJobNameOrigTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "JobNameOrig", xmlWriter); + + if (localJobNameOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobNameOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobNameOrig); + } + + xmlWriter.writeEndElement(); + } + if (localIsProtectedOrigTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "isProtectedOrig", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("isProtectedOrig cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsProtectedOrig)); + } + + xmlWriter.writeEndElement(); + } + if (localStateOrigTracker) { + namespace = "urn:hpccsystems:ws:filespray"; + writeStartElement(null, namespace, "StateOrig", xmlWriter); + + if (localStateOrig == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("StateOrig cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateOrig)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static UpdateDFUWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + UpdateDFUWorkunit object = new UpdateDFUWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"UpdateDFUWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (UpdateDFUWorkunit) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "wu") + .equals(reader.getName())) { + + object.setWu( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.DFUWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "ClusterOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "JobNameOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobNameOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobNameOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "isProtectedOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "isProtectedOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsProtectedOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "StateOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/UpdateDFUWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/UpdateDFUWorkunitResponse.java index 004a9296a..d4c8cacec 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/UpdateDFUWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/filespray/latest/UpdateDFUWorkunitResponse.java @@ -1,382 +1,382 @@ -/** - * UpdateDFUWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.filespray.latest; - -/** UpdateDFUWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class UpdateDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:filespray", "UpdateDFUWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":UpdateDFUWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "UpdateDFUWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:filespray")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static UpdateDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - UpdateDFUWorkunitResponse object = new UpdateDFUWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"UpdateDFUWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (UpdateDFUWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * UpdateDFUWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.filespray.latest; + +/** UpdateDFUWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class UpdateDFUWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:filespray", "UpdateDFUWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:filespray"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":UpdateDFUWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "UpdateDFUWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:filespray")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static UpdateDFUWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + UpdateDFUWorkunitResponse object = new UpdateDFUWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"UpdateDFUWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (UpdateDFUWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:filespray", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.filespray.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ArrayOfDFULogicalFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ArrayOfDFULogicalFile.java index 9cc52aadd..350dc31a9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ArrayOfDFULogicalFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ArrayOfDFULogicalFile.java @@ -1,460 +1,460 @@ -/** - * ArrayOfDFULogicalFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** ArrayOfDFULogicalFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfDFULogicalFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfDFULogicalFile - Namespace URI = urn:hpccsystems:ws:wsdfuxref - Namespace Prefix = ns1 - */ - - /** field for DFULogicalFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] - localDFULogicalFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFULogicalFileTracker = false; - - public boolean isDFULogicalFileSpecified() { - return localDFULogicalFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] getDFULogicalFile() { - return localDFULogicalFile; - } - - /** validate the array for DFULogicalFile */ - protected void validateDFULogicalFile( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] param) {} - - /** - * Auto generated setter method - * - * @param param DFULogicalFile - */ - public void setDFULogicalFile( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] param) { - - validateDFULogicalFile(param); - - localDFULogicalFileTracker = param != null; - - this.localDFULogicalFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile - */ - public void addDFULogicalFile( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile param) { - if (localDFULogicalFile == null) { - localDFULogicalFile = - new org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] {}; - } - - // update the setting tracker - localDFULogicalFileTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFULogicalFile); - list.add(param); - this.localDFULogicalFile = - (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfDFULogicalFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfDFULogicalFile", - xmlWriter); - } - } - if (localDFULogicalFileTracker) { - if (localDFULogicalFile != null) { - for (int i = 0; i < localDFULogicalFile.length; i++) { - if (localDFULogicalFile[i] != null) { - localDFULogicalFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFULogicalFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("DFULogicalFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfDFULogicalFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfDFULogicalFile object = new ArrayOfDFULogicalFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfDFULogicalFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfDFULogicalFile) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFULogicalFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFULogicalFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setDFULogicalFile( - (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfDFULogicalFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** ArrayOfDFULogicalFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfDFULogicalFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfDFULogicalFile + Namespace URI = urn:hpccsystems:ws:wsdfuxref + Namespace Prefix = ns1 + */ + + /** field for DFULogicalFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] + localDFULogicalFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFULogicalFileTracker = false; + + public boolean isDFULogicalFileSpecified() { + return localDFULogicalFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] getDFULogicalFile() { + return localDFULogicalFile; + } + + /** validate the array for DFULogicalFile */ + protected void validateDFULogicalFile( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] param) {} + + /** + * Auto generated setter method + * + * @param param DFULogicalFile + */ + public void setDFULogicalFile( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] param) { + + validateDFULogicalFile(param); + + localDFULogicalFileTracker = param != null; + + this.localDFULogicalFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile + */ + public void addDFULogicalFile( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile param) { + if (localDFULogicalFile == null) { + localDFULogicalFile = + new org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[] {}; + } + + // update the setting tracker + localDFULogicalFileTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFULogicalFile); + list.add(param); + this.localDFULogicalFile = + (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfDFULogicalFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfDFULogicalFile", + xmlWriter); + } + } + if (localDFULogicalFileTracker) { + if (localDFULogicalFile != null) { + for (int i = 0; i < localDFULogicalFile.length; i++) { + if (localDFULogicalFile[i] != null) { + localDFULogicalFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFULogicalFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("DFULogicalFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfDFULogicalFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfDFULogicalFile object = new ArrayOfDFULogicalFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfDFULogicalFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfDFULogicalFile) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFULogicalFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFULogicalFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setDFULogicalFile( + (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ArrayOfEspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ArrayOfEspException.java index 439979219..27184d9db 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ArrayOfEspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ArrayOfEspException.java @@ -1,530 +1,530 @@ -/** - * ArrayOfEspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** ArrayOfEspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfEspException - Namespace URI = urn:hpccsystems:ws:wsdfuxref - Namespace Prefix = ns1 - */ - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Exception This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] localException; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionTracker = false; - - public boolean isExceptionSpecified() { - return localExceptionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] getException() { - return localException; - } - - /** validate the array for Exception */ - protected void validateException( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] param) {} - - /** - * Auto generated setter method - * - * @param param Exception - */ - public void setException( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] param) { - - validateException(param); - - localExceptionTracker = param != null; - - this.localException = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException - */ - public void addException( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException param) { - if (localException == null) { - localException = new org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] {}; - } - - // update the setting tracker - localExceptionTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); - list.add(param); - this.localException = - (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfEspException", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfEspException", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localExceptionTracker) { - if (localException != null) { - for (int i = 0; i < localException.length; i++) { - if (localException[i] != null) { - localException[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exception"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfEspException object = new ArrayOfEspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfEspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfEspException) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list2 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exception") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list2.add( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone2 = false; - while (!loopDone2) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone2 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exception") - .equals(reader.getName())) { - list2.add( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException.Factory.parse( - reader)); - - } else { - loopDone2 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setException( - (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException.class, - list2)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfEspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** ArrayOfEspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfEspException + Namespace URI = urn:hpccsystems:ws:wsdfuxref + Namespace Prefix = ns1 + */ + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Exception This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] localException; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionTracker = false; + + public boolean isExceptionSpecified() { + return localExceptionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] getException() { + return localException; + } + + /** validate the array for Exception */ + protected void validateException( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] param) {} + + /** + * Auto generated setter method + * + * @param param Exception + */ + public void setException( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] param) { + + validateException(param); + + localExceptionTracker = param != null; + + this.localException = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException + */ + public void addException( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException param) { + if (localException == null) { + localException = new org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[] {}; + } + + // update the setting tracker + localExceptionTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); + list.add(param); + this.localException = + (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfEspException", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfEspException", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localExceptionTracker) { + if (localException != null) { + for (int i = 0; i < localException.length; i++) { + if (localException[i] != null) { + localException[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exception"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfEspException object = new ArrayOfEspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfEspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfEspException) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list2 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exception") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list2.add( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone2 = false; + while (!loopDone2) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone2 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exception") + .equals(reader.getName())) { + list2.add( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException.Factory.parse( + reader)); + + } else { + loopDone2 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setException( + (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException.class, + list2)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFULogicalFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFULogicalFile.java index 76577bf89..4ac37a777 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFULogicalFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFULogicalFile.java @@ -1,1702 +1,1702 @@ -/** - * DFULogicalFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFULogicalFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFULogicalFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = DFULogicalFile - Namespace URI = urn:hpccsystems:ws:wsdfuxref - Namespace Prefix = ns1 - */ - - /** field for Prefix */ - protected java.lang.String localPrefix; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPrefixTracker = false; - - public boolean isPrefixSpecified() { - return localPrefixTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPrefix() { - return localPrefix; - } - - /** - * Auto generated setter method - * - * @param param Prefix - */ - public void setPrefix(java.lang.String param) { - localPrefixTracker = param != null; - - this.localPrefix = param; - } - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for Directory */ - protected java.lang.String localDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDirectoryTracker = false; - - public boolean isDirectorySpecified() { - return localDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDirectory() { - return localDirectory; - } - - /** - * Auto generated setter method - * - * @param param Directory - */ - public void setDirectory(java.lang.String param) { - localDirectoryTracker = param != null; - - this.localDirectory = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Parts */ - protected java.lang.String localParts; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPartsTracker = false; - - public boolean isPartsSpecified() { - return localPartsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getParts() { - return localParts; - } - - /** - * Auto generated setter method - * - * @param param Parts - */ - public void setParts(java.lang.String param) { - localPartsTracker = param != null; - - this.localParts = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for Totalsize */ - protected java.lang.String localTotalsize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalsizeTracker = false; - - public boolean isTotalsizeSpecified() { - return localTotalsizeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTotalsize() { - return localTotalsize; - } - - /** - * Auto generated setter method - * - * @param param Totalsize - */ - public void setTotalsize(java.lang.String param) { - localTotalsizeTracker = param != null; - - this.localTotalsize = param; - } - - /** field for RecordCount */ - protected java.lang.String localRecordCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRecordCountTracker = false; - - public boolean isRecordCountSpecified() { - return localRecordCountTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRecordCount() { - return localRecordCount; - } - - /** - * Auto generated setter method - * - * @param param RecordCount - */ - public void setRecordCount(java.lang.String param) { - localRecordCountTracker = param != null; - - this.localRecordCount = param; - } - - /** field for Modified */ - protected java.lang.String localModified; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModifiedTracker = false; - - public boolean isModifiedSpecified() { - return localModifiedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getModified() { - return localModified; - } - - /** - * Auto generated setter method - * - * @param param Modified - */ - public void setModified(java.lang.String param) { - localModifiedTracker = param != null; - - this.localModified = param; - } - - /** field for LongSize */ - protected java.lang.String localLongSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLongSizeTracker = false; - - public boolean isLongSizeSpecified() { - return localLongSizeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLongSize() { - return localLongSize; - } - - /** - * Auto generated setter method - * - * @param param LongSize - */ - public void setLongSize(java.lang.String param) { - localLongSizeTracker = param != null; - - this.localLongSize = param; - } - - /** field for LongRecordCount */ - protected java.lang.String localLongRecordCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLongRecordCountTracker = false; - - public boolean isLongRecordCountSpecified() { - return localLongRecordCountTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLongRecordCount() { - return localLongRecordCount; - } - - /** - * Auto generated setter method - * - * @param param LongRecordCount - */ - public void setLongRecordCount(java.lang.String param) { - localLongRecordCountTracker = param != null; - - this.localLongRecordCount = param; - } - - /** field for IsSuperfile */ - protected boolean localIsSuperfile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsSuperfileTracker = false; - - public boolean isIsSuperfileSpecified() { - return localIsSuperfileTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsSuperfile() { - return localIsSuperfile; - } - - /** - * Auto generated setter method - * - * @param param IsSuperfile - */ - public void setIsSuperfile(boolean param) { - - // setting primitive attribute tracker to true - localIsSuperfileTracker = true; - - this.localIsSuperfile = param; - } - - /** field for IsZipfile */ - protected boolean localIsZipfile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsZipfileTracker = false; - - public boolean isIsZipfileSpecified() { - return localIsZipfileTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsZipfile() { - return localIsZipfile; - } - - /** - * Auto generated setter method - * - * @param param IsZipfile - */ - public void setIsZipfile(boolean param) { - - // setting primitive attribute tracker to true - localIsZipfileTracker = true; - - this.localIsZipfile = param; - } - - /** field for IsDirectory */ - protected boolean localIsDirectory = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsDirectoryTracker = false; - - public boolean isIsDirectorySpecified() { - return localIsDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsDirectory() { - return localIsDirectory; - } - - /** - * Auto generated setter method - * - * @param param IsDirectory - */ - public void setIsDirectory(boolean param) { - - // setting primitive attribute tracker to true - localIsDirectoryTracker = true; - - this.localIsDirectory = param; - } - - /** field for Replicate */ - protected boolean localReplicate = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateTracker = false; - - public boolean isReplicateSpecified() { - return localReplicateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReplicate() { - return localReplicate; - } - - /** - * Auto generated setter method - * - * @param param Replicate - */ - public void setReplicate(boolean param) { - - // setting primitive attribute tracker to true - localReplicateTracker = true; - - this.localReplicate = param; - } - - /** field for IntSize */ - protected long localIntSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIntSizeTracker = false; - - public boolean isIntSizeSpecified() { - return localIntSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getIntSize() { - return localIntSize; - } - - /** - * Auto generated setter method - * - * @param param IntSize - */ - public void setIntSize(long param) { - - // setting primitive attribute tracker to true - localIntSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localIntSize = param; - } - - /** field for IntRecordCount */ - protected long localIntRecordCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIntRecordCountTracker = false; - - public boolean isIntRecordCountSpecified() { - return localIntRecordCountTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getIntRecordCount() { - return localIntRecordCount; - } - - /** - * Auto generated setter method - * - * @param param IntRecordCount - */ - public void setIntRecordCount(long param) { - - // setting primitive attribute tracker to true - localIntRecordCountTracker = param != java.lang.Long.MIN_VALUE; - - this.localIntRecordCount = param; - } - - /** field for FromRoxieCluster */ - protected boolean localFromRoxieCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFromRoxieClusterTracker = false; - - public boolean isFromRoxieClusterSpecified() { - return localFromRoxieClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFromRoxieCluster() { - return localFromRoxieCluster; - } - - /** - * Auto generated setter method - * - * @param param FromRoxieCluster - */ - public void setFromRoxieCluster(boolean param) { - - // setting primitive attribute tracker to true - localFromRoxieClusterTracker = true; - - this.localFromRoxieCluster = param; - } - - /** field for BrowseData */ - protected boolean localBrowseData; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBrowseDataTracker = false; - - public boolean isBrowseDataSpecified() { - return localBrowseDataTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getBrowseData() { - return localBrowseData; - } - - /** - * Auto generated setter method - * - * @param param BrowseData - */ - public void setBrowseData(boolean param) { - - // setting primitive attribute tracker to true - localBrowseDataTracker = true; - - this.localBrowseData = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFULogicalFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFULogicalFile", - xmlWriter); - } - } - if (localPrefixTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Prefix", xmlWriter); - - if (localPrefix == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Prefix cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPrefix); - } - - xmlWriter.writeEndElement(); - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Directory", xmlWriter); - - if (localDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localDescriptionTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localPartsTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Parts", xmlWriter); - - if (localParts == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Parts cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localParts); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localTotalsizeTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Totalsize", xmlWriter); - - if (localTotalsize == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Totalsize cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTotalsize); - } - - xmlWriter.writeEndElement(); - } - if (localRecordCountTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "RecordCount", xmlWriter); - - if (localRecordCount == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RecordCount cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRecordCount); - } - - xmlWriter.writeEndElement(); - } - if (localModifiedTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Modified", xmlWriter); - - if (localModified == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Modified cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localModified); - } - - xmlWriter.writeEndElement(); - } - if (localLongSizeTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "LongSize", xmlWriter); - - if (localLongSize == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LongSize cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLongSize); - } - - xmlWriter.writeEndElement(); - } - if (localLongRecordCountTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "LongRecordCount", xmlWriter); - - if (localLongRecordCount == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LongRecordCount cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLongRecordCount); - } - - xmlWriter.writeEndElement(); - } - if (localIsSuperfileTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "isSuperfile", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("isSuperfile cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSuperfile)); - } - - xmlWriter.writeEndElement(); - } - if (localIsZipfileTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "isZipfile", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("isZipfile cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsZipfile)); - } - - xmlWriter.writeEndElement(); - } - if (localIsDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "isDirectory", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("isDirectory cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsDirectory)); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Replicate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Replicate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); - } - - xmlWriter.writeEndElement(); - } - if (localIntSizeTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "IntSize", xmlWriter); - - if (localIntSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("IntSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIntSize)); - } - - xmlWriter.writeEndElement(); - } - if (localIntRecordCountTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "IntRecordCount", xmlWriter); - - if (localIntRecordCount == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("IntRecordCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIntRecordCount)); - } - - xmlWriter.writeEndElement(); - } - if (localFromRoxieClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "FromRoxieCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("FromRoxieCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localFromRoxieCluster)); - } - - xmlWriter.writeEndElement(); - } - if (localBrowseDataTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "BrowseData", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("BrowseData cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBrowseData)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFULogicalFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFULogicalFile object = new DFULogicalFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFULogicalFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFULogicalFile) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Prefix") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Prefix" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPrefix( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Directory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Directory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Parts") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Parts" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setParts( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Totalsize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Totalsize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotalsize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "RecordCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RecordCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRecordCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Modified") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Modified" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setModified( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "LongSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LongSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLongSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "LongRecordCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LongRecordCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLongRecordCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "isSuperfile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "isSuperfile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsSuperfile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "isZipfile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "isZipfile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsZipfile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "isDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "isDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Replicate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Replicate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "IntSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IntSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIntSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "IntRecordCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IntRecordCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIntRecordCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "FromRoxieCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FromRoxieCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFromRoxieCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "BrowseData") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BrowseData" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBrowseData( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFULogicalFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFULogicalFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFULogicalFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = DFULogicalFile + Namespace URI = urn:hpccsystems:ws:wsdfuxref + Namespace Prefix = ns1 + */ + + /** field for Prefix */ + protected java.lang.String localPrefix; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPrefixTracker = false; + + public boolean isPrefixSpecified() { + return localPrefixTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPrefix() { + return localPrefix; + } + + /** + * Auto generated setter method + * + * @param param Prefix + */ + public void setPrefix(java.lang.String param) { + localPrefixTracker = param != null; + + this.localPrefix = param; + } + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for Directory */ + protected java.lang.String localDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDirectoryTracker = false; + + public boolean isDirectorySpecified() { + return localDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDirectory() { + return localDirectory; + } + + /** + * Auto generated setter method + * + * @param param Directory + */ + public void setDirectory(java.lang.String param) { + localDirectoryTracker = param != null; + + this.localDirectory = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Parts */ + protected java.lang.String localParts; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPartsTracker = false; + + public boolean isPartsSpecified() { + return localPartsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getParts() { + return localParts; + } + + /** + * Auto generated setter method + * + * @param param Parts + */ + public void setParts(java.lang.String param) { + localPartsTracker = param != null; + + this.localParts = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for Totalsize */ + protected java.lang.String localTotalsize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalsizeTracker = false; + + public boolean isTotalsizeSpecified() { + return localTotalsizeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTotalsize() { + return localTotalsize; + } + + /** + * Auto generated setter method + * + * @param param Totalsize + */ + public void setTotalsize(java.lang.String param) { + localTotalsizeTracker = param != null; + + this.localTotalsize = param; + } + + /** field for RecordCount */ + protected java.lang.String localRecordCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRecordCountTracker = false; + + public boolean isRecordCountSpecified() { + return localRecordCountTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRecordCount() { + return localRecordCount; + } + + /** + * Auto generated setter method + * + * @param param RecordCount + */ + public void setRecordCount(java.lang.String param) { + localRecordCountTracker = param != null; + + this.localRecordCount = param; + } + + /** field for Modified */ + protected java.lang.String localModified; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModifiedTracker = false; + + public boolean isModifiedSpecified() { + return localModifiedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getModified() { + return localModified; + } + + /** + * Auto generated setter method + * + * @param param Modified + */ + public void setModified(java.lang.String param) { + localModifiedTracker = param != null; + + this.localModified = param; + } + + /** field for LongSize */ + protected java.lang.String localLongSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLongSizeTracker = false; + + public boolean isLongSizeSpecified() { + return localLongSizeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLongSize() { + return localLongSize; + } + + /** + * Auto generated setter method + * + * @param param LongSize + */ + public void setLongSize(java.lang.String param) { + localLongSizeTracker = param != null; + + this.localLongSize = param; + } + + /** field for LongRecordCount */ + protected java.lang.String localLongRecordCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLongRecordCountTracker = false; + + public boolean isLongRecordCountSpecified() { + return localLongRecordCountTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLongRecordCount() { + return localLongRecordCount; + } + + /** + * Auto generated setter method + * + * @param param LongRecordCount + */ + public void setLongRecordCount(java.lang.String param) { + localLongRecordCountTracker = param != null; + + this.localLongRecordCount = param; + } + + /** field for IsSuperfile */ + protected boolean localIsSuperfile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsSuperfileTracker = false; + + public boolean isIsSuperfileSpecified() { + return localIsSuperfileTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsSuperfile() { + return localIsSuperfile; + } + + /** + * Auto generated setter method + * + * @param param IsSuperfile + */ + public void setIsSuperfile(boolean param) { + + // setting primitive attribute tracker to true + localIsSuperfileTracker = true; + + this.localIsSuperfile = param; + } + + /** field for IsZipfile */ + protected boolean localIsZipfile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsZipfileTracker = false; + + public boolean isIsZipfileSpecified() { + return localIsZipfileTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsZipfile() { + return localIsZipfile; + } + + /** + * Auto generated setter method + * + * @param param IsZipfile + */ + public void setIsZipfile(boolean param) { + + // setting primitive attribute tracker to true + localIsZipfileTracker = true; + + this.localIsZipfile = param; + } + + /** field for IsDirectory */ + protected boolean localIsDirectory = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsDirectoryTracker = false; + + public boolean isIsDirectorySpecified() { + return localIsDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsDirectory() { + return localIsDirectory; + } + + /** + * Auto generated setter method + * + * @param param IsDirectory + */ + public void setIsDirectory(boolean param) { + + // setting primitive attribute tracker to true + localIsDirectoryTracker = true; + + this.localIsDirectory = param; + } + + /** field for Replicate */ + protected boolean localReplicate = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateTracker = false; + + public boolean isReplicateSpecified() { + return localReplicateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReplicate() { + return localReplicate; + } + + /** + * Auto generated setter method + * + * @param param Replicate + */ + public void setReplicate(boolean param) { + + // setting primitive attribute tracker to true + localReplicateTracker = true; + + this.localReplicate = param; + } + + /** field for IntSize */ + protected long localIntSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIntSizeTracker = false; + + public boolean isIntSizeSpecified() { + return localIntSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getIntSize() { + return localIntSize; + } + + /** + * Auto generated setter method + * + * @param param IntSize + */ + public void setIntSize(long param) { + + // setting primitive attribute tracker to true + localIntSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localIntSize = param; + } + + /** field for IntRecordCount */ + protected long localIntRecordCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIntRecordCountTracker = false; + + public boolean isIntRecordCountSpecified() { + return localIntRecordCountTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getIntRecordCount() { + return localIntRecordCount; + } + + /** + * Auto generated setter method + * + * @param param IntRecordCount + */ + public void setIntRecordCount(long param) { + + // setting primitive attribute tracker to true + localIntRecordCountTracker = param != java.lang.Long.MIN_VALUE; + + this.localIntRecordCount = param; + } + + /** field for FromRoxieCluster */ + protected boolean localFromRoxieCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFromRoxieClusterTracker = false; + + public boolean isFromRoxieClusterSpecified() { + return localFromRoxieClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFromRoxieCluster() { + return localFromRoxieCluster; + } + + /** + * Auto generated setter method + * + * @param param FromRoxieCluster + */ + public void setFromRoxieCluster(boolean param) { + + // setting primitive attribute tracker to true + localFromRoxieClusterTracker = true; + + this.localFromRoxieCluster = param; + } + + /** field for BrowseData */ + protected boolean localBrowseData; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBrowseDataTracker = false; + + public boolean isBrowseDataSpecified() { + return localBrowseDataTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getBrowseData() { + return localBrowseData; + } + + /** + * Auto generated setter method + * + * @param param BrowseData + */ + public void setBrowseData(boolean param) { + + // setting primitive attribute tracker to true + localBrowseDataTracker = true; + + this.localBrowseData = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFULogicalFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFULogicalFile", + xmlWriter); + } + } + if (localPrefixTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Prefix", xmlWriter); + + if (localPrefix == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Prefix cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPrefix); + } + + xmlWriter.writeEndElement(); + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Directory", xmlWriter); + + if (localDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localPartsTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Parts", xmlWriter); + + if (localParts == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Parts cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localParts); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localTotalsizeTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Totalsize", xmlWriter); + + if (localTotalsize == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Totalsize cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTotalsize); + } + + xmlWriter.writeEndElement(); + } + if (localRecordCountTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "RecordCount", xmlWriter); + + if (localRecordCount == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RecordCount cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRecordCount); + } + + xmlWriter.writeEndElement(); + } + if (localModifiedTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Modified", xmlWriter); + + if (localModified == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Modified cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localModified); + } + + xmlWriter.writeEndElement(); + } + if (localLongSizeTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "LongSize", xmlWriter); + + if (localLongSize == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LongSize cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLongSize); + } + + xmlWriter.writeEndElement(); + } + if (localLongRecordCountTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "LongRecordCount", xmlWriter); + + if (localLongRecordCount == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LongRecordCount cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLongRecordCount); + } + + xmlWriter.writeEndElement(); + } + if (localIsSuperfileTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "isSuperfile", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("isSuperfile cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSuperfile)); + } + + xmlWriter.writeEndElement(); + } + if (localIsZipfileTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "isZipfile", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("isZipfile cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsZipfile)); + } + + xmlWriter.writeEndElement(); + } + if (localIsDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "isDirectory", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("isDirectory cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsDirectory)); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Replicate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Replicate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplicate)); + } + + xmlWriter.writeEndElement(); + } + if (localIntSizeTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "IntSize", xmlWriter); + + if (localIntSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("IntSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIntSize)); + } + + xmlWriter.writeEndElement(); + } + if (localIntRecordCountTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "IntRecordCount", xmlWriter); + + if (localIntRecordCount == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("IntRecordCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIntRecordCount)); + } + + xmlWriter.writeEndElement(); + } + if (localFromRoxieClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "FromRoxieCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("FromRoxieCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localFromRoxieCluster)); + } + + xmlWriter.writeEndElement(); + } + if (localBrowseDataTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "BrowseData", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("BrowseData cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBrowseData)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFULogicalFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFULogicalFile object = new DFULogicalFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFULogicalFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFULogicalFile) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Prefix") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Prefix" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPrefix( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Directory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Directory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Parts") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Parts" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setParts( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Totalsize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Totalsize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotalsize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "RecordCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RecordCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRecordCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Modified") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Modified" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setModified( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "LongSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LongSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLongSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "LongRecordCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LongRecordCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLongRecordCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "isSuperfile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "isSuperfile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsSuperfile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "isZipfile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "isZipfile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsZipfile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "isDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "isDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Replicate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Replicate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "IntSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IntSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIntSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "IntRecordCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IntRecordCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIntRecordCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "FromRoxieCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FromRoxieCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFromRoxieCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "BrowseData") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BrowseData" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBrowseData( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefArrayActionRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefArrayActionRequest.java index 0f716d950..647aa34e4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefArrayActionRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefArrayActionRequest.java @@ -1,585 +1,658 @@ -/** - * DFUXRefArrayActionRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefArrayActionRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefArrayActionRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefArrayActionRequest", "ns1"); - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Action */ - protected java.lang.String localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction(java.lang.String param) { - localActionTracker = param != null; - - this.localAction = param; - } - - /** field for XRefFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray localXRefFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localXRefFilesTracker = false; - - public boolean isXRefFilesSpecified() { - return localXRefFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray getXRefFiles() { - return localXRefFiles; - } - - /** - * Auto generated setter method - * - * @param param XRefFiles - */ - public void setXRefFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray param) { - localXRefFilesTracker = param != null; - - this.localXRefFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefArrayActionRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefArrayActionRequest", - xmlWriter); - } - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localActionTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Action", xmlWriter); - - if (localAction == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAction); - } - - xmlWriter.writeEndElement(); - } - if (localXRefFilesTracker) { - if (localXRefFiles == null) { - throw new org.apache.axis2.databinding.ADBException("XRefFiles cannot be null!!"); - } - localXRefFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "XRefFiles"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefArrayActionRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefArrayActionRequest object = new DFUXRefArrayActionRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefArrayActionRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefArrayActionRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Action") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Action" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "XRefFiles") - .equals(reader.getName())) { - - object.setXRefFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefArrayActionRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefArrayActionRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefArrayActionRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefArrayActionRequest", "ns1"); + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Action */ + protected java.lang.String localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction(java.lang.String param) { + localActionTracker = param != null; + + this.localAction = param; + } + + /** field for XRefFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray localXRefFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localXRefFilesTracker = false; + + public boolean isXRefFilesSpecified() { + return localXRefFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray getXRefFiles() { + return localXRefFiles; + } + + /** + * Auto generated setter method + * + * @param param XRefFiles + */ + public void setXRefFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray param) { + localXRefFilesTracker = param != null; + + this.localXRefFiles = param; + } + + /** field for RemoveFromSuperfiles */ + protected boolean localRemoveFromSuperfiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoveFromSuperfilesTracker = false; + + public boolean isRemoveFromSuperfilesSpecified() { + return localRemoveFromSuperfilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRemoveFromSuperfiles() { + return localRemoveFromSuperfiles; + } + + /** + * Auto generated setter method + * + * @param param RemoveFromSuperfiles + */ + public void setRemoveFromSuperfiles(boolean param) { + + // setting primitive attribute tracker to true + localRemoveFromSuperfilesTracker = true; + + this.localRemoveFromSuperfiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefArrayActionRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefArrayActionRequest", + xmlWriter); + } + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localActionTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Action", xmlWriter); + + if (localAction == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAction); + } + + xmlWriter.writeEndElement(); + } + if (localXRefFilesTracker) { + if (localXRefFiles == null) { + throw new org.apache.axis2.databinding.ADBException("XRefFiles cannot be null!!"); + } + localXRefFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "XRefFiles"), xmlWriter); + } + if (localRemoveFromSuperfilesTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "RemoveFromSuperfiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "RemoveFromSuperfiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localRemoveFromSuperfiles)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefArrayActionRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefArrayActionRequest object = new DFUXRefArrayActionRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefArrayActionRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefArrayActionRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Action") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Action" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "XRefFiles") + .equals(reader.getName())) { + + object.setXRefFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "RemoveFromSuperfiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoveFromSuperfiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoveFromSuperfiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefArrayActionResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefArrayActionResponse.java index 913fdaab8..7767ef076 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefArrayActionResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefArrayActionResponse.java @@ -1,399 +1,399 @@ -/** - * DFUXRefArrayActionResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefArrayActionResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefArrayActionResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefArrayActionResponse", "ns1"); - - /** field for DFUXRefArrayActionResult */ - protected java.lang.String localDFUXRefArrayActionResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefArrayActionResultTracker = false; - - public boolean isDFUXRefArrayActionResultSpecified() { - return localDFUXRefArrayActionResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefArrayActionResult() { - return localDFUXRefArrayActionResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefArrayActionResult - */ - public void setDFUXRefArrayActionResult(java.lang.String param) { - localDFUXRefArrayActionResultTracker = param != null; - - this.localDFUXRefArrayActionResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefArrayActionResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefArrayActionResponse", - xmlWriter); - } - } - if (localDFUXRefArrayActionResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefArrayActionResult", xmlWriter); - - if (localDFUXRefArrayActionResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "DFUXRefArrayActionResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefArrayActionResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefArrayActionResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefArrayActionResponse object = new DFUXRefArrayActionResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefArrayActionResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefArrayActionResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefArrayActionResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefArrayActionResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefArrayActionResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefArrayActionResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefArrayActionResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefArrayActionResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefArrayActionResponse", "ns1"); + + /** field for DFUXRefArrayActionResult */ + protected java.lang.String localDFUXRefArrayActionResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefArrayActionResultTracker = false; + + public boolean isDFUXRefArrayActionResultSpecified() { + return localDFUXRefArrayActionResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefArrayActionResult() { + return localDFUXRefArrayActionResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefArrayActionResult + */ + public void setDFUXRefArrayActionResult(java.lang.String param) { + localDFUXRefArrayActionResultTracker = param != null; + + this.localDFUXRefArrayActionResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefArrayActionResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefArrayActionResponse", + xmlWriter); + } + } + if (localDFUXRefArrayActionResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefArrayActionResult", xmlWriter); + + if (localDFUXRefArrayActionResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "DFUXRefArrayActionResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefArrayActionResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefArrayActionResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefArrayActionResponse object = new DFUXRefArrayActionResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefArrayActionResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefArrayActionResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefArrayActionResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefArrayActionResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefArrayActionResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildCancelRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildCancelRequest.java index 92808fa95..26d5fff6e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildCancelRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildCancelRequest.java @@ -1,315 +1,315 @@ -/** - * DFUXRefBuildCancelRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefBuildCancelRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefBuildCancelRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildCancelRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefBuildCancelRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefBuildCancelRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefBuildCancelRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefBuildCancelRequest object = new DFUXRefBuildCancelRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefBuildCancelRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefBuildCancelRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefBuildCancelRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefBuildCancelRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefBuildCancelRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildCancelRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefBuildCancelRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefBuildCancelRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefBuildCancelRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefBuildCancelRequest object = new DFUXRefBuildCancelRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefBuildCancelRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefBuildCancelRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildCancelResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildCancelResponse.java index 4e977bcef..20a04d55e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildCancelResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildCancelResponse.java @@ -1,399 +1,399 @@ -/** - * DFUXRefBuildCancelResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefBuildCancelResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefBuildCancelResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildCancelResponse", "ns1"); - - /** field for DFUXRefBuildCancelResult */ - protected java.lang.String localDFUXRefBuildCancelResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefBuildCancelResultTracker = false; - - public boolean isDFUXRefBuildCancelResultSpecified() { - return localDFUXRefBuildCancelResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefBuildCancelResult() { - return localDFUXRefBuildCancelResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefBuildCancelResult - */ - public void setDFUXRefBuildCancelResult(java.lang.String param) { - localDFUXRefBuildCancelResultTracker = param != null; - - this.localDFUXRefBuildCancelResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefBuildCancelResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefBuildCancelResponse", - xmlWriter); - } - } - if (localDFUXRefBuildCancelResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefBuildCancelResult", xmlWriter); - - if (localDFUXRefBuildCancelResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "DFUXRefBuildCancelResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefBuildCancelResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefBuildCancelResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefBuildCancelResponse object = new DFUXRefBuildCancelResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefBuildCancelResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefBuildCancelResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildCancelResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefBuildCancelResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefBuildCancelResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefBuildCancelResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefBuildCancelResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefBuildCancelResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildCancelResponse", "ns1"); + + /** field for DFUXRefBuildCancelResult */ + protected java.lang.String localDFUXRefBuildCancelResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefBuildCancelResultTracker = false; + + public boolean isDFUXRefBuildCancelResultSpecified() { + return localDFUXRefBuildCancelResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefBuildCancelResult() { + return localDFUXRefBuildCancelResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefBuildCancelResult + */ + public void setDFUXRefBuildCancelResult(java.lang.String param) { + localDFUXRefBuildCancelResultTracker = param != null; + + this.localDFUXRefBuildCancelResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefBuildCancelResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefBuildCancelResponse", + xmlWriter); + } + } + if (localDFUXRefBuildCancelResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefBuildCancelResult", xmlWriter); + + if (localDFUXRefBuildCancelResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "DFUXRefBuildCancelResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefBuildCancelResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefBuildCancelResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefBuildCancelResponse object = new DFUXRefBuildCancelResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefBuildCancelResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefBuildCancelResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildCancelResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefBuildCancelResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefBuildCancelResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildRequest.java index d9e993c78..490bfef18 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildRequest.java @@ -1,396 +1,396 @@ -/** - * DFUXRefBuildRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefBuildRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefBuildRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildRequest", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefBuildRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefBuildRequest", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefBuildRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefBuildRequest object = new DFUXRefBuildRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefBuildRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefBuildRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefBuildRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefBuildRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefBuildRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildRequest", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefBuildRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefBuildRequest", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefBuildRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefBuildRequest object = new DFUXRefBuildRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefBuildRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefBuildRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildResponse.java index e2e71f5a9..81962308c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefBuildResponse.java @@ -1,397 +1,397 @@ -/** - * DFUXRefBuildResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefBuildResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefBuildResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildResponse", "ns1"); - - /** field for DFUXRefActionResult */ - protected java.lang.String localDFUXRefActionResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefActionResultTracker = false; - - public boolean isDFUXRefActionResultSpecified() { - return localDFUXRefActionResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefActionResult() { - return localDFUXRefActionResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefActionResult - */ - public void setDFUXRefActionResult(java.lang.String param) { - localDFUXRefActionResultTracker = param != null; - - this.localDFUXRefActionResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefBuildResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefBuildResponse", - xmlWriter); - } - } - if (localDFUXRefActionResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefActionResult", xmlWriter); - - if (localDFUXRefActionResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUXRefActionResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefActionResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefBuildResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefBuildResponse object = new DFUXRefBuildResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefBuildResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefBuildResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefActionResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefActionResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefActionResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefBuildResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefBuildResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefBuildResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildResponse", "ns1"); + + /** field for DFUXRefActionResult */ + protected java.lang.String localDFUXRefActionResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefActionResultTracker = false; + + public boolean isDFUXRefActionResultSpecified() { + return localDFUXRefActionResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefActionResult() { + return localDFUXRefActionResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefActionResult + */ + public void setDFUXRefActionResult(java.lang.String param) { + localDFUXRefActionResultTracker = param != null; + + this.localDFUXRefActionResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefBuildResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefBuildResponse", + xmlWriter); + } + } + if (localDFUXRefActionResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefActionResult", xmlWriter); + + if (localDFUXRefActionResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUXRefActionResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefActionResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefBuildResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefBuildResponse object = new DFUXRefBuildResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefBuildResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefBuildResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefActionResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefActionResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefActionResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefCleanDirectoriesRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefCleanDirectoriesRequest.java index a41e666cc..f07e7ee6c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefCleanDirectoriesRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefCleanDirectoriesRequest.java @@ -1,397 +1,397 @@ -/** - * DFUXRefCleanDirectoriesRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefCleanDirectoriesRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefCleanDirectoriesRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefCleanDirectoriesRequest", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefCleanDirectoriesRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefCleanDirectoriesRequest", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefCleanDirectoriesRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefCleanDirectoriesRequest object = new DFUXRefCleanDirectoriesRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefCleanDirectoriesRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefCleanDirectoriesRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefCleanDirectoriesRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefCleanDirectoriesRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefCleanDirectoriesRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefCleanDirectoriesRequest", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefCleanDirectoriesRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefCleanDirectoriesRequest", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefCleanDirectoriesRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefCleanDirectoriesRequest object = new DFUXRefCleanDirectoriesRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefCleanDirectoriesRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefCleanDirectoriesRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefCleanDirectoriesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefCleanDirectoriesResponse.java index 8fffd2709..e20417ef0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefCleanDirectoriesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefCleanDirectoriesResponse.java @@ -1,382 +1,382 @@ -/** - * DFUXRefCleanDirectoriesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefCleanDirectoriesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefCleanDirectoriesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefCleanDirectoriesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefCleanDirectoriesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefCleanDirectoriesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefCleanDirectoriesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefCleanDirectoriesResponse object = new DFUXRefCleanDirectoriesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefCleanDirectoriesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefCleanDirectoriesResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefCleanDirectoriesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefCleanDirectoriesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefCleanDirectoriesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefCleanDirectoriesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefCleanDirectoriesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefCleanDirectoriesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefCleanDirectoriesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefCleanDirectoriesResponse object = new DFUXRefCleanDirectoriesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefCleanDirectoriesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefCleanDirectoriesResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefDirectoriesQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefDirectoriesQueryRequest.java index 988b65e06..e789754cb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefDirectoriesQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefDirectoriesQueryRequest.java @@ -1,397 +1,397 @@ -/** - * DFUXRefDirectoriesQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefDirectoriesQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefDirectoriesQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefDirectoriesQueryRequest", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefDirectoriesQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefDirectoriesQueryRequest", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefDirectoriesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefDirectoriesQueryRequest object = new DFUXRefDirectoriesQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefDirectoriesQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefDirectoriesQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefDirectoriesQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefDirectoriesQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefDirectoriesQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefDirectoriesQueryRequest", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefDirectoriesQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefDirectoriesQueryRequest", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefDirectoriesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefDirectoriesQueryRequest object = new DFUXRefDirectoriesQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefDirectoriesQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefDirectoriesQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefDirectoriesQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefDirectoriesQueryResponse.java index 7383e63c0..5288cb601 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefDirectoriesQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefDirectoriesQueryResponse.java @@ -1,399 +1,399 @@ -/** - * DFUXRefDirectoriesQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefDirectoriesQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefDirectoriesQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefDirectoriesQueryResponse", "ns1"); - - /** field for DFUXRefDirectoriesQueryResult */ - protected java.lang.String localDFUXRefDirectoriesQueryResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefDirectoriesQueryResultTracker = false; - - public boolean isDFUXRefDirectoriesQueryResultSpecified() { - return localDFUXRefDirectoriesQueryResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefDirectoriesQueryResult() { - return localDFUXRefDirectoriesQueryResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefDirectoriesQueryResult - */ - public void setDFUXRefDirectoriesQueryResult(java.lang.String param) { - localDFUXRefDirectoriesQueryResultTracker = param != null; - - this.localDFUXRefDirectoriesQueryResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefDirectoriesQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefDirectoriesQueryResponse", - xmlWriter); - } - } - if (localDFUXRefDirectoriesQueryResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefDirectoriesQueryResult", xmlWriter); - - if (localDFUXRefDirectoriesQueryResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "DFUXRefDirectoriesQueryResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefDirectoriesQueryResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefDirectoriesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefDirectoriesQueryResponse object = new DFUXRefDirectoriesQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefDirectoriesQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefDirectoriesQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefDirectoriesQueryResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefDirectoriesQueryResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefDirectoriesQueryResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefDirectoriesQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefDirectoriesQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefDirectoriesQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefDirectoriesQueryResponse", "ns1"); + + /** field for DFUXRefDirectoriesQueryResult */ + protected java.lang.String localDFUXRefDirectoriesQueryResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefDirectoriesQueryResultTracker = false; + + public boolean isDFUXRefDirectoriesQueryResultSpecified() { + return localDFUXRefDirectoriesQueryResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefDirectoriesQueryResult() { + return localDFUXRefDirectoriesQueryResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefDirectoriesQueryResult + */ + public void setDFUXRefDirectoriesQueryResult(java.lang.String param) { + localDFUXRefDirectoriesQueryResultTracker = param != null; + + this.localDFUXRefDirectoriesQueryResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefDirectoriesQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefDirectoriesQueryResponse", + xmlWriter); + } + } + if (localDFUXRefDirectoriesQueryResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefDirectoriesQueryResult", xmlWriter); + + if (localDFUXRefDirectoriesQueryResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "DFUXRefDirectoriesQueryResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefDirectoriesQueryResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefDirectoriesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefDirectoriesQueryResponse object = new DFUXRefDirectoriesQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefDirectoriesQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefDirectoriesQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefDirectoriesQueryResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefDirectoriesQueryResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefDirectoriesQueryResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefFoundFilesQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefFoundFilesQueryRequest.java index 8bbe62a05..fd72d5849 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefFoundFilesQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefFoundFilesQueryRequest.java @@ -1,397 +1,397 @@ -/** - * DFUXRefFoundFilesQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefFoundFilesQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefFoundFilesQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefFoundFilesQueryRequest", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefFoundFilesQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefFoundFilesQueryRequest", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefFoundFilesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefFoundFilesQueryRequest object = new DFUXRefFoundFilesQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefFoundFilesQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefFoundFilesQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefFoundFilesQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefFoundFilesQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefFoundFilesQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefFoundFilesQueryRequest", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefFoundFilesQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefFoundFilesQueryRequest", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefFoundFilesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefFoundFilesQueryRequest object = new DFUXRefFoundFilesQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefFoundFilesQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefFoundFilesQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefFoundFilesQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefFoundFilesQueryResponse.java index 3447b5f5d..132589ca5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefFoundFilesQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefFoundFilesQueryResponse.java @@ -1,399 +1,399 @@ -/** - * DFUXRefFoundFilesQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefFoundFilesQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefFoundFilesQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefFoundFilesQueryResponse", "ns1"); - - /** field for DFUXRefFoundFilesQueryResult */ - protected java.lang.String localDFUXRefFoundFilesQueryResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefFoundFilesQueryResultTracker = false; - - public boolean isDFUXRefFoundFilesQueryResultSpecified() { - return localDFUXRefFoundFilesQueryResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefFoundFilesQueryResult() { - return localDFUXRefFoundFilesQueryResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefFoundFilesQueryResult - */ - public void setDFUXRefFoundFilesQueryResult(java.lang.String param) { - localDFUXRefFoundFilesQueryResultTracker = param != null; - - this.localDFUXRefFoundFilesQueryResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefFoundFilesQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefFoundFilesQueryResponse", - xmlWriter); - } - } - if (localDFUXRefFoundFilesQueryResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefFoundFilesQueryResult", xmlWriter); - - if (localDFUXRefFoundFilesQueryResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "DFUXRefFoundFilesQueryResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefFoundFilesQueryResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefFoundFilesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefFoundFilesQueryResponse object = new DFUXRefFoundFilesQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefFoundFilesQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefFoundFilesQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefFoundFilesQueryResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefFoundFilesQueryResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefFoundFilesQueryResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefFoundFilesQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefFoundFilesQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefFoundFilesQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefFoundFilesQueryResponse", "ns1"); + + /** field for DFUXRefFoundFilesQueryResult */ + protected java.lang.String localDFUXRefFoundFilesQueryResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefFoundFilesQueryResultTracker = false; + + public boolean isDFUXRefFoundFilesQueryResultSpecified() { + return localDFUXRefFoundFilesQueryResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefFoundFilesQueryResult() { + return localDFUXRefFoundFilesQueryResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefFoundFilesQueryResult + */ + public void setDFUXRefFoundFilesQueryResult(java.lang.String param) { + localDFUXRefFoundFilesQueryResultTracker = param != null; + + this.localDFUXRefFoundFilesQueryResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefFoundFilesQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefFoundFilesQueryResponse", + xmlWriter); + } + } + if (localDFUXRefFoundFilesQueryResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefFoundFilesQueryResult", xmlWriter); + + if (localDFUXRefFoundFilesQueryResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "DFUXRefFoundFilesQueryResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefFoundFilesQueryResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefFoundFilesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefFoundFilesQueryResponse object = new DFUXRefFoundFilesQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefFoundFilesQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefFoundFilesQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefFoundFilesQueryResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefFoundFilesQueryResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefFoundFilesQueryResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefListRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefListRequest.java index 7b247b9fd..91997657d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefListRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefListRequest.java @@ -1,314 +1,314 @@ -/** - * DFUXRefListRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefListRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefListRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefListRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefListRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefListRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefListRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefListRequest object = new DFUXRefListRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefListRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefListRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefListRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefListRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefListRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefListRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefListRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefListRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefListRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefListRequest object = new DFUXRefListRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefListRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefListRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefListResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefListResponse.java index 28be3f7a0..ea6486a4c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefListResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefListResponse.java @@ -1,397 +1,397 @@ -/** - * DFUXRefListResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefListResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefListResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefListResponse", "ns1"); - - /** field for DFUXRefListResult */ - protected java.lang.String localDFUXRefListResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefListResultTracker = false; - - public boolean isDFUXRefListResultSpecified() { - return localDFUXRefListResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefListResult() { - return localDFUXRefListResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefListResult - */ - public void setDFUXRefListResult(java.lang.String param) { - localDFUXRefListResultTracker = param != null; - - this.localDFUXRefListResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefListResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefListResponse", - xmlWriter); - } - } - if (localDFUXRefListResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefListResult", xmlWriter); - - if (localDFUXRefListResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DFUXRefListResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefListResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefListResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefListResponse object = new DFUXRefListResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefListResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefListResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefListResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefListResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefListResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefListResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefListResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefListResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefListResponse", "ns1"); + + /** field for DFUXRefListResult */ + protected java.lang.String localDFUXRefListResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefListResultTracker = false; + + public boolean isDFUXRefListResultSpecified() { + return localDFUXRefListResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefListResult() { + return localDFUXRefListResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefListResult + */ + public void setDFUXRefListResult(java.lang.String param) { + localDFUXRefListResultTracker = param != null; + + this.localDFUXRefListResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefListResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefListResponse", + xmlWriter); + } + } + if (localDFUXRefListResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefListResult", xmlWriter); + + if (localDFUXRefListResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DFUXRefListResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefListResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefListResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefListResponse object = new DFUXRefListResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefListResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefListResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefListResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefListResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefListResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefLostFilesQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefLostFilesQueryRequest.java index 5cb284b73..9b5c49401 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefLostFilesQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefLostFilesQueryRequest.java @@ -1,397 +1,397 @@ -/** - * DFUXRefLostFilesQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefLostFilesQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefLostFilesQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefLostFilesQueryRequest", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefLostFilesQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefLostFilesQueryRequest", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefLostFilesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefLostFilesQueryRequest object = new DFUXRefLostFilesQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefLostFilesQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefLostFilesQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefLostFilesQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefLostFilesQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefLostFilesQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefLostFilesQueryRequest", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefLostFilesQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefLostFilesQueryRequest", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefLostFilesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefLostFilesQueryRequest object = new DFUXRefLostFilesQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefLostFilesQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefLostFilesQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefLostFilesQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefLostFilesQueryResponse.java index 169e7259d..b758a5086 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefLostFilesQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefLostFilesQueryResponse.java @@ -1,399 +1,399 @@ -/** - * DFUXRefLostFilesQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefLostFilesQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefLostFilesQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefLostFilesQueryResponse", "ns1"); - - /** field for DFUXRefLostFilesQueryResult */ - protected java.lang.String localDFUXRefLostFilesQueryResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefLostFilesQueryResultTracker = false; - - public boolean isDFUXRefLostFilesQueryResultSpecified() { - return localDFUXRefLostFilesQueryResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefLostFilesQueryResult() { - return localDFUXRefLostFilesQueryResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefLostFilesQueryResult - */ - public void setDFUXRefLostFilesQueryResult(java.lang.String param) { - localDFUXRefLostFilesQueryResultTracker = param != null; - - this.localDFUXRefLostFilesQueryResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefLostFilesQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefLostFilesQueryResponse", - xmlWriter); - } - } - if (localDFUXRefLostFilesQueryResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefLostFilesQueryResult", xmlWriter); - - if (localDFUXRefLostFilesQueryResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "DFUXRefLostFilesQueryResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefLostFilesQueryResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefLostFilesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefLostFilesQueryResponse object = new DFUXRefLostFilesQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefLostFilesQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefLostFilesQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefLostFilesQueryResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefLostFilesQueryResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefLostFilesQueryResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefLostFilesQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefLostFilesQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefLostFilesQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefLostFilesQueryResponse", "ns1"); + + /** field for DFUXRefLostFilesQueryResult */ + protected java.lang.String localDFUXRefLostFilesQueryResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefLostFilesQueryResultTracker = false; + + public boolean isDFUXRefLostFilesQueryResultSpecified() { + return localDFUXRefLostFilesQueryResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefLostFilesQueryResult() { + return localDFUXRefLostFilesQueryResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefLostFilesQueryResult + */ + public void setDFUXRefLostFilesQueryResult(java.lang.String param) { + localDFUXRefLostFilesQueryResultTracker = param != null; + + this.localDFUXRefLostFilesQueryResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefLostFilesQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefLostFilesQueryResponse", + xmlWriter); + } + } + if (localDFUXRefLostFilesQueryResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefLostFilesQueryResult", xmlWriter); + + if (localDFUXRefLostFilesQueryResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "DFUXRefLostFilesQueryResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefLostFilesQueryResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefLostFilesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefLostFilesQueryResponse object = new DFUXRefLostFilesQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefLostFilesQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefLostFilesQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefLostFilesQueryResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefLostFilesQueryResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefLostFilesQueryResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefMessagesQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefMessagesQueryRequest.java index e0e4bc49e..1ab9c01e8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefMessagesQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefMessagesQueryRequest.java @@ -1,397 +1,397 @@ -/** - * DFUXRefMessagesQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefMessagesQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefMessagesQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefMessagesQueryRequest", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefMessagesQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefMessagesQueryRequest", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefMessagesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefMessagesQueryRequest object = new DFUXRefMessagesQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefMessagesQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefMessagesQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefMessagesQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefMessagesQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefMessagesQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefMessagesQueryRequest", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefMessagesQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefMessagesQueryRequest", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefMessagesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefMessagesQueryRequest object = new DFUXRefMessagesQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefMessagesQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefMessagesQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefMessagesQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefMessagesQueryResponse.java index 09b8fff56..7c5a34533 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefMessagesQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefMessagesQueryResponse.java @@ -1,399 +1,399 @@ -/** - * DFUXRefMessagesQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefMessagesQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefMessagesQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefMessagesQueryResponse", "ns1"); - - /** field for DFUXRefMessagesQueryResult */ - protected java.lang.String localDFUXRefMessagesQueryResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefMessagesQueryResultTracker = false; - - public boolean isDFUXRefMessagesQueryResultSpecified() { - return localDFUXRefMessagesQueryResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefMessagesQueryResult() { - return localDFUXRefMessagesQueryResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefMessagesQueryResult - */ - public void setDFUXRefMessagesQueryResult(java.lang.String param) { - localDFUXRefMessagesQueryResultTracker = param != null; - - this.localDFUXRefMessagesQueryResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefMessagesQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefMessagesQueryResponse", - xmlWriter); - } - } - if (localDFUXRefMessagesQueryResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefMessagesQueryResult", xmlWriter); - - if (localDFUXRefMessagesQueryResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "DFUXRefMessagesQueryResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefMessagesQueryResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefMessagesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefMessagesQueryResponse object = new DFUXRefMessagesQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefMessagesQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefMessagesQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefMessagesQueryResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefMessagesQueryResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefMessagesQueryResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefMessagesQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefMessagesQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefMessagesQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefMessagesQueryResponse", "ns1"); + + /** field for DFUXRefMessagesQueryResult */ + protected java.lang.String localDFUXRefMessagesQueryResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefMessagesQueryResultTracker = false; + + public boolean isDFUXRefMessagesQueryResultSpecified() { + return localDFUXRefMessagesQueryResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefMessagesQueryResult() { + return localDFUXRefMessagesQueryResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefMessagesQueryResult + */ + public void setDFUXRefMessagesQueryResult(java.lang.String param) { + localDFUXRefMessagesQueryResultTracker = param != null; + + this.localDFUXRefMessagesQueryResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefMessagesQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefMessagesQueryResponse", + xmlWriter); + } + } + if (localDFUXRefMessagesQueryResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefMessagesQueryResult", xmlWriter); + + if (localDFUXRefMessagesQueryResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "DFUXRefMessagesQueryResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefMessagesQueryResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefMessagesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefMessagesQueryResponse object = new DFUXRefMessagesQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefMessagesQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefMessagesQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefMessagesQueryResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefMessagesQueryResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefMessagesQueryResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefOrphanFilesQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefOrphanFilesQueryRequest.java index f25819b1c..b735cd3bf 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefOrphanFilesQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefOrphanFilesQueryRequest.java @@ -1,397 +1,397 @@ -/** - * DFUXRefOrphanFilesQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefOrphanFilesQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefOrphanFilesQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefOrphanFilesQueryRequest", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefOrphanFilesQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefOrphanFilesQueryRequest", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefOrphanFilesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefOrphanFilesQueryRequest object = new DFUXRefOrphanFilesQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefOrphanFilesQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefOrphanFilesQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefOrphanFilesQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefOrphanFilesQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefOrphanFilesQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefOrphanFilesQueryRequest", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefOrphanFilesQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefOrphanFilesQueryRequest", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefOrphanFilesQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefOrphanFilesQueryRequest object = new DFUXRefOrphanFilesQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefOrphanFilesQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefOrphanFilesQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefOrphanFilesQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefOrphanFilesQueryResponse.java index eb3bd2609..eddbc712c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefOrphanFilesQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefOrphanFilesQueryResponse.java @@ -1,399 +1,399 @@ -/** - * DFUXRefOrphanFilesQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefOrphanFilesQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefOrphanFilesQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefOrphanFilesQueryResponse", "ns1"); - - /** field for DFUXRefOrphanFilesQueryResult */ - protected java.lang.String localDFUXRefOrphanFilesQueryResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUXRefOrphanFilesQueryResultTracker = false; - - public boolean isDFUXRefOrphanFilesQueryResultSpecified() { - return localDFUXRefOrphanFilesQueryResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDFUXRefOrphanFilesQueryResult() { - return localDFUXRefOrphanFilesQueryResult; - } - - /** - * Auto generated setter method - * - * @param param DFUXRefOrphanFilesQueryResult - */ - public void setDFUXRefOrphanFilesQueryResult(java.lang.String param) { - localDFUXRefOrphanFilesQueryResultTracker = param != null; - - this.localDFUXRefOrphanFilesQueryResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefOrphanFilesQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefOrphanFilesQueryResponse", - xmlWriter); - } - } - if (localDFUXRefOrphanFilesQueryResultTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "DFUXRefOrphanFilesQueryResult", xmlWriter); - - if (localDFUXRefOrphanFilesQueryResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "DFUXRefOrphanFilesQueryResult cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDFUXRefOrphanFilesQueryResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefOrphanFilesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefOrphanFilesQueryResponse object = new DFUXRefOrphanFilesQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefOrphanFilesQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefOrphanFilesQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefOrphanFilesQueryResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DFUXRefOrphanFilesQueryResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDFUXRefOrphanFilesQueryResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefOrphanFilesQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefOrphanFilesQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefOrphanFilesQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefOrphanFilesQueryResponse", "ns1"); + + /** field for DFUXRefOrphanFilesQueryResult */ + protected java.lang.String localDFUXRefOrphanFilesQueryResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUXRefOrphanFilesQueryResultTracker = false; + + public boolean isDFUXRefOrphanFilesQueryResultSpecified() { + return localDFUXRefOrphanFilesQueryResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDFUXRefOrphanFilesQueryResult() { + return localDFUXRefOrphanFilesQueryResult; + } + + /** + * Auto generated setter method + * + * @param param DFUXRefOrphanFilesQueryResult + */ + public void setDFUXRefOrphanFilesQueryResult(java.lang.String param) { + localDFUXRefOrphanFilesQueryResultTracker = param != null; + + this.localDFUXRefOrphanFilesQueryResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefOrphanFilesQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefOrphanFilesQueryResponse", + xmlWriter); + } + } + if (localDFUXRefOrphanFilesQueryResultTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "DFUXRefOrphanFilesQueryResult", xmlWriter); + + if (localDFUXRefOrphanFilesQueryResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "DFUXRefOrphanFilesQueryResult cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDFUXRefOrphanFilesQueryResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefOrphanFilesQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefOrphanFilesQueryResponse object = new DFUXRefOrphanFilesQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefOrphanFilesQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefOrphanFilesQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefOrphanFilesQueryResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DFUXRefOrphanFilesQueryResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDFUXRefOrphanFilesQueryResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefUnusedFilesRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefUnusedFilesRequest.java index 206a73b3f..f3311be68 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefUnusedFilesRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefUnusedFilesRequest.java @@ -1,645 +1,645 @@ -/** - * DFUXRefUnusedFilesRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefUnusedFilesRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefUnusedFilesRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefUnusedFilesRequest", "ns1"); - - /** field for ProcessCluster */ - protected java.lang.String localProcessCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessClusterTracker = false; - - public boolean isProcessClusterSpecified() { - return localProcessClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProcessCluster() { - return localProcessCluster; - } - - /** - * Auto generated setter method - * - * @param param ProcessCluster - */ - public void setProcessCluster(java.lang.String param) { - localProcessClusterTracker = param != null; - - this.localProcessCluster = param; - } - - /** field for CheckPackageMaps */ - protected boolean localCheckPackageMaps; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCheckPackageMapsTracker = false; - - public boolean isCheckPackageMapsSpecified() { - return localCheckPackageMapsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCheckPackageMaps() { - return localCheckPackageMaps; - } - - /** - * Auto generated setter method - * - * @param param CheckPackageMaps - */ - public void setCheckPackageMaps(boolean param) { - - // setting primitive attribute tracker to true - localCheckPackageMapsTracker = true; - - this.localCheckPackageMaps = param; - } - - /** field for GetFileDetails */ - protected boolean localGetFileDetails = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGetFileDetailsTracker = false; - - public boolean isGetFileDetailsSpecified() { - return localGetFileDetailsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getGetFileDetails() { - return localGetFileDetails; - } - - /** - * Auto generated setter method - * - * @param param GetFileDetails - */ - public void setGetFileDetails(boolean param) { - - // setting primitive attribute tracker to true - localGetFileDetailsTracker = true; - - this.localGetFileDetails = param; - } - - /** field for ProcessClusterList */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray - localProcessClusterList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessClusterListTracker = false; - - public boolean isProcessClusterListSpecified() { - return localProcessClusterListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray - getProcessClusterList() { - return localProcessClusterList; - } - - /** - * Auto generated setter method - * - * @param param ProcessClusterList - */ - public void setProcessClusterList( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray param) { - localProcessClusterListTracker = param != null; - - this.localProcessClusterList = param; - } - - /** field for CheckPlanes */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray localCheckPlanes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCheckPlanesTracker = false; - - public boolean isCheckPlanesSpecified() { - return localCheckPlanesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray getCheckPlanes() { - return localCheckPlanes; - } - - /** - * Auto generated setter method - * - * @param param CheckPlanes - */ - public void setCheckPlanes( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray param) { - localCheckPlanesTracker = param != null; - - this.localCheckPlanes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefUnusedFilesRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefUnusedFilesRequest", - xmlWriter); - } - } - if (localProcessClusterTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "ProcessCluster", xmlWriter); - - if (localProcessCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ProcessCluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProcessCluster); - } - - xmlWriter.writeEndElement(); - } - if (localCheckPackageMapsTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "CheckPackageMaps", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CheckPackageMaps cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localCheckPackageMaps)); - } - - xmlWriter.writeEndElement(); - } - if (localGetFileDetailsTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "GetFileDetails", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("GetFileDetails cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGetFileDetails)); - } - - xmlWriter.writeEndElement(); - } - if (localProcessClusterListTracker) { - if (localProcessClusterList == null) { - throw new org.apache.axis2.databinding.ADBException("ProcessClusterList cannot be null!!"); - } - localProcessClusterList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ProcessClusterList"), - xmlWriter); - } - if (localCheckPlanesTracker) { - if (localCheckPlanes == null) { - throw new org.apache.axis2.databinding.ADBException("CheckPlanes cannot be null!!"); - } - localCheckPlanes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "CheckPlanes"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefUnusedFilesRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefUnusedFilesRequest object = new DFUXRefUnusedFilesRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefUnusedFilesRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefUnusedFilesRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ProcessCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProcessCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcessCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "CheckPackageMaps") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CheckPackageMaps" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCheckPackageMaps( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "GetFileDetails") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GetFileDetails" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGetFileDetails( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "ProcessClusterList") - .equals(reader.getName())) { - - object.setProcessClusterList( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "CheckPlanes") - .equals(reader.getName())) { - - object.setCheckPlanes( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefUnusedFilesRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefUnusedFilesRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefUnusedFilesRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefUnusedFilesRequest", "ns1"); + + /** field for ProcessCluster */ + protected java.lang.String localProcessCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessClusterTracker = false; + + public boolean isProcessClusterSpecified() { + return localProcessClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProcessCluster() { + return localProcessCluster; + } + + /** + * Auto generated setter method + * + * @param param ProcessCluster + */ + public void setProcessCluster(java.lang.String param) { + localProcessClusterTracker = param != null; + + this.localProcessCluster = param; + } + + /** field for CheckPackageMaps */ + protected boolean localCheckPackageMaps; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCheckPackageMapsTracker = false; + + public boolean isCheckPackageMapsSpecified() { + return localCheckPackageMapsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCheckPackageMaps() { + return localCheckPackageMaps; + } + + /** + * Auto generated setter method + * + * @param param CheckPackageMaps + */ + public void setCheckPackageMaps(boolean param) { + + // setting primitive attribute tracker to true + localCheckPackageMapsTracker = true; + + this.localCheckPackageMaps = param; + } + + /** field for GetFileDetails */ + protected boolean localGetFileDetails = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGetFileDetailsTracker = false; + + public boolean isGetFileDetailsSpecified() { + return localGetFileDetailsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getGetFileDetails() { + return localGetFileDetails; + } + + /** + * Auto generated setter method + * + * @param param GetFileDetails + */ + public void setGetFileDetails(boolean param) { + + // setting primitive attribute tracker to true + localGetFileDetailsTracker = true; + + this.localGetFileDetails = param; + } + + /** field for ProcessClusterList */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray + localProcessClusterList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessClusterListTracker = false; + + public boolean isProcessClusterListSpecified() { + return localProcessClusterListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray + getProcessClusterList() { + return localProcessClusterList; + } + + /** + * Auto generated setter method + * + * @param param ProcessClusterList + */ + public void setProcessClusterList( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray param) { + localProcessClusterListTracker = param != null; + + this.localProcessClusterList = param; + } + + /** field for CheckPlanes */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray localCheckPlanes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCheckPlanesTracker = false; + + public boolean isCheckPlanesSpecified() { + return localCheckPlanesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray getCheckPlanes() { + return localCheckPlanes; + } + + /** + * Auto generated setter method + * + * @param param CheckPlanes + */ + public void setCheckPlanes( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray param) { + localCheckPlanesTracker = param != null; + + this.localCheckPlanes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefUnusedFilesRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefUnusedFilesRequest", + xmlWriter); + } + } + if (localProcessClusterTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "ProcessCluster", xmlWriter); + + if (localProcessCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ProcessCluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProcessCluster); + } + + xmlWriter.writeEndElement(); + } + if (localCheckPackageMapsTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "CheckPackageMaps", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CheckPackageMaps cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localCheckPackageMaps)); + } + + xmlWriter.writeEndElement(); + } + if (localGetFileDetailsTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "GetFileDetails", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("GetFileDetails cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGetFileDetails)); + } + + xmlWriter.writeEndElement(); + } + if (localProcessClusterListTracker) { + if (localProcessClusterList == null) { + throw new org.apache.axis2.databinding.ADBException("ProcessClusterList cannot be null!!"); + } + localProcessClusterList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ProcessClusterList"), + xmlWriter); + } + if (localCheckPlanesTracker) { + if (localCheckPlanes == null) { + throw new org.apache.axis2.databinding.ADBException("CheckPlanes cannot be null!!"); + } + localCheckPlanes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "CheckPlanes"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefUnusedFilesRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefUnusedFilesRequest object = new DFUXRefUnusedFilesRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefUnusedFilesRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefUnusedFilesRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ProcessCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProcessCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcessCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "CheckPackageMaps") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CheckPackageMaps" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCheckPackageMaps( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "GetFileDetails") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GetFileDetails" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGetFileDetails( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "ProcessClusterList") + .equals(reader.getName())) { + + object.setProcessClusterList( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "CheckPlanes") + .equals(reader.getName())) { + + object.setCheckPlanes( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefUnusedFilesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefUnusedFilesResponse.java index b166ff1e8..0595318e9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefUnusedFilesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/DFUXRefUnusedFilesResponse.java @@ -1,560 +1,560 @@ -/** - * DFUXRefUnusedFilesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** DFUXRefUnusedFilesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUXRefUnusedFilesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefUnusedFilesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for UnusedFileCount */ - protected org.apache.axis2.databinding.types.UnsignedInt localUnusedFileCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUnusedFileCountTracker = false; - - public boolean isUnusedFileCountSpecified() { - return localUnusedFileCountTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getUnusedFileCount() { - return localUnusedFileCount; - } - - /** - * Auto generated setter method - * - * @param param UnusedFileCount - */ - public void setUnusedFileCount(org.apache.axis2.databinding.types.UnsignedInt param) { - localUnusedFileCountTracker = param != null; - - this.localUnusedFileCount = param; - } - - /** field for UnusedFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0 localUnusedFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUnusedFilesTracker = false; - - public boolean isUnusedFilesSpecified() { - return localUnusedFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0 getUnusedFiles() { - return localUnusedFiles; - } - - /** - * Auto generated setter method - * - * @param param UnusedFiles - */ - public void setUnusedFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0 param) { - localUnusedFilesTracker = param != null; - - this.localUnusedFiles = param; - } - - /** field for UnusedFilesWithDetails */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile - localUnusedFilesWithDetails; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUnusedFilesWithDetailsTracker = false; - - public boolean isUnusedFilesWithDetailsSpecified() { - return localUnusedFilesWithDetailsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile - getUnusedFilesWithDetails() { - return localUnusedFilesWithDetails; - } - - /** - * Auto generated setter method - * - * @param param UnusedFilesWithDetails - */ - public void setUnusedFilesWithDetails( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile param) { - localUnusedFilesWithDetailsTracker = param != null; - - this.localUnusedFilesWithDetails = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUXRefUnusedFilesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DFUXRefUnusedFilesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), xmlWriter); - } - if (localUnusedFileCountTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "UnusedFileCount", xmlWriter); - - if (localUnusedFileCount == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("UnusedFileCount cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUnusedFileCount)); - } - - xmlWriter.writeEndElement(); - } - if (localUnusedFilesTracker) { - if (localUnusedFiles == null) { - throw new org.apache.axis2.databinding.ADBException("UnusedFiles cannot be null!!"); - } - localUnusedFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "UnusedFiles"), xmlWriter); - } - if (localUnusedFilesWithDetailsTracker) { - if (localUnusedFilesWithDetails == null) { - throw new org.apache.axis2.databinding.ADBException( - "UnusedFilesWithDetails cannot be null!!"); - } - localUnusedFilesWithDetails.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "UnusedFilesWithDetails"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUXRefUnusedFilesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DFUXRefUnusedFilesResponse object = new DFUXRefUnusedFilesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUXRefUnusedFilesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUXRefUnusedFilesResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "UnusedFileCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UnusedFileCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUnusedFileCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "UnusedFiles") - .equals(reader.getName())) { - - object.setUnusedFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "UnusedFilesWithDetails") - .equals(reader.getName())) { - - object.setUnusedFilesWithDetails( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUXRefUnusedFilesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** DFUXRefUnusedFilesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUXRefUnusedFilesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefUnusedFilesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for UnusedFileCount */ + protected org.apache.axis2.databinding.types.UnsignedInt localUnusedFileCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUnusedFileCountTracker = false; + + public boolean isUnusedFileCountSpecified() { + return localUnusedFileCountTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getUnusedFileCount() { + return localUnusedFileCount; + } + + /** + * Auto generated setter method + * + * @param param UnusedFileCount + */ + public void setUnusedFileCount(org.apache.axis2.databinding.types.UnsignedInt param) { + localUnusedFileCountTracker = param != null; + + this.localUnusedFileCount = param; + } + + /** field for UnusedFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0 localUnusedFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUnusedFilesTracker = false; + + public boolean isUnusedFilesSpecified() { + return localUnusedFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0 getUnusedFiles() { + return localUnusedFiles; + } + + /** + * Auto generated setter method + * + * @param param UnusedFiles + */ + public void setUnusedFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0 param) { + localUnusedFilesTracker = param != null; + + this.localUnusedFiles = param; + } + + /** field for UnusedFilesWithDetails */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile + localUnusedFilesWithDetails; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUnusedFilesWithDetailsTracker = false; + + public boolean isUnusedFilesWithDetailsSpecified() { + return localUnusedFilesWithDetailsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile + getUnusedFilesWithDetails() { + return localUnusedFilesWithDetails; + } + + /** + * Auto generated setter method + * + * @param param UnusedFilesWithDetails + */ + public void setUnusedFilesWithDetails( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile param) { + localUnusedFilesWithDetailsTracker = param != null; + + this.localUnusedFilesWithDetails = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUXRefUnusedFilesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DFUXRefUnusedFilesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), xmlWriter); + } + if (localUnusedFileCountTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "UnusedFileCount", xmlWriter); + + if (localUnusedFileCount == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("UnusedFileCount cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUnusedFileCount)); + } + + xmlWriter.writeEndElement(); + } + if (localUnusedFilesTracker) { + if (localUnusedFiles == null) { + throw new org.apache.axis2.databinding.ADBException("UnusedFiles cannot be null!!"); + } + localUnusedFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "UnusedFiles"), xmlWriter); + } + if (localUnusedFilesWithDetailsTracker) { + if (localUnusedFilesWithDetails == null) { + throw new org.apache.axis2.databinding.ADBException( + "UnusedFilesWithDetails cannot be null!!"); + } + localUnusedFilesWithDetails.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "UnusedFilesWithDetails"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUXRefUnusedFilesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DFUXRefUnusedFilesResponse object = new DFUXRefUnusedFilesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUXRefUnusedFilesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUXRefUnusedFilesResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "UnusedFileCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UnusedFileCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUnusedFileCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "UnusedFiles") + .equals(reader.getName())) { + + object.setUnusedFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "UnusedFilesWithDetails") + .equals(reader.getName())) { + + object.setUnusedFilesWithDetails( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspException.java index b05f4270a..3016977e3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspException.java @@ -1,599 +1,599 @@ -/** - * EspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** EspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspException - Namespace URI = urn:hpccsystems:ws:wsdfuxref - Namespace Prefix = ns1 - */ - - /** field for Code */ - protected java.lang.String localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(java.lang.String param) { - localCodeTracker = param != null; - - this.localCode = param; - } - - /** field for Audience */ - protected java.lang.String localAudience; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAudienceTracker = false; - - public boolean isAudienceSpecified() { - return localAudienceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAudience() { - return localAudience; - } - - /** - * Auto generated setter method - * - * @param param Audience - */ - public void setAudience(java.lang.String param) { - localAudienceTracker = param != null; - - this.localAudience = param; - } - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspException", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); - } - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Code", xmlWriter); - - if (localCode == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCode); - } - - xmlWriter.writeEndElement(); - } - if (localAudienceTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Audience", xmlWriter); - - if (localAudience == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAudience); - } - - xmlWriter.writeEndElement(); - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspException object = new EspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspException) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Audience") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Audience" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAudience( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** EspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspException + Namespace URI = urn:hpccsystems:ws:wsdfuxref + Namespace Prefix = ns1 + */ + + /** field for Code */ + protected java.lang.String localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(java.lang.String param) { + localCodeTracker = param != null; + + this.localCode = param; + } + + /** field for Audience */ + protected java.lang.String localAudience; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAudienceTracker = false; + + public boolean isAudienceSpecified() { + return localAudienceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAudience() { + return localAudience; + } + + /** + * Auto generated setter method + * + * @param param Audience + */ + public void setAudience(java.lang.String param) { + localAudienceTracker = param != null; + + this.localAudience = param; + } + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspException", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); + } + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Code", xmlWriter); + + if (localCode == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCode); + } + + xmlWriter.writeEndElement(); + } + if (localAudienceTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Audience", xmlWriter); + + if (localAudience == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAudience); + } + + xmlWriter.writeEndElement(); + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspException object = new EspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspException) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Audience") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Audience" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAudience( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspSoapFault.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspSoapFault.java index a0da63183..f78e7e6f7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspSoapFault.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspSoapFault.java @@ -1,38 +1,38 @@ -/** - * EspSoapFault.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -public class EspSoapFault extends java.lang.Exception { - - private static final long serialVersionUID = 1686862907442L; - - private org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions faultMessage; - - public EspSoapFault() { - super("EspSoapFault"); - } - - public EspSoapFault(java.lang.String s) { - super(s); - } - - public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { - super(s, ex); - } - - public EspSoapFault(java.lang.Throwable cause) { - super(cause); - } - - public void setFaultMessage(org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions msg) { - faultMessage = msg; - } - - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions getFaultMessage() { - return faultMessage; - } -} +/** + * EspSoapFault.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +public class EspSoapFault extends java.lang.Exception { + + private static final long serialVersionUID = 1710335009158L; + + private org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions faultMessage; + + public EspSoapFault() { + super("EspSoapFault"); + } + + public EspSoapFault(java.lang.String s) { + super(s); + } + + public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { + super(s, ex); + } + + public EspSoapFault(java.lang.Throwable cause) { + super(cause); + } + + public void setFaultMessage(org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions msg) { + faultMessage = msg; + } + + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions getFaultMessage() { + return faultMessage; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspStringArray.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspStringArray.java index 051af1c05..778f652af 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspStringArray.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/EspStringArray.java @@ -1,451 +1,451 @@ -/** - * EspStringArray.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** EspStringArray bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspStringArray implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspStringArray - Namespace URI = urn:hpccsystems:ws:wsdfuxref - Namespace Prefix = ns1 - */ - - /** field for Item This was an Array! */ - protected java.lang.String[] localItem; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localItemTracker = false; - - public boolean isItemSpecified() { - return localItemTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getItem() { - return localItem; - } - - /** validate the array for Item */ - protected void validateItem(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Item - */ - public void setItem(java.lang.String[] param) { - - validateItem(param); - - localItemTracker = param != null; - - this.localItem = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addItem(java.lang.String param) { - if (localItem == null) { - localItem = new java.lang.String[] {}; - } - - // update the setting tracker - localItemTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); - list.add(param); - this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspStringArray", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "EspStringArray", - xmlWriter); - } - } - if (localItemTracker) { - if (localItem != null) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - for (int i = 0; i < localItem.length; i++) { - - if (localItem[i] != null) { - - writeStartElement(null, namespace, "Item", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspStringArray object = new EspStringArray(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspStringArray".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspStringArray) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Item") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Item") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspStringArray.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** EspStringArray bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspStringArray implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspStringArray + Namespace URI = urn:hpccsystems:ws:wsdfuxref + Namespace Prefix = ns1 + */ + + /** field for Item This was an Array! */ + protected java.lang.String[] localItem; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localItemTracker = false; + + public boolean isItemSpecified() { + return localItemTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getItem() { + return localItem; + } + + /** validate the array for Item */ + protected void validateItem(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Item + */ + public void setItem(java.lang.String[] param) { + + validateItem(param); + + localItemTracker = param != null; + + this.localItem = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addItem(java.lang.String param) { + if (localItem == null) { + localItem = new java.lang.String[] {}; + } + + // update the setting tracker + localItemTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); + list.add(param); + this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspStringArray", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "EspStringArray", + xmlWriter); + } + } + if (localItemTracker) { + if (localItem != null) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + for (int i = 0; i < localItem.length; i++) { + + if (localItem[i] != null) { + + writeStartElement(null, namespace, "Item", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspStringArray object = new EspStringArray(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspStringArray".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspStringArray) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Item") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Item") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/Exceptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/Exceptions.java index 2d28ed13d..3fcf62377 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/Exceptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/Exceptions.java @@ -1,316 +1,316 @@ -/** - * Exceptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** Exceptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Exceptions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException - localExceptions; - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException param) { - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); - } - localExceptions.serialize(MY_QNAME, xmlWriter); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Exceptions object = new Exceptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException.Factory - .parse(reader)); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Exceptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** Exceptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Exceptions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException + localExceptions; + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException param) { + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); + } + localExceptions.serialize(MY_QNAME, xmlWriter); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Exceptions object = new Exceptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException.Factory + .parse(reader)); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ExtensionMapper.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ExtensionMapper.java index 208ff5f70..8d746d1c3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ExtensionMapper.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/ExtensionMapper.java @@ -1,61 +1,61 @@ -/** - * ExtensionMapper.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** ExtensionMapper class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExtensionMapper { - - public static java.lang.Object getTypeObject( - java.lang.String namespaceURI, - java.lang.String typeName, - javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - - if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) - && "ArrayOfDFULogicalFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) && "EspStringArray".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) - && "ArrayOfEspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) && "EspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) - && "UnusedFiles_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) && "DFULogicalFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile.Factory.parse( - reader); - } - - throw new org.apache.axis2.databinding.ADBException( - "Unsupported type " + namespaceURI + " " + typeName); - } -} +/** + * ExtensionMapper.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** ExtensionMapper class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExtensionMapper { + + public static java.lang.Object getTypeObject( + java.lang.String namespaceURI, + java.lang.String typeName, + javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + + if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) + && "ArrayOfDFULogicalFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfDFULogicalFile.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) && "EspStringArray".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspStringArray.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) + && "ArrayOfEspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ArrayOfEspException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) && "EspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) + && "UnusedFiles_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.UnusedFiles_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsdfuxref".equals(namespaceURI) && "DFULogicalFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFULogicalFile.Factory.parse( + reader); + } + + throw new org.apache.axis2.databinding.ADBException( + "Unsupported type " + namespaceURI + " " + typeName); + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/String.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/String.java index f54d0dc91..234560878 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/String.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/String.java @@ -1,360 +1,360 @@ -/** - * String.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** String bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class String implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "string", "ns1"); - - /** field for String */ - protected java.lang.String localString; - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getString() { - return localString; - } - - /** - * Auto generated setter method - * - * @param param String - */ - public void setString(java.lang.String param) { - - this.localString = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - java.lang.String namespace = "urn:hpccsystems:ws:wsdfuxref"; - java.lang.String _localName = "string"; - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":string", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); - } - } - - if (localString == null) { - - // write the nil attribute - writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); - - } else { - - xmlWriter.writeCharacters(localString); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - String object = new String(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - // Skip the element and report the null value. It cannot have subelements. - while (!reader.isEndElement()) reader.next(); - - return object; - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "string") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { - - java.lang.String content = reader.getElementText(); - - object.setString( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - } else { - - reader.getElementText(); // throw away text nodes if any. - } - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * String.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** String bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class String implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "string", "ns1"); + + /** field for String */ + protected java.lang.String localString; + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getString() { + return localString; + } + + /** + * Auto generated setter method + * + * @param param String + */ + public void setString(java.lang.String param) { + + this.localString = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + java.lang.String namespace = "urn:hpccsystems:ws:wsdfuxref"; + java.lang.String _localName = "string"; + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":string", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); + } + } + + if (localString == null) { + + // write the nil attribute + writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); + + } else { + + xmlWriter.writeCharacters(localString); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + String object = new String(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + // Skip the element and report the null value. It cannot have subelements. + while (!reader.isEndElement()) reader.next(); + + return object; + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "string") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { + + java.lang.String content = reader.getElementText(); + + object.setString( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + } else { + + reader.getElementText(); // throw away text nodes if any. + } + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/UnusedFiles_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/UnusedFiles_type0.java index 4b8ccc05f..29566e266 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/UnusedFiles_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/UnusedFiles_type0.java @@ -1,451 +1,451 @@ -/** - * UnusedFiles_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** UnusedFiles_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class UnusedFiles_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = UnusedFiles_type0 - Namespace URI = urn:hpccsystems:ws:wsdfuxref - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected java.lang.String[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile(java.lang.String[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addFile(java.lang.String param) { - if (localFile == null) { - localFile = new java.lang.String[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":UnusedFiles_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "UnusedFiles_type0", - xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - namespace = "urn:hpccsystems:ws:wsdfuxref"; - for (int i = 0; i < localFile.length; i++) { - - if (localFile[i] != null) { - - writeStartElement(null, namespace, "File", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFile[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static UnusedFiles_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - UnusedFiles_type0 object = new UnusedFiles_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"UnusedFiles_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (UnusedFiles_type0) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "File") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * UnusedFiles_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** UnusedFiles_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class UnusedFiles_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = UnusedFiles_type0 + Namespace URI = urn:hpccsystems:ws:wsdfuxref + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected java.lang.String[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile(java.lang.String[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addFile(java.lang.String param) { + if (localFile == null) { + localFile = new java.lang.String[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":UnusedFiles_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "UnusedFiles_type0", + xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + namespace = "urn:hpccsystems:ws:wsdfuxref"; + for (int i = 0; i < localFile.length; i++) { + + if (localFile[i] != null) { + + writeStartElement(null, namespace, "File", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFile[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static UnusedFiles_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + UnusedFiles_type0 object = new UnusedFiles_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"UnusedFiles_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (UnusedFiles_type0) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "File") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRef.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRef.java index 7d2c05dd5..4f807fa60 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRef.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRef.java @@ -1,167 +1,167 @@ -/** - * WsDFUXRef.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/* - * WsDFUXRef java interface - */ - -public interface WsDFUXRef { - - /** - * Auto generated method signature - * - * @param dFUXRefOrphanFilesQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse - dFUXRefOrphanFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest - dFUXRefOrphanFilesQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefListRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse dFUXRefList( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest dFUXRefListRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefFoundFilesQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse - dFUXRefFoundFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest - dFUXRefFoundFilesQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefBuildCancelRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse - dFUXRefBuildCancel( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest - dFUXRefBuildCancelRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefArrayActionRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse - dFUXRefArrayAction( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest - dFUXRefArrayActionRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefLostFilesQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse - dFUXRefLostFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest - dFUXRefLostFilesQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefMessagesQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse - dFUXRefMessages( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest - dFUXRefMessagesQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wsDFUXRefPingRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest - wsDFUXRefPingRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefDirectoriesQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse - dFUXRefDirectories( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest - dFUXRefDirectoriesQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefUnusedFilesRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse - dFUXRefUnusedFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest - dFUXRefUnusedFilesRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefCleanDirectoriesRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse - dFUXRefCleanDirectories( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest - dFUXRefCleanDirectoriesRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param dFUXRefBuildRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse dFUXRefBuild( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest dFUXRefBuildRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; - - // -} +/** + * WsDFUXRef.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/* + * WsDFUXRef java interface + */ + +public interface WsDFUXRef { + + /** + * Auto generated method signature + * + * @param dFUXRefOrphanFilesQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse + dFUXRefOrphanFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest + dFUXRefOrphanFilesQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefListRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse dFUXRefList( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest dFUXRefListRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefFoundFilesQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse + dFUXRefFoundFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest + dFUXRefFoundFilesQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefBuildCancelRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse + dFUXRefBuildCancel( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest + dFUXRefBuildCancelRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefArrayActionRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse + dFUXRefArrayAction( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest + dFUXRefArrayActionRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefLostFilesQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse + dFUXRefLostFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest + dFUXRefLostFilesQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefMessagesQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse + dFUXRefMessages( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest + dFUXRefMessagesQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wsDFUXRefPingRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest + wsDFUXRefPingRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefDirectoriesQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse + dFUXRefDirectories( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest + dFUXRefDirectoriesQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefUnusedFilesRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse + dFUXRefUnusedFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest + dFUXRefUnusedFilesRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefCleanDirectoriesRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse + dFUXRefCleanDirectories( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest + dFUXRefCleanDirectoriesRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param dFUXRefBuildRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse dFUXRefBuild( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest dFUXRefBuildRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault; + + // +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefPingRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefPingRequest.java index 6b282468c..b43394077 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefPingRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefPingRequest.java @@ -1,314 +1,314 @@ -/** - * WsDFUXRefPingRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** WsDFUXRefPingRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsDFUXRefPingRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "WsDFUXRefPingRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsDFUXRefPingRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsDFUXRefPingRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsDFUXRefPingRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsDFUXRefPingRequest object = new WsDFUXRefPingRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsDFUXRefPingRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsDFUXRefPingRequest) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsDFUXRefPingRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** WsDFUXRefPingRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsDFUXRefPingRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "WsDFUXRefPingRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsDFUXRefPingRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsDFUXRefPingRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsDFUXRefPingRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsDFUXRefPingRequest object = new WsDFUXRefPingRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsDFUXRefPingRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsDFUXRefPingRequest) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefPingResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefPingResponse.java index f4e445fe0..852d24992 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefPingResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefPingResponse.java @@ -1,314 +1,314 @@ -/** - * WsDFUXRefPingResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/** WsDFUXRefPingResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsDFUXRefPingResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "WsDFUXRefPingResponse", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsDFUXRefPingResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsDFUXRefPingResponse", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsDFUXRefPingResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsDFUXRefPingResponse object = new WsDFUXRefPingResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsDFUXRefPingResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsDFUXRefPingResponse) - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsDFUXRefPingResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/** WsDFUXRefPingResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsDFUXRefPingResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "WsDFUXRefPingResponse", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsdfuxref"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsDFUXRefPingResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsDFUXRefPingResponse", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsdfuxref")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsDFUXRefPingResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsDFUXRefPingResponse object = new WsDFUXRefPingResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsDFUXRefPingResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsDFUXRefPingResponse) + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefStub.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefStub.java index a62614ce5..1799d6c7f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefStub.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsdfuxref/latest/WsDFUXRefStub.java @@ -1,2882 +1,2882 @@ -/** - * WsDFUXRefStub.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; - -/* - * WsDFUXRefStub java implementation - */ - -public class WsDFUXRefStub extends org.apache.axis2.client.Stub implements WsDFUXRef { - protected org.apache.axis2.description.AxisOperation[] _operations; - - // hashmaps to keep the fault mapping - private java.util.Map - faultExceptionNameMap = - new java.util.HashMap(); - private java.util.Map - faultExceptionClassNameMap = - new java.util.HashMap(); - private java.util.Map faultMessageMap = - new java.util.HashMap(); - - private static int counter = 0; - - private static synchronized java.lang.String getUniqueSuffix() { - // reset the counter if it is greater than 99999 - if (counter > 99999) { - counter = 0; - } - counter = counter + 1; - return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; - } - - private void populateAxisService() throws org.apache.axis2.AxisFault { - - // creating the Service with a unique name - _service = new org.apache.axis2.description.AxisService("WsDFUXRef" + getUniqueSuffix()); - addAnonymousOperations(); - - // creating the operations - org.apache.axis2.description.AxisOperation __operation; - - _operations = new org.apache.axis2.description.AxisOperation[12]; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefOrphanFiles")); - _service.addOperation(__operation); - - _operations[0] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefList")); - _service.addOperation(__operation); - - _operations[1] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefFoundFiles")); - _service.addOperation(__operation); - - _operations[2] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefBuildCancel")); - _service.addOperation(__operation); - - _operations[3] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefArrayAction")); - _service.addOperation(__operation); - - _operations[4] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefLostFiles")); - _service.addOperation(__operation); - - _operations[5] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefMessages")); - _service.addOperation(__operation); - - _operations[6] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ping")); - _service.addOperation(__operation); - - _operations[7] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefDirectories")); - _service.addOperation(__operation); - - _operations[8] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefUnusedFiles")); - _service.addOperation(__operation); - - _operations[9] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefCleanDirectories")); - _service.addOperation(__operation); - - _operations[10] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefBuild")); - _service.addOperation(__operation); - - _operations[11] = __operation; - } - - // populates the faults - private void populateFaults() { - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefOrphanFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefOrphanFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefOrphanFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefList"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefList"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefList"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefFoundFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefFoundFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefFoundFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefBuildCancel"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefBuildCancel"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefBuildCancel"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefArrayAction"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefArrayAction"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefArrayAction"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefLostFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefLostFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefLostFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefMessages"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefMessages"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefMessages"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefDirectories"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefDirectories"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefDirectories"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefUnusedFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefUnusedFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefUnusedFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefCleanDirectories"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefCleanDirectories"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefCleanDirectories"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefBuild"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefBuild"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), - "DFUXRefBuild"), - "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); - } - - /** Constructor that takes in a configContext */ - public WsDFUXRefStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint) - throws org.apache.axis2.AxisFault { - this(configurationContext, targetEndpoint, false); - } - - /** Constructor that takes in a configContext and useseperate listner */ - public WsDFUXRefStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint, - boolean useSeparateListener) - throws org.apache.axis2.AxisFault { - // To populate AxisService - populateAxisService(); - populateFaults(); - - _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); - - _serviceClient - .getOptions() - .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); - _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); - } - - /** Default Constructor */ - public WsDFUXRefStub(org.apache.axis2.context.ConfigurationContext configurationContext) - throws org.apache.axis2.AxisFault { - - this(configurationContext, "http://10.1.1.180:8888/WsDFUXRef?ver_=1.03"); - } - - /** Default Constructor */ - public WsDFUXRefStub() throws org.apache.axis2.AxisFault { - - this("http://10.1.1.180:8888/WsDFUXRef?ver_=1.03"); - } - - /** Constructor taking the target endpoint */ - public WsDFUXRefStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { - this(null, targetEndpoint); - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefOrphanFiles - * @param dFUXRefOrphanFilesQueryRequest0 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse - dFUXRefOrphanFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest - dFUXRefOrphanFilesQueryRequest0) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[0].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefOrphanFiles?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefOrphanFilesQueryRequest0, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "dFUXRefOrphanFiles")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefOrphanFilesQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefOrphanFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefOrphanFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefOrphanFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefList - * @param dFUXRefListRequest2 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse dFUXRefList( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest dFUXRefListRequest2) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[1].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefList?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefListRequest2, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefList")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefListRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefList"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefList")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefList")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefFoundFiles - * @param dFUXRefFoundFilesQueryRequest4 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse - dFUXRefFoundFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest - dFUXRefFoundFilesQueryRequest4) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[2].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefFoundFiles?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefFoundFilesQueryRequest4, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "dFUXRefFoundFiles")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefFoundFilesQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefFoundFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefFoundFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefFoundFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefBuildCancel - * @param dFUXRefBuildCancelRequest6 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse - dFUXRefBuildCancel( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest - dFUXRefBuildCancelRequest6) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[3].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefBuildCancel?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefBuildCancelRequest6, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "dFUXRefBuildCancel")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildCancelRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefBuildCancel"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefBuildCancel")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefBuildCancel")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefArrayAction - * @param dFUXRefArrayActionRequest8 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse - dFUXRefArrayAction( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest - dFUXRefArrayActionRequest8) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[4].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefArrayAction?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefArrayActionRequest8, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "dFUXRefArrayAction")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefArrayActionRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefArrayAction"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefArrayAction")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefArrayAction")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefLostFiles - * @param dFUXRefLostFilesQueryRequest10 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse - dFUXRefLostFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest - dFUXRefLostFilesQueryRequest10) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[5].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefLostFiles?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefLostFilesQueryRequest10, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "dFUXRefLostFiles")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefLostFilesQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefLostFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefLostFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefLostFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefMessages - * @param dFUXRefMessagesQueryRequest12 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse - dFUXRefMessages( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest - dFUXRefMessagesQueryRequest12) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[6].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefMessages?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefMessagesQueryRequest12, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefMessages")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefMessagesQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefMessages"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefMessages")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefMessages")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#ping - * @param wsDFUXRefPingRequest14 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest - wsDFUXRefPingRequest14) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[7].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/Ping?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wsDFUXRefPingRequest14, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ping")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "WsDFUXRefPingRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefDirectories - * @param dFUXRefDirectoriesQueryRequest16 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse - dFUXRefDirectories( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest - dFUXRefDirectoriesQueryRequest16) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[8].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefDirectories?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefDirectoriesQueryRequest16, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "dFUXRefDirectories")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefDirectoriesQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefDirectories"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefDirectories")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefDirectories")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefUnusedFiles - * @param dFUXRefUnusedFilesRequest18 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse - dFUXRefUnusedFiles( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest - dFUXRefUnusedFilesRequest18) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[9].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefUnusedFiles?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefUnusedFilesRequest18, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "dFUXRefUnusedFiles")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefUnusedFilesRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefUnusedFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefUnusedFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefUnusedFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefCleanDirectories - * @param dFUXRefCleanDirectoriesRequest20 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse - dFUXRefCleanDirectories( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest - dFUXRefCleanDirectoriesRequest20) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[10].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefCleanDirectories?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefCleanDirectoriesRequest20, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "dFUXRefCleanDirectories")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsdfuxref", "DFUXRefCleanDirectoriesRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefCleanDirectories"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefCleanDirectories")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "DFUXRefCleanDirectories")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefBuild - * @param dFUXRefBuildRequest22 - * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse dFUXRefBuild( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest - dFUXRefBuildRequest22) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[11].getName()); - _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefBuild?ver_=1.03"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - dFUXRefBuildRequest22, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefBuild")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefBuild"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefBuild")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefBuild")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - private javax.xml.namespace.QName[] opNameArray = null; - - private boolean optimizeContent(javax.xml.namespace.QName opName) { - - if (opNameArray == null) { - return false; - } - for (int i = 0; i < opNameArray.length; i++) { - if (opName.equals(opNameArray[i])) { - return true; - } - } - return false; - } - // http://10.1.1.180:8888/WsDFUXRef?ver_=1.03 - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest - .DFUXRefOrphanFilesQueryRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest - .DFUXRefDirectoriesQueryRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest - .DFUXRefCleanDirectoriesRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - /** get the default envelope */ - private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { - return factory.getDefaultEnvelope(); - } - - private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) - throws org.apache.axis2.AxisFault { - - try { - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - } catch (java.lang.Exception e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - return null; - } -} +/** + * WsDFUXRefStub.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest; + +/* + * WsDFUXRefStub java implementation + */ + +public class WsDFUXRefStub extends org.apache.axis2.client.Stub implements WsDFUXRef { + protected org.apache.axis2.description.AxisOperation[] _operations; + + // hashmaps to keep the fault mapping + private java.util.Map + faultExceptionNameMap = + new java.util.HashMap(); + private java.util.Map + faultExceptionClassNameMap = + new java.util.HashMap(); + private java.util.Map faultMessageMap = + new java.util.HashMap(); + + private static int counter = 0; + + private static synchronized java.lang.String getUniqueSuffix() { + // reset the counter if it is greater than 99999 + if (counter > 99999) { + counter = 0; + } + counter = counter + 1; + return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; + } + + private void populateAxisService() throws org.apache.axis2.AxisFault { + + // creating the Service with a unique name + _service = new org.apache.axis2.description.AxisService("WsDFUXRef" + getUniqueSuffix()); + addAnonymousOperations(); + + // creating the operations + org.apache.axis2.description.AxisOperation __operation; + + _operations = new org.apache.axis2.description.AxisOperation[12]; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefOrphanFiles")); + _service.addOperation(__operation); + + _operations[0] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefList")); + _service.addOperation(__operation); + + _operations[1] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefFoundFiles")); + _service.addOperation(__operation); + + _operations[2] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefBuildCancel")); + _service.addOperation(__operation); + + _operations[3] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefArrayAction")); + _service.addOperation(__operation); + + _operations[4] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefLostFiles")); + _service.addOperation(__operation); + + _operations[5] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefMessages")); + _service.addOperation(__operation); + + _operations[6] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ping")); + _service.addOperation(__operation); + + _operations[7] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefDirectories")); + _service.addOperation(__operation); + + _operations[8] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefUnusedFiles")); + _service.addOperation(__operation); + + _operations[9] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefCleanDirectories")); + _service.addOperation(__operation); + + _operations[10] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefBuild")); + _service.addOperation(__operation); + + _operations[11] = __operation; + } + + // populates the faults + private void populateFaults() { + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefOrphanFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefOrphanFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefOrphanFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefList"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefList"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefList"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefFoundFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefFoundFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefFoundFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefBuildCancel"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefBuildCancel"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefBuildCancel"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefArrayAction"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefArrayAction"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefArrayAction"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefLostFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefLostFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefLostFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefMessages"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefMessages"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefMessages"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefDirectories"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefDirectories"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefDirectories"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefUnusedFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefUnusedFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefUnusedFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefCleanDirectories"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefCleanDirectories"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefCleanDirectories"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefBuild"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefBuild"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "Exceptions"), + "DFUXRefBuild"), + "org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions"); + } + + /** Constructor that takes in a configContext */ + public WsDFUXRefStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint) + throws org.apache.axis2.AxisFault { + this(configurationContext, targetEndpoint, false); + } + + /** Constructor that takes in a configContext and useseperate listner */ + public WsDFUXRefStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint, + boolean useSeparateListener) + throws org.apache.axis2.AxisFault { + // To populate AxisService + populateAxisService(); + populateFaults(); + + _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); + + _serviceClient + .getOptions() + .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); + _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); + } + + /** Default Constructor */ + public WsDFUXRefStub(org.apache.axis2.context.ConfigurationContext configurationContext) + throws org.apache.axis2.AxisFault { + + this(configurationContext, "http://eclwatch-66ff99685c-4bl4k:8888/WsDFUXRef?ver_=1.04"); + } + + /** Default Constructor */ + public WsDFUXRefStub() throws org.apache.axis2.AxisFault { + + this("http://eclwatch-66ff99685c-4bl4k:8888/WsDFUXRef?ver_=1.04"); + } + + /** Constructor taking the target endpoint */ + public WsDFUXRefStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { + this(null, targetEndpoint); + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefOrphanFiles + * @param dFUXRefOrphanFilesQueryRequest0 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse + dFUXRefOrphanFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest + dFUXRefOrphanFilesQueryRequest0) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[0].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefOrphanFiles?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefOrphanFilesQueryRequest0, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "dFUXRefOrphanFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefOrphanFilesQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefOrphanFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefOrphanFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefOrphanFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefList + * @param dFUXRefListRequest2 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse dFUXRefList( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest dFUXRefListRequest2) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[1].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefList?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefListRequest2, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefList")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefListRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefList"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefList")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefList")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefFoundFiles + * @param dFUXRefFoundFilesQueryRequest4 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse + dFUXRefFoundFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest + dFUXRefFoundFilesQueryRequest4) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[2].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefFoundFiles?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefFoundFilesQueryRequest4, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "dFUXRefFoundFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefFoundFilesQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefFoundFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefFoundFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefFoundFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefBuildCancel + * @param dFUXRefBuildCancelRequest6 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse + dFUXRefBuildCancel( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest + dFUXRefBuildCancelRequest6) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[3].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefBuildCancel?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefBuildCancelRequest6, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "dFUXRefBuildCancel")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildCancelRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefBuildCancel"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefBuildCancel")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefBuildCancel")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefArrayAction + * @param dFUXRefArrayActionRequest8 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse + dFUXRefArrayAction( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest + dFUXRefArrayActionRequest8) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[4].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefArrayAction?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefArrayActionRequest8, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "dFUXRefArrayAction")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefArrayActionRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefArrayAction"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefArrayAction")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefArrayAction")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefLostFiles + * @param dFUXRefLostFilesQueryRequest10 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse + dFUXRefLostFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest + dFUXRefLostFilesQueryRequest10) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[5].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefLostFiles?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefLostFilesQueryRequest10, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "dFUXRefLostFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefLostFilesQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefLostFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefLostFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefLostFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefMessages + * @param dFUXRefMessagesQueryRequest12 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse + dFUXRefMessages( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest + dFUXRefMessagesQueryRequest12) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[6].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefMessages?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefMessagesQueryRequest12, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefMessages")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefMessagesQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefMessages"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefMessages")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefMessages")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#ping + * @param wsDFUXRefPingRequest14 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest + wsDFUXRefPingRequest14) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[7].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/Ping?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wsDFUXRefPingRequest14, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "ping")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "WsDFUXRefPingRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefDirectories + * @param dFUXRefDirectoriesQueryRequest16 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse + dFUXRefDirectories( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest + dFUXRefDirectoriesQueryRequest16) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[8].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefDirectories?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefDirectoriesQueryRequest16, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "dFUXRefDirectories")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefDirectoriesQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefDirectories"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefDirectories")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefDirectories")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefUnusedFiles + * @param dFUXRefUnusedFilesRequest18 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse + dFUXRefUnusedFiles( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest + dFUXRefUnusedFilesRequest18) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[9].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefUnusedFiles?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefUnusedFilesRequest18, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "dFUXRefUnusedFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefUnusedFilesRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefUnusedFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefUnusedFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefUnusedFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefCleanDirectories + * @param dFUXRefCleanDirectoriesRequest20 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse + dFUXRefCleanDirectories( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest + dFUXRefCleanDirectoriesRequest20) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[10].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefCleanDirectories?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefCleanDirectoriesRequest20, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "dFUXRefCleanDirectories")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsdfuxref", "DFUXRefCleanDirectoriesRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefCleanDirectories"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefCleanDirectories")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "DFUXRefCleanDirectories")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRef#dFUXRefBuild + * @param dFUXRefBuildRequest22 + * @throws org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse dFUXRefBuild( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest + dFUXRefBuildRequest22) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[11].getName()); + _operationClient.getOptions().setAction("WsDFUXRef/DFUXRefBuild?ver_=1.04"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + dFUXRefBuildRequest22, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "dFUXRefBuild")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsdfuxref", "DFUXRefBuildRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefBuild"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefBuild")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "DFUXRefBuild")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + private javax.xml.namespace.QName[] opNameArray = null; + + private boolean optimizeContent(javax.xml.namespace.QName opName) { + + if (opNameArray == null) { + return false; + } + for (int i = 0; i < opNameArray.length; i++) { + if (opName.equals(opNameArray[i])) { + return true; + } + } + return false; + } + // http://eclwatch-66ff99685c-4bl4k:8888/WsDFUXRef?ver_=1.04 + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest + .DFUXRefOrphanFilesQueryRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest + .DFUXRefDirectoriesQueryRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest + .DFUXRefCleanDirectoriesRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + /** get the default envelope */ + private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { + return factory.getDefaultEnvelope(); + } + + private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) + throws org.apache.axis2.AxisFault { + + try { + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefArrayActionResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildCancelResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefBuildResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesRequest + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefCleanDirectoriesResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryRequest + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefDirectoriesQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryRequest + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefFoundFilesQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefListResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryRequest + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefLostFilesQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefMessagesQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryRequest + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefOrphanFilesQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.DFUXRefUnusedFilesResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.Exceptions.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsdfuxref.latest.WsDFUXRefPingResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + } catch (java.lang.Exception e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + return null; + } +} diff --git a/wsclient/src/main/resources/WSDLs/FileSpray-126.wsdl b/wsclient/src/main/resources/WSDLs/FileSpray-126.wsdl new file mode 100644 index 000000000..f215f8010 --- /dev/null +++ b/wsclient/src/main/resources/WSDLs/FileSpray-126.wsdl @@ -0,0 +1,4805 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/FileSpray.wsdl b/wsclient/src/main/resources/WSDLs/FileSpray.wsdl index 9bf618566..f215f8010 100644 --- a/wsclient/src/main/resources/WSDLs/FileSpray.wsdl +++ b/wsclient/src/main/resources/WSDLs/FileSpray.wsdl @@ -1,2713 +1,4805 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/WsDFUXRef-104.wsdl b/wsclient/src/main/resources/WSDLs/WsDFUXRef-104.wsdl new file mode 100644 index 000000000..3e7153887 --- /dev/null +++ b/wsclient/src/main/resources/WSDLs/WsDFUXRef-104.wsdl @@ -0,0 +1,1565 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/WsDFUXRef.wsdl b/wsclient/src/main/resources/WSDLs/WsDFUXRef.wsdl index 46ed1ca7c..3e7153887 100644 --- a/wsclient/src/main/resources/WSDLs/WsDFUXRef.wsdl +++ b/wsclient/src/main/resources/WSDLs/WsDFUXRef.wsdl @@ -1,778 +1,1565 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From a1e7cf9922eabfec9f93a355bbd4cc9f7af8d32a Mon Sep 17 00:00:00 2001 From: Rodrigo Pastrana Date: Thu, 14 Mar 2024 14:14:30 -0400 Subject: [PATCH 2/4] HPCC4J-583 Update filespray and dfuxref clients to 9.6.x - Updates wstopology, wssmc - Wssmc wrapper manually updated Signed-off-by: Rodrigo Pastrana --- .../wscloud/latest/ArrayOfEspException.java | 1058 +- .../axis2/wscloud/latest/EspException.java | 1198 +-- .../axis2/wscloud/latest/EspSoapFault.java | 76 +- .../gen/axis2/wscloud/latest/Exceptions.java | 630 +- .../axis2/wscloud/latest/ExtensionMapper.java | 68 +- .../axis2/wscloud/latest/GetPODsRequest.java | 628 +- .../axis2/wscloud/latest/GetPODsResponse.java | 792 +- .../wscloud/latest/GetServicesRequest.java | 628 +- .../wscloud/latest/GetServicesResponse.java | 792 +- .../gen/axis2/wscloud/latest/String.java | 720 +- .../gen/axis2/wscloud/latest/WsCloud.java | 98 +- .../wscloud/latest/WsCloudPingRequest.java | 628 +- .../wscloud/latest/WsCloudPingResponse.java | 628 +- .../gen/axis2/wscloud/latest/WsCloudStub.java | 1592 +-- .../axis2/wssmc/latest/ActiveWorkunit.java | 3530 +++---- .../gen/axis2/wssmc/latest/Activity.java | 2021 ++-- .../axis2/wssmc/latest/ActivityResponse.java | 3318 +++--- .../wssmc/latest/ArrayOfActiveWorkunit.java | 916 +- .../gen/axis2/wssmc/latest/ArrayOfDFUJob.java | 886 +- .../wssmc/latest/ArrayOfEspException.java | 1050 +- .../wssmc/latest/ArrayOfHPCCResource.java | 908 +- .../latest/ArrayOfHPCCResourceRepository.java | 926 +- .../gen/axis2/wssmc/latest/ArrayOfLock.java | 886 +- .../axis2/wssmc/latest/ArrayOfNamedValue.java | 902 +- .../gen/axis2/wssmc/latest/ArrayOfSMCJob.java | 886 +- .../wssmc/latest/ArrayOfServerJobQueue.java | 916 +- .../wssmc/latest/ArrayOfTargetCluster.java | 910 +- .../wssmc/latest/ArrayOfThorCluster.java | 904 +- .../axis2/wssmc/latest/BrowseResources.java | 628 +- .../wssmc/latest/BrowseResourcesResponse.java | 1420 +-- .../gen/axis2/wssmc/latest/ClearQueue.java | 1466 +-- .../client/gen/axis2/wssmc/latest/DFUJob.java | 1200 +-- .../axis2/wssmc/latest/Endpoints_type0.java | 918 +- .../gen/axis2/wssmc/latest/EspException.java | 1198 +-- .../gen/axis2/wssmc/latest/EspSoapFault.java | 76 +- .../axis2/wssmc/latest/EspStringArray.java | 902 +- .../gen/axis2/wssmc/latest/Exceptions.java | 630 +- .../axis2/wssmc/latest/ExtensionMapper.java | 360 +- .../gen/axis2/wssmc/latest/GetBuildInfo.java | 620 +- .../wssmc/latest/GetBuildInfoResponse.java | 864 +- .../wssmc/latest/GetStatusServerInfo.java | 1202 +-- .../latest/GetStatusServerInfoResponse.java | 866 +- .../latest/GetThorQueueAvailability.java | 628 +- .../GetThorQueueAvailabilityResponse.java | 866 +- .../gen/axis2/wssmc/latest/HPCCResource.java | 1198 +-- .../wssmc/latest/HPCCResourceRepository.java | 1038 +- .../client/gen/axis2/wssmc/latest/Index.java | 618 +- .../client/gen/axis2/wssmc/latest/Lock.java | 1710 +-- .../gen/axis2/wssmc/latest/LockModes.java | 838 +- .../gen/axis2/wssmc/latest/LockQuery.java | 1708 +-- .../axis2/wssmc/latest/LockQueryResponse.java | 1000 +- .../gen/axis2/wssmc/latest/MoveJobBack.java | 1194 +-- .../gen/axis2/wssmc/latest/MoveJobDown.java | 1194 +-- .../gen/axis2/wssmc/latest/MoveJobFront.java | 1194 +-- .../gen/axis2/wssmc/latest/MoveJobUp.java | 1194 +-- .../gen/axis2/wssmc/latest/NamedValue.java | 926 +- .../wssmc/latest/NotInCommunityEdition.java | 792 +- .../latest/NotInCommunityEditionResponse.java | 762 +- .../gen/axis2/wssmc/latest/PauseQueue.java | 1466 +-- .../client/gen/axis2/wssmc/latest/Ping.java | 618 +- .../gen/axis2/wssmc/latest/RemoveJob.java | 1194 +-- .../gen/axis2/wssmc/latest/ResumeQueue.java | 1466 +-- .../axis2/wssmc/latest/RoxieControlCmd.java | 1170 +- .../wssmc/latest/RoxieControlCmdResponse.java | 862 +- .../wssmc/latest/RoxieControlCmdType.java | 880 +- .../latest/RoxieControlEndpointInfo.java | 1346 +-- .../gen/axis2/wssmc/latest/RoxieXrefCmd.java | 1164 +- .../wssmc/latest/RoxieXrefCmdResponse.java | 896 +- .../axis2/wssmc/latest/SMCIndexResponse.java | 760 +- .../client/gen/axis2/wssmc/latest/SMCJob.java | 924 +- .../axis2/wssmc/latest/SMCJobResponse.java | 760 +- .../wssmc/latest/SMCPriorityResponse.java | 760 +- .../axis2/wssmc/latest/SMCQueueResponse.java | 864 +- .../axis2/wssmc/latest/ServerJobQueue.java | 1720 +-- .../gen/axis2/wssmc/latest/SetBanner.java | 1744 +-- .../axis2/wssmc/latest/SetBannerResponse.java | 760 +- .../axis2/wssmc/latest/SetJobPriority.java | 1166 +- .../axis2/wssmc/latest/StatusServerInfo.java | 974 +- .../gen/axis2/wssmc/latest/StopQueue.java | 1466 +-- .../client/gen/axis2/wssmc/latest/String.java | 720 +- .../gen/axis2/wssmc/latest/TargetCluster.java | 1748 +-- .../gen/axis2/wssmc/latest/ThorCluster.java | 1888 ++-- .../client/gen/axis2/wssmc/latest/WsSMC.java | 526 +- .../axis2/wssmc/latest/WsSMCPingResponse.java | 628 +- .../gen/axis2/wssmc/latest/WsSMCStub.java | 9400 ++++++++--------- .../latest/ArrayOfEspException.java | 1062 +- .../latest/ArrayOfLogFileStruct.java | 460 + .../wstopology/latest/ArrayOfTpBinding.java | 910 +- .../wstopology/latest/ArrayOfTpCluster.java | 910 +- .../latest/ArrayOfTpClusterNameType.java | 924 +- .../wstopology/latest/ArrayOfTpDali.java | 896 +- .../wstopology/latest/ArrayOfTpDfuServer.java | 912 +- .../wstopology/latest/ArrayOfTpDkcSlave.java | 912 +- .../wstopology/latest/ArrayOfTpDropZone.java | 912 +- .../wstopology/latest/ArrayOfTpEclAgent.java | 912 +- .../latest/ArrayOfTpEclScheduler.java | 922 +- .../wstopology/latest/ArrayOfTpEclServer.java | 912 +- .../wstopology/latest/ArrayOfTpEspServer.java | 912 +- .../wstopology/latest/ArrayOfTpFTSlave.java | 910 +- .../latest/ArrayOfTpGenesisServer.java | 922 +- .../wstopology/latest/ArrayOfTpGroup.java | 904 +- .../latest/ArrayOfTpLdapServer.java | 918 +- .../latest/ArrayOfTpLogicalCluster.java | 922 +- .../wstopology/latest/ArrayOfTpMachine.java | 910 +- .../latest/ArrayOfTpMySqlServer.java | 920 +- .../wstopology/latest/ArrayOfTpQueue.java | 904 +- .../latest/ArrayOfTpSashaServer.java | 920 +- .../wstopology/latest/ArrayOfTpSparkThor.java | 912 +- .../latest/ArrayOfTpTargetCluster.java | 922 +- .../axis2/wstopology/latest/EspException.java | 1198 +-- .../axis2/wstopology/latest/EspSoapFault.java | 78 +- .../wstopology/latest/EspStringArray.java | 902 +- .../axis2/wstopology/latest/Exceptions.java | 632 +- .../wstopology/latest/ExtensionMapper.java | 699 +- .../wstopology/latest/LogFileStruct.java | 737 ++ .../wstopology/latest/Plugins_type0.java | 910 +- .../wstopology/latest/RoxieQueueFilter.java | 826 +- .../gen/axis2/wstopology/latest/String.java | 720 +- .../wstopology/latest/SystemLogRequest.java | 1064 +- .../wstopology/latest/SystemLogResponse.java | 886 +- .../axis2/wstopology/latest/TpBinding.java | 1606 +-- .../axis2/wstopology/latest/TpCluster.java | 2260 ++-- .../latest/TpClusterInfoRequest.java | 792 +- .../latest/TpClusterInfoResponse.java | 1140 +- .../wstopology/latest/TpClusterNameType.java | 1072 +- .../latest/TpClusterQueryRequest.java | 794 +- .../latest/TpClusterQueryResponse.java | 1142 +- .../gen/axis2/wstopology/latest/TpDali.java | 1982 ++-- .../axis2/wstopology/latest/TpDfuServer.java | 1710 +-- .../axis2/wstopology/latest/TpDkcSlave.java | 1302 +-- .../axis2/wstopology/latest/TpDropZone.java | 1576 +-- .../latest/TpDropZoneQueryRequest.java | 936 +- .../latest/TpDropZoneQueryResponse.java | 870 +- .../axis2/wstopology/latest/TpEclAgent.java | 1710 +-- .../wstopology/latest/TpEclScheduler.java | 1582 +-- .../axis2/wstopology/latest/TpEclServer.java | 1574 +-- .../axis2/wstopology/latest/TpEspServer.java | 1678 +-- .../wstopology/latest/TpEspServicePlugin.java | 1206 +-- .../axis2/wstopology/latest/TpFTSlave.java | 1302 +-- .../wstopology/latest/TpGenesisServer.java | 1310 +-- .../latest/TpGetComponentFileRequest.java | 1612 +-- .../latest/TpGetComponentFileResponse.java | 888 +- .../latest/TpGetServicePluginsRequest.java | 630 +- .../latest/TpGetServicePluginsResponse.java | 868 +- .../gen/axis2/wstopology/latest/TpGroup.java | 1068 +- .../latest/TpGroupQueryRequest.java | 792 +- .../latest/TpGroupQueryResponse.java | 866 +- .../axis2/wstopology/latest/TpLdapServer.java | 1302 +-- .../latest/TpListLogFilesRequest.java | 465 + .../latest/TpListLogFilesResponse.java | 434 + .../latest/TpListTargetClustersRequest.java | 630 +- .../latest/TpListTargetClustersResponse.java | 874 +- .../wstopology/latest/TpLogFileRequest.java | 2458 ++--- .../wstopology/latest/TpLogFileResponse.java | 3620 +++---- .../wstopology/latest/TpLogicalCluster.java | 1480 +-- .../latest/TpLogicalClusterQueryRequest.java | 906 +- .../latest/TpLogicalClusterQueryResponse.java | 876 +- .../axis2/wstopology/latest/TpMachine.java | 2294 ++-- .../latest/TpMachineInfoRequest.java | 928 +- .../latest/TpMachineInfoResponse.java | 868 +- .../latest/TpMachineQueryRequest.java | 1474 +-- .../latest/TpMachineQueryResponse.java | 2936 ++--- .../wstopology/latest/TpMySqlServer.java | 1302 +-- .../gen/axis2/wstopology/latest/TpQueue.java | 926 +- .../wstopology/latest/TpSashaServer.java | 1438 +-- .../latest/TpServiceQueryRequest.java | 794 +- .../latest/TpServiceQueryResponse.java | 2114 ++-- .../axis2/wstopology/latest/TpServices.java | 2282 ++-- .../latest/TpSetMachineStatusRequest.java | 930 +- .../latest/TpSetMachineStatusResponse.java | 908 +- .../axis2/wstopology/latest/TpSparkThor.java | 2562 ++--- .../wstopology/latest/TpSwapNodeRequest.java | 1064 +- .../wstopology/latest/TpSwapNodeResponse.java | 904 +- .../wstopology/latest/TpTargetCluster.java | 1610 +-- .../latest/TpTargetClusterQueryRequest.java | 1070 +- .../latest/TpTargetClusterQueryResponse.java | 1982 ++-- .../latest/TpThorStatusRequest.java | 792 +- .../latest/TpThorStatusResponse.java | 2408 ++--- .../wstopology/latest/TpXMLFileRequest.java | 792 +- .../wstopology/latest/TpXMLFileResponse.java | 886 +- .../axis2/wstopology/latest/WsTopology.java | 531 +- .../latest/WsTopologyPingRequest.java | 630 +- .../latest/WsTopologyPingResponse.java | 630 +- .../wstopology/latest/WsTopologyStub.java | 9366 ++++++++-------- .../wrappers/gen/wscloud/WrapperReport.txt | 12 +- .../wssmc/BrowseResourcesResponseWrapper.java | 102 +- .../src/main/resources/WSDLs/WsCloud-101.wsdl | 586 +- .../src/main/resources/WSDLs/WsCloud.wsdl | 586 +- .../src/main/resources/WSDLs/WsSMC-127.wsdl | 3293 ++++++ wsclient/src/main/resources/WSDLs/WsSMC.wsdl | 5170 +++++---- .../main/resources/WSDLs/WsTopology-132.wsdl | 3962 +++++++ .../src/main/resources/WSDLs/WsTopology.wsdl | 6432 ++++++----- 192 files changed, 125361 insertions(+), 112363 deletions(-) create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfLogFileStruct.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/LogFileStruct.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListLogFilesRequest.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListLogFilesResponse.java create mode 100644 wsclient/src/main/resources/WSDLs/WsSMC-127.wsdl create mode 100644 wsclient/src/main/resources/WSDLs/WsTopology-132.wsdl diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/ArrayOfEspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/ArrayOfEspException.java index 53d9f2d44..3f1d3778b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/ArrayOfEspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/ArrayOfEspException.java @@ -1,529 +1,529 @@ -/** - * ArrayOfEspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** ArrayOfEspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfEspException - Namespace URI = urn:hpccsystems:ws:wscloud - Namespace Prefix = ns1 - */ - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Exception This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] localException; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionTracker = false; - - public boolean isExceptionSpecified() { - return localExceptionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] - */ - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] getException() { - return localException; - } - - /** validate the array for Exception */ - protected void validateException( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] param) {} - - /** - * Auto generated setter method - * - * @param param Exception - */ - public void setException( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] param) { - - validateException(param); - - localExceptionTracker = param != null; - - this.localException = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException - */ - public void addException(org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException param) { - if (localException == null) { - localException = new org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] {}; - } - - // update the setting tracker - localExceptionTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); - list.add(param); - this.localException = - (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfEspException", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfEspException", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wscloud"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localExceptionTracker) { - if (localException != null) { - for (int i = 0; i < localException.length; i++) { - if (localException[i] != null) { - localException[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exception"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfEspException object = new ArrayOfEspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfEspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfEspException) - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list2 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exception") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list2.add( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone2 = false; - while (!loopDone2) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone2 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exception") - .equals(reader.getName())) { - list2.add( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException.Factory.parse( - reader)); - - } else { - loopDone2 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setException( - (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException.class, - list2)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfEspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** ArrayOfEspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfEspException + Namespace URI = urn:hpccsystems:ws:wscloud + Namespace Prefix = ns1 + */ + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Exception This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] localException; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionTracker = false; + + public boolean isExceptionSpecified() { + return localExceptionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] + */ + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] getException() { + return localException; + } + + /** validate the array for Exception */ + protected void validateException( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] param) {} + + /** + * Auto generated setter method + * + * @param param Exception + */ + public void setException( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] param) { + + validateException(param); + + localExceptionTracker = param != null; + + this.localException = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException + */ + public void addException(org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException param) { + if (localException == null) { + localException = new org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[] {}; + } + + // update the setting tracker + localExceptionTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); + list.add(param); + this.localException = + (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfEspException", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfEspException", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wscloud"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localExceptionTracker) { + if (localException != null) { + for (int i = 0; i < localException.length; i++) { + if (localException[i] != null) { + localException[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exception"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfEspException object = new ArrayOfEspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfEspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfEspException) + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list2 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exception") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list2.add( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone2 = false; + while (!loopDone2) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone2 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exception") + .equals(reader.getName())) { + list2.add( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException.Factory.parse( + reader)); + + } else { + loopDone2 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setException( + (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException.class, + list2)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/EspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/EspException.java index 665b2f60a..7c89832f6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/EspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/EspException.java @@ -1,599 +1,599 @@ -/** - * EspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** EspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspException - Namespace URI = urn:hpccsystems:ws:wscloud - Namespace Prefix = ns1 - */ - - /** field for Code */ - protected java.lang.String localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(java.lang.String param) { - localCodeTracker = param != null; - - this.localCode = param; - } - - /** field for Audience */ - protected java.lang.String localAudience; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAudienceTracker = false; - - public boolean isAudienceSpecified() { - return localAudienceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAudience() { - return localAudience; - } - - /** - * Auto generated setter method - * - * @param param Audience - */ - public void setAudience(java.lang.String param) { - localAudienceTracker = param != null; - - this.localAudience = param; - } - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspException", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); - } - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:wscloud"; - writeStartElement(null, namespace, "Code", xmlWriter); - - if (localCode == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCode); - } - - xmlWriter.writeEndElement(); - } - if (localAudienceTracker) { - namespace = "urn:hpccsystems:ws:wscloud"; - writeStartElement(null, namespace, "Audience", xmlWriter); - - if (localAudience == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAudience); - } - - xmlWriter.writeEndElement(); - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wscloud"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wscloud"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspException object = new EspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspException) - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Audience") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Audience" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAudience( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** EspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspException + Namespace URI = urn:hpccsystems:ws:wscloud + Namespace Prefix = ns1 + */ + + /** field for Code */ + protected java.lang.String localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(java.lang.String param) { + localCodeTracker = param != null; + + this.localCode = param; + } + + /** field for Audience */ + protected java.lang.String localAudience; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAudienceTracker = false; + + public boolean isAudienceSpecified() { + return localAudienceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAudience() { + return localAudience; + } + + /** + * Auto generated setter method + * + * @param param Audience + */ + public void setAudience(java.lang.String param) { + localAudienceTracker = param != null; + + this.localAudience = param; + } + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspException", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); + } + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:wscloud"; + writeStartElement(null, namespace, "Code", xmlWriter); + + if (localCode == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCode); + } + + xmlWriter.writeEndElement(); + } + if (localAudienceTracker) { + namespace = "urn:hpccsystems:ws:wscloud"; + writeStartElement(null, namespace, "Audience", xmlWriter); + + if (localAudience == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAudience); + } + + xmlWriter.writeEndElement(); + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wscloud"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wscloud"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspException object = new EspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspException) + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Audience") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Audience" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAudience( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/EspSoapFault.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/EspSoapFault.java index 74ee4cc6d..b4a1f1d15 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/EspSoapFault.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/EspSoapFault.java @@ -1,38 +1,38 @@ -/** - * EspSoapFault.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -public class EspSoapFault extends java.lang.Exception { - - private static final long serialVersionUID = 1686863056573L; - - private org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions faultMessage; - - public EspSoapFault() { - super("EspSoapFault"); - } - - public EspSoapFault(java.lang.String s) { - super(s); - } - - public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { - super(s, ex); - } - - public EspSoapFault(java.lang.Throwable cause) { - super(cause); - } - - public void setFaultMessage(org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions msg) { - faultMessage = msg; - } - - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions getFaultMessage() { - return faultMessage; - } -} +/** + * EspSoapFault.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +public class EspSoapFault extends java.lang.Exception { + + private static final long serialVersionUID = 1710381997019L; + + private org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions faultMessage; + + public EspSoapFault() { + super("EspSoapFault"); + } + + public EspSoapFault(java.lang.String s) { + super(s); + } + + public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { + super(s, ex); + } + + public EspSoapFault(java.lang.Throwable cause) { + super(cause); + } + + public void setFaultMessage(org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions msg) { + faultMessage = msg; + } + + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions getFaultMessage() { + return faultMessage; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/Exceptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/Exceptions.java index 25a02c17a..8de5b9c4d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/Exceptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/Exceptions.java @@ -1,315 +1,315 @@ -/** - * Exceptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** Exceptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Exceptions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException localExceptions; - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException param) { - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); - } - localExceptions.serialize(MY_QNAME, xmlWriter); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Exceptions object = new Exceptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException.Factory - .parse(reader)); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Exceptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** Exceptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Exceptions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException localExceptions; + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException param) { + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); + } + localExceptions.serialize(MY_QNAME, xmlWriter); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Exceptions object = new Exceptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException.Factory + .parse(reader)); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/ExtensionMapper.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/ExtensionMapper.java index 6266b218e..2143c29a9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/ExtensionMapper.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/ExtensionMapper.java @@ -1,34 +1,34 @@ -/** - * ExtensionMapper.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** ExtensionMapper class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExtensionMapper { - - public static java.lang.Object getTypeObject( - java.lang.String namespaceURI, - java.lang.String typeName, - javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - - if ("urn:hpccsystems:ws:wscloud".equals(namespaceURI) - && "ArrayOfEspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wscloud".equals(namespaceURI) && "EspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException.Factory.parse(reader); - } - - throw new org.apache.axis2.databinding.ADBException( - "Unsupported type " + namespaceURI + " " + typeName); - } -} +/** + * ExtensionMapper.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** ExtensionMapper class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExtensionMapper { + + public static java.lang.Object getTypeObject( + java.lang.String namespaceURI, + java.lang.String typeName, + javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + + if ("urn:hpccsystems:ws:wscloud".equals(namespaceURI) + && "ArrayOfEspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wscloud".equals(namespaceURI) && "EspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException.Factory.parse(reader); + } + + throw new org.apache.axis2.databinding.ADBException( + "Unsupported type " + namespaceURI + " " + typeName); + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetPODsRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetPODsRequest.java index ae259455e..be10e4896 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetPODsRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetPODsRequest.java @@ -1,314 +1,314 @@ -/** - * GetPODsRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** GetPODsRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetPODsRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetPODsRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetPODsRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetPODsRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetPODsRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetPODsRequest object = new GetPODsRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetPODsRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetPODsRequest) - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetPODsRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** GetPODsRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetPODsRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetPODsRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetPODsRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetPODsRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetPODsRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetPODsRequest object = new GetPODsRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetPODsRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetPODsRequest) + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetPODsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetPODsResponse.java index 43d326153..8d2ed352b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetPODsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetPODsResponse.java @@ -1,396 +1,396 @@ -/** - * GetPODsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** GetPODsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetPODsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetPODsResponse", "ns1"); - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetPODsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetPODsResponse", - xmlWriter); - } - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wscloud"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetPODsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetPODsResponse object = new GetPODsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetPODsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetPODsResponse) - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetPODsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** GetPODsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetPODsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetPODsResponse", "ns1"); + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetPODsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetPODsResponse", + xmlWriter); + } + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wscloud"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetPODsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetPODsResponse object = new GetPODsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetPODsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetPODsResponse) + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetServicesRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetServicesRequest.java index 1541d8259..cba56ebb1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetServicesRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetServicesRequest.java @@ -1,314 +1,314 @@ -/** - * GetServicesRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** GetServicesRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetServicesRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetServicesRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetServicesRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetServicesRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetServicesRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetServicesRequest object = new GetServicesRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetServicesRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetServicesRequest) - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetServicesRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** GetServicesRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetServicesRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetServicesRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetServicesRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetServicesRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetServicesRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetServicesRequest object = new GetServicesRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetServicesRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetServicesRequest) + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetServicesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetServicesResponse.java index 33d86dc90..99fb69e37 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetServicesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/GetServicesResponse.java @@ -1,396 +1,396 @@ -/** - * GetServicesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** GetServicesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetServicesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetServicesResponse", "ns1"); - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetServicesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetServicesResponse", - xmlWriter); - } - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wscloud"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetServicesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetServicesResponse object = new GetServicesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetServicesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetServicesResponse) - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetServicesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** GetServicesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetServicesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetServicesResponse", "ns1"); + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetServicesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetServicesResponse", + xmlWriter); + } + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wscloud"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetServicesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetServicesResponse object = new GetServicesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetServicesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetServicesResponse) + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/String.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/String.java index 85bcbfffb..706079db1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/String.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/String.java @@ -1,360 +1,360 @@ -/** - * String.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** String bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class String implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "string", "ns1"); - - /** field for String */ - protected java.lang.String localString; - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getString() { - return localString; - } - - /** - * Auto generated setter method - * - * @param param String - */ - public void setString(java.lang.String param) { - - this.localString = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - java.lang.String namespace = "urn:hpccsystems:ws:wscloud"; - java.lang.String _localName = "string"; - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":string", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); - } - } - - if (localString == null) { - - // write the nil attribute - writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); - - } else { - - xmlWriter.writeCharacters(localString); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - String object = new String(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - // Skip the element and report the null value. It cannot have subelements. - while (!reader.isEndElement()) reader.next(); - - return object; - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "string") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { - - java.lang.String content = reader.getElementText(); - - object.setString( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - } else { - - reader.getElementText(); // throw away text nodes if any. - } - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * String.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** String bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class String implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "string", "ns1"); + + /** field for String */ + protected java.lang.String localString; + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getString() { + return localString; + } + + /** + * Auto generated setter method + * + * @param param String + */ + public void setString(java.lang.String param) { + + this.localString = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + java.lang.String namespace = "urn:hpccsystems:ws:wscloud"; + java.lang.String _localName = "string"; + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":string", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); + } + } + + if (localString == null) { + + // write the nil attribute + writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); + + } else { + + xmlWriter.writeCharacters(localString); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + String object = new String(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + // Skip the element and report the null value. It cannot have subelements. + while (!reader.isEndElement()) reader.next(); + + return object; + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "string") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { + + java.lang.String content = reader.getElementText(); + + object.setString( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + } else { + + reader.getElementText(); // throw away text nodes if any. + } + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloud.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloud.java index f392f768d..58790d273 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloud.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloud.java @@ -1,49 +1,49 @@ -/** - * WsCloud.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/* - * WsCloud java interface - */ - -public interface WsCloud { - - /** - * Auto generated method signature - * - * @param wsCloudPingRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest wsCloudPingRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getPODsRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse getPODs( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest getPODsRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getServicesRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse getServices( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest getServicesRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault; - - // -} +/** + * WsCloud.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/* + * WsCloud java interface + */ + +public interface WsCloud { + + /** + * Auto generated method signature + * + * @param wsCloudPingRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest wsCloudPingRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getPODsRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse getPODs( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest getPODsRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getServicesRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse getServices( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest getServicesRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault; + + // +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudPingRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudPingRequest.java index 34cfd81ef..cca68c224 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudPingRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudPingRequest.java @@ -1,314 +1,314 @@ -/** - * WsCloudPingRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** WsCloudPingRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsCloudPingRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "WsCloudPingRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsCloudPingRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsCloudPingRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsCloudPingRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsCloudPingRequest object = new WsCloudPingRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsCloudPingRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsCloudPingRequest) - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsCloudPingRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** WsCloudPingRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsCloudPingRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "WsCloudPingRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsCloudPingRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsCloudPingRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsCloudPingRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsCloudPingRequest object = new WsCloudPingRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsCloudPingRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsCloudPingRequest) + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudPingResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudPingResponse.java index 4142961a1..693e4e958 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudPingResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudPingResponse.java @@ -1,314 +1,314 @@ -/** - * WsCloudPingResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/** WsCloudPingResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsCloudPingResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "WsCloudPingResponse", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsCloudPingResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsCloudPingResponse", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wscloud")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsCloudPingResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsCloudPingResponse object = new WsCloudPingResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsCloudPingResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsCloudPingResponse) - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsCloudPingResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/** WsCloudPingResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsCloudPingResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "WsCloudPingResponse", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wscloud"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsCloudPingResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsCloudPingResponse", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wscloud")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsCloudPingResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsCloudPingResponse object = new WsCloudPingResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsCloudPingResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsCloudPingResponse) + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudStub.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudStub.java index 2ea6cbfe8..5e88e334f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudStub.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wscloud/latest/WsCloudStub.java @@ -1,796 +1,796 @@ -/** - * WsCloudStub.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; - -/* - * WsCloudStub java implementation - */ - -public class WsCloudStub extends org.apache.axis2.client.Stub implements WsCloud { - protected org.apache.axis2.description.AxisOperation[] _operations; - - // hashmaps to keep the fault mapping - private java.util.Map - faultExceptionNameMap = - new java.util.HashMap(); - private java.util.Map - faultExceptionClassNameMap = - new java.util.HashMap(); - private java.util.Map faultMessageMap = - new java.util.HashMap(); - - private static int counter = 0; - - private static synchronized java.lang.String getUniqueSuffix() { - // reset the counter if it is greater than 99999 - if (counter > 99999) { - counter = 0; - } - counter = counter + 1; - return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; - } - - private void populateAxisService() throws org.apache.axis2.AxisFault { - - // creating the Service with a unique name - _service = new org.apache.axis2.description.AxisService("WsCloud" + getUniqueSuffix()); - addAnonymousOperations(); - - // creating the operations - org.apache.axis2.description.AxisOperation __operation; - - _operations = new org.apache.axis2.description.AxisOperation[3]; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "ping")); - _service.addOperation(__operation); - - _operations[0] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "getPODs")); - _service.addOperation(__operation); - - _operations[1] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "getServices")); - _service.addOperation(__operation); - - _operations[2] = __operation; - } - - // populates the faults - private void populateFaults() { - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "GetPODs"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "GetPODs"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "GetPODs"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), - "GetServices"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), - "GetServices"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), - "GetServices"), - "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions"); - } - - /** Constructor that takes in a configContext */ - public WsCloudStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint) - throws org.apache.axis2.AxisFault { - this(configurationContext, targetEndpoint, false); - } - - /** Constructor that takes in a configContext and useseperate listner */ - public WsCloudStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint, - boolean useSeparateListener) - throws org.apache.axis2.AxisFault { - // To populate AxisService - populateAxisService(); - populateFaults(); - - _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); - - _serviceClient - .getOptions() - .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); - _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); - } - - /** Default Constructor */ - public WsCloudStub(org.apache.axis2.context.ConfigurationContext configurationContext) - throws org.apache.axis2.AxisFault { - - this(configurationContext, "http://10.1.1.180:8888/WsCloud?ver_=1.01"); - } - - /** Default Constructor */ - public WsCloudStub() throws org.apache.axis2.AxisFault { - - this("http://10.1.1.180:8888/WsCloud?ver_=1.01"); - } - - /** Constructor taking the target endpoint */ - public WsCloudStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { - this(null, targetEndpoint); - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloud#ping - * @param wsCloudPingRequest0 - * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest wsCloudPingRequest0) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[0].getName()); - _operationClient.getOptions().setAction("WsCloud/Ping?ver_=1.01"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wsCloudPingRequest0, - optimizeContent(new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "ping")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "WsCloudPingRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloud#getPODs - * @param getPODsRequest2 - * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse getPODs( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest getPODsRequest2) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[1].getName()); - _operationClient.getOptions().setAction("WsCloud/GetPODs?ver_=1.01"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getPODsRequest2, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "getPODs")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetPODsRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetPODs"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetPODs")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetPODs")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloud#getServices - * @param getServicesRequest4 - * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse getServices( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest getServicesRequest4) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[2].getName()); - _operationClient.getOptions().setAction("WsCloud/GetServices?ver_=1.01"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getServicesRequest4, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "getServices")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetServicesRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetServices"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetServices")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetServices")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - private javax.xml.namespace.QName[] opNameArray = null; - - private boolean optimizeContent(javax.xml.namespace.QName opName) { - - if (opNameArray == null) { - return false; - } - for (int i = 0; i < opNameArray.length; i++) { - if (opName.equals(opNameArray[i])) { - return true; - } - } - return false; - } - // http://10.1.1.180:8888/WsCloud?ver_=1.01 - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - /** get the default envelope */ - private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { - return factory.getDefaultEnvelope(); - } - - private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) - throws org.apache.axis2.AxisFault { - - try { - - if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - } catch (java.lang.Exception e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - return null; - } -} +/** + * WsCloudStub.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wscloud.latest; + +/* + * WsCloudStub java implementation + */ + +public class WsCloudStub extends org.apache.axis2.client.Stub implements WsCloud { + protected org.apache.axis2.description.AxisOperation[] _operations; + + // hashmaps to keep the fault mapping + private java.util.Map + faultExceptionNameMap = + new java.util.HashMap(); + private java.util.Map + faultExceptionClassNameMap = + new java.util.HashMap(); + private java.util.Map faultMessageMap = + new java.util.HashMap(); + + private static int counter = 0; + + private static synchronized java.lang.String getUniqueSuffix() { + // reset the counter if it is greater than 99999 + if (counter > 99999) { + counter = 0; + } + counter = counter + 1; + return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; + } + + private void populateAxisService() throws org.apache.axis2.AxisFault { + + // creating the Service with a unique name + _service = new org.apache.axis2.description.AxisService("WsCloud" + getUniqueSuffix()); + addAnonymousOperations(); + + // creating the operations + org.apache.axis2.description.AxisOperation __operation; + + _operations = new org.apache.axis2.description.AxisOperation[3]; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "ping")); + _service.addOperation(__operation); + + _operations[0] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "getPODs")); + _service.addOperation(__operation); + + _operations[1] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "getServices")); + _service.addOperation(__operation); + + _operations[2] = __operation; + } + + // populates the faults + private void populateFaults() { + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "GetPODs"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "GetPODs"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), "GetPODs"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), + "GetServices"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), + "GetServices"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "Exceptions"), + "GetServices"), + "org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions"); + } + + /** Constructor that takes in a configContext */ + public WsCloudStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint) + throws org.apache.axis2.AxisFault { + this(configurationContext, targetEndpoint, false); + } + + /** Constructor that takes in a configContext and useseperate listner */ + public WsCloudStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint, + boolean useSeparateListener) + throws org.apache.axis2.AxisFault { + // To populate AxisService + populateAxisService(); + populateFaults(); + + _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); + + _serviceClient + .getOptions() + .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); + _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); + } + + /** Default Constructor */ + public WsCloudStub(org.apache.axis2.context.ConfigurationContext configurationContext) + throws org.apache.axis2.AxisFault { + + this(configurationContext, "http://eclwatch-66ff99685c-4bl4k:8888/WsCloud?ver_=1.01"); + } + + /** Default Constructor */ + public WsCloudStub() throws org.apache.axis2.AxisFault { + + this("http://eclwatch-66ff99685c-4bl4k:8888/WsCloud?ver_=1.01"); + } + + /** Constructor taking the target endpoint */ + public WsCloudStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { + this(null, targetEndpoint); + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloud#ping + * @param wsCloudPingRequest0 + * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest wsCloudPingRequest0) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[0].getName()); + _operationClient.getOptions().setAction("WsCloud/Ping?ver_=1.01"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wsCloudPingRequest0, + optimizeContent(new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "ping")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "WsCloudPingRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloud#getPODs + * @param getPODsRequest2 + * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse getPODs( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest getPODsRequest2) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[1].getName()); + _operationClient.getOptions().setAction("WsCloud/GetPODs?ver_=1.01"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getPODsRequest2, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "getPODs")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetPODsRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetPODs"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetPODs")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetPODs")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloud#getServices + * @param getServicesRequest4 + * @throws org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse getServices( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest getServicesRequest4) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[2].getName()); + _operationClient.getOptions().setAction("WsCloud/GetServices?ver_=1.01"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getServicesRequest4, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "getServices")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wscloud", "GetServicesRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetServices"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetServices")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetServices")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + private javax.xml.namespace.QName[] opNameArray = null; + + private boolean optimizeContent(javax.xml.namespace.QName opName) { + + if (opNameArray == null) { + return false; + } + for (int i = 0; i < opNameArray.length; i++) { + if (opName.equals(opNameArray[i])) { + return true; + } + } + return false; + } + // http://eclwatch-66ff99685c-4bl4k:8888/WsCloud?ver_=1.01 + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + /** get the default envelope */ + private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { + return factory.getDefaultEnvelope(); + } + + private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) + throws org.apache.axis2.AxisFault { + + try { + + if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + } catch (java.lang.Exception e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + return null; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ActiveWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ActiveWorkunit.java index 63085bf64..0c78fa3cd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ActiveWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ActiveWorkunit.java @@ -1,1765 +1,1765 @@ -/** - * ActiveWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ActiveWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ActiveWorkunit implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ActiveWorkunit - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for StateID */ - protected int localStateID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateIDTracker = false; - - public boolean isStateIDSpecified() { - return localStateIDTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getStateID() { - return localStateID; - } - - /** - * Auto generated setter method - * - * @param param StateID - */ - public void setStateID(int param) { - - // setting primitive attribute tracker to true - localStateIDTracker = param != java.lang.Integer.MIN_VALUE; - - this.localStateID = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** field for Server */ - protected java.lang.String localServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTracker = false; - - public boolean isServerSpecified() { - return localServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServer() { - return localServer; - } - - /** - * Auto generated setter method - * - * @param param Server - */ - public void setServer(java.lang.String param) { - localServerTracker = param != null; - - this.localServer = param; - } - - /** field for Instance */ - protected java.lang.String localInstance; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localInstanceTracker = false; - - public boolean isInstanceSpecified() { - return localInstanceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getInstance() { - return localInstance; - } - - /** - * Auto generated setter method - * - * @param param Instance - */ - public void setInstance(java.lang.String param) { - localInstanceTracker = param != null; - - this.localInstance = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for Extra */ - protected java.lang.String localExtra; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExtraTracker = false; - - public boolean isExtraSpecified() { - return localExtraTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getExtra() { - return localExtra; - } - - /** - * Auto generated setter method - * - * @param param Extra - */ - public void setExtra(java.lang.String param) { - localExtraTracker = param != null; - - this.localExtra = param; - } - - /** field for GraphName */ - protected java.lang.String localGraphName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNameTracker = false; - - public boolean isGraphNameSpecified() { - return localGraphNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphName() { - return localGraphName; - } - - /** - * Auto generated setter method - * - * @param param GraphName - */ - public void setGraphName(java.lang.String param) { - localGraphNameTracker = param != null; - - this.localGraphName = param; - } - - /** field for Duration */ - protected java.lang.String localDuration; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDurationTracker = false; - - public boolean isDurationSpecified() { - return localDurationTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDuration() { - return localDuration; - } - - /** - * Auto generated setter method - * - * @param param Duration - */ - public void setDuration(java.lang.String param) { - localDurationTracker = param != null; - - this.localDuration = param; - } - - /** field for GID */ - protected java.lang.String localGID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGIDTracker = false; - - public boolean isGIDSpecified() { - return localGIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGID() { - return localGID; - } - - /** - * Auto generated setter method - * - * @param param GID - */ - public void setGID(java.lang.String param) { - localGIDTracker = param != null; - - this.localGID = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for MemoryBlocked */ - protected int localMemoryBlocked; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryBlockedTracker = false; - - public boolean isMemoryBlockedSpecified() { - return localMemoryBlockedTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMemoryBlocked() { - return localMemoryBlocked; - } - - /** - * Auto generated setter method - * - * @param param MemoryBlocked - */ - public void setMemoryBlocked(int param) { - - // setting primitive attribute tracker to true - localMemoryBlockedTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMemoryBlocked = param; - } - - /** field for IsPausing */ - protected boolean localIsPausing = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsPausingTracker = false; - - public boolean isIsPausingSpecified() { - return localIsPausingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsPausing() { - return localIsPausing; - } - - /** - * Auto generated setter method - * - * @param param IsPausing - */ - public void setIsPausing(boolean param) { - - // setting primitive attribute tracker to true - localIsPausingTracker = true; - - this.localIsPausing = param; - } - - /** field for Warning */ - protected java.lang.String localWarning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarningTracker = false; - - public boolean isWarningSpecified() { - return localWarningTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWarning() { - return localWarning; - } - - /** - * Auto generated setter method - * - * @param param Warning - */ - public void setWarning(java.lang.String param) { - localWarningTracker = param != null; - - this.localWarning = param; - } - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for ClusterType */ - protected java.lang.String localClusterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTypeTracker = false; - - public boolean isClusterTypeSpecified() { - return localClusterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterType() { - return localClusterType; - } - - /** - * Auto generated setter method - * - * @param param ClusterType - */ - public void setClusterType(java.lang.String param) { - localClusterTypeTracker = param != null; - - this.localClusterType = param; - } - - /** field for ClusterQueueName */ - protected java.lang.String localClusterQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterQueueNameTracker = false; - - public boolean isClusterQueueNameSpecified() { - return localClusterQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterQueueName() { - return localClusterQueueName; - } - - /** - * Auto generated setter method - * - * @param param ClusterQueueName - */ - public void setClusterQueueName(java.lang.String param) { - localClusterQueueNameTracker = param != null; - - this.localClusterQueueName = param; - } - - /** field for TargetClusterName */ - protected java.lang.String localTargetClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetClusterNameTracker = false; - - public boolean isTargetClusterNameSpecified() { - return localTargetClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTargetClusterName() { - return localTargetClusterName; - } - - /** - * Auto generated setter method - * - * @param param TargetClusterName - */ - public void setTargetClusterName(java.lang.String param) { - localTargetClusterNameTracker = param != null; - - this.localTargetClusterName = param; - } - - /** field for NoAccess */ - protected boolean localNoAccess = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoAccessTracker = false; - - public boolean isNoAccessSpecified() { - return localNoAccessTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoAccess() { - return localNoAccess; - } - - /** - * Auto generated setter method - * - * @param param NoAccess - */ - public void setNoAccess(boolean param) { - - // setting primitive attribute tracker to true - localNoAccessTracker = true; - - this.localNoAccess = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ActiveWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ActiveWorkunit", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localStateIDTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "StateID", xmlWriter); - - if (localStateID == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("StateID cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateID)); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - if (localServerTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Server", xmlWriter); - - if (localServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Server cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServer); - } - - xmlWriter.writeEndElement(); - } - if (localInstanceTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Instance", xmlWriter); - - if (localInstance == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Instance cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localInstance); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localExtraTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Extra", xmlWriter); - - if (localExtra == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Extra cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localExtra); - } - - xmlWriter.writeEndElement(); - } - if (localGraphNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "GraphName", xmlWriter); - - if (localGraphName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphName); - } - - xmlWriter.writeEndElement(); - } - if (localDurationTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Duration", xmlWriter); - - if (localDuration == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Duration cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDuration); - } - - xmlWriter.writeEndElement(); - } - if (localGIDTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "GID", xmlWriter); - - if (localGID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGID); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryBlockedTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "MemoryBlocked", xmlWriter); - - if (localMemoryBlocked == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MemoryBlocked cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemoryBlocked)); - } - - xmlWriter.writeEndElement(); - } - if (localIsPausingTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "IsPausing", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsPausing cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsPausing)); - } - - xmlWriter.writeEndElement(); - } - if (localWarningTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Warning", xmlWriter); - - if (localWarning == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWarning); - } - - xmlWriter.writeEndElement(); - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterType", xmlWriter); - - if (localClusterType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterType); - } - - xmlWriter.writeEndElement(); - } - if (localClusterQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterQueueName", xmlWriter); - - if (localClusterQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterQueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localTargetClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "TargetClusterName", xmlWriter); - - if (localTargetClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TargetClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTargetClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localNoAccessTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NoAccess", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoAccess cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoAccess)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ActiveWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ActiveWorkunit object = new ActiveWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ActiveWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ActiveWorkunit) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StateID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Server") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Server" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Instance") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Instance" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setInstance( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Extra") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Extra" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setExtra( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GraphName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Duration") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Duration" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDuration( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MemoryBlocked") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemoryBlocked" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryBlocked( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "IsPausing") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsPausing" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsPausing( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Warning") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Warning" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterQueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterQueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TargetClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTargetClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NoAccess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoAccess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoAccess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ActiveWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ActiveWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ActiveWorkunit implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ActiveWorkunit + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for StateID */ + protected int localStateID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateIDTracker = false; + + public boolean isStateIDSpecified() { + return localStateIDTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getStateID() { + return localStateID; + } + + /** + * Auto generated setter method + * + * @param param StateID + */ + public void setStateID(int param) { + + // setting primitive attribute tracker to true + localStateIDTracker = param != java.lang.Integer.MIN_VALUE; + + this.localStateID = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** field for Server */ + protected java.lang.String localServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTracker = false; + + public boolean isServerSpecified() { + return localServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServer() { + return localServer; + } + + /** + * Auto generated setter method + * + * @param param Server + */ + public void setServer(java.lang.String param) { + localServerTracker = param != null; + + this.localServer = param; + } + + /** field for Instance */ + protected java.lang.String localInstance; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localInstanceTracker = false; + + public boolean isInstanceSpecified() { + return localInstanceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getInstance() { + return localInstance; + } + + /** + * Auto generated setter method + * + * @param param Instance + */ + public void setInstance(java.lang.String param) { + localInstanceTracker = param != null; + + this.localInstance = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for Extra */ + protected java.lang.String localExtra; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExtraTracker = false; + + public boolean isExtraSpecified() { + return localExtraTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getExtra() { + return localExtra; + } + + /** + * Auto generated setter method + * + * @param param Extra + */ + public void setExtra(java.lang.String param) { + localExtraTracker = param != null; + + this.localExtra = param; + } + + /** field for GraphName */ + protected java.lang.String localGraphName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNameTracker = false; + + public boolean isGraphNameSpecified() { + return localGraphNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphName() { + return localGraphName; + } + + /** + * Auto generated setter method + * + * @param param GraphName + */ + public void setGraphName(java.lang.String param) { + localGraphNameTracker = param != null; + + this.localGraphName = param; + } + + /** field for Duration */ + protected java.lang.String localDuration; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDurationTracker = false; + + public boolean isDurationSpecified() { + return localDurationTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDuration() { + return localDuration; + } + + /** + * Auto generated setter method + * + * @param param Duration + */ + public void setDuration(java.lang.String param) { + localDurationTracker = param != null; + + this.localDuration = param; + } + + /** field for GID */ + protected java.lang.String localGID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGIDTracker = false; + + public boolean isGIDSpecified() { + return localGIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGID() { + return localGID; + } + + /** + * Auto generated setter method + * + * @param param GID + */ + public void setGID(java.lang.String param) { + localGIDTracker = param != null; + + this.localGID = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for MemoryBlocked */ + protected int localMemoryBlocked; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryBlockedTracker = false; + + public boolean isMemoryBlockedSpecified() { + return localMemoryBlockedTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMemoryBlocked() { + return localMemoryBlocked; + } + + /** + * Auto generated setter method + * + * @param param MemoryBlocked + */ + public void setMemoryBlocked(int param) { + + // setting primitive attribute tracker to true + localMemoryBlockedTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMemoryBlocked = param; + } + + /** field for IsPausing */ + protected boolean localIsPausing = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsPausingTracker = false; + + public boolean isIsPausingSpecified() { + return localIsPausingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsPausing() { + return localIsPausing; + } + + /** + * Auto generated setter method + * + * @param param IsPausing + */ + public void setIsPausing(boolean param) { + + // setting primitive attribute tracker to true + localIsPausingTracker = true; + + this.localIsPausing = param; + } + + /** field for Warning */ + protected java.lang.String localWarning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarningTracker = false; + + public boolean isWarningSpecified() { + return localWarningTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWarning() { + return localWarning; + } + + /** + * Auto generated setter method + * + * @param param Warning + */ + public void setWarning(java.lang.String param) { + localWarningTracker = param != null; + + this.localWarning = param; + } + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for ClusterType */ + protected java.lang.String localClusterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTypeTracker = false; + + public boolean isClusterTypeSpecified() { + return localClusterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterType() { + return localClusterType; + } + + /** + * Auto generated setter method + * + * @param param ClusterType + */ + public void setClusterType(java.lang.String param) { + localClusterTypeTracker = param != null; + + this.localClusterType = param; + } + + /** field for ClusterQueueName */ + protected java.lang.String localClusterQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterQueueNameTracker = false; + + public boolean isClusterQueueNameSpecified() { + return localClusterQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterQueueName() { + return localClusterQueueName; + } + + /** + * Auto generated setter method + * + * @param param ClusterQueueName + */ + public void setClusterQueueName(java.lang.String param) { + localClusterQueueNameTracker = param != null; + + this.localClusterQueueName = param; + } + + /** field for TargetClusterName */ + protected java.lang.String localTargetClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetClusterNameTracker = false; + + public boolean isTargetClusterNameSpecified() { + return localTargetClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTargetClusterName() { + return localTargetClusterName; + } + + /** + * Auto generated setter method + * + * @param param TargetClusterName + */ + public void setTargetClusterName(java.lang.String param) { + localTargetClusterNameTracker = param != null; + + this.localTargetClusterName = param; + } + + /** field for NoAccess */ + protected boolean localNoAccess = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoAccessTracker = false; + + public boolean isNoAccessSpecified() { + return localNoAccessTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoAccess() { + return localNoAccess; + } + + /** + * Auto generated setter method + * + * @param param NoAccess + */ + public void setNoAccess(boolean param) { + + // setting primitive attribute tracker to true + localNoAccessTracker = true; + + this.localNoAccess = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ActiveWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ActiveWorkunit", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localStateIDTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "StateID", xmlWriter); + + if (localStateID == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("StateID cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateID)); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + if (localServerTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Server", xmlWriter); + + if (localServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Server cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServer); + } + + xmlWriter.writeEndElement(); + } + if (localInstanceTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Instance", xmlWriter); + + if (localInstance == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Instance cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localInstance); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localExtraTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Extra", xmlWriter); + + if (localExtra == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Extra cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localExtra); + } + + xmlWriter.writeEndElement(); + } + if (localGraphNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "GraphName", xmlWriter); + + if (localGraphName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphName); + } + + xmlWriter.writeEndElement(); + } + if (localDurationTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Duration", xmlWriter); + + if (localDuration == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Duration cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDuration); + } + + xmlWriter.writeEndElement(); + } + if (localGIDTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "GID", xmlWriter); + + if (localGID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGID); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryBlockedTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "MemoryBlocked", xmlWriter); + + if (localMemoryBlocked == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MemoryBlocked cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemoryBlocked)); + } + + xmlWriter.writeEndElement(); + } + if (localIsPausingTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "IsPausing", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsPausing cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsPausing)); + } + + xmlWriter.writeEndElement(); + } + if (localWarningTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Warning", xmlWriter); + + if (localWarning == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWarning); + } + + xmlWriter.writeEndElement(); + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterType", xmlWriter); + + if (localClusterType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterType); + } + + xmlWriter.writeEndElement(); + } + if (localClusterQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterQueueName", xmlWriter); + + if (localClusterQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterQueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localTargetClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "TargetClusterName", xmlWriter); + + if (localTargetClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TargetClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTargetClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localNoAccessTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NoAccess", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoAccess cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoAccess)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ActiveWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ActiveWorkunit object = new ActiveWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ActiveWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ActiveWorkunit) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StateID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Server") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Server" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Instance") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Instance" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setInstance( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Extra") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Extra" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setExtra( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GraphName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Duration") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Duration" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDuration( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MemoryBlocked") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemoryBlocked" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryBlocked( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "IsPausing") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsPausing" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsPausing( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Warning") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Warning" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterQueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterQueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TargetClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTargetClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NoAccess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoAccess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoAccess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Activity.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Activity.java index 2723a6913..f2129f0c1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Activity.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Activity.java @@ -1,1010 +1,1011 @@ -/** - * Activity.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** Activity bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Activity implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Activity", "ns1"); - - /** field for ChatURL */ - protected java.lang.String localChatURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localChatURLTracker = false; - - public boolean isChatURLSpecified() { - return localChatURLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getChatURL() { - return localChatURL; - } - - /** - * Auto generated setter method - * - * @param param ChatURL - */ - public void setChatURL(java.lang.String param) { - localChatURLTracker = param != null; - - this.localChatURL = param; - } - - /** field for BannerContent */ - protected java.lang.String localBannerContent; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerContentTracker = false; - - public boolean isBannerContentSpecified() { - return localBannerContentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerContent() { - return localBannerContent; - } - - /** - * Auto generated setter method - * - * @param param BannerContent - */ - public void setBannerContent(java.lang.String param) { - localBannerContentTracker = param != null; - - this.localBannerContent = param; - } - - /** field for BannerColor */ - protected java.lang.String localBannerColor; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerColorTracker = false; - - public boolean isBannerColorSpecified() { - return localBannerColorTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerColor() { - return localBannerColor; - } - - /** - * Auto generated setter method - * - * @param param BannerColor - */ - public void setBannerColor(java.lang.String param) { - localBannerColorTracker = param != null; - - this.localBannerColor = param; - } - - /** field for BannerSize */ - protected java.lang.String localBannerSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerSizeTracker = false; - - public boolean isBannerSizeSpecified() { - return localBannerSizeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerSize() { - return localBannerSize; - } - - /** - * Auto generated setter method - * - * @param param BannerSize - */ - public void setBannerSize(java.lang.String param) { - localBannerSizeTracker = param != null; - - this.localBannerSize = param; - } - - /** field for BannerScroll */ - protected java.lang.String localBannerScroll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerScrollTracker = false; - - public boolean isBannerScrollSpecified() { - return localBannerScrollTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerScroll() { - return localBannerScroll; - } - - /** - * Auto generated setter method - * - * @param param BannerScroll - */ - public void setBannerScroll(java.lang.String param) { - localBannerScrollTracker = param != null; - - this.localBannerScroll = param; - } - - /** field for BannerAction */ - protected int localBannerAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerActionTracker = false; - - public boolean isBannerActionSpecified() { - return localBannerActionTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBannerAction() { - return localBannerAction; - } - - /** - * Auto generated setter method - * - * @param param BannerAction - */ - public void setBannerAction(int param) { - - // setting primitive attribute tracker to true - localBannerActionTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBannerAction = param; - } - - /** field for EnableChatURL */ - protected boolean localEnableChatURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEnableChatURLTracker = false; - - public boolean isEnableChatURLSpecified() { - return localEnableChatURLTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getEnableChatURL() { - return localEnableChatURL; - } - - /** - * Auto generated setter method - * - * @param param EnableChatURL - */ - public void setEnableChatURL(boolean param) { - - // setting primitive attribute tracker to true - localEnableChatURLTracker = true; - - this.localEnableChatURL = param; - } - - /** field for FromSubmitBtn */ - protected boolean localFromSubmitBtn = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFromSubmitBtnTracker = false; - - public boolean isFromSubmitBtnSpecified() { - return localFromSubmitBtnTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFromSubmitBtn() { - return localFromSubmitBtn; - } - - /** - * Auto generated setter method - * - * @param param FromSubmitBtn - */ - public void setFromSubmitBtn(boolean param) { - - // setting primitive attribute tracker to true - localFromSubmitBtnTracker = true; - - this.localFromSubmitBtn = param; - } - - /** field for SortBy */ - protected java.lang.String localSortBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortByTracker = false; - - public boolean isSortBySpecified() { - return localSortByTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortBy() { - return localSortBy; - } - - /** - * Auto generated setter method - * - * @param param SortBy - */ - public void setSortBy(java.lang.String param) { - localSortByTracker = param != null; - - this.localSortBy = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Activity", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Activity", xmlWriter); - } - } - if (localChatURLTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ChatURL", xmlWriter); - - if (localChatURL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ChatURL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localChatURL); - } - - xmlWriter.writeEndElement(); - } - if (localBannerContentTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerContent", xmlWriter); - - if (localBannerContent == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerContent cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerContent); - } - - xmlWriter.writeEndElement(); - } - if (localBannerColorTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerColor", xmlWriter); - - if (localBannerColor == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerColor cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerColor); - } - - xmlWriter.writeEndElement(); - } - if (localBannerSizeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerSize", xmlWriter); - - if (localBannerSize == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerSize cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerSize); - } - - xmlWriter.writeEndElement(); - } - if (localBannerScrollTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerScroll", xmlWriter); - - if (localBannerScroll == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerScroll cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerScroll); - } - - xmlWriter.writeEndElement(); - } - if (localBannerActionTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerAction", xmlWriter); - - if (localBannerAction == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BannerAction cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBannerAction)); - } - - xmlWriter.writeEndElement(); - } - if (localEnableChatURLTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "EnableChatURL", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("EnableChatURL cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableChatURL)); - } - - xmlWriter.writeEndElement(); - } - if (localFromSubmitBtnTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "FromSubmitBtn", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("FromSubmitBtn cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFromSubmitBtn)); - } - - xmlWriter.writeEndElement(); - } - if (localSortByTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "SortBy", xmlWriter); - - if (localSortBy == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SortBy cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortBy); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Activity parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Activity object = new Activity(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Activity".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Activity) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ChatURL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ChatURL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setChatURL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerContent") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerContent" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerContent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerColor") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerColor" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerColor( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerScroll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerScroll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerScroll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerAction") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerAction" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EnableChatURL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EnableChatURL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEnableChatURL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "FromSubmitBtn") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FromSubmitBtn" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFromSubmitBtn( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SortBy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SortBy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortBy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Activity.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** Activity bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Activity implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Activity", "ns1"); + + /** field for ChatURL */ + protected java.lang.String localChatURL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localChatURLTracker = false; + + public boolean isChatURLSpecified() { + return localChatURLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getChatURL() { + return localChatURL; + } + + /** + * Auto generated setter method + * + * @param param ChatURL + */ + public void setChatURL(java.lang.String param) { + localChatURLTracker = param != null; + + this.localChatURL = param; + } + + /** field for BannerContent */ + protected java.lang.String localBannerContent; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerContentTracker = false; + + public boolean isBannerContentSpecified() { + return localBannerContentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerContent() { + return localBannerContent; + } + + /** + * Auto generated setter method + * + * @param param BannerContent + */ + public void setBannerContent(java.lang.String param) { + localBannerContentTracker = param != null; + + this.localBannerContent = param; + } + + /** field for BannerColor */ + protected java.lang.String localBannerColor; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerColorTracker = false; + + public boolean isBannerColorSpecified() { + return localBannerColorTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerColor() { + return localBannerColor; + } + + /** + * Auto generated setter method + * + * @param param BannerColor + */ + public void setBannerColor(java.lang.String param) { + localBannerColorTracker = param != null; + + this.localBannerColor = param; + } + + /** field for BannerSize */ + protected java.lang.String localBannerSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerSizeTracker = false; + + public boolean isBannerSizeSpecified() { + return localBannerSizeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerSize() { + return localBannerSize; + } + + /** + * Auto generated setter method + * + * @param param BannerSize + */ + public void setBannerSize(java.lang.String param) { + localBannerSizeTracker = param != null; + + this.localBannerSize = param; + } + + /** field for BannerScroll */ + protected java.lang.String localBannerScroll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerScrollTracker = false; + + public boolean isBannerScrollSpecified() { + return localBannerScrollTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerScroll() { + return localBannerScroll; + } + + /** + * Auto generated setter method + * + * @param param BannerScroll + */ + public void setBannerScroll(java.lang.String param) { + localBannerScrollTracker = param != null; + + this.localBannerScroll = param; + } + + /** field for BannerAction */ + protected int localBannerAction = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerActionTracker = false; + + public boolean isBannerActionSpecified() { + return localBannerActionTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBannerAction() { + return localBannerAction; + } + + /** + * Auto generated setter method + * + * @param param BannerAction + */ + public void setBannerAction(int param) { + + // setting primitive attribute tracker to true + localBannerActionTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBannerAction = param; + } + + /** field for EnableChatURL */ + protected boolean localEnableChatURL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEnableChatURLTracker = false; + + public boolean isEnableChatURLSpecified() { + return localEnableChatURLTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getEnableChatURL() { + return localEnableChatURL; + } + + /** + * Auto generated setter method + * + * @param param EnableChatURL + */ + public void setEnableChatURL(boolean param) { + + // setting primitive attribute tracker to true + localEnableChatURLTracker = true; + + this.localEnableChatURL = param; + } + + /** field for FromSubmitBtn */ + protected boolean localFromSubmitBtn = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFromSubmitBtnTracker = false; + + public boolean isFromSubmitBtnSpecified() { + return localFromSubmitBtnTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFromSubmitBtn() { + return localFromSubmitBtn; + } + + /** + * Auto generated setter method + * + * @param param FromSubmitBtn + */ + public void setFromSubmitBtn(boolean param) { + + // setting primitive attribute tracker to true + localFromSubmitBtnTracker = true; + + this.localFromSubmitBtn = param; + } + + /** field for SortBy */ + protected java.lang.String localSortBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortByTracker = false; + + public boolean isSortBySpecified() { + return localSortByTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortBy() { + return localSortBy; + } + + /** + * Auto generated setter method + * + * @param param SortBy + */ + public void setSortBy(java.lang.String param) { + localSortByTracker = param != null; + + this.localSortBy = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Activity", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Activity", xmlWriter); + } + } + if (localChatURLTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ChatURL", xmlWriter); + + if (localChatURL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ChatURL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localChatURL); + } + + xmlWriter.writeEndElement(); + } + if (localBannerContentTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerContent", xmlWriter); + + if (localBannerContent == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerContent cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerContent); + } + + xmlWriter.writeEndElement(); + } + if (localBannerColorTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerColor", xmlWriter); + + if (localBannerColor == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerColor cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerColor); + } + + xmlWriter.writeEndElement(); + } + if (localBannerSizeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerSize", xmlWriter); + + if (localBannerSize == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerSize cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerSize); + } + + xmlWriter.writeEndElement(); + } + if (localBannerScrollTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerScroll", xmlWriter); + + if (localBannerScroll == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerScroll cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerScroll); + } + + xmlWriter.writeEndElement(); + } + if (localBannerActionTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerAction", xmlWriter); + + if (localBannerAction == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BannerAction cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBannerAction)); + } + + xmlWriter.writeEndElement(); + } + if (localEnableChatURLTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "EnableChatURL", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("EnableChatURL cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableChatURL)); + } + + xmlWriter.writeEndElement(); + } + if (localFromSubmitBtnTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "FromSubmitBtn", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("FromSubmitBtn cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFromSubmitBtn)); + } + + xmlWriter.writeEndElement(); + } + if (localSortByTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "SortBy", xmlWriter); + + if (localSortBy == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SortBy cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortBy); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Activity parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Activity object = new Activity(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Activity".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Activity) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ChatURL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ChatURL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setChatURL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerContent") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerContent" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerContent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerColor") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerColor" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerColor( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerScroll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerScroll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerScroll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerAction") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerAction" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EnableChatURL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EnableChatURL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEnableChatURL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "FromSubmitBtn") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FromSubmitBtn" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFromSubmitBtn( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SortBy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SortBy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortBy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ActivityResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ActivityResponse.java index fd4cb3df0..7ac50766c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ActivityResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ActivityResponse.java @@ -1,1658 +1,1660 @@ -/** - * ActivityResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ActivityResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ActivityResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActivityResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for ThorClusterList */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - localThorClusterList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorClusterListTracker = false; - - public boolean isThorClusterListSpecified() { - return localThorClusterListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - getThorClusterList() { - return localThorClusterList; - } - - /** - * Auto generated setter method - * - * @param param ThorClusterList - */ - public void setThorClusterList( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster param) { - localThorClusterListTracker = param != null; - - this.localThorClusterList = param; - } - - /** field for RoxieClusterList */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - localRoxieClusterList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRoxieClusterListTracker = false; - - public boolean isRoxieClusterListSpecified() { - return localRoxieClusterListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - getRoxieClusterList() { - return localRoxieClusterList; - } - - /** - * Auto generated setter method - * - * @param param RoxieClusterList - */ - public void setRoxieClusterList( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster param) { - localRoxieClusterListTracker = param != null; - - this.localRoxieClusterList = param; - } - - /** field for HThorClusterList */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - localHThorClusterList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHThorClusterListTracker = false; - - public boolean isHThorClusterListSpecified() { - return localHThorClusterListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - getHThorClusterList() { - return localHThorClusterList; - } - - /** - * Auto generated setter method - * - * @param param HThorClusterList - */ - public void setHThorClusterList( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster param) { - localHThorClusterListTracker = param != null; - - this.localHThorClusterList = param; - } - - /** field for DFUJobs */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob localDFUJobs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUJobsTracker = false; - - public boolean isDFUJobsSpecified() { - return localDFUJobsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob getDFUJobs() { - return localDFUJobs; - } - - /** - * Auto generated setter method - * - * @param param DFUJobs - */ - public void setDFUJobs(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob param) { - localDFUJobsTracker = param != null; - - this.localDFUJobs = param; - } - - /** field for Running */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit localRunning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningTracker = false; - - public boolean isRunningSpecified() { - return localRunningTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit getRunning() { - return localRunning; - } - - /** - * Auto generated setter method - * - * @param param Running - */ - public void setRunning( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit param) { - localRunningTracker = param != null; - - this.localRunning = param; - } - - /** field for BannerContent */ - protected java.lang.String localBannerContent; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerContentTracker = false; - - public boolean isBannerContentSpecified() { - return localBannerContentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerContent() { - return localBannerContent; - } - - /** - * Auto generated setter method - * - * @param param BannerContent - */ - public void setBannerContent(java.lang.String param) { - localBannerContentTracker = param != null; - - this.localBannerContent = param; - } - - /** field for BannerColor */ - protected java.lang.String localBannerColor; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerColorTracker = false; - - public boolean isBannerColorSpecified() { - return localBannerColorTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerColor() { - return localBannerColor; - } - - /** - * Auto generated setter method - * - * @param param BannerColor - */ - public void setBannerColor(java.lang.String param) { - localBannerColorTracker = param != null; - - this.localBannerColor = param; - } - - /** field for BannerSize */ - protected java.lang.String localBannerSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerSizeTracker = false; - - public boolean isBannerSizeSpecified() { - return localBannerSizeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerSize() { - return localBannerSize; - } - - /** - * Auto generated setter method - * - * @param param BannerSize - */ - public void setBannerSize(java.lang.String param) { - localBannerSizeTracker = param != null; - - this.localBannerSize = param; - } - - /** field for BannerScroll */ - protected java.lang.String localBannerScroll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerScrollTracker = false; - - public boolean isBannerScrollSpecified() { - return localBannerScrollTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerScroll() { - return localBannerScroll; - } - - /** - * Auto generated setter method - * - * @param param BannerScroll - */ - public void setBannerScroll(java.lang.String param) { - localBannerScrollTracker = param != null; - - this.localBannerScroll = param; - } - - /** field for ChatURL */ - protected java.lang.String localChatURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localChatURLTracker = false; - - public boolean isChatURLSpecified() { - return localChatURLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getChatURL() { - return localChatURL; - } - - /** - * Auto generated setter method - * - * @param param ChatURL - */ - public void setChatURL(java.lang.String param) { - localChatURLTracker = param != null; - - this.localChatURL = param; - } - - /** field for ShowBanner */ - protected int localShowBanner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowBannerTracker = false; - - public boolean isShowBannerSpecified() { - return localShowBannerTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getShowBanner() { - return localShowBanner; - } - - /** - * Auto generated setter method - * - * @param param ShowBanner - */ - public void setShowBanner(int param) { - - // setting primitive attribute tracker to true - localShowBannerTracker = param != java.lang.Integer.MIN_VALUE; - - this.localShowBanner = param; - } - - /** field for ShowChatURL */ - protected int localShowChatURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowChatURLTracker = false; - - public boolean isShowChatURLSpecified() { - return localShowChatURLTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getShowChatURL() { - return localShowChatURL; - } - - /** - * Auto generated setter method - * - * @param param ShowChatURL - */ - public void setShowChatURL(int param) { - - // setting primitive attribute tracker to true - localShowChatURLTracker = param != java.lang.Integer.MIN_VALUE; - - this.localShowChatURL = param; - } - - /** field for SortBy */ - protected java.lang.String localSortBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortByTracker = false; - - public boolean isSortBySpecified() { - return localSortByTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortBy() { - return localSortBy; - } - - /** - * Auto generated setter method - * - * @param param SortBy - */ - public void setSortBy(java.lang.String param) { - localSortByTracker = param != null; - - this.localSortBy = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for SuperUser */ - protected boolean localSuperUser = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperUserTracker = false; - - public boolean isSuperUserSpecified() { - return localSuperUserTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuperUser() { - return localSuperUser; - } - - /** - * Auto generated setter method - * - * @param param SuperUser - */ - public void setSuperUser(boolean param) { - - // setting primitive attribute tracker to true - localSuperUserTracker = true; - - this.localSuperUser = param; - } - - /** field for AccessRight */ - protected java.lang.String localAccessRight; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAccessRightTracker = false; - - public boolean isAccessRightSpecified() { - return localAccessRightTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAccessRight() { - return localAccessRight; - } - - /** - * Auto generated setter method - * - * @param param AccessRight - */ - public void setAccessRight(java.lang.String param) { - localAccessRightTracker = param != null; - - this.localAccessRight = param; - } - - /** field for ServerJobQueues */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue - localServerJobQueues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerJobQueuesTracker = false; - - public boolean isServerJobQueuesSpecified() { - return localServerJobQueuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue - getServerJobQueues() { - return localServerJobQueues; - } - - /** - * Auto generated setter method - * - * @param param ServerJobQueues - */ - public void setServerJobQueues( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue param) { - localServerJobQueuesTracker = param != null; - - this.localServerJobQueues = param; - } - - /** field for ActivityTime */ - protected java.lang.String localActivityTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivityTimeTracker = false; - - public boolean isActivityTimeSpecified() { - return localActivityTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getActivityTime() { - return localActivityTime; - } - - /** - * Auto generated setter method - * - * @param param ActivityTime - */ - public void setActivityTime(java.lang.String param) { - localActivityTimeTracker = param != null; - - this.localActivityTime = param; - } - - /** field for DaliDetached */ - protected boolean localDaliDetached; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDaliDetachedTracker = false; - - public boolean isDaliDetachedSpecified() { - return localDaliDetachedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDaliDetached() { - return localDaliDetached; - } - - /** - * Auto generated setter method - * - * @param param DaliDetached - */ - public void setDaliDetached(boolean param) { - - // setting primitive attribute tracker to true - localDaliDetachedTracker = true; - - this.localDaliDetached = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ActivityResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ActivityResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localThorClusterListTracker) { - if (localThorClusterList == null) { - throw new org.apache.axis2.databinding.ADBException("ThorClusterList cannot be null!!"); - } - localThorClusterList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorClusterList"), xmlWriter); - } - if (localRoxieClusterListTracker) { - if (localRoxieClusterList == null) { - throw new org.apache.axis2.databinding.ADBException("RoxieClusterList cannot be null!!"); - } - localRoxieClusterList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieClusterList"), xmlWriter); - } - if (localHThorClusterListTracker) { - if (localHThorClusterList == null) { - throw new org.apache.axis2.databinding.ADBException("HThorClusterList cannot be null!!"); - } - localHThorClusterList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HThorClusterList"), xmlWriter); - } - if (localDFUJobsTracker) { - if (localDFUJobs == null) { - throw new org.apache.axis2.databinding.ADBException("DFUJobs cannot be null!!"); - } - localDFUJobs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJobs"), xmlWriter); - } - if (localRunningTracker) { - if (localRunning == null) { - throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); - } - localRunning.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Running"), xmlWriter); - } - if (localBannerContentTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerContent", xmlWriter); - - if (localBannerContent == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerContent cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerContent); - } - - xmlWriter.writeEndElement(); - } - if (localBannerColorTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerColor", xmlWriter); - - if (localBannerColor == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerColor cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerColor); - } - - xmlWriter.writeEndElement(); - } - if (localBannerSizeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerSize", xmlWriter); - - if (localBannerSize == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerSize cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerSize); - } - - xmlWriter.writeEndElement(); - } - if (localBannerScrollTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerScroll", xmlWriter); - - if (localBannerScroll == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerScroll cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerScroll); - } - - xmlWriter.writeEndElement(); - } - if (localChatURLTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ChatURL", xmlWriter); - - if (localChatURL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ChatURL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localChatURL); - } - - xmlWriter.writeEndElement(); - } - if (localShowBannerTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ShowBanner", xmlWriter); - - if (localShowBanner == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ShowBanner cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowBanner)); - } - - xmlWriter.writeEndElement(); - } - if (localShowChatURLTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ShowChatURL", xmlWriter); - - if (localShowChatURL == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ShowChatURL cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowChatURL)); - } - - xmlWriter.writeEndElement(); - } - if (localSortByTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "SortBy", xmlWriter); - - if (localSortBy == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SortBy cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortBy); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localSuperUserTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "SuperUser", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SuperUser cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuperUser)); - } - - xmlWriter.writeEndElement(); - } - if (localAccessRightTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "AccessRight", xmlWriter); - - if (localAccessRight == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AccessRight cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAccessRight); - } - - xmlWriter.writeEndElement(); - } - if (localServerJobQueuesTracker) { - if (localServerJobQueues == null) { - throw new org.apache.axis2.databinding.ADBException("ServerJobQueues cannot be null!!"); - } - localServerJobQueues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueues"), xmlWriter); - } - if (localActivityTimeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ActivityTime", xmlWriter); - - if (localActivityTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ActivityTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localActivityTime); - } - - xmlWriter.writeEndElement(); - } - if (localDaliDetachedTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "DaliDetached", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DaliDetached cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDaliDetached)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ActivityResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ActivityResponse object = new ActivityResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ActivityResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ActivityResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorClusterList") - .equals(reader.getName())) { - - object.setThorClusterList( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieClusterList") - .equals(reader.getName())) { - - object.setRoxieClusterList( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HThorClusterList") - .equals(reader.getName())) { - - object.setHThorClusterList( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJobs") - .equals(reader.getName())) { - - object.setDFUJobs( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Running") - .equals(reader.getName())) { - - object.setRunning( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerContent") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerContent" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerContent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerColor") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerColor" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerColor( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerScroll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerScroll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerScroll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ChatURL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ChatURL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setChatURL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ShowBanner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowBanner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowBanner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ShowChatURL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowChatURL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowChatURL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SortBy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SortBy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortBy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SuperUser") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SuperUser" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuperUser( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "AccessRight") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AccessRight" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAccessRight( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueues") - .equals(reader.getName())) { - - object.setServerJobQueues( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActivityTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ActivityTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActivityTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DaliDetached") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DaliDetached" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDaliDetached( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ActivityResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ActivityResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ActivityResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActivityResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for ThorClusterList */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + localThorClusterList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorClusterListTracker = false; + + public boolean isThorClusterListSpecified() { + return localThorClusterListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + getThorClusterList() { + return localThorClusterList; + } + + /** + * Auto generated setter method + * + * @param param ThorClusterList + */ + public void setThorClusterList( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster param) { + localThorClusterListTracker = param != null; + + this.localThorClusterList = param; + } + + /** field for RoxieClusterList */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + localRoxieClusterList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRoxieClusterListTracker = false; + + public boolean isRoxieClusterListSpecified() { + return localRoxieClusterListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + getRoxieClusterList() { + return localRoxieClusterList; + } + + /** + * Auto generated setter method + * + * @param param RoxieClusterList + */ + public void setRoxieClusterList( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster param) { + localRoxieClusterListTracker = param != null; + + this.localRoxieClusterList = param; + } + + /** field for HThorClusterList */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + localHThorClusterList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHThorClusterListTracker = false; + + public boolean isHThorClusterListSpecified() { + return localHThorClusterListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster + getHThorClusterList() { + return localHThorClusterList; + } + + /** + * Auto generated setter method + * + * @param param HThorClusterList + */ + public void setHThorClusterList( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster param) { + localHThorClusterListTracker = param != null; + + this.localHThorClusterList = param; + } + + /** field for DFUJobs */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob localDFUJobs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUJobsTracker = false; + + public boolean isDFUJobsSpecified() { + return localDFUJobsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob getDFUJobs() { + return localDFUJobs; + } + + /** + * Auto generated setter method + * + * @param param DFUJobs + */ + public void setDFUJobs(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob param) { + localDFUJobsTracker = param != null; + + this.localDFUJobs = param; + } + + /** field for Running */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit localRunning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningTracker = false; + + public boolean isRunningSpecified() { + return localRunningTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit getRunning() { + return localRunning; + } + + /** + * Auto generated setter method + * + * @param param Running + */ + public void setRunning( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit param) { + localRunningTracker = param != null; + + this.localRunning = param; + } + + /** field for BannerContent */ + protected java.lang.String localBannerContent; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerContentTracker = false; + + public boolean isBannerContentSpecified() { + return localBannerContentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerContent() { + return localBannerContent; + } + + /** + * Auto generated setter method + * + * @param param BannerContent + */ + public void setBannerContent(java.lang.String param) { + localBannerContentTracker = param != null; + + this.localBannerContent = param; + } + + /** field for BannerColor */ + protected java.lang.String localBannerColor; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerColorTracker = false; + + public boolean isBannerColorSpecified() { + return localBannerColorTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerColor() { + return localBannerColor; + } + + /** + * Auto generated setter method + * + * @param param BannerColor + */ + public void setBannerColor(java.lang.String param) { + localBannerColorTracker = param != null; + + this.localBannerColor = param; + } + + /** field for BannerSize */ + protected java.lang.String localBannerSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerSizeTracker = false; + + public boolean isBannerSizeSpecified() { + return localBannerSizeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerSize() { + return localBannerSize; + } + + /** + * Auto generated setter method + * + * @param param BannerSize + */ + public void setBannerSize(java.lang.String param) { + localBannerSizeTracker = param != null; + + this.localBannerSize = param; + } + + /** field for BannerScroll */ + protected java.lang.String localBannerScroll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerScrollTracker = false; + + public boolean isBannerScrollSpecified() { + return localBannerScrollTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerScroll() { + return localBannerScroll; + } + + /** + * Auto generated setter method + * + * @param param BannerScroll + */ + public void setBannerScroll(java.lang.String param) { + localBannerScrollTracker = param != null; + + this.localBannerScroll = param; + } + + /** field for ChatURL */ + protected java.lang.String localChatURL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localChatURLTracker = false; + + public boolean isChatURLSpecified() { + return localChatURLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getChatURL() { + return localChatURL; + } + + /** + * Auto generated setter method + * + * @param param ChatURL + */ + public void setChatURL(java.lang.String param) { + localChatURLTracker = param != null; + + this.localChatURL = param; + } + + /** field for ShowBanner */ + protected int localShowBanner = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowBannerTracker = false; + + public boolean isShowBannerSpecified() { + return localShowBannerTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getShowBanner() { + return localShowBanner; + } + + /** + * Auto generated setter method + * + * @param param ShowBanner + */ + public void setShowBanner(int param) { + + // setting primitive attribute tracker to true + localShowBannerTracker = param != java.lang.Integer.MIN_VALUE; + + this.localShowBanner = param; + } + + /** field for ShowChatURL */ + protected int localShowChatURL = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowChatURLTracker = false; + + public boolean isShowChatURLSpecified() { + return localShowChatURLTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getShowChatURL() { + return localShowChatURL; + } + + /** + * Auto generated setter method + * + * @param param ShowChatURL + */ + public void setShowChatURL(int param) { + + // setting primitive attribute tracker to true + localShowChatURLTracker = param != java.lang.Integer.MIN_VALUE; + + this.localShowChatURL = param; + } + + /** field for SortBy */ + protected java.lang.String localSortBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortByTracker = false; + + public boolean isSortBySpecified() { + return localSortByTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortBy() { + return localSortBy; + } + + /** + * Auto generated setter method + * + * @param param SortBy + */ + public void setSortBy(java.lang.String param) { + localSortByTracker = param != null; + + this.localSortBy = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for SuperUser */ + protected boolean localSuperUser = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperUserTracker = false; + + public boolean isSuperUserSpecified() { + return localSuperUserTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuperUser() { + return localSuperUser; + } + + /** + * Auto generated setter method + * + * @param param SuperUser + */ + public void setSuperUser(boolean param) { + + // setting primitive attribute tracker to true + localSuperUserTracker = true; + + this.localSuperUser = param; + } + + /** field for AccessRight */ + protected java.lang.String localAccessRight; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAccessRightTracker = false; + + public boolean isAccessRightSpecified() { + return localAccessRightTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAccessRight() { + return localAccessRight; + } + + /** + * Auto generated setter method + * + * @param param AccessRight + */ + public void setAccessRight(java.lang.String param) { + localAccessRightTracker = param != null; + + this.localAccessRight = param; + } + + /** field for ServerJobQueues */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue + localServerJobQueues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerJobQueuesTracker = false; + + public boolean isServerJobQueuesSpecified() { + return localServerJobQueuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue + getServerJobQueues() { + return localServerJobQueues; + } + + /** + * Auto generated setter method + * + * @param param ServerJobQueues + */ + public void setServerJobQueues( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue param) { + localServerJobQueuesTracker = param != null; + + this.localServerJobQueues = param; + } + + /** field for ActivityTime */ + protected java.lang.String localActivityTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivityTimeTracker = false; + + public boolean isActivityTimeSpecified() { + return localActivityTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getActivityTime() { + return localActivityTime; + } + + /** + * Auto generated setter method + * + * @param param ActivityTime + */ + public void setActivityTime(java.lang.String param) { + localActivityTimeTracker = param != null; + + this.localActivityTime = param; + } + + /** field for DaliDetached */ + protected boolean localDaliDetached; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDaliDetachedTracker = false; + + public boolean isDaliDetachedSpecified() { + return localDaliDetachedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDaliDetached() { + return localDaliDetached; + } + + /** + * Auto generated setter method + * + * @param param DaliDetached + */ + public void setDaliDetached(boolean param) { + + // setting primitive attribute tracker to true + localDaliDetachedTracker = true; + + this.localDaliDetached = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ActivityResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ActivityResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localThorClusterListTracker) { + if (localThorClusterList == null) { + throw new org.apache.axis2.databinding.ADBException("ThorClusterList cannot be null!!"); + } + localThorClusterList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorClusterList"), xmlWriter); + } + if (localRoxieClusterListTracker) { + if (localRoxieClusterList == null) { + throw new org.apache.axis2.databinding.ADBException("RoxieClusterList cannot be null!!"); + } + localRoxieClusterList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieClusterList"), xmlWriter); + } + if (localHThorClusterListTracker) { + if (localHThorClusterList == null) { + throw new org.apache.axis2.databinding.ADBException("HThorClusterList cannot be null!!"); + } + localHThorClusterList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HThorClusterList"), xmlWriter); + } + if (localDFUJobsTracker) { + if (localDFUJobs == null) { + throw new org.apache.axis2.databinding.ADBException("DFUJobs cannot be null!!"); + } + localDFUJobs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJobs"), xmlWriter); + } + if (localRunningTracker) { + if (localRunning == null) { + throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); + } + localRunning.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Running"), xmlWriter); + } + if (localBannerContentTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerContent", xmlWriter); + + if (localBannerContent == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerContent cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerContent); + } + + xmlWriter.writeEndElement(); + } + if (localBannerColorTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerColor", xmlWriter); + + if (localBannerColor == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerColor cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerColor); + } + + xmlWriter.writeEndElement(); + } + if (localBannerSizeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerSize", xmlWriter); + + if (localBannerSize == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerSize cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerSize); + } + + xmlWriter.writeEndElement(); + } + if (localBannerScrollTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerScroll", xmlWriter); + + if (localBannerScroll == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerScroll cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerScroll); + } + + xmlWriter.writeEndElement(); + } + if (localChatURLTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ChatURL", xmlWriter); + + if (localChatURL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ChatURL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localChatURL); + } + + xmlWriter.writeEndElement(); + } + if (localShowBannerTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ShowBanner", xmlWriter); + + if (localShowBanner == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ShowBanner cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowBanner)); + } + + xmlWriter.writeEndElement(); + } + if (localShowChatURLTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ShowChatURL", xmlWriter); + + if (localShowChatURL == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ShowChatURL cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowChatURL)); + } + + xmlWriter.writeEndElement(); + } + if (localSortByTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "SortBy", xmlWriter); + + if (localSortBy == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SortBy cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortBy); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localSuperUserTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "SuperUser", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SuperUser cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuperUser)); + } + + xmlWriter.writeEndElement(); + } + if (localAccessRightTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "AccessRight", xmlWriter); + + if (localAccessRight == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AccessRight cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAccessRight); + } + + xmlWriter.writeEndElement(); + } + if (localServerJobQueuesTracker) { + if (localServerJobQueues == null) { + throw new org.apache.axis2.databinding.ADBException("ServerJobQueues cannot be null!!"); + } + localServerJobQueues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueues"), xmlWriter); + } + if (localActivityTimeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ActivityTime", xmlWriter); + + if (localActivityTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ActivityTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localActivityTime); + } + + xmlWriter.writeEndElement(); + } + if (localDaliDetachedTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "DaliDetached", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DaliDetached cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDaliDetached)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ActivityResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ActivityResponse object = new ActivityResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ActivityResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ActivityResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorClusterList") + .equals(reader.getName())) { + + object.setThorClusterList( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieClusterList") + .equals(reader.getName())) { + + object.setRoxieClusterList( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HThorClusterList") + .equals(reader.getName())) { + + object.setHThorClusterList( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJobs") + .equals(reader.getName())) { + + object.setDFUJobs( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Running") + .equals(reader.getName())) { + + object.setRunning( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerContent") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerContent" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerContent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerColor") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerColor" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerColor( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerScroll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerScroll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerScroll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ChatURL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ChatURL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setChatURL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ShowBanner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowBanner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowBanner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ShowChatURL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowChatURL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowChatURL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SortBy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SortBy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortBy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SuperUser") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SuperUser" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuperUser( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "AccessRight") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AccessRight" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAccessRight( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueues") + .equals(reader.getName())) { + + object.setServerJobQueues( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActivityTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ActivityTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActivityTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DaliDetached") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DaliDetached" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDaliDetached( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfActiveWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfActiveWorkunit.java index e9cd40dcb..e668c75bf 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfActiveWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfActiveWorkunit.java @@ -1,458 +1,458 @@ -/** - * ArrayOfActiveWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfActiveWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfActiveWorkunit implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfActiveWorkunit - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for ActiveWorkunit This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] localActiveWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActiveWorkunitTracker = false; - - public boolean isActiveWorkunitSpecified() { - return localActiveWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] getActiveWorkunit() { - return localActiveWorkunit; - } - - /** validate the array for ActiveWorkunit */ - protected void validateActiveWorkunit( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] param) {} - - /** - * Auto generated setter method - * - * @param param ActiveWorkunit - */ - public void setActiveWorkunit( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] param) { - - validateActiveWorkunit(param); - - localActiveWorkunitTracker = param != null; - - this.localActiveWorkunit = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit - */ - public void addActiveWorkunit( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit param) { - if (localActiveWorkunit == null) { - localActiveWorkunit = - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] {}; - } - - // update the setting tracker - localActiveWorkunitTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localActiveWorkunit); - list.add(param); - this.localActiveWorkunit = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfActiveWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfActiveWorkunit", - xmlWriter); - } - } - if (localActiveWorkunitTracker) { - if (localActiveWorkunit != null) { - for (int i = 0; i < localActiveWorkunit.length; i++) { - if (localActiveWorkunit[i] != null) { - localActiveWorkunit[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActiveWorkunit"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ActiveWorkunit cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfActiveWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfActiveWorkunit object = new ArrayOfActiveWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfActiveWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfActiveWorkunit) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActiveWorkunit") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActiveWorkunit") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setActiveWorkunit( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfActiveWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfActiveWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfActiveWorkunit implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfActiveWorkunit + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for ActiveWorkunit This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] localActiveWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActiveWorkunitTracker = false; + + public boolean isActiveWorkunitSpecified() { + return localActiveWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] getActiveWorkunit() { + return localActiveWorkunit; + } + + /** validate the array for ActiveWorkunit */ + protected void validateActiveWorkunit( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] param) {} + + /** + * Auto generated setter method + * + * @param param ActiveWorkunit + */ + public void setActiveWorkunit( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] param) { + + validateActiveWorkunit(param); + + localActiveWorkunitTracker = param != null; + + this.localActiveWorkunit = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit + */ + public void addActiveWorkunit( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit param) { + if (localActiveWorkunit == null) { + localActiveWorkunit = + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[] {}; + } + + // update the setting tracker + localActiveWorkunitTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localActiveWorkunit); + list.add(param); + this.localActiveWorkunit = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfActiveWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfActiveWorkunit", + xmlWriter); + } + } + if (localActiveWorkunitTracker) { + if (localActiveWorkunit != null) { + for (int i = 0; i < localActiveWorkunit.length; i++) { + if (localActiveWorkunit[i] != null) { + localActiveWorkunit[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActiveWorkunit"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ActiveWorkunit cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfActiveWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfActiveWorkunit object = new ArrayOfActiveWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfActiveWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfActiveWorkunit) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActiveWorkunit") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ActiveWorkunit") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setActiveWorkunit( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfDFUJob.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfDFUJob.java index 707fc1c36..a3483b3dc 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfDFUJob.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfDFUJob.java @@ -1,443 +1,443 @@ -/** - * ArrayOfDFUJob.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfDFUJob bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfDFUJob implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfDFUJob - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for DFUJob This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] localDFUJob; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDFUJobTracker = false; - - public boolean isDFUJobSpecified() { - return localDFUJobTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] getDFUJob() { - return localDFUJob; - } - - /** validate the array for DFUJob */ - protected void validateDFUJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] param) {} - - /** - * Auto generated setter method - * - * @param param DFUJob - */ - public void setDFUJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] param) { - - validateDFUJob(param); - - localDFUJobTracker = param != null; - - this.localDFUJob = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob - */ - public void addDFUJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob param) { - if (localDFUJob == null) { - localDFUJob = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] {}; - } - - // update the setting tracker - localDFUJobTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFUJob); - list.add(param); - this.localDFUJob = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[]) - list.toArray(new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfDFUJob", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfDFUJob", xmlWriter); - } - } - if (localDFUJobTracker) { - if (localDFUJob != null) { - for (int i = 0; i < localDFUJob.length; i++) { - if (localDFUJob[i] != null) { - localDFUJob[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJob"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("DFUJob cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfDFUJob parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfDFUJob object = new ArrayOfDFUJob(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfDFUJob".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfDFUJob) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJob") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJob") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob.Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setDFUJob( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfDFUJob.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfDFUJob bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfDFUJob implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfDFUJob + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for DFUJob This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] localDFUJob; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDFUJobTracker = false; + + public boolean isDFUJobSpecified() { + return localDFUJobTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] getDFUJob() { + return localDFUJob; + } + + /** validate the array for DFUJob */ + protected void validateDFUJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] param) {} + + /** + * Auto generated setter method + * + * @param param DFUJob + */ + public void setDFUJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] param) { + + validateDFUJob(param); + + localDFUJobTracker = param != null; + + this.localDFUJob = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob + */ + public void addDFUJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob param) { + if (localDFUJob == null) { + localDFUJob = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[] {}; + } + + // update the setting tracker + localDFUJobTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDFUJob); + list.add(param); + this.localDFUJob = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[]) + list.toArray(new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfDFUJob", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfDFUJob", xmlWriter); + } + } + if (localDFUJobTracker) { + if (localDFUJob != null) { + for (int i = 0; i < localDFUJob.length; i++) { + if (localDFUJob[i] != null) { + localDFUJob[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJob"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("DFUJob cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfDFUJob parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfDFUJob object = new ArrayOfDFUJob(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfDFUJob".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfDFUJob) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJob") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DFUJob") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob.Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setDFUJob( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfEspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfEspException.java index 05e70d74d..4676ac5eb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfEspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfEspException.java @@ -1,525 +1,525 @@ -/** - * ArrayOfEspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfEspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfEspException - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Exception This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] localException; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionTracker = false; - - public boolean isExceptionSpecified() { - return localExceptionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] getException() { - return localException; - } - - /** validate the array for Exception */ - protected void validateException( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] param) {} - - /** - * Auto generated setter method - * - * @param param Exception - */ - public void setException(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] param) { - - validateException(param); - - localExceptionTracker = param != null; - - this.localException = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException - */ - public void addException(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException param) { - if (localException == null) { - localException = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] {}; - } - - // update the setting tracker - localExceptionTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); - list.add(param); - this.localException = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfEspException", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfEspException", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localExceptionTracker) { - if (localException != null) { - for (int i = 0; i < localException.length; i++) { - if (localException[i] != null) { - localException[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exception"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfEspException object = new ArrayOfEspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfEspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfEspException) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list2 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exception") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list2.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone2 = false; - while (!loopDone2) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone2 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exception") - .equals(reader.getName())) { - list2.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException.Factory.parse( - reader)); - - } else { - loopDone2 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setException( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException.class, list2)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfEspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfEspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfEspException + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Exception This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] localException; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionTracker = false; + + public boolean isExceptionSpecified() { + return localExceptionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] getException() { + return localException; + } + + /** validate the array for Exception */ + protected void validateException( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] param) {} + + /** + * Auto generated setter method + * + * @param param Exception + */ + public void setException(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] param) { + + validateException(param); + + localExceptionTracker = param != null; + + this.localException = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException + */ + public void addException(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException param) { + if (localException == null) { + localException = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[] {}; + } + + // update the setting tracker + localExceptionTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); + list.add(param); + this.localException = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfEspException", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfEspException", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localExceptionTracker) { + if (localException != null) { + for (int i = 0; i < localException.length; i++) { + if (localException[i] != null) { + localException[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exception"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfEspException object = new ArrayOfEspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfEspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfEspException) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list2 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exception") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list2.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone2 = false; + while (!loopDone2) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone2 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exception") + .equals(reader.getName())) { + list2.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException.Factory.parse( + reader)); + + } else { + loopDone2 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setException( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException.class, list2)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfHPCCResource.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfHPCCResource.java index 50e0b30f3..d45b732c7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfHPCCResource.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfHPCCResource.java @@ -1,454 +1,454 @@ -/** - * ArrayOfHPCCResource.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfHPCCResource bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfHPCCResource implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfHPCCResource - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for HPCCResource This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] localHPCCResource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHPCCResourceTracker = false; - - public boolean isHPCCResourceSpecified() { - return localHPCCResourceTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] getHPCCResource() { - return localHPCCResource; - } - - /** validate the array for HPCCResource */ - protected void validateHPCCResource( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] param) {} - - /** - * Auto generated setter method - * - * @param param HPCCResource - */ - public void setHPCCResource( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] param) { - - validateHPCCResource(param); - - localHPCCResourceTracker = param != null; - - this.localHPCCResource = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource - */ - public void addHPCCResource(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource param) { - if (localHPCCResource == null) { - localHPCCResource = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] {}; - } - - // update the setting tracker - localHPCCResourceTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localHPCCResource); - list.add(param); - this.localHPCCResource = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfHPCCResource", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfHPCCResource", - xmlWriter); - } - } - if (localHPCCResourceTracker) { - if (localHPCCResource != null) { - for (int i = 0; i < localHPCCResource.length; i++) { - if (localHPCCResource[i] != null) { - localHPCCResource[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResource"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("HPCCResource cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfHPCCResource parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfHPCCResource object = new ArrayOfHPCCResource(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfHPCCResource".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfHPCCResource) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResource") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResource") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setHPCCResource( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfHPCCResource.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfHPCCResource bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfHPCCResource implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfHPCCResource + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for HPCCResource This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] localHPCCResource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHPCCResourceTracker = false; + + public boolean isHPCCResourceSpecified() { + return localHPCCResourceTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] getHPCCResource() { + return localHPCCResource; + } + + /** validate the array for HPCCResource */ + protected void validateHPCCResource( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] param) {} + + /** + * Auto generated setter method + * + * @param param HPCCResource + */ + public void setHPCCResource( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] param) { + + validateHPCCResource(param); + + localHPCCResourceTracker = param != null; + + this.localHPCCResource = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource + */ + public void addHPCCResource(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource param) { + if (localHPCCResource == null) { + localHPCCResource = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[] {}; + } + + // update the setting tracker + localHPCCResourceTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localHPCCResource); + list.add(param); + this.localHPCCResource = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfHPCCResource", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfHPCCResource", + xmlWriter); + } + } + if (localHPCCResourceTracker) { + if (localHPCCResource != null) { + for (int i = 0; i < localHPCCResource.length; i++) { + if (localHPCCResource[i] != null) { + localHPCCResource[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResource"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("HPCCResource cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfHPCCResource parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfHPCCResource object = new ArrayOfHPCCResource(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfHPCCResource".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfHPCCResource) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResource") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResource") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setHPCCResource( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfHPCCResourceRepository.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfHPCCResourceRepository.java index 6db38a40a..fad9677d3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfHPCCResourceRepository.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfHPCCResourceRepository.java @@ -1,463 +1,463 @@ -/** - * ArrayOfHPCCResourceRepository.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfHPCCResourceRepository bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfHPCCResourceRepository implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfHPCCResourceRepository - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for HPCCResourceRepository This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] - localHPCCResourceRepository; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHPCCResourceRepositoryTracker = false; - - public boolean isHPCCResourceRepositorySpecified() { - return localHPCCResourceRepositoryTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] - getHPCCResourceRepository() { - return localHPCCResourceRepository; - } - - /** validate the array for HPCCResourceRepository */ - protected void validateHPCCResourceRepository( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] param) {} - - /** - * Auto generated setter method - * - * @param param HPCCResourceRepository - */ - public void setHPCCResourceRepository( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] param) { - - validateHPCCResourceRepository(param); - - localHPCCResourceRepositoryTracker = param != null; - - this.localHPCCResourceRepository = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository - */ - public void addHPCCResourceRepository( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository param) { - if (localHPCCResourceRepository == null) { - localHPCCResourceRepository = - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] {}; - } - - // update the setting tracker - localHPCCResourceRepositoryTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localHPCCResourceRepository); - list.add(param); - this.localHPCCResourceRepository = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfHPCCResourceRepository", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfHPCCResourceRepository", - xmlWriter); - } - } - if (localHPCCResourceRepositoryTracker) { - if (localHPCCResourceRepository != null) { - for (int i = 0; i < localHPCCResourceRepository.length; i++) { - if (localHPCCResourceRepository[i] != null) { - localHPCCResourceRepository[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResourceRepository"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException( - "HPCCResourceRepository cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfHPCCResourceRepository parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfHPCCResourceRepository object = new ArrayOfHPCCResourceRepository(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfHPCCResourceRepository".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfHPCCResourceRepository) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResourceRepository") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wssmc", "HPCCResourceRepository") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setHPCCResourceRepository( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfHPCCResourceRepository.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfHPCCResourceRepository bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfHPCCResourceRepository implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfHPCCResourceRepository + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for HPCCResourceRepository This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] + localHPCCResourceRepository; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHPCCResourceRepositoryTracker = false; + + public boolean isHPCCResourceRepositorySpecified() { + return localHPCCResourceRepositoryTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] + getHPCCResourceRepository() { + return localHPCCResourceRepository; + } + + /** validate the array for HPCCResourceRepository */ + protected void validateHPCCResourceRepository( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] param) {} + + /** + * Auto generated setter method + * + * @param param HPCCResourceRepository + */ + public void setHPCCResourceRepository( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] param) { + + validateHPCCResourceRepository(param); + + localHPCCResourceRepositoryTracker = param != null; + + this.localHPCCResourceRepository = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository + */ + public void addHPCCResourceRepository( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository param) { + if (localHPCCResourceRepository == null) { + localHPCCResourceRepository = + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[] {}; + } + + // update the setting tracker + localHPCCResourceRepositoryTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localHPCCResourceRepository); + list.add(param); + this.localHPCCResourceRepository = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfHPCCResourceRepository", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfHPCCResourceRepository", + xmlWriter); + } + } + if (localHPCCResourceRepositoryTracker) { + if (localHPCCResourceRepository != null) { + for (int i = 0; i < localHPCCResourceRepository.length; i++) { + if (localHPCCResourceRepository[i] != null) { + localHPCCResourceRepository[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResourceRepository"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException( + "HPCCResourceRepository cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfHPCCResourceRepository parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfHPCCResourceRepository object = new ArrayOfHPCCResourceRepository(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfHPCCResourceRepository".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfHPCCResourceRepository) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResourceRepository") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wssmc", "HPCCResourceRepository") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setHPCCResourceRepository( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfLock.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfLock.java index b0c2838e9..9c23ff5c5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfLock.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfLock.java @@ -1,443 +1,443 @@ -/** - * ArrayOfLock.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfLock bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfLock implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfLock - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Lock This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] localLock; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLockTracker = false; - - public boolean isLockSpecified() { - return localLockTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] getLock() { - return localLock; - } - - /** validate the array for Lock */ - protected void validateLock(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] param) {} - - /** - * Auto generated setter method - * - * @param param Lock - */ - public void setLock(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] param) { - - validateLock(param); - - localLockTracker = param != null; - - this.localLock = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock - */ - public void addLock(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock param) { - if (localLock == null) { - localLock = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] {}; - } - - // update the setting tracker - localLockTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localLock); - list.add(param); - this.localLock = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[]) - list.toArray(new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfLock", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfLock", xmlWriter); - } - } - if (localLockTracker) { - if (localLock != null) { - for (int i = 0; i < localLock.length; i++) { - if (localLock[i] != null) { - localLock[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Lock"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Lock cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfLock parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfLock object = new ArrayOfLock(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfLock".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfLock) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Lock") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Lock") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock.Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setLock( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfLock.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfLock bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfLock implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfLock + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Lock This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] localLock; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLockTracker = false; + + public boolean isLockSpecified() { + return localLockTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] getLock() { + return localLock; + } + + /** validate the array for Lock */ + protected void validateLock(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] param) {} + + /** + * Auto generated setter method + * + * @param param Lock + */ + public void setLock(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] param) { + + validateLock(param); + + localLockTracker = param != null; + + this.localLock = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock + */ + public void addLock(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock param) { + if (localLock == null) { + localLock = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[] {}; + } + + // update the setting tracker + localLockTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localLock); + list.add(param); + this.localLock = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[]) + list.toArray(new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfLock", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfLock", xmlWriter); + } + } + if (localLockTracker) { + if (localLock != null) { + for (int i = 0; i < localLock.length; i++) { + if (localLock[i] != null) { + localLock[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Lock"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Lock cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfLock parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfLock object = new ArrayOfLock(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfLock".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfLock) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Lock") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Lock") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock.Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setLock( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfNamedValue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfNamedValue.java index 5c4668ed0..d51cccd27 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfNamedValue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfNamedValue.java @@ -1,451 +1,451 @@ -/** - * ArrayOfNamedValue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfNamedValue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfNamedValue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfNamedValue - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for NamedValue This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] localNamedValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNamedValueTracker = false; - - public boolean isNamedValueSpecified() { - return localNamedValueTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] getNamedValue() { - return localNamedValue; - } - - /** validate the array for NamedValue */ - protected void validateNamedValue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] param) {} - - /** - * Auto generated setter method - * - * @param param NamedValue - */ - public void setNamedValue(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] param) { - - validateNamedValue(param); - - localNamedValueTracker = param != null; - - this.localNamedValue = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue - */ - public void addNamedValue(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue param) { - if (localNamedValue == null) { - localNamedValue = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] {}; - } - - // update the setting tracker - localNamedValueTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localNamedValue); - list.add(param); - this.localNamedValue = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfNamedValue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfNamedValue", - xmlWriter); - } - } - if (localNamedValueTracker) { - if (localNamedValue != null) { - for (int i = 0; i < localNamedValue.length; i++) { - if (localNamedValue[i] != null) { - localNamedValue[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NamedValue"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("NamedValue cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfNamedValue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfNamedValue object = new ArrayOfNamedValue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfNamedValue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfNamedValue) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NamedValue") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NamedValue") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setNamedValue( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfNamedValue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfNamedValue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfNamedValue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfNamedValue + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for NamedValue This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] localNamedValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNamedValueTracker = false; + + public boolean isNamedValueSpecified() { + return localNamedValueTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] getNamedValue() { + return localNamedValue; + } + + /** validate the array for NamedValue */ + protected void validateNamedValue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] param) {} + + /** + * Auto generated setter method + * + * @param param NamedValue + */ + public void setNamedValue(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] param) { + + validateNamedValue(param); + + localNamedValueTracker = param != null; + + this.localNamedValue = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue + */ + public void addNamedValue(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue param) { + if (localNamedValue == null) { + localNamedValue = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[] {}; + } + + // update the setting tracker + localNamedValueTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localNamedValue); + list.add(param); + this.localNamedValue = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfNamedValue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfNamedValue", + xmlWriter); + } + } + if (localNamedValueTracker) { + if (localNamedValue != null) { + for (int i = 0; i < localNamedValue.length; i++) { + if (localNamedValue[i] != null) { + localNamedValue[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NamedValue"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("NamedValue cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfNamedValue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfNamedValue object = new ArrayOfNamedValue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfNamedValue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfNamedValue) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NamedValue") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NamedValue") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setNamedValue( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfSMCJob.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfSMCJob.java index 2ee36c1df..2587062a5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfSMCJob.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfSMCJob.java @@ -1,443 +1,443 @@ -/** - * ArrayOfSMCJob.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfSMCJob bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfSMCJob implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfSMCJob - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for SMCJob This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] localSMCJob; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSMCJobTracker = false; - - public boolean isSMCJobSpecified() { - return localSMCJobTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] getSMCJob() { - return localSMCJob; - } - - /** validate the array for SMCJob */ - protected void validateSMCJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] param) {} - - /** - * Auto generated setter method - * - * @param param SMCJob - */ - public void setSMCJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] param) { - - validateSMCJob(param); - - localSMCJobTracker = param != null; - - this.localSMCJob = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob - */ - public void addSMCJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob param) { - if (localSMCJob == null) { - localSMCJob = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] {}; - } - - // update the setting tracker - localSMCJobTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSMCJob); - list.add(param); - this.localSMCJob = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[]) - list.toArray(new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfSMCJob", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfSMCJob", xmlWriter); - } - } - if (localSMCJobTracker) { - if (localSMCJob != null) { - for (int i = 0; i < localSMCJob.length; i++) { - if (localSMCJob[i] != null) { - localSMCJob[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJob"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("SMCJob cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfSMCJob parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfSMCJob object = new ArrayOfSMCJob(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfSMCJob".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfSMCJob) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJob") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJob") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob.Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setSMCJob( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfSMCJob.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfSMCJob bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfSMCJob implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfSMCJob + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for SMCJob This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] localSMCJob; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSMCJobTracker = false; + + public boolean isSMCJobSpecified() { + return localSMCJobTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] getSMCJob() { + return localSMCJob; + } + + /** validate the array for SMCJob */ + protected void validateSMCJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] param) {} + + /** + * Auto generated setter method + * + * @param param SMCJob + */ + public void setSMCJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] param) { + + validateSMCJob(param); + + localSMCJobTracker = param != null; + + this.localSMCJob = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob + */ + public void addSMCJob(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob param) { + if (localSMCJob == null) { + localSMCJob = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[] {}; + } + + // update the setting tracker + localSMCJobTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSMCJob); + list.add(param); + this.localSMCJob = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[]) + list.toArray(new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfSMCJob", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfSMCJob", xmlWriter); + } + } + if (localSMCJobTracker) { + if (localSMCJob != null) { + for (int i = 0; i < localSMCJob.length; i++) { + if (localSMCJob[i] != null) { + localSMCJob[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJob"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("SMCJob cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfSMCJob parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfSMCJob object = new ArrayOfSMCJob(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfSMCJob".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfSMCJob) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJob") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJob") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob.Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setSMCJob( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfServerJobQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfServerJobQueue.java index 3036ef14c..bbd8be11f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfServerJobQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfServerJobQueue.java @@ -1,458 +1,458 @@ -/** - * ArrayOfServerJobQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfServerJobQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfServerJobQueue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfServerJobQueue - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for ServerJobQueue This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] localServerJobQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerJobQueueTracker = false; - - public boolean isServerJobQueueSpecified() { - return localServerJobQueueTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] getServerJobQueue() { - return localServerJobQueue; - } - - /** validate the array for ServerJobQueue */ - protected void validateServerJobQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] param) {} - - /** - * Auto generated setter method - * - * @param param ServerJobQueue - */ - public void setServerJobQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] param) { - - validateServerJobQueue(param); - - localServerJobQueueTracker = param != null; - - this.localServerJobQueue = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue - */ - public void addServerJobQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue param) { - if (localServerJobQueue == null) { - localServerJobQueue = - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] {}; - } - - // update the setting tracker - localServerJobQueueTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localServerJobQueue); - list.add(param); - this.localServerJobQueue = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfServerJobQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfServerJobQueue", - xmlWriter); - } - } - if (localServerJobQueueTracker) { - if (localServerJobQueue != null) { - for (int i = 0; i < localServerJobQueue.length; i++) { - if (localServerJobQueue[i] != null) { - localServerJobQueue[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueue"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ServerJobQueue cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfServerJobQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfServerJobQueue object = new ArrayOfServerJobQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfServerJobQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfServerJobQueue) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueue") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueue") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setServerJobQueue( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfServerJobQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfServerJobQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfServerJobQueue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfServerJobQueue + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for ServerJobQueue This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] localServerJobQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerJobQueueTracker = false; + + public boolean isServerJobQueueSpecified() { + return localServerJobQueueTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] getServerJobQueue() { + return localServerJobQueue; + } + + /** validate the array for ServerJobQueue */ + protected void validateServerJobQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] param) {} + + /** + * Auto generated setter method + * + * @param param ServerJobQueue + */ + public void setServerJobQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] param) { + + validateServerJobQueue(param); + + localServerJobQueueTracker = param != null; + + this.localServerJobQueue = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue + */ + public void addServerJobQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue param) { + if (localServerJobQueue == null) { + localServerJobQueue = + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[] {}; + } + + // update the setting tracker + localServerJobQueueTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localServerJobQueue); + list.add(param); + this.localServerJobQueue = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfServerJobQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfServerJobQueue", + xmlWriter); + } + } + if (localServerJobQueueTracker) { + if (localServerJobQueue != null) { + for (int i = 0; i < localServerJobQueue.length; i++) { + if (localServerJobQueue[i] != null) { + localServerJobQueue[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueue"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ServerJobQueue cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfServerJobQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfServerJobQueue object = new ArrayOfServerJobQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfServerJobQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfServerJobQueue) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueue") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerJobQueue") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setServerJobQueue( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfTargetCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfTargetCluster.java index 4919115e2..0552295f9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfTargetCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfTargetCluster.java @@ -1,455 +1,455 @@ -/** - * ArrayOfTargetCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfTargetCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTargetCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTargetCluster - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for TargetCluster This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] localTargetCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetClusterTracker = false; - - public boolean isTargetClusterSpecified() { - return localTargetClusterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] getTargetCluster() { - return localTargetCluster; - } - - /** validate the array for TargetCluster */ - protected void validateTargetCluster( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] param) {} - - /** - * Auto generated setter method - * - * @param param TargetCluster - */ - public void setTargetCluster( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] param) { - - validateTargetCluster(param); - - localTargetClusterTracker = param != null; - - this.localTargetCluster = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster - */ - public void addTargetCluster( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster param) { - if (localTargetCluster == null) { - localTargetCluster = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] {}; - } - - // update the setting tracker - localTargetClusterTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTargetCluster); - list.add(param); - this.localTargetCluster = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTargetCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTargetCluster", - xmlWriter); - } - } - if (localTargetClusterTracker) { - if (localTargetCluster != null) { - for (int i = 0; i < localTargetCluster.length; i++) { - if (localTargetCluster[i] != null) { - localTargetCluster[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetCluster"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TargetCluster cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTargetCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTargetCluster object = new ArrayOfTargetCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTargetCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTargetCluster) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetCluster") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetCluster") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTargetCluster( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTargetCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfTargetCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTargetCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTargetCluster + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for TargetCluster This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] localTargetCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetClusterTracker = false; + + public boolean isTargetClusterSpecified() { + return localTargetClusterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] getTargetCluster() { + return localTargetCluster; + } + + /** validate the array for TargetCluster */ + protected void validateTargetCluster( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] param) {} + + /** + * Auto generated setter method + * + * @param param TargetCluster + */ + public void setTargetCluster( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] param) { + + validateTargetCluster(param); + + localTargetClusterTracker = param != null; + + this.localTargetCluster = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster + */ + public void addTargetCluster( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster param) { + if (localTargetCluster == null) { + localTargetCluster = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[] {}; + } + + // update the setting tracker + localTargetClusterTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTargetCluster); + list.add(param); + this.localTargetCluster = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTargetCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTargetCluster", + xmlWriter); + } + } + if (localTargetClusterTracker) { + if (localTargetCluster != null) { + for (int i = 0; i < localTargetCluster.length; i++) { + if (localTargetCluster[i] != null) { + localTargetCluster[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetCluster"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TargetCluster cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTargetCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTargetCluster object = new ArrayOfTargetCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTargetCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTargetCluster) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetCluster") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetCluster") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTargetCluster( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfThorCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfThorCluster.java index 943845320..cc1e20463 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfThorCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ArrayOfThorCluster.java @@ -1,452 +1,452 @@ -/** - * ArrayOfThorCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ArrayOfThorCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfThorCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfThorCluster - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for ThorCluster This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] localThorCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorClusterTracker = false; - - public boolean isThorClusterSpecified() { - return localThorClusterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] getThorCluster() { - return localThorCluster; - } - - /** validate the array for ThorCluster */ - protected void validateThorCluster( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] param) {} - - /** - * Auto generated setter method - * - * @param param ThorCluster - */ - public void setThorCluster(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] param) { - - validateThorCluster(param); - - localThorClusterTracker = param != null; - - this.localThorCluster = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster - */ - public void addThorCluster(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster param) { - if (localThorCluster == null) { - localThorCluster = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] {}; - } - - // update the setting tracker - localThorClusterTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localThorCluster); - list.add(param); - this.localThorCluster = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfThorCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfThorCluster", - xmlWriter); - } - } - if (localThorClusterTracker) { - if (localThorCluster != null) { - for (int i = 0; i < localThorCluster.length; i++) { - if (localThorCluster[i] != null) { - localThorCluster[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorCluster"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ThorCluster cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfThorCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfThorCluster object = new ArrayOfThorCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfThorCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfThorCluster) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorCluster") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorCluster") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setThorCluster( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfThorCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ArrayOfThorCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfThorCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfThorCluster + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for ThorCluster This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] localThorCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorClusterTracker = false; + + public boolean isThorClusterSpecified() { + return localThorClusterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] getThorCluster() { + return localThorCluster; + } + + /** validate the array for ThorCluster */ + protected void validateThorCluster( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] param) {} + + /** + * Auto generated setter method + * + * @param param ThorCluster + */ + public void setThorCluster(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] param) { + + validateThorCluster(param); + + localThorClusterTracker = param != null; + + this.localThorCluster = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster + */ + public void addThorCluster(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster param) { + if (localThorCluster == null) { + localThorCluster = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[] {}; + } + + // update the setting tracker + localThorClusterTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localThorCluster); + list.add(param); + this.localThorCluster = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfThorCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfThorCluster", + xmlWriter); + } + } + if (localThorClusterTracker) { + if (localThorCluster != null) { + for (int i = 0; i < localThorCluster.length; i++) { + if (localThorCluster[i] != null) { + localThorCluster[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorCluster"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ThorCluster cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfThorCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfThorCluster object = new ArrayOfThorCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfThorCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfThorCluster) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorCluster") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorCluster") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setThorCluster( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResources.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResources.java index e8954cdc4..be62e2eea 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResources.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResources.java @@ -1,314 +1,314 @@ -/** - * BrowseResources.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** BrowseResources bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class BrowseResources implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BrowseResources", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":BrowseResources", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "BrowseResources", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static BrowseResources parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - BrowseResources object = new BrowseResources(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"BrowseResources".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (BrowseResources) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * BrowseResources.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** BrowseResources bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class BrowseResources implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BrowseResources", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":BrowseResources", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "BrowseResources", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static BrowseResources parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + BrowseResources object = new BrowseResources(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"BrowseResources".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (BrowseResources) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResourcesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResourcesResponse.java index acd8ebb8b..528505ee7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResourcesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResourcesResponse.java @@ -1,710 +1,710 @@ -/** - * BrowseResourcesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** BrowseResourcesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class BrowseResourcesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BrowseResourcesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for PortalURL */ - protected java.lang.String localPortalURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortalURLTracker = false; - - public boolean isPortalURLSpecified() { - return localPortalURLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPortalURL() { - return localPortalURL; - } - - /** - * Auto generated setter method - * - * @param param PortalURL - */ - public void setPortalURL(java.lang.String param) { - localPortalURLTracker = param != null; - - this.localPortalURL = param; - } - - /** field for NetAddress */ - protected java.lang.String localNetAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetAddressTracker = false; - - public boolean isNetAddressSpecified() { - return localNetAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetAddress() { - return localNetAddress; - } - - /** - * Auto generated setter method - * - * @param param NetAddress - */ - public void setNetAddress(java.lang.String param) { - localNetAddressTracker = param != null; - - this.localNetAddress = param; - } - - /** field for OS */ - protected int localOS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOSTracker = false; - - public boolean isOSSpecified() { - return localOSTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getOS() { - return localOS; - } - - /** - * Auto generated setter method - * - * @param param OS - */ - public void setOS(int param) { - - // setting primitive attribute tracker to true - localOSTracker = param != java.lang.Integer.MIN_VALUE; - - this.localOS = param; - } - - /** field for UseResource */ - protected boolean localUseResource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUseResourceTracker = false; - - public boolean isUseResourceSpecified() { - return localUseResourceTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUseResource() { - return localUseResource; - } - - /** - * Auto generated setter method - * - * @param param UseResource - */ - public void setUseResource(boolean param) { - - // setting primitive attribute tracker to true - localUseResourceTracker = true; - - this.localUseResource = param; - } - - /** field for HPCCResourceRepositories */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository - localHPCCResourceRepositories; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHPCCResourceRepositoriesTracker = false; - - public boolean isHPCCResourceRepositoriesSpecified() { - return localHPCCResourceRepositoriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository - getHPCCResourceRepositories() { - return localHPCCResourceRepositories; - } - - /** - * Auto generated setter method - * - * @param param HPCCResourceRepositories - */ - public void setHPCCResourceRepositories( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository param) { - localHPCCResourceRepositoriesTracker = param != null; - - this.localHPCCResourceRepositories = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":BrowseResourcesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "BrowseResourcesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localPortalURLTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "PortalURL", xmlWriter); - - if (localPortalURL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PortalURL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPortalURL); - } - - xmlWriter.writeEndElement(); - } - if (localNetAddressTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NetAddress", xmlWriter); - - if (localNetAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetAddress); - } - - xmlWriter.writeEndElement(); - } - if (localOSTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "OS", xmlWriter); - - if (localOS == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); - } - - xmlWriter.writeEndElement(); - } - if (localUseResourceTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "UseResource", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UseResource cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUseResource)); - } - - xmlWriter.writeEndElement(); - } - if (localHPCCResourceRepositoriesTracker) { - if (localHPCCResourceRepositories == null) { - throw new org.apache.axis2.databinding.ADBException( - "HPCCResourceRepositories cannot be null!!"); - } - localHPCCResourceRepositories.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResourceRepositories"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static BrowseResourcesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - BrowseResourcesResponse object = new BrowseResourcesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"BrowseResourcesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (BrowseResourcesResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "PortalURL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PortalURL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPortalURL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "OS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "UseResource") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UseResource" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUseResource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wssmc", "HPCCResourceRepositories") - .equals(reader.getName())) { - - object.setHPCCResourceRepositories( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * BrowseResourcesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** BrowseResourcesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class BrowseResourcesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BrowseResourcesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for PortalURL */ + protected java.lang.String localPortalURL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortalURLTracker = false; + + public boolean isPortalURLSpecified() { + return localPortalURLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPortalURL() { + return localPortalURL; + } + + /** + * Auto generated setter method + * + * @param param PortalURL + */ + public void setPortalURL(java.lang.String param) { + localPortalURLTracker = param != null; + + this.localPortalURL = param; + } + + /** field for ESPInstance */ + protected java.lang.String localESPInstance; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localESPInstanceTracker = false; + + public boolean isESPInstanceSpecified() { + return localESPInstanceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getESPInstance() { + return localESPInstance; + } + + /** + * Auto generated setter method + * + * @param param ESPInstance + */ + public void setESPInstance(java.lang.String param) { + localESPInstanceTracker = param != null; + + this.localESPInstance = param; + } + + /** field for OS */ + protected int localOS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOSTracker = false; + + public boolean isOSSpecified() { + return localOSTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getOS() { + return localOS; + } + + /** + * Auto generated setter method + * + * @param param OS + */ + public void setOS(int param) { + + // setting primitive attribute tracker to true + localOSTracker = param != java.lang.Integer.MIN_VALUE; + + this.localOS = param; + } + + /** field for UseResource */ + protected boolean localUseResource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUseResourceTracker = false; + + public boolean isUseResourceSpecified() { + return localUseResourceTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUseResource() { + return localUseResource; + } + + /** + * Auto generated setter method + * + * @param param UseResource + */ + public void setUseResource(boolean param) { + + // setting primitive attribute tracker to true + localUseResourceTracker = true; + + this.localUseResource = param; + } + + /** field for HPCCResourceRepositories */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository + localHPCCResourceRepositories; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHPCCResourceRepositoriesTracker = false; + + public boolean isHPCCResourceRepositoriesSpecified() { + return localHPCCResourceRepositoriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository + getHPCCResourceRepositories() { + return localHPCCResourceRepositories; + } + + /** + * Auto generated setter method + * + * @param param HPCCResourceRepositories + */ + public void setHPCCResourceRepositories( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository param) { + localHPCCResourceRepositoriesTracker = param != null; + + this.localHPCCResourceRepositories = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":BrowseResourcesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "BrowseResourcesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localPortalURLTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "PortalURL", xmlWriter); + + if (localPortalURL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PortalURL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPortalURL); + } + + xmlWriter.writeEndElement(); + } + if (localESPInstanceTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ESPInstance", xmlWriter); + + if (localESPInstance == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ESPInstance cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localESPInstance); + } + + xmlWriter.writeEndElement(); + } + if (localOSTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "OS", xmlWriter); + + if (localOS == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); + } + + xmlWriter.writeEndElement(); + } + if (localUseResourceTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "UseResource", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UseResource cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUseResource)); + } + + xmlWriter.writeEndElement(); + } + if (localHPCCResourceRepositoriesTracker) { + if (localHPCCResourceRepositories == null) { + throw new org.apache.axis2.databinding.ADBException( + "HPCCResourceRepositories cannot be null!!"); + } + localHPCCResourceRepositories.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResourceRepositories"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static BrowseResourcesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + BrowseResourcesResponse object = new BrowseResourcesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"BrowseResourcesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (BrowseResourcesResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "PortalURL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PortalURL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPortalURL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ESPInstance") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ESPInstance" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setESPInstance( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "OS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "UseResource") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UseResource" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUseResource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wssmc", "HPCCResourceRepositories") + .equals(reader.getName())) { + + object.setHPCCResourceRepositories( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ClearQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ClearQueue.java index 4b0c3d7a8..01367c312 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ClearQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ClearQueue.java @@ -1,733 +1,733 @@ -/** - * ClearQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ClearQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ClearQueue implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClearQueue", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for ServerType */ - protected java.lang.String localServerType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTypeTracker = false; - - public boolean isServerTypeSpecified() { - return localServerTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServerType() { - return localServerType; - } - - /** - * Auto generated setter method - * - * @param param ServerType - */ - public void setServerType(java.lang.String param) { - localServerTypeTracker = param != null; - - this.localServerType = param; - } - - /** field for NetworkAddress */ - protected java.lang.String localNetworkAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetworkAddressTracker = false; - - public boolean isNetworkAddressSpecified() { - return localNetworkAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetworkAddress() { - return localNetworkAddress; - } - - /** - * Auto generated setter method - * - * @param param NetworkAddress - */ - public void setNetworkAddress(java.lang.String param) { - localNetworkAddressTracker = param != null; - - this.localNetworkAddress = param; - } - - /** field for Port */ - protected int localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(int param) { - - // setting primitive attribute tracker to true - localPortTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPort = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ClearQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ClearQueue", xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localServerTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ServerType", xmlWriter); - - if (localServerType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServerType); - } - - xmlWriter.writeEndElement(); - } - if (localNetworkAddressTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NetworkAddress", xmlWriter); - - if (localNetworkAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetworkAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ClearQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ClearQueue object = new ClearQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ClearQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ClearQueue) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServerType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServerType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetworkAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetworkAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ClearQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ClearQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ClearQueue implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClearQueue", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for ServerType */ + protected java.lang.String localServerType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTypeTracker = false; + + public boolean isServerTypeSpecified() { + return localServerTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServerType() { + return localServerType; + } + + /** + * Auto generated setter method + * + * @param param ServerType + */ + public void setServerType(java.lang.String param) { + localServerTypeTracker = param != null; + + this.localServerType = param; + } + + /** field for NetworkAddress */ + protected java.lang.String localNetworkAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetworkAddressTracker = false; + + public boolean isNetworkAddressSpecified() { + return localNetworkAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetworkAddress() { + return localNetworkAddress; + } + + /** + * Auto generated setter method + * + * @param param NetworkAddress + */ + public void setNetworkAddress(java.lang.String param) { + localNetworkAddressTracker = param != null; + + this.localNetworkAddress = param; + } + + /** field for Port */ + protected int localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(int param) { + + // setting primitive attribute tracker to true + localPortTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPort = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ClearQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ClearQueue", xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localServerTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ServerType", xmlWriter); + + if (localServerType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServerType); + } + + xmlWriter.writeEndElement(); + } + if (localNetworkAddressTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NetworkAddress", xmlWriter); + + if (localNetworkAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetworkAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ClearQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ClearQueue object = new ClearQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ClearQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ClearQueue) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServerType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServerType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetworkAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetworkAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/DFUJob.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/DFUJob.java index f360c0311..cfaa9d3c5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/DFUJob.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/DFUJob.java @@ -1,600 +1,600 @@ -/** - * DFUJob.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** DFUJob bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DFUJob implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = DFUJob - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for TimeStarted */ - protected java.lang.String localTimeStarted; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeStartedTracker = false; - - public boolean isTimeStartedSpecified() { - return localTimeStartedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeStarted() { - return localTimeStarted; - } - - /** - * Auto generated setter method - * - * @param param TimeStarted - */ - public void setTimeStarted(java.lang.String param) { - localTimeStartedTracker = param != null; - - this.localTimeStarted = param; - } - - /** field for Done */ - protected int localDone; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDoneTracker = false; - - public boolean isDoneSpecified() { - return localDoneTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDone() { - return localDone; - } - - /** - * Auto generated setter method - * - * @param param Done - */ - public void setDone(int param) { - - // setting primitive attribute tracker to true - localDoneTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDone = param; - } - - /** field for Total */ - protected int localTotal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalTracker = false; - - public boolean isTotalSpecified() { - return localTotalTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTotal() { - return localTotal; - } - - /** - * Auto generated setter method - * - * @param param Total - */ - public void setTotal(int param) { - - // setting primitive attribute tracker to true - localTotalTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTotal = param; - } - - /** field for Command */ - protected java.lang.String localCommand; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommandTracker = false; - - public boolean isCommandSpecified() { - return localCommandTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCommand() { - return localCommand; - } - - /** - * Auto generated setter method - * - * @param param Command - */ - public void setCommand(java.lang.String param) { - localCommandTracker = param != null; - - this.localCommand = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DFUJob", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DFUJob", xmlWriter); - } - } - if (localTimeStartedTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "TimeStarted", xmlWriter); - - if (localTimeStarted == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeStarted cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeStarted); - } - - xmlWriter.writeEndElement(); - } - if (localDoneTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Done", xmlWriter); - - if (localDone == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Done cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDone)); - } - - xmlWriter.writeEndElement(); - } - if (localTotalTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Total", xmlWriter); - - if (localTotal == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); - } - - xmlWriter.writeEndElement(); - } - if (localCommandTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Command", xmlWriter); - - if (localCommand == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Command cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCommand); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DFUJob parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - DFUJob object = new DFUJob(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DFUJob".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DFUJob) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TimeStarted") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeStarted" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeStarted( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Done") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Done" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDone( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Total") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Total" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Command") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Command" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCommand( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DFUJob.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** DFUJob bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DFUJob implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = DFUJob + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for TimeStarted */ + protected java.lang.String localTimeStarted; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeStartedTracker = false; + + public boolean isTimeStartedSpecified() { + return localTimeStartedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeStarted() { + return localTimeStarted; + } + + /** + * Auto generated setter method + * + * @param param TimeStarted + */ + public void setTimeStarted(java.lang.String param) { + localTimeStartedTracker = param != null; + + this.localTimeStarted = param; + } + + /** field for Done */ + protected int localDone; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDoneTracker = false; + + public boolean isDoneSpecified() { + return localDoneTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDone() { + return localDone; + } + + /** + * Auto generated setter method + * + * @param param Done + */ + public void setDone(int param) { + + // setting primitive attribute tracker to true + localDoneTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDone = param; + } + + /** field for Total */ + protected int localTotal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalTracker = false; + + public boolean isTotalSpecified() { + return localTotalTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTotal() { + return localTotal; + } + + /** + * Auto generated setter method + * + * @param param Total + */ + public void setTotal(int param) { + + // setting primitive attribute tracker to true + localTotalTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTotal = param; + } + + /** field for Command */ + protected java.lang.String localCommand; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommandTracker = false; + + public boolean isCommandSpecified() { + return localCommandTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCommand() { + return localCommand; + } + + /** + * Auto generated setter method + * + * @param param Command + */ + public void setCommand(java.lang.String param) { + localCommandTracker = param != null; + + this.localCommand = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DFUJob", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DFUJob", xmlWriter); + } + } + if (localTimeStartedTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "TimeStarted", xmlWriter); + + if (localTimeStarted == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeStarted cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeStarted); + } + + xmlWriter.writeEndElement(); + } + if (localDoneTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Done", xmlWriter); + + if (localDone == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Done cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDone)); + } + + xmlWriter.writeEndElement(); + } + if (localTotalTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Total", xmlWriter); + + if (localTotal == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); + } + + xmlWriter.writeEndElement(); + } + if (localCommandTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Command", xmlWriter); + + if (localCommand == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Command cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCommand); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DFUJob parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + DFUJob object = new DFUJob(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DFUJob".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DFUJob) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TimeStarted") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeStarted" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeStarted( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Done") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Done" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDone( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Total") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Total" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Command") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Command" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCommand( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Endpoints_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Endpoints_type0.java index 136764977..301130c9d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Endpoints_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Endpoints_type0.java @@ -1,459 +1,459 @@ -/** - * Endpoints_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** Endpoints_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Endpoints_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Endpoints_type0 - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Endpoint This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] - localEndpoint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndpointTracker = false; - - public boolean isEndpointSpecified() { - return localEndpointTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] getEndpoint() { - return localEndpoint; - } - - /** validate the array for Endpoint */ - protected void validateEndpoint( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] param) {} - - /** - * Auto generated setter method - * - * @param param Endpoint - */ - public void setEndpoint( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] param) { - - validateEndpoint(param); - - localEndpointTracker = param != null; - - this.localEndpoint = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo - */ - public void addEndpoint( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo param) { - if (localEndpoint == null) { - localEndpoint = - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] {}; - } - - // update the setting tracker - localEndpointTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localEndpoint); - list.add(param); - this.localEndpoint = - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Endpoints_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Endpoints_type0", - xmlWriter); - } - } - if (localEndpointTracker) { - if (localEndpoint != null) { - for (int i = 0; i < localEndpoint.length; i++) { - if (localEndpoint[i] != null) { - localEndpoint[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoint"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Endpoint cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Endpoints_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Endpoints_type0 object = new Endpoints_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Endpoints_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Endpoints_type0) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoint") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoint") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setEndpoint( - (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Endpoints_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** Endpoints_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Endpoints_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Endpoints_type0 + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Endpoint This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] + localEndpoint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndpointTracker = false; + + public boolean isEndpointSpecified() { + return localEndpointTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] getEndpoint() { + return localEndpoint; + } + + /** validate the array for Endpoint */ + protected void validateEndpoint( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] param) {} + + /** + * Auto generated setter method + * + * @param param Endpoint + */ + public void setEndpoint( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] param) { + + validateEndpoint(param); + + localEndpointTracker = param != null; + + this.localEndpoint = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo + */ + public void addEndpoint( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo param) { + if (localEndpoint == null) { + localEndpoint = + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[] {}; + } + + // update the setting tracker + localEndpointTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localEndpoint); + list.add(param); + this.localEndpoint = + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Endpoints_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Endpoints_type0", + xmlWriter); + } + } + if (localEndpointTracker) { + if (localEndpoint != null) { + for (int i = 0; i < localEndpoint.length; i++) { + if (localEndpoint[i] != null) { + localEndpoint[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoint"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Endpoint cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Endpoints_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Endpoints_type0 object = new Endpoints_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Endpoints_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Endpoints_type0) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoint") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoint") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setEndpoint( + (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspException.java index b41b61da5..cf857c20c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspException.java @@ -1,599 +1,599 @@ -/** - * EspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** EspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspException - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Code */ - protected java.lang.String localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(java.lang.String param) { - localCodeTracker = param != null; - - this.localCode = param; - } - - /** field for Audience */ - protected java.lang.String localAudience; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAudienceTracker = false; - - public boolean isAudienceSpecified() { - return localAudienceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAudience() { - return localAudience; - } - - /** - * Auto generated setter method - * - * @param param Audience - */ - public void setAudience(java.lang.String param) { - localAudienceTracker = param != null; - - this.localAudience = param; - } - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspException", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); - } - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Code", xmlWriter); - - if (localCode == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCode); - } - - xmlWriter.writeEndElement(); - } - if (localAudienceTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Audience", xmlWriter); - - if (localAudience == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAudience); - } - - xmlWriter.writeEndElement(); - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspException object = new EspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspException) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Audience") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Audience" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAudience( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** EspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspException + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Code */ + protected java.lang.String localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(java.lang.String param) { + localCodeTracker = param != null; + + this.localCode = param; + } + + /** field for Audience */ + protected java.lang.String localAudience; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAudienceTracker = false; + + public boolean isAudienceSpecified() { + return localAudienceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAudience() { + return localAudience; + } + + /** + * Auto generated setter method + * + * @param param Audience + */ + public void setAudience(java.lang.String param) { + localAudienceTracker = param != null; + + this.localAudience = param; + } + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspException", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); + } + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Code", xmlWriter); + + if (localCode == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCode); + } + + xmlWriter.writeEndElement(); + } + if (localAudienceTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Audience", xmlWriter); + + if (localAudience == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAudience); + } + + xmlWriter.writeEndElement(); + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspException object = new EspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspException) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Audience") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Audience" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAudience( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspSoapFault.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspSoapFault.java index a2f083d60..ce5d3a1ec 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspSoapFault.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspSoapFault.java @@ -1,38 +1,38 @@ -/** - * EspSoapFault.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -public class EspSoapFault extends java.lang.Exception { - - private static final long serialVersionUID = 1686862988550L; - - private org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions faultMessage; - - public EspSoapFault() { - super("EspSoapFault"); - } - - public EspSoapFault(java.lang.String s) { - super(s); - } - - public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { - super(s, ex); - } - - public EspSoapFault(java.lang.Throwable cause) { - super(cause); - } - - public void setFaultMessage(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions msg) { - faultMessage = msg; - } - - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions getFaultMessage() { - return faultMessage; - } -} +/** + * EspSoapFault.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +public class EspSoapFault extends java.lang.Exception { + + private static final long serialVersionUID = 1710436285831L; + + private org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions faultMessage; + + public EspSoapFault() { + super("EspSoapFault"); + } + + public EspSoapFault(java.lang.String s) { + super(s); + } + + public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { + super(s, ex); + } + + public EspSoapFault(java.lang.Throwable cause) { + super(cause); + } + + public void setFaultMessage(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions msg) { + faultMessage = msg; + } + + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions getFaultMessage() { + return faultMessage; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspStringArray.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspStringArray.java index de7fa710c..83eedd4b0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspStringArray.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspStringArray.java @@ -1,451 +1,451 @@ -/** - * EspStringArray.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** EspStringArray bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspStringArray implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspStringArray - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Item This was an Array! */ - protected java.lang.String[] localItem; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localItemTracker = false; - - public boolean isItemSpecified() { - return localItemTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getItem() { - return localItem; - } - - /** validate the array for Item */ - protected void validateItem(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Item - */ - public void setItem(java.lang.String[] param) { - - validateItem(param); - - localItemTracker = param != null; - - this.localItem = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addItem(java.lang.String param) { - if (localItem == null) { - localItem = new java.lang.String[] {}; - } - - // update the setting tracker - localItemTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); - list.add(param); - this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspStringArray", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "EspStringArray", - xmlWriter); - } - } - if (localItemTracker) { - if (localItem != null) { - namespace = "urn:hpccsystems:ws:wssmc"; - for (int i = 0; i < localItem.length; i++) { - - if (localItem[i] != null) { - - writeStartElement(null, namespace, "Item", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspStringArray object = new EspStringArray(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspStringArray".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspStringArray) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Item") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Item") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspStringArray.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** EspStringArray bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspStringArray implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspStringArray + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Item This was an Array! */ + protected java.lang.String[] localItem; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localItemTracker = false; + + public boolean isItemSpecified() { + return localItemTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getItem() { + return localItem; + } + + /** validate the array for Item */ + protected void validateItem(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Item + */ + public void setItem(java.lang.String[] param) { + + validateItem(param); + + localItemTracker = param != null; + + this.localItem = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addItem(java.lang.String param) { + if (localItem == null) { + localItem = new java.lang.String[] {}; + } + + // update the setting tracker + localItemTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); + list.add(param); + this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspStringArray", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "EspStringArray", + xmlWriter); + } + } + if (localItemTracker) { + if (localItem != null) { + namespace = "urn:hpccsystems:ws:wssmc"; + for (int i = 0; i < localItem.length; i++) { + + if (localItem[i] != null) { + + writeStartElement(null, namespace, "Item", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspStringArray object = new EspStringArray(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspStringArray".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspStringArray) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Item") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Item") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Exceptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Exceptions.java index 58734e7f6..e152f76b5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Exceptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Exceptions.java @@ -1,315 +1,315 @@ -/** - * Exceptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** Exceptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Exceptions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); - } - localExceptions.serialize(MY_QNAME, xmlWriter); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Exceptions object = new Exceptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Exceptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** Exceptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Exceptions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); + } + localExceptions.serialize(MY_QNAME, xmlWriter); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Exceptions object = new Exceptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ExtensionMapper.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ExtensionMapper.java index f7afd9a0b..0e476b04e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ExtensionMapper.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ExtensionMapper.java @@ -1,180 +1,180 @@ -/** - * ExtensionMapper.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ExtensionMapper class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExtensionMapper { - - public static java.lang.Object getTypeObject( - java.lang.String namespaceURI, - java.lang.String typeName, - javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "Endpoints_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "DFUJob".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) - && "RoxieControlEndpointInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) - && "ArrayOfTargetCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "LockModes".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "TargetCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) - && "ArrayOfServerJobQueue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "SMCJob".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "Lock".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) - && "ArrayOfActiveWorkunit".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ServerJobQueue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfDFUJob".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfEspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "HPCCResource".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) - && "HPCCResourceRepository".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "StatusServerInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ThorCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ActiveWorkunit".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfThorCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "NamedValue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfLock".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfNamedValue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "EspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) - && "ArrayOfHPCCResourceRepository".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfHPCCResource".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "EspStringArray".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "RoxieControlCmdType".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfSMCJob".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob.Factory.parse(reader); - } - - throw new org.apache.axis2.databinding.ADBException( - "Unsupported type " + namespaceURI + " " + typeName); - } -} +/** + * ExtensionMapper.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ExtensionMapper class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExtensionMapper { + + public static java.lang.Object getTypeObject( + java.lang.String namespaceURI, + java.lang.String typeName, + javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "Endpoints_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "DFUJob".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) + && "RoxieControlEndpointInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) + && "ArrayOfTargetCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "LockModes".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "TargetCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) + && "ArrayOfServerJobQueue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "SMCJob".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "Lock".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) + && "ArrayOfActiveWorkunit".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ServerJobQueue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfDFUJob".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfEspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "HPCCResource".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) + && "HPCCResourceRepository".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "StatusServerInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ThorCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ActiveWorkunit".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfThorCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "NamedValue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfLock".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfNamedValue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "EspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) + && "ArrayOfHPCCResourceRepository".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfHPCCResource".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "EspStringArray".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "RoxieControlCmdType".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wssmc".equals(namespaceURI) && "ArrayOfSMCJob".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob.Factory.parse(reader); + } + + throw new org.apache.axis2.databinding.ADBException( + "Unsupported type " + namespaceURI + " " + typeName); + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetBuildInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetBuildInfo.java index 38d6ebc98..1cad7e3d8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetBuildInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetBuildInfo.java @@ -1,310 +1,310 @@ -/** - * GetBuildInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** GetBuildInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetBuildInfo implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetBuildInfo", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetBuildInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "GetBuildInfo", xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetBuildInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetBuildInfo object = new GetBuildInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetBuildInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetBuildInfo) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetBuildInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** GetBuildInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetBuildInfo implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetBuildInfo", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetBuildInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "GetBuildInfo", xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetBuildInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetBuildInfo object = new GetBuildInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetBuildInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetBuildInfo) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetBuildInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetBuildInfoResponse.java index 3a53a93ec..dd434f759 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetBuildInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetBuildInfoResponse.java @@ -1,432 +1,432 @@ -/** - * GetBuildInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** GetBuildInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetBuildInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetBuildInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for BuildInfo */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue localBuildInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildInfoTracker = false; - - public boolean isBuildInfoSpecified() { - return localBuildInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue getBuildInfo() { - return localBuildInfo; - } - - /** - * Auto generated setter method - * - * @param param BuildInfo - */ - public void setBuildInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue param) { - localBuildInfoTracker = param != null; - - this.localBuildInfo = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetBuildInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetBuildInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localBuildInfoTracker) { - if (localBuildInfo == null) { - throw new org.apache.axis2.databinding.ADBException("BuildInfo cannot be null!!"); - } - localBuildInfo.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BuildInfo"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetBuildInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetBuildInfoResponse object = new GetBuildInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetBuildInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetBuildInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BuildInfo") - .equals(reader.getName())) { - - object.setBuildInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetBuildInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** GetBuildInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetBuildInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetBuildInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for BuildInfo */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue localBuildInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildInfoTracker = false; + + public boolean isBuildInfoSpecified() { + return localBuildInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue getBuildInfo() { + return localBuildInfo; + } + + /** + * Auto generated setter method + * + * @param param BuildInfo + */ + public void setBuildInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue param) { + localBuildInfoTracker = param != null; + + this.localBuildInfo = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetBuildInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetBuildInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localBuildInfoTracker) { + if (localBuildInfo == null) { + throw new org.apache.axis2.databinding.ADBException("BuildInfo cannot be null!!"); + } + localBuildInfo.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BuildInfo"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetBuildInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetBuildInfoResponse object = new GetBuildInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetBuildInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetBuildInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BuildInfo") + .equals(reader.getName())) { + + object.setBuildInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetStatusServerInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetStatusServerInfo.java index 02c334dea..bfb96d790 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetStatusServerInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetStatusServerInfo.java @@ -1,601 +1,601 @@ -/** - * GetStatusServerInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** GetStatusServerInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetStatusServerInfo implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetStatusServerInfo", "ns1"); - - /** field for ServerName */ - protected java.lang.String localServerName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerNameTracker = false; - - public boolean isServerNameSpecified() { - return localServerNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServerName() { - return localServerName; - } - - /** - * Auto generated setter method - * - * @param param ServerName - */ - public void setServerName(java.lang.String param) { - localServerNameTracker = param != null; - - this.localServerName = param; - } - - /** field for ServerType */ - protected java.lang.String localServerType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTypeTracker = false; - - public boolean isServerTypeSpecified() { - return localServerTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServerType() { - return localServerType; - } - - /** - * Auto generated setter method - * - * @param param ServerType - */ - public void setServerType(java.lang.String param) { - localServerTypeTracker = param != null; - - this.localServerType = param; - } - - /** field for NetworkAddress */ - protected java.lang.String localNetworkAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetworkAddressTracker = false; - - public boolean isNetworkAddressSpecified() { - return localNetworkAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetworkAddress() { - return localNetworkAddress; - } - - /** - * Auto generated setter method - * - * @param param NetworkAddress - */ - public void setNetworkAddress(java.lang.String param) { - localNetworkAddressTracker = param != null; - - this.localNetworkAddress = param; - } - - /** field for Port */ - protected int localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(int param) { - - // setting primitive attribute tracker to true - localPortTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPort = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetStatusServerInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetStatusServerInfo", - xmlWriter); - } - } - if (localServerNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ServerName", xmlWriter); - - if (localServerName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServerName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServerName); - } - - xmlWriter.writeEndElement(); - } - if (localServerTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ServerType", xmlWriter); - - if (localServerType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServerType); - } - - xmlWriter.writeEndElement(); - } - if (localNetworkAddressTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NetworkAddress", xmlWriter); - - if (localNetworkAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetworkAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetStatusServerInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetStatusServerInfo object = new GetStatusServerInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetStatusServerInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetStatusServerInfo) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServerName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServerName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServerType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServerType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetworkAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetworkAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetStatusServerInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** GetStatusServerInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetStatusServerInfo implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetStatusServerInfo", "ns1"); + + /** field for ServerName */ + protected java.lang.String localServerName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerNameTracker = false; + + public boolean isServerNameSpecified() { + return localServerNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServerName() { + return localServerName; + } + + /** + * Auto generated setter method + * + * @param param ServerName + */ + public void setServerName(java.lang.String param) { + localServerNameTracker = param != null; + + this.localServerName = param; + } + + /** field for ServerType */ + protected java.lang.String localServerType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTypeTracker = false; + + public boolean isServerTypeSpecified() { + return localServerTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServerType() { + return localServerType; + } + + /** + * Auto generated setter method + * + * @param param ServerType + */ + public void setServerType(java.lang.String param) { + localServerTypeTracker = param != null; + + this.localServerType = param; + } + + /** field for NetworkAddress */ + protected java.lang.String localNetworkAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetworkAddressTracker = false; + + public boolean isNetworkAddressSpecified() { + return localNetworkAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetworkAddress() { + return localNetworkAddress; + } + + /** + * Auto generated setter method + * + * @param param NetworkAddress + */ + public void setNetworkAddress(java.lang.String param) { + localNetworkAddressTracker = param != null; + + this.localNetworkAddress = param; + } + + /** field for Port */ + protected int localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(int param) { + + // setting primitive attribute tracker to true + localPortTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPort = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetStatusServerInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetStatusServerInfo", + xmlWriter); + } + } + if (localServerNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ServerName", xmlWriter); + + if (localServerName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServerName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServerName); + } + + xmlWriter.writeEndElement(); + } + if (localServerTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ServerType", xmlWriter); + + if (localServerType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServerType); + } + + xmlWriter.writeEndElement(); + } + if (localNetworkAddressTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NetworkAddress", xmlWriter); + + if (localNetworkAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetworkAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetStatusServerInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetStatusServerInfo object = new GetStatusServerInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetStatusServerInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetStatusServerInfo) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServerName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServerName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServerType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServerType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetworkAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetworkAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetStatusServerInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetStatusServerInfoResponse.java index 06db9e798..761473eca 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetStatusServerInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetStatusServerInfoResponse.java @@ -1,433 +1,433 @@ -/** - * GetStatusServerInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** GetStatusServerInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetStatusServerInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wssmc", "GetStatusServerInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for StatusServerInfo */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo localStatusServerInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusServerInfoTracker = false; - - public boolean isStatusServerInfoSpecified() { - return localStatusServerInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo getStatusServerInfo() { - return localStatusServerInfo; - } - - /** - * Auto generated setter method - * - * @param param StatusServerInfo - */ - public void setStatusServerInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo param) { - localStatusServerInfoTracker = param != null; - - this.localStatusServerInfo = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetStatusServerInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetStatusServerInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localStatusServerInfoTracker) { - if (localStatusServerInfo == null) { - throw new org.apache.axis2.databinding.ADBException("StatusServerInfo cannot be null!!"); - } - localStatusServerInfo.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusServerInfo"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetStatusServerInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetStatusServerInfoResponse object = new GetStatusServerInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetStatusServerInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetStatusServerInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusServerInfo") - .equals(reader.getName())) { - - object.setStatusServerInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetStatusServerInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** GetStatusServerInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetStatusServerInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wssmc", "GetStatusServerInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for StatusServerInfo */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo localStatusServerInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusServerInfoTracker = false; + + public boolean isStatusServerInfoSpecified() { + return localStatusServerInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo getStatusServerInfo() { + return localStatusServerInfo; + } + + /** + * Auto generated setter method + * + * @param param StatusServerInfo + */ + public void setStatusServerInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo param) { + localStatusServerInfoTracker = param != null; + + this.localStatusServerInfo = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetStatusServerInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetStatusServerInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localStatusServerInfoTracker) { + if (localStatusServerInfo == null) { + throw new org.apache.axis2.databinding.ADBException("StatusServerInfo cannot be null!!"); + } + localStatusServerInfo.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusServerInfo"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetStatusServerInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetStatusServerInfoResponse object = new GetStatusServerInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetStatusServerInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetStatusServerInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusServerInfo") + .equals(reader.getName())) { + + object.setStatusServerInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetThorQueueAvailability.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetThorQueueAvailability.java index fc7907bfb..e548b4b27 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetThorQueueAvailability.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetThorQueueAvailability.java @@ -1,314 +1,314 @@ -/** - * GetThorQueueAvailability.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** GetThorQueueAvailability bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetThorQueueAvailability implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetThorQueueAvailability", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetThorQueueAvailability", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetThorQueueAvailability", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetThorQueueAvailability parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetThorQueueAvailability object = new GetThorQueueAvailability(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetThorQueueAvailability".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetThorQueueAvailability) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetThorQueueAvailability.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** GetThorQueueAvailability bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetThorQueueAvailability implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetThorQueueAvailability", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetThorQueueAvailability", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetThorQueueAvailability", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetThorQueueAvailability parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetThorQueueAvailability object = new GetThorQueueAvailability(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetThorQueueAvailability".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetThorQueueAvailability) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetThorQueueAvailabilityResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetThorQueueAvailabilityResponse.java index f5221f1a0..409c9e54d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetThorQueueAvailabilityResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/GetThorQueueAvailabilityResponse.java @@ -1,433 +1,433 @@ -/** - * GetThorQueueAvailabilityResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** GetThorQueueAvailabilityResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GetThorQueueAvailabilityResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wssmc", "GetThorQueueAvailabilityResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ThorClusters */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster localThorClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorClustersTracker = false; - - public boolean isThorClustersSpecified() { - return localThorClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster getThorClusters() { - return localThorClusters; - } - - /** - * Auto generated setter method - * - * @param param ThorClusters - */ - public void setThorClusters( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster param) { - localThorClustersTracker = param != null; - - this.localThorClusters = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GetThorQueueAvailabilityResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GetThorQueueAvailabilityResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localThorClustersTracker) { - if (localThorClusters == null) { - throw new org.apache.axis2.databinding.ADBException("ThorClusters cannot be null!!"); - } - localThorClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorClusters"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GetThorQueueAvailabilityResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GetThorQueueAvailabilityResponse object = new GetThorQueueAvailabilityResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GetThorQueueAvailabilityResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GetThorQueueAvailabilityResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorClusters") - .equals(reader.getName())) { - - object.setThorClusters( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GetThorQueueAvailabilityResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** GetThorQueueAvailabilityResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GetThorQueueAvailabilityResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wssmc", "GetThorQueueAvailabilityResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ThorClusters */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster localThorClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorClustersTracker = false; + + public boolean isThorClustersSpecified() { + return localThorClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster getThorClusters() { + return localThorClusters; + } + + /** + * Auto generated setter method + * + * @param param ThorClusters + */ + public void setThorClusters( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster param) { + localThorClustersTracker = param != null; + + this.localThorClusters = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GetThorQueueAvailabilityResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GetThorQueueAvailabilityResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localThorClustersTracker) { + if (localThorClusters == null) { + throw new org.apache.axis2.databinding.ADBException("ThorClusters cannot be null!!"); + } + localThorClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorClusters"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GetThorQueueAvailabilityResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GetThorQueueAvailabilityResponse object = new GetThorQueueAvailabilityResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GetThorQueueAvailabilityResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GetThorQueueAvailabilityResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorClusters") + .equals(reader.getName())) { + + object.setThorClusters( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/HPCCResource.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/HPCCResource.java index 3349803c1..96e63669e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/HPCCResource.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/HPCCResource.java @@ -1,599 +1,599 @@ -/** - * HPCCResource.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** HPCCResource bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class HPCCResource implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = HPCCResource - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for Version */ - protected java.lang.String localVersion; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localVersionTracker = false; - - public boolean isVersionSpecified() { - return localVersionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getVersion() { - return localVersion; - } - - /** - * Auto generated setter method - * - * @param param Version - */ - public void setVersion(java.lang.String param) { - localVersionTracker = param != null; - - this.localVersion = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":HPCCResource", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "HPCCResource", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localVersionTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Version", xmlWriter); - - if (localVersion == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Version cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localVersion); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static HPCCResource parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - HPCCResource object = new HPCCResource(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"HPCCResource".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (HPCCResource) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Version") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Version" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setVersion( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * HPCCResource.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** HPCCResource bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class HPCCResource implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = HPCCResource + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for Version */ + protected java.lang.String localVersion; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localVersionTracker = false; + + public boolean isVersionSpecified() { + return localVersionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getVersion() { + return localVersion; + } + + /** + * Auto generated setter method + * + * @param param Version + */ + public void setVersion(java.lang.String param) { + localVersionTracker = param != null; + + this.localVersion = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":HPCCResource", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "HPCCResource", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localVersionTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Version", xmlWriter); + + if (localVersion == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Version cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localVersion); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static HPCCResource parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + HPCCResource object = new HPCCResource(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"HPCCResource".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (HPCCResource) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Version") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Version" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/HPCCResourceRepository.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/HPCCResourceRepository.java index 6edcbbcc2..b7ffcd07a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/HPCCResourceRepository.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/HPCCResourceRepository.java @@ -1,519 +1,519 @@ -/** - * HPCCResourceRepository.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** HPCCResourceRepository bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class HPCCResourceRepository implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = HPCCResourceRepository - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for HPCCResources */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource localHPCCResources; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHPCCResourcesTracker = false; - - public boolean isHPCCResourcesSpecified() { - return localHPCCResourcesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource getHPCCResources() { - return localHPCCResources; - } - - /** - * Auto generated setter method - * - * @param param HPCCResources - */ - public void setHPCCResources( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource param) { - localHPCCResourcesTracker = param != null; - - this.localHPCCResources = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":HPCCResourceRepository", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "HPCCResourceRepository", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localPathTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localHPCCResourcesTracker) { - if (localHPCCResources == null) { - throw new org.apache.axis2.databinding.ADBException("HPCCResources cannot be null!!"); - } - localHPCCResources.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResources"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static HPCCResourceRepository parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - HPCCResourceRepository object = new HPCCResourceRepository(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"HPCCResourceRepository".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (HPCCResourceRepository) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResources") - .equals(reader.getName())) { - - object.setHPCCResources( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * HPCCResourceRepository.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** HPCCResourceRepository bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class HPCCResourceRepository implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = HPCCResourceRepository + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for HPCCResources */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource localHPCCResources; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHPCCResourcesTracker = false; + + public boolean isHPCCResourcesSpecified() { + return localHPCCResourcesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource getHPCCResources() { + return localHPCCResources; + } + + /** + * Auto generated setter method + * + * @param param HPCCResources + */ + public void setHPCCResources( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource param) { + localHPCCResourcesTracker = param != null; + + this.localHPCCResources = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":HPCCResourceRepository", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "HPCCResourceRepository", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localPathTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localHPCCResourcesTracker) { + if (localHPCCResources == null) { + throw new org.apache.axis2.databinding.ADBException("HPCCResources cannot be null!!"); + } + localHPCCResources.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResources"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static HPCCResourceRepository parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + HPCCResourceRepository object = new HPCCResourceRepository(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"HPCCResourceRepository".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (HPCCResourceRepository) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "HPCCResources") + .equals(reader.getName())) { + + object.setHPCCResources( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Index.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Index.java index 56315f71d..d163dd2cd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Index.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Index.java @@ -1,309 +1,309 @@ -/** - * Index.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** Index bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Index implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Index", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Index", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Index", xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Index parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - Index object = new Index(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Index".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Index) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Index.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** Index bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Index implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Index", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Index", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Index", xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Index parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + Index object = new Index(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Index".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Index) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Lock.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Lock.java index b778cb69b..8c9e4d70c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Lock.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Lock.java @@ -1,855 +1,855 @@ -/** - * Lock.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** Lock bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Lock implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Lock - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for EPIP */ - protected java.lang.String localEPIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEPIPTracker = false; - - public boolean isEPIPSpecified() { - return localEPIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEPIP() { - return localEPIP; - } - - /** - * Auto generated setter method - * - * @param param EPIP - */ - public void setEPIP(java.lang.String param) { - localEPIPTracker = param != null; - - this.localEPIP = param; - } - - /** field for XPath */ - protected java.lang.String localXPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localXPathTracker = false; - - public boolean isXPathSpecified() { - return localXPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getXPath() { - return localXPath; - } - - /** - * Auto generated setter method - * - * @param param XPath - */ - public void setXPath(java.lang.String param) { - localXPathTracker = param != null; - - this.localXPath = param; - } - - /** field for LogicalFile */ - protected java.lang.String localLogicalFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalFileTracker = false; - - public boolean isLogicalFileSpecified() { - return localLogicalFileTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalFile() { - return localLogicalFile; - } - - /** - * Auto generated setter method - * - * @param param LogicalFile - */ - public void setLogicalFile(java.lang.String param) { - localLogicalFileTracker = param != null; - - this.localLogicalFile = param; - } - - /** field for SessionID */ - protected long localSessionID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSessionIDTracker = false; - - public boolean isSessionIDSpecified() { - return localSessionIDTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getSessionID() { - return localSessionID; - } - - /** - * Auto generated setter method - * - * @param param SessionID - */ - public void setSessionID(long param) { - - // setting primitive attribute tracker to true - localSessionIDTracker = param != java.lang.Long.MIN_VALUE; - - this.localSessionID = param; - } - - /** field for DurationMS */ - protected org.apache.axis2.databinding.types.UnsignedInt localDurationMS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDurationMSTracker = false; - - public boolean isDurationMSSpecified() { - return localDurationMSTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getDurationMS() { - return localDurationMS; - } - - /** - * Auto generated setter method - * - * @param param DurationMS - */ - public void setDurationMS(org.apache.axis2.databinding.types.UnsignedInt param) { - localDurationMSTracker = param != null; - - this.localDurationMS = param; - } - - /** field for TimeLocked */ - protected java.lang.String localTimeLocked; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLockedTracker = false; - - public boolean isTimeLockedSpecified() { - return localTimeLockedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeLocked() { - return localTimeLocked; - } - - /** - * Auto generated setter method - * - * @param param TimeLocked - */ - public void setTimeLocked(java.lang.String param) { - localTimeLockedTracker = param != null; - - this.localTimeLocked = param; - } - - /** field for Modes */ - protected java.lang.String localModes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModesTracker = false; - - public boolean isModesSpecified() { - return localModesTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getModes() { - return localModes; - } - - /** - * Auto generated setter method - * - * @param param Modes - */ - public void setModes(java.lang.String param) { - localModesTracker = param != null; - - this.localModes = param; - } - - /** field for ModeNames */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray localModeNames; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModeNamesTracker = false; - - public boolean isModeNamesSpecified() { - return localModeNamesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray getModeNames() { - return localModeNames; - } - - /** - * Auto generated setter method - * - * @param param ModeNames - */ - public void setModeNames(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray param) { - localModeNamesTracker = param != null; - - this.localModeNames = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Lock", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Lock", xmlWriter); - } - } - if (localEPIPTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "EPIP", xmlWriter); - - if (localEPIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EPIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEPIP); - } - - xmlWriter.writeEndElement(); - } - if (localXPathTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "XPath", xmlWriter); - - if (localXPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("XPath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localXPath); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalFileTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "LogicalFile", xmlWriter); - - if (localLogicalFile == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalFile cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalFile); - } - - xmlWriter.writeEndElement(); - } - if (localSessionIDTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "SessionID", xmlWriter); - - if (localSessionID == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SessionID cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSessionID)); - } - - xmlWriter.writeEndElement(); - } - if (localDurationMSTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "DurationMS", xmlWriter); - - if (localDurationMS == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DurationMS cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDurationMS)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLockedTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "TimeLocked", xmlWriter); - - if (localTimeLocked == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLocked cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeLocked); - } - - xmlWriter.writeEndElement(); - } - if (localModesTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Modes", xmlWriter); - - if (localModes == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Modes cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localModes); - } - - xmlWriter.writeEndElement(); - } - if (localModeNamesTracker) { - if (localModeNames == null) { - throw new org.apache.axis2.databinding.ADBException("ModeNames cannot be null!!"); - } - localModeNames.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ModeNames"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Lock parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - Lock object = new Lock(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Lock".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Lock) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EPIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EPIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEPIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "XPath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "XPath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setXPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LogicalFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SessionID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SessionID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSessionID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DurationMS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DurationMS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDurationMS( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TimeLocked") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLocked" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLocked( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Modes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Modes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setModes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ModeNames") - .equals(reader.getName())) { - - object.setModeNames( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Lock.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** Lock bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Lock implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Lock + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for EPIP */ + protected java.lang.String localEPIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEPIPTracker = false; + + public boolean isEPIPSpecified() { + return localEPIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEPIP() { + return localEPIP; + } + + /** + * Auto generated setter method + * + * @param param EPIP + */ + public void setEPIP(java.lang.String param) { + localEPIPTracker = param != null; + + this.localEPIP = param; + } + + /** field for XPath */ + protected java.lang.String localXPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localXPathTracker = false; + + public boolean isXPathSpecified() { + return localXPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getXPath() { + return localXPath; + } + + /** + * Auto generated setter method + * + * @param param XPath + */ + public void setXPath(java.lang.String param) { + localXPathTracker = param != null; + + this.localXPath = param; + } + + /** field for LogicalFile */ + protected java.lang.String localLogicalFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalFileTracker = false; + + public boolean isLogicalFileSpecified() { + return localLogicalFileTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalFile() { + return localLogicalFile; + } + + /** + * Auto generated setter method + * + * @param param LogicalFile + */ + public void setLogicalFile(java.lang.String param) { + localLogicalFileTracker = param != null; + + this.localLogicalFile = param; + } + + /** field for SessionID */ + protected long localSessionID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSessionIDTracker = false; + + public boolean isSessionIDSpecified() { + return localSessionIDTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getSessionID() { + return localSessionID; + } + + /** + * Auto generated setter method + * + * @param param SessionID + */ + public void setSessionID(long param) { + + // setting primitive attribute tracker to true + localSessionIDTracker = param != java.lang.Long.MIN_VALUE; + + this.localSessionID = param; + } + + /** field for DurationMS */ + protected org.apache.axis2.databinding.types.UnsignedInt localDurationMS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDurationMSTracker = false; + + public boolean isDurationMSSpecified() { + return localDurationMSTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getDurationMS() { + return localDurationMS; + } + + /** + * Auto generated setter method + * + * @param param DurationMS + */ + public void setDurationMS(org.apache.axis2.databinding.types.UnsignedInt param) { + localDurationMSTracker = param != null; + + this.localDurationMS = param; + } + + /** field for TimeLocked */ + protected java.lang.String localTimeLocked; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLockedTracker = false; + + public boolean isTimeLockedSpecified() { + return localTimeLockedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeLocked() { + return localTimeLocked; + } + + /** + * Auto generated setter method + * + * @param param TimeLocked + */ + public void setTimeLocked(java.lang.String param) { + localTimeLockedTracker = param != null; + + this.localTimeLocked = param; + } + + /** field for Modes */ + protected java.lang.String localModes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModesTracker = false; + + public boolean isModesSpecified() { + return localModesTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getModes() { + return localModes; + } + + /** + * Auto generated setter method + * + * @param param Modes + */ + public void setModes(java.lang.String param) { + localModesTracker = param != null; + + this.localModes = param; + } + + /** field for ModeNames */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray localModeNames; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModeNamesTracker = false; + + public boolean isModeNamesSpecified() { + return localModeNamesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray getModeNames() { + return localModeNames; + } + + /** + * Auto generated setter method + * + * @param param ModeNames + */ + public void setModeNames(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray param) { + localModeNamesTracker = param != null; + + this.localModeNames = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Lock", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Lock", xmlWriter); + } + } + if (localEPIPTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "EPIP", xmlWriter); + + if (localEPIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EPIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEPIP); + } + + xmlWriter.writeEndElement(); + } + if (localXPathTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "XPath", xmlWriter); + + if (localXPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("XPath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localXPath); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalFileTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "LogicalFile", xmlWriter); + + if (localLogicalFile == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalFile cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalFile); + } + + xmlWriter.writeEndElement(); + } + if (localSessionIDTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "SessionID", xmlWriter); + + if (localSessionID == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SessionID cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSessionID)); + } + + xmlWriter.writeEndElement(); + } + if (localDurationMSTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "DurationMS", xmlWriter); + + if (localDurationMS == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DurationMS cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDurationMS)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLockedTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "TimeLocked", xmlWriter); + + if (localTimeLocked == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLocked cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeLocked); + } + + xmlWriter.writeEndElement(); + } + if (localModesTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Modes", xmlWriter); + + if (localModes == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Modes cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localModes); + } + + xmlWriter.writeEndElement(); + } + if (localModeNamesTracker) { + if (localModeNames == null) { + throw new org.apache.axis2.databinding.ADBException("ModeNames cannot be null!!"); + } + localModeNames.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ModeNames"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Lock parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + Lock object = new Lock(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Lock".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Lock) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EPIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EPIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEPIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "XPath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "XPath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setXPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LogicalFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SessionID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SessionID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSessionID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DurationMS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DurationMS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDurationMS( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TimeLocked") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLocked" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLocked( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Modes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Modes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setModes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ModeNames") + .equals(reader.getName())) { + + object.setModeNames( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockModes.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockModes.java index a45100bd7..25f49371c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockModes.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockModes.java @@ -1,419 +1,419 @@ -/** - * LockModes.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** LockModes bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class LockModes implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LockModes", "ns1"); - - /** field for LockModes */ - protected java.lang.String localLockModes; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected LockModes(java.lang.String value, boolean isRegisterValue) { - localLockModes = value; - if (isRegisterValue) { - - _table_.put(localLockModes, this); - } - } - - public static final java.lang.String _ALL = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ALL"); - - public static final java.lang.String _READ = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("READ"); - - public static final java.lang.String _WRITE = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("WRITE"); - - public static final java.lang.String _HOLD = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("HOLD"); - - public static final java.lang.String _SUB = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("SUB"); - - public static final LockModes ALL = new LockModes(_ALL, true); - - public static final LockModes READ = new LockModes(_READ, true); - - public static final LockModes WRITE = new LockModes(_WRITE, true); - - public static final LockModes HOLD = new LockModes(_HOLD, true); - - public static final LockModes SUB = new LockModes(_SUB, true); - - public java.lang.String getValue() { - return localLockModes; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localLockModes.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":LockModes", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "LockModes", xmlWriter); - } - } - - if (localLockModes == null) { - - throw new org.apache.axis2.databinding.ADBException("LockModes cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localLockModes); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static LockModes fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - LockModes enumeration = (LockModes) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static LockModes fromString(java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static LockModes fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return LockModes.Factory.fromString(content, namespaceUri); - } else { - return LockModes.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static LockModes parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - LockModes object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LockModes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = LockModes.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = LockModes.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * LockModes.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** LockModes bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LockModes implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LockModes", "ns1"); + + /** field for LockModes */ + protected java.lang.String localLockModes; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected LockModes(java.lang.String value, boolean isRegisterValue) { + localLockModes = value; + if (isRegisterValue) { + + _table_.put(localLockModes, this); + } + } + + public static final java.lang.String _ALL = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ALL"); + + public static final java.lang.String _READ = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("READ"); + + public static final java.lang.String _WRITE = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("WRITE"); + + public static final java.lang.String _HOLD = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("HOLD"); + + public static final java.lang.String _SUB = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("SUB"); + + public static final LockModes ALL = new LockModes(_ALL, true); + + public static final LockModes READ = new LockModes(_READ, true); + + public static final LockModes WRITE = new LockModes(_WRITE, true); + + public static final LockModes HOLD = new LockModes(_HOLD, true); + + public static final LockModes SUB = new LockModes(_SUB, true); + + public java.lang.String getValue() { + return localLockModes; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localLockModes.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LockModes", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "LockModes", xmlWriter); + } + } + + if (localLockModes == null) { + + throw new org.apache.axis2.databinding.ADBException("LockModes cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localLockModes); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static LockModes fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + LockModes enumeration = (LockModes) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static LockModes fromString(java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static LockModes fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return LockModes.Factory.fromString(content, namespaceUri); + } else { + return LockModes.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LockModes parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LockModes object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LockModes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = LockModes.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = LockModes.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockQuery.java index 97553470c..09aafa580 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockQuery.java @@ -1,854 +1,854 @@ -/** - * LockQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** LockQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class LockQuery implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LockQuery", "ns1"); - - /** field for EPIP */ - protected java.lang.String localEPIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEPIPTracker = false; - - public boolean isEPIPSpecified() { - return localEPIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEPIP() { - return localEPIP; - } - - /** - * Auto generated setter method - * - * @param param EPIP - */ - public void setEPIP(java.lang.String param) { - localEPIPTracker = param != null; - - this.localEPIP = param; - } - - /** field for XPath */ - protected java.lang.String localXPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localXPathTracker = false; - - public boolean isXPathSpecified() { - return localXPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getXPath() { - return localXPath; - } - - /** - * Auto generated setter method - * - * @param param XPath - */ - public void setXPath(java.lang.String param) { - localXPathTracker = param != null; - - this.localXPath = param; - } - - /** field for DurationMSLow */ - protected org.apache.axis2.databinding.types.UnsignedInt localDurationMSLow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDurationMSLowTracker = false; - - public boolean isDurationMSLowSpecified() { - return localDurationMSLowTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getDurationMSLow() { - return localDurationMSLow; - } - - /** - * Auto generated setter method - * - * @param param DurationMSLow - */ - public void setDurationMSLow(org.apache.axis2.databinding.types.UnsignedInt param) { - localDurationMSLowTracker = param != null; - - this.localDurationMSLow = param; - } - - /** field for DurationMSHigh */ - protected org.apache.axis2.databinding.types.UnsignedInt localDurationMSHigh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDurationMSHighTracker = false; - - public boolean isDurationMSHighSpecified() { - return localDurationMSHighTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getDurationMSHigh() { - return localDurationMSHigh; - } - - /** - * Auto generated setter method - * - * @param param DurationMSHigh - */ - public void setDurationMSHigh(org.apache.axis2.databinding.types.UnsignedInt param) { - localDurationMSHighTracker = param != null; - - this.localDurationMSHigh = param; - } - - /** field for TimeLockedLow */ - protected java.lang.String localTimeLockedLow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLockedLowTracker = false; - - public boolean isTimeLockedLowSpecified() { - return localTimeLockedLowTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeLockedLow() { - return localTimeLockedLow; - } - - /** - * Auto generated setter method - * - * @param param TimeLockedLow - */ - public void setTimeLockedLow(java.lang.String param) { - localTimeLockedLowTracker = param != null; - - this.localTimeLockedLow = param; - } - - /** field for TimeLockedHigh */ - protected java.lang.String localTimeLockedHigh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLockedHighTracker = false; - - public boolean isTimeLockedHighSpecified() { - return localTimeLockedHighTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeLockedHigh() { - return localTimeLockedHigh; - } - - /** - * Auto generated setter method - * - * @param param TimeLockedHigh - */ - public void setTimeLockedHigh(java.lang.String param) { - localTimeLockedHighTracker = param != null; - - this.localTimeLockedHigh = param; - } - - /** field for Mode */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes localMode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModeTracker = false; - - public boolean isModeSpecified() { - return localModeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes getMode() { - return localMode; - } - - /** - * Auto generated setter method - * - * @param param Mode - */ - public void setMode(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes param) { - localModeTracker = param != null; - - this.localMode = param; - } - - /** field for AllFileLocks */ - protected boolean localAllFileLocks = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllFileLocksTracker = false; - - public boolean isAllFileLocksSpecified() { - return localAllFileLocksTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllFileLocks() { - return localAllFileLocks; - } - - /** - * Auto generated setter method - * - * @param param AllFileLocks - */ - public void setAllFileLocks(boolean param) { - - // setting primitive attribute tracker to true - localAllFileLocksTracker = true; - - this.localAllFileLocks = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":LockQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "LockQuery", xmlWriter); - } - } - if (localEPIPTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "EPIP", xmlWriter); - - if (localEPIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EPIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEPIP); - } - - xmlWriter.writeEndElement(); - } - if (localXPathTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "XPath", xmlWriter); - - if (localXPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("XPath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localXPath); - } - - xmlWriter.writeEndElement(); - } - if (localDurationMSLowTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "DurationMSLow", xmlWriter); - - if (localDurationMSLow == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DurationMSLow cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDurationMSLow)); - } - - xmlWriter.writeEndElement(); - } - if (localDurationMSHighTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "DurationMSHigh", xmlWriter); - - if (localDurationMSHigh == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DurationMSHigh cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDurationMSHigh)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLockedLowTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "TimeLockedLow", xmlWriter); - - if (localTimeLockedLow == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLockedLow cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeLockedLow); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLockedHighTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "TimeLockedHigh", xmlWriter); - - if (localTimeLockedHigh == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLockedHigh cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeLockedHigh); - } - - xmlWriter.writeEndElement(); - } - if (localModeTracker) { - if (localMode == null) { - throw new org.apache.axis2.databinding.ADBException("Mode cannot be null!!"); - } - localMode.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Mode"), xmlWriter); - } - if (localAllFileLocksTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "AllFileLocks", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllFileLocks cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllFileLocks)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static LockQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - LockQuery object = new LockQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"LockQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (LockQuery) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EPIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EPIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEPIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "XPath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "XPath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setXPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DurationMSLow") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DurationMSLow" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDurationMSLow( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DurationMSHigh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DurationMSHigh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDurationMSHigh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TimeLockedLow") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLockedLow" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLockedLow( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TimeLockedHigh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLockedHigh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLockedHigh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Mode") - .equals(reader.getName())) { - - object.setMode( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes.Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "AllFileLocks") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllFileLocks" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllFileLocks( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * LockQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** LockQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LockQuery implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LockQuery", "ns1"); + + /** field for EPIP */ + protected java.lang.String localEPIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEPIPTracker = false; + + public boolean isEPIPSpecified() { + return localEPIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEPIP() { + return localEPIP; + } + + /** + * Auto generated setter method + * + * @param param EPIP + */ + public void setEPIP(java.lang.String param) { + localEPIPTracker = param != null; + + this.localEPIP = param; + } + + /** field for XPath */ + protected java.lang.String localXPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localXPathTracker = false; + + public boolean isXPathSpecified() { + return localXPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getXPath() { + return localXPath; + } + + /** + * Auto generated setter method + * + * @param param XPath + */ + public void setXPath(java.lang.String param) { + localXPathTracker = param != null; + + this.localXPath = param; + } + + /** field for DurationMSLow */ + protected org.apache.axis2.databinding.types.UnsignedInt localDurationMSLow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDurationMSLowTracker = false; + + public boolean isDurationMSLowSpecified() { + return localDurationMSLowTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getDurationMSLow() { + return localDurationMSLow; + } + + /** + * Auto generated setter method + * + * @param param DurationMSLow + */ + public void setDurationMSLow(org.apache.axis2.databinding.types.UnsignedInt param) { + localDurationMSLowTracker = param != null; + + this.localDurationMSLow = param; + } + + /** field for DurationMSHigh */ + protected org.apache.axis2.databinding.types.UnsignedInt localDurationMSHigh; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDurationMSHighTracker = false; + + public boolean isDurationMSHighSpecified() { + return localDurationMSHighTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getDurationMSHigh() { + return localDurationMSHigh; + } + + /** + * Auto generated setter method + * + * @param param DurationMSHigh + */ + public void setDurationMSHigh(org.apache.axis2.databinding.types.UnsignedInt param) { + localDurationMSHighTracker = param != null; + + this.localDurationMSHigh = param; + } + + /** field for TimeLockedLow */ + protected java.lang.String localTimeLockedLow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLockedLowTracker = false; + + public boolean isTimeLockedLowSpecified() { + return localTimeLockedLowTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeLockedLow() { + return localTimeLockedLow; + } + + /** + * Auto generated setter method + * + * @param param TimeLockedLow + */ + public void setTimeLockedLow(java.lang.String param) { + localTimeLockedLowTracker = param != null; + + this.localTimeLockedLow = param; + } + + /** field for TimeLockedHigh */ + protected java.lang.String localTimeLockedHigh; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLockedHighTracker = false; + + public boolean isTimeLockedHighSpecified() { + return localTimeLockedHighTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeLockedHigh() { + return localTimeLockedHigh; + } + + /** + * Auto generated setter method + * + * @param param TimeLockedHigh + */ + public void setTimeLockedHigh(java.lang.String param) { + localTimeLockedHighTracker = param != null; + + this.localTimeLockedHigh = param; + } + + /** field for Mode */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes localMode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModeTracker = false; + + public boolean isModeSpecified() { + return localModeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes getMode() { + return localMode; + } + + /** + * Auto generated setter method + * + * @param param Mode + */ + public void setMode(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes param) { + localModeTracker = param != null; + + this.localMode = param; + } + + /** field for AllFileLocks */ + protected boolean localAllFileLocks = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllFileLocksTracker = false; + + public boolean isAllFileLocksSpecified() { + return localAllFileLocksTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllFileLocks() { + return localAllFileLocks; + } + + /** + * Auto generated setter method + * + * @param param AllFileLocks + */ + public void setAllFileLocks(boolean param) { + + // setting primitive attribute tracker to true + localAllFileLocksTracker = true; + + this.localAllFileLocks = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LockQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "LockQuery", xmlWriter); + } + } + if (localEPIPTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "EPIP", xmlWriter); + + if (localEPIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EPIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEPIP); + } + + xmlWriter.writeEndElement(); + } + if (localXPathTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "XPath", xmlWriter); + + if (localXPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("XPath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localXPath); + } + + xmlWriter.writeEndElement(); + } + if (localDurationMSLowTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "DurationMSLow", xmlWriter); + + if (localDurationMSLow == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DurationMSLow cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDurationMSLow)); + } + + xmlWriter.writeEndElement(); + } + if (localDurationMSHighTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "DurationMSHigh", xmlWriter); + + if (localDurationMSHigh == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DurationMSHigh cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDurationMSHigh)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLockedLowTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "TimeLockedLow", xmlWriter); + + if (localTimeLockedLow == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLockedLow cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeLockedLow); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLockedHighTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "TimeLockedHigh", xmlWriter); + + if (localTimeLockedHigh == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLockedHigh cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeLockedHigh); + } + + xmlWriter.writeEndElement(); + } + if (localModeTracker) { + if (localMode == null) { + throw new org.apache.axis2.databinding.ADBException("Mode cannot be null!!"); + } + localMode.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Mode"), xmlWriter); + } + if (localAllFileLocksTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "AllFileLocks", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllFileLocks cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllFileLocks)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LockQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LockQuery object = new LockQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"LockQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (LockQuery) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EPIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EPIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEPIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "XPath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "XPath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setXPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DurationMSLow") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DurationMSLow" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDurationMSLow( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "DurationMSHigh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DurationMSHigh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDurationMSHigh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TimeLockedLow") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLockedLow" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLockedLow( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TimeLockedHigh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLockedHigh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLockedHigh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Mode") + .equals(reader.getName())) { + + object.setMode( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes.Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "AllFileLocks") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllFileLocks" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllFileLocks( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockQueryResponse.java index 49cf1fc8c..566ba71df 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/LockQueryResponse.java @@ -1,500 +1,500 @@ -/** - * LockQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** LockQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class LockQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LockQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Locks */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock localLocks; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLocksTracker = false; - - public boolean isLocksSpecified() { - return localLocksTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock getLocks() { - return localLocks; - } - - /** - * Auto generated setter method - * - * @param param Locks - */ - public void setLocks(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock param) { - localLocksTracker = param != null; - - this.localLocks = param; - } - - /** field for NumLocks */ - protected int localNumLocks; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumLocksTracker = false; - - public boolean isNumLocksSpecified() { - return localNumLocksTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getNumLocks() { - return localNumLocks; - } - - /** - * Auto generated setter method - * - * @param param NumLocks - */ - public void setNumLocks(int param) { - - // setting primitive attribute tracker to true - localNumLocksTracker = param != java.lang.Integer.MIN_VALUE; - - this.localNumLocks = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":LockQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "LockQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localLocksTracker) { - if (localLocks == null) { - throw new org.apache.axis2.databinding.ADBException("Locks cannot be null!!"); - } - localLocks.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Locks"), xmlWriter); - } - if (localNumLocksTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NumLocks", xmlWriter); - - if (localNumLocks == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NumLocks cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumLocks)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static LockQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - LockQueryResponse object = new LockQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"LockQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (LockQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Locks") - .equals(reader.getName())) { - - object.setLocks( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NumLocks") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumLocks" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumLocks( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * LockQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** LockQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LockQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LockQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Locks */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock localLocks; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLocksTracker = false; + + public boolean isLocksSpecified() { + return localLocksTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock getLocks() { + return localLocks; + } + + /** + * Auto generated setter method + * + * @param param Locks + */ + public void setLocks(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock param) { + localLocksTracker = param != null; + + this.localLocks = param; + } + + /** field for NumLocks */ + protected int localNumLocks; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumLocksTracker = false; + + public boolean isNumLocksSpecified() { + return localNumLocksTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getNumLocks() { + return localNumLocks; + } + + /** + * Auto generated setter method + * + * @param param NumLocks + */ + public void setNumLocks(int param) { + + // setting primitive attribute tracker to true + localNumLocksTracker = param != java.lang.Integer.MIN_VALUE; + + this.localNumLocks = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LockQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "LockQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localLocksTracker) { + if (localLocks == null) { + throw new org.apache.axis2.databinding.ADBException("Locks cannot be null!!"); + } + localLocks.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Locks"), xmlWriter); + } + if (localNumLocksTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NumLocks", xmlWriter); + + if (localNumLocks == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NumLocks cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumLocks)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LockQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LockQueryResponse object = new LockQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"LockQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (LockQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Locks") + .equals(reader.getName())) { + + object.setLocks( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NumLocks") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumLocks" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumLocks( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobBack.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobBack.java index f36045dd3..020f579d4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobBack.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobBack.java @@ -1,597 +1,597 @@ -/** - * MoveJobBack.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** MoveJobBack bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class MoveJobBack implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobBack", "ns1"); - - /** field for ClusterType */ - protected int localClusterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTypeTracker = false; - - public boolean isClusterTypeSpecified() { - return localClusterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterType() { - return localClusterType; - } - - /** - * Auto generated setter method - * - * @param param ClusterType - */ - public void setClusterType(int param) { - - // setting primitive attribute tracker to true - localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":MoveJobBack", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "MoveJobBack", xmlWriter); - } - } - if (localClusterTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterType", xmlWriter); - - if (localClusterType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static MoveJobBack parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - MoveJobBack object = new MoveJobBack(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"MoveJobBack".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (MoveJobBack) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * MoveJobBack.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** MoveJobBack bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class MoveJobBack implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobBack", "ns1"); + + /** field for ClusterType */ + protected int localClusterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTypeTracker = false; + + public boolean isClusterTypeSpecified() { + return localClusterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterType() { + return localClusterType; + } + + /** + * Auto generated setter method + * + * @param param ClusterType + */ + public void setClusterType(int param) { + + // setting primitive attribute tracker to true + localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":MoveJobBack", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "MoveJobBack", xmlWriter); + } + } + if (localClusterTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterType", xmlWriter); + + if (localClusterType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static MoveJobBack parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + MoveJobBack object = new MoveJobBack(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"MoveJobBack".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (MoveJobBack) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobDown.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobDown.java index e9ec10f6b..c502d5efa 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobDown.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobDown.java @@ -1,597 +1,597 @@ -/** - * MoveJobDown.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** MoveJobDown bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class MoveJobDown implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobDown", "ns1"); - - /** field for ClusterType */ - protected int localClusterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTypeTracker = false; - - public boolean isClusterTypeSpecified() { - return localClusterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterType() { - return localClusterType; - } - - /** - * Auto generated setter method - * - * @param param ClusterType - */ - public void setClusterType(int param) { - - // setting primitive attribute tracker to true - localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":MoveJobDown", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "MoveJobDown", xmlWriter); - } - } - if (localClusterTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterType", xmlWriter); - - if (localClusterType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static MoveJobDown parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - MoveJobDown object = new MoveJobDown(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"MoveJobDown".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (MoveJobDown) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * MoveJobDown.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** MoveJobDown bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class MoveJobDown implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobDown", "ns1"); + + /** field for ClusterType */ + protected int localClusterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTypeTracker = false; + + public boolean isClusterTypeSpecified() { + return localClusterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterType() { + return localClusterType; + } + + /** + * Auto generated setter method + * + * @param param ClusterType + */ + public void setClusterType(int param) { + + // setting primitive attribute tracker to true + localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":MoveJobDown", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "MoveJobDown", xmlWriter); + } + } + if (localClusterTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterType", xmlWriter); + + if (localClusterType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static MoveJobDown parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + MoveJobDown object = new MoveJobDown(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"MoveJobDown".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (MoveJobDown) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobFront.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobFront.java index 6d682c739..903df0d27 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobFront.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobFront.java @@ -1,597 +1,597 @@ -/** - * MoveJobFront.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** MoveJobFront bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class MoveJobFront implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobFront", "ns1"); - - /** field for ClusterType */ - protected int localClusterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTypeTracker = false; - - public boolean isClusterTypeSpecified() { - return localClusterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterType() { - return localClusterType; - } - - /** - * Auto generated setter method - * - * @param param ClusterType - */ - public void setClusterType(int param) { - - // setting primitive attribute tracker to true - localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":MoveJobFront", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "MoveJobFront", xmlWriter); - } - } - if (localClusterTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterType", xmlWriter); - - if (localClusterType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static MoveJobFront parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - MoveJobFront object = new MoveJobFront(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"MoveJobFront".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (MoveJobFront) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * MoveJobFront.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** MoveJobFront bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class MoveJobFront implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobFront", "ns1"); + + /** field for ClusterType */ + protected int localClusterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTypeTracker = false; + + public boolean isClusterTypeSpecified() { + return localClusterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterType() { + return localClusterType; + } + + /** + * Auto generated setter method + * + * @param param ClusterType + */ + public void setClusterType(int param) { + + // setting primitive attribute tracker to true + localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":MoveJobFront", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "MoveJobFront", xmlWriter); + } + } + if (localClusterTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterType", xmlWriter); + + if (localClusterType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static MoveJobFront parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + MoveJobFront object = new MoveJobFront(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"MoveJobFront".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (MoveJobFront) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobUp.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobUp.java index e4d65d86b..e100e50a9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobUp.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/MoveJobUp.java @@ -1,597 +1,597 @@ -/** - * MoveJobUp.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** MoveJobUp bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class MoveJobUp implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobUp", "ns1"); - - /** field for ClusterType */ - protected int localClusterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTypeTracker = false; - - public boolean isClusterTypeSpecified() { - return localClusterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterType() { - return localClusterType; - } - - /** - * Auto generated setter method - * - * @param param ClusterType - */ - public void setClusterType(int param) { - - // setting primitive attribute tracker to true - localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":MoveJobUp", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "MoveJobUp", xmlWriter); - } - } - if (localClusterTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterType", xmlWriter); - - if (localClusterType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static MoveJobUp parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - MoveJobUp object = new MoveJobUp(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"MoveJobUp".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (MoveJobUp) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * MoveJobUp.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** MoveJobUp bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class MoveJobUp implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobUp", "ns1"); + + /** field for ClusterType */ + protected int localClusterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTypeTracker = false; + + public boolean isClusterTypeSpecified() { + return localClusterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterType() { + return localClusterType; + } + + /** + * Auto generated setter method + * + * @param param ClusterType + */ + public void setClusterType(int param) { + + // setting primitive attribute tracker to true + localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":MoveJobUp", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "MoveJobUp", xmlWriter); + } + } + if (localClusterTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterType", xmlWriter); + + if (localClusterType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static MoveJobUp parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + MoveJobUp object = new MoveJobUp(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"MoveJobUp".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (MoveJobUp) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NamedValue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NamedValue.java index fcc6eecf9..5832555fe 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NamedValue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NamedValue.java @@ -1,463 +1,463 @@ -/** - * NamedValue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** NamedValue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class NamedValue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = NamedValue - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Value */ - protected java.lang.String localValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValueTracker = false; - - public boolean isValueSpecified() { - return localValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getValue() { - return localValue; - } - - /** - * Auto generated setter method - * - * @param param Value - */ - public void setValue(java.lang.String param) { - localValueTracker = param != null; - - this.localValue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":NamedValue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "NamedValue", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localValueTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Value", xmlWriter); - - if (localValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localValue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static NamedValue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - NamedValue object = new NamedValue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"NamedValue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (NamedValue) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Value") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Value" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * NamedValue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** NamedValue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class NamedValue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = NamedValue + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Value */ + protected java.lang.String localValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValueTracker = false; + + public boolean isValueSpecified() { + return localValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getValue() { + return localValue; + } + + /** + * Auto generated setter method + * + * @param param Value + */ + public void setValue(java.lang.String param) { + localValueTracker = param != null; + + this.localValue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":NamedValue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "NamedValue", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localValueTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Value", xmlWriter); + + if (localValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localValue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static NamedValue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + NamedValue object = new NamedValue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"NamedValue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (NamedValue) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Value") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Value" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NotInCommunityEdition.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NotInCommunityEdition.java index e2738ab46..98ef7c597 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NotInCommunityEdition.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NotInCommunityEdition.java @@ -1,396 +1,396 @@ -/** - * NotInCommunityEdition.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** NotInCommunityEdition bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class NotInCommunityEdition implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NotInCommunityEdition", "ns1"); - - /** field for EEPortal */ - protected java.lang.String localEEPortal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEEPortalTracker = false; - - public boolean isEEPortalSpecified() { - return localEEPortalTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEEPortal() { - return localEEPortal; - } - - /** - * Auto generated setter method - * - * @param param EEPortal - */ - public void setEEPortal(java.lang.String param) { - localEEPortalTracker = param != null; - - this.localEEPortal = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":NotInCommunityEdition", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "NotInCommunityEdition", - xmlWriter); - } - } - if (localEEPortalTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "EEPortal", xmlWriter); - - if (localEEPortal == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EEPortal cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEEPortal); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static NotInCommunityEdition parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - NotInCommunityEdition object = new NotInCommunityEdition(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"NotInCommunityEdition".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (NotInCommunityEdition) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EEPortal") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EEPortal" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEEPortal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * NotInCommunityEdition.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** NotInCommunityEdition bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class NotInCommunityEdition implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NotInCommunityEdition", "ns1"); + + /** field for EEPortal */ + protected java.lang.String localEEPortal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEEPortalTracker = false; + + public boolean isEEPortalSpecified() { + return localEEPortalTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEEPortal() { + return localEEPortal; + } + + /** + * Auto generated setter method + * + * @param param EEPortal + */ + public void setEEPortal(java.lang.String param) { + localEEPortalTracker = param != null; + + this.localEEPortal = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":NotInCommunityEdition", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "NotInCommunityEdition", + xmlWriter); + } + } + if (localEEPortalTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "EEPortal", xmlWriter); + + if (localEEPortal == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EEPortal cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEEPortal); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static NotInCommunityEdition parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + NotInCommunityEdition object = new NotInCommunityEdition(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"NotInCommunityEdition".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (NotInCommunityEdition) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EEPortal") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EEPortal" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEEPortal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NotInCommunityEditionResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NotInCommunityEditionResponse.java index 4d2e52486..dcf74a730 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NotInCommunityEditionResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/NotInCommunityEditionResponse.java @@ -1,381 +1,381 @@ -/** - * NotInCommunityEditionResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** NotInCommunityEditionResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class NotInCommunityEditionResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wssmc", "NotInCommunityEditionResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":NotInCommunityEditionResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "NotInCommunityEditionResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static NotInCommunityEditionResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - NotInCommunityEditionResponse object = new NotInCommunityEditionResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"NotInCommunityEditionResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (NotInCommunityEditionResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * NotInCommunityEditionResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** NotInCommunityEditionResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class NotInCommunityEditionResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wssmc", "NotInCommunityEditionResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":NotInCommunityEditionResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "NotInCommunityEditionResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static NotInCommunityEditionResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + NotInCommunityEditionResponse object = new NotInCommunityEditionResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"NotInCommunityEditionResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (NotInCommunityEditionResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/PauseQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/PauseQueue.java index 84d1922e2..3647ed286 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/PauseQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/PauseQueue.java @@ -1,733 +1,733 @@ -/** - * PauseQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** PauseQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class PauseQueue implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "PauseQueue", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for ServerType */ - protected java.lang.String localServerType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTypeTracker = false; - - public boolean isServerTypeSpecified() { - return localServerTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServerType() { - return localServerType; - } - - /** - * Auto generated setter method - * - * @param param ServerType - */ - public void setServerType(java.lang.String param) { - localServerTypeTracker = param != null; - - this.localServerType = param; - } - - /** field for NetworkAddress */ - protected java.lang.String localNetworkAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetworkAddressTracker = false; - - public boolean isNetworkAddressSpecified() { - return localNetworkAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetworkAddress() { - return localNetworkAddress; - } - - /** - * Auto generated setter method - * - * @param param NetworkAddress - */ - public void setNetworkAddress(java.lang.String param) { - localNetworkAddressTracker = param != null; - - this.localNetworkAddress = param; - } - - /** field for Port */ - protected int localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(int param) { - - // setting primitive attribute tracker to true - localPortTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPort = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":PauseQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "PauseQueue", xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localServerTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ServerType", xmlWriter); - - if (localServerType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServerType); - } - - xmlWriter.writeEndElement(); - } - if (localNetworkAddressTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NetworkAddress", xmlWriter); - - if (localNetworkAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetworkAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static PauseQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - PauseQueue object = new PauseQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"PauseQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (PauseQueue) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServerType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServerType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetworkAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetworkAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * PauseQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** PauseQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class PauseQueue implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "PauseQueue", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for ServerType */ + protected java.lang.String localServerType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTypeTracker = false; + + public boolean isServerTypeSpecified() { + return localServerTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServerType() { + return localServerType; + } + + /** + * Auto generated setter method + * + * @param param ServerType + */ + public void setServerType(java.lang.String param) { + localServerTypeTracker = param != null; + + this.localServerType = param; + } + + /** field for NetworkAddress */ + protected java.lang.String localNetworkAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetworkAddressTracker = false; + + public boolean isNetworkAddressSpecified() { + return localNetworkAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetworkAddress() { + return localNetworkAddress; + } + + /** + * Auto generated setter method + * + * @param param NetworkAddress + */ + public void setNetworkAddress(java.lang.String param) { + localNetworkAddressTracker = param != null; + + this.localNetworkAddress = param; + } + + /** field for Port */ + protected int localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(int param) { + + // setting primitive attribute tracker to true + localPortTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPort = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":PauseQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "PauseQueue", xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localServerTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ServerType", xmlWriter); + + if (localServerType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServerType); + } + + xmlWriter.writeEndElement(); + } + if (localNetworkAddressTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NetworkAddress", xmlWriter); + + if (localNetworkAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetworkAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static PauseQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + PauseQueue object = new PauseQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"PauseQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (PauseQueue) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServerType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServerType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetworkAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetworkAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Ping.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Ping.java index b36410ee0..abb3851e1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Ping.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/Ping.java @@ -1,309 +1,309 @@ -/** - * Ping.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** Ping bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Ping implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Ping", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Ping", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Ping", xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Ping parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - Ping object = new Ping(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Ping".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Ping) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Ping.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** Ping bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Ping implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Ping", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Ping", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Ping", xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Ping parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + Ping object = new Ping(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Ping".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Ping) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RemoveJob.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RemoveJob.java index 3b29ffc62..56cd0c37d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RemoveJob.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RemoveJob.java @@ -1,597 +1,597 @@ -/** - * RemoveJob.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** RemoveJob bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RemoveJob implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RemoveJob", "ns1"); - - /** field for ClusterType */ - protected int localClusterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTypeTracker = false; - - public boolean isClusterTypeSpecified() { - return localClusterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterType() { - return localClusterType; - } - - /** - * Auto generated setter method - * - * @param param ClusterType - */ - public void setClusterType(int param) { - - // setting primitive attribute tracker to true - localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RemoveJob", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "RemoveJob", xmlWriter); - } - } - if (localClusterTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterType", xmlWriter); - - if (localClusterType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RemoveJob parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RemoveJob object = new RemoveJob(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"RemoveJob".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (RemoveJob) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RemoveJob.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** RemoveJob bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RemoveJob implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RemoveJob", "ns1"); + + /** field for ClusterType */ + protected int localClusterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTypeTracker = false; + + public boolean isClusterTypeSpecified() { + return localClusterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterType() { + return localClusterType; + } + + /** + * Auto generated setter method + * + * @param param ClusterType + */ + public void setClusterType(int param) { + + // setting primitive attribute tracker to true + localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RemoveJob", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "RemoveJob", xmlWriter); + } + } + if (localClusterTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterType", xmlWriter); + + if (localClusterType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RemoveJob parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RemoveJob object = new RemoveJob(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"RemoveJob".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (RemoveJob) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ResumeQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ResumeQueue.java index bed665b1e..36de3f43c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ResumeQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ResumeQueue.java @@ -1,733 +1,733 @@ -/** - * ResumeQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ResumeQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ResumeQueue implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ResumeQueue", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for ServerType */ - protected java.lang.String localServerType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTypeTracker = false; - - public boolean isServerTypeSpecified() { - return localServerTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServerType() { - return localServerType; - } - - /** - * Auto generated setter method - * - * @param param ServerType - */ - public void setServerType(java.lang.String param) { - localServerTypeTracker = param != null; - - this.localServerType = param; - } - - /** field for NetworkAddress */ - protected java.lang.String localNetworkAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetworkAddressTracker = false; - - public boolean isNetworkAddressSpecified() { - return localNetworkAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetworkAddress() { - return localNetworkAddress; - } - - /** - * Auto generated setter method - * - * @param param NetworkAddress - */ - public void setNetworkAddress(java.lang.String param) { - localNetworkAddressTracker = param != null; - - this.localNetworkAddress = param; - } - - /** field for Port */ - protected int localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(int param) { - - // setting primitive attribute tracker to true - localPortTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPort = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ResumeQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ResumeQueue", xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localServerTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ServerType", xmlWriter); - - if (localServerType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServerType); - } - - xmlWriter.writeEndElement(); - } - if (localNetworkAddressTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NetworkAddress", xmlWriter); - - if (localNetworkAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetworkAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ResumeQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ResumeQueue object = new ResumeQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ResumeQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ResumeQueue) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServerType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServerType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetworkAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetworkAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ResumeQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ResumeQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ResumeQueue implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ResumeQueue", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for ServerType */ + protected java.lang.String localServerType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTypeTracker = false; + + public boolean isServerTypeSpecified() { + return localServerTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServerType() { + return localServerType; + } + + /** + * Auto generated setter method + * + * @param param ServerType + */ + public void setServerType(java.lang.String param) { + localServerTypeTracker = param != null; + + this.localServerType = param; + } + + /** field for NetworkAddress */ + protected java.lang.String localNetworkAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetworkAddressTracker = false; + + public boolean isNetworkAddressSpecified() { + return localNetworkAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetworkAddress() { + return localNetworkAddress; + } + + /** + * Auto generated setter method + * + * @param param NetworkAddress + */ + public void setNetworkAddress(java.lang.String param) { + localNetworkAddressTracker = param != null; + + this.localNetworkAddress = param; + } + + /** field for Port */ + protected int localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(int param) { + + // setting primitive attribute tracker to true + localPortTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPort = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ResumeQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ResumeQueue", xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localServerTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ServerType", xmlWriter); + + if (localServerType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServerType); + } + + xmlWriter.writeEndElement(); + } + if (localNetworkAddressTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NetworkAddress", xmlWriter); + + if (localNetworkAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetworkAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ResumeQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ResumeQueue object = new ResumeQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ResumeQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ResumeQueue) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServerType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServerType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetworkAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetworkAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmd.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmd.java index fc7dde939..d68e430d0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmd.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmd.java @@ -1,585 +1,585 @@ -/** - * RoxieControlCmd.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** RoxieControlCmd bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RoxieControlCmd implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieControlCmd", "ns1"); - - /** field for ProcessCluster */ - protected java.lang.String localProcessCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessClusterTracker = false; - - public boolean isProcessClusterSpecified() { - return localProcessClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProcessCluster() { - return localProcessCluster; - } - - /** - * Auto generated setter method - * - * @param param ProcessCluster - */ - public void setProcessCluster(java.lang.String param) { - localProcessClusterTracker = param != null; - - this.localProcessCluster = param; - } - - /** field for TargetCluster */ - protected java.lang.String localTargetCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetClusterTracker = false; - - public boolean isTargetClusterSpecified() { - return localTargetClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTargetCluster() { - return localTargetCluster; - } - - /** - * Auto generated setter method - * - * @param param TargetCluster - */ - public void setTargetCluster(java.lang.String param) { - localTargetClusterTracker = param != null; - - this.localTargetCluster = param; - } - - /** field for Command */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType localCommand; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommandTracker = false; - - public boolean isCommandSpecified() { - return localCommandTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType getCommand() { - return localCommand; - } - - /** - * Auto generated setter method - * - * @param param Command - */ - public void setCommand( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType param) { - localCommandTracker = param != null; - - this.localCommand = param; - } - - /** field for Wait */ - protected int localWait; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RoxieControlCmd", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "RoxieControlCmd", - xmlWriter); - } - } - if (localProcessClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ProcessCluster", xmlWriter); - - if (localProcessCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ProcessCluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProcessCluster); - } - - xmlWriter.writeEndElement(); - } - if (localTargetClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "TargetCluster", xmlWriter); - - if (localTargetCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TargetCluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTargetCluster); - } - - xmlWriter.writeEndElement(); - } - if (localCommandTracker) { - if (localCommand == null) { - throw new org.apache.axis2.databinding.ADBException("Command cannot be null!!"); - } - localCommand.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Command"), xmlWriter); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RoxieControlCmd parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RoxieControlCmd object = new RoxieControlCmd(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"RoxieControlCmd".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (RoxieControlCmd) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ProcessCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProcessCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcessCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TargetCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTargetCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Command") - .equals(reader.getName())) { - - object.setCommand( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RoxieControlCmd.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** RoxieControlCmd bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RoxieControlCmd implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieControlCmd", "ns1"); + + /** field for ProcessCluster */ + protected java.lang.String localProcessCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessClusterTracker = false; + + public boolean isProcessClusterSpecified() { + return localProcessClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProcessCluster() { + return localProcessCluster; + } + + /** + * Auto generated setter method + * + * @param param ProcessCluster + */ + public void setProcessCluster(java.lang.String param) { + localProcessClusterTracker = param != null; + + this.localProcessCluster = param; + } + + /** field for TargetCluster */ + protected java.lang.String localTargetCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetClusterTracker = false; + + public boolean isTargetClusterSpecified() { + return localTargetClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTargetCluster() { + return localTargetCluster; + } + + /** + * Auto generated setter method + * + * @param param TargetCluster + */ + public void setTargetCluster(java.lang.String param) { + localTargetClusterTracker = param != null; + + this.localTargetCluster = param; + } + + /** field for Command */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType localCommand; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommandTracker = false; + + public boolean isCommandSpecified() { + return localCommandTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType getCommand() { + return localCommand; + } + + /** + * Auto generated setter method + * + * @param param Command + */ + public void setCommand( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType param) { + localCommandTracker = param != null; + + this.localCommand = param; + } + + /** field for Wait */ + protected int localWait; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RoxieControlCmd", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "RoxieControlCmd", + xmlWriter); + } + } + if (localProcessClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ProcessCluster", xmlWriter); + + if (localProcessCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ProcessCluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProcessCluster); + } + + xmlWriter.writeEndElement(); + } + if (localTargetClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "TargetCluster", xmlWriter); + + if (localTargetCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TargetCluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTargetCluster); + } + + xmlWriter.writeEndElement(); + } + if (localCommandTracker) { + if (localCommand == null) { + throw new org.apache.axis2.databinding.ADBException("Command cannot be null!!"); + } + localCommand.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Command"), xmlWriter); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RoxieControlCmd parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RoxieControlCmd object = new RoxieControlCmd(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"RoxieControlCmd".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (RoxieControlCmd) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ProcessCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProcessCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcessCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TargetCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTargetCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Command") + .equals(reader.getName())) { + + object.setCommand( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmdResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmdResponse.java index 73140d136..da6bb50b1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmdResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmdResponse.java @@ -1,431 +1,431 @@ -/** - * RoxieControlCmdResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** RoxieControlCmdResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RoxieControlCmdResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieControlCmdResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Endpoints */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 localEndpoints; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndpointsTracker = false; - - public boolean isEndpointsSpecified() { - return localEndpointsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 getEndpoints() { - return localEndpoints; - } - - /** - * Auto generated setter method - * - * @param param Endpoints - */ - public void setEndpoints(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 param) { - localEndpointsTracker = param != null; - - this.localEndpoints = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RoxieControlCmdResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "RoxieControlCmdResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localEndpointsTracker) { - if (localEndpoints == null) { - throw new org.apache.axis2.databinding.ADBException("Endpoints cannot be null!!"); - } - localEndpoints.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoints"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RoxieControlCmdResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RoxieControlCmdResponse object = new RoxieControlCmdResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"RoxieControlCmdResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (RoxieControlCmdResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoints") - .equals(reader.getName())) { - - object.setEndpoints( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RoxieControlCmdResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** RoxieControlCmdResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RoxieControlCmdResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieControlCmdResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Endpoints */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 localEndpoints; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndpointsTracker = false; + + public boolean isEndpointsSpecified() { + return localEndpointsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 getEndpoints() { + return localEndpoints; + } + + /** + * Auto generated setter method + * + * @param param Endpoints + */ + public void setEndpoints(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 param) { + localEndpointsTracker = param != null; + + this.localEndpoints = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RoxieControlCmdResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "RoxieControlCmdResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localEndpointsTracker) { + if (localEndpoints == null) { + throw new org.apache.axis2.databinding.ADBException("Endpoints cannot be null!!"); + } + localEndpoints.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoints"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RoxieControlCmdResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RoxieControlCmdResponse object = new RoxieControlCmdResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"RoxieControlCmdResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (RoxieControlCmdResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Endpoints") + .equals(reader.getName())) { + + object.setEndpoints( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmdType.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmdType.java index c95429353..26806d139 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmdType.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlCmdType.java @@ -1,440 +1,440 @@ -/** - * RoxieControlCmdType.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** RoxieControlCmdType bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RoxieControlCmdType implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieControlCmdType", "ns1"); - - /** field for RoxieControlCmdType */ - protected java.lang.String localRoxieControlCmdType; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected RoxieControlCmdType(java.lang.String value, boolean isRegisterValue) { - localRoxieControlCmdType = value; - if (isRegisterValue) { - - _table_.put(localRoxieControlCmdType, this); - } - } - - public static final java.lang.String _Attach = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Attach"); - - public static final java.lang.String _Detach = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Detach"); - - public static final java.lang.String _State = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("State"); - - public static final java.lang.String _Reload = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Reload"); - - public static final java.lang.String _ReloadRetry = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ReloadRetry"); - - public static final java.lang.String _MemLock = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("MemLock"); - - public static final java.lang.String _MemUnlock = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("MemUnlock"); - - public static final java.lang.String _GetMemLocked = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("GetMemLocked"); - - public static final RoxieControlCmdType Attach = new RoxieControlCmdType(_Attach, true); - - public static final RoxieControlCmdType Detach = new RoxieControlCmdType(_Detach, true); - - public static final RoxieControlCmdType State = new RoxieControlCmdType(_State, true); - - public static final RoxieControlCmdType Reload = new RoxieControlCmdType(_Reload, true); - - public static final RoxieControlCmdType ReloadRetry = new RoxieControlCmdType(_ReloadRetry, true); - - public static final RoxieControlCmdType MemLock = new RoxieControlCmdType(_MemLock, true); - - public static final RoxieControlCmdType MemUnlock = new RoxieControlCmdType(_MemUnlock, true); - - public static final RoxieControlCmdType GetMemLocked = - new RoxieControlCmdType(_GetMemLocked, true); - - public java.lang.String getValue() { - return localRoxieControlCmdType; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localRoxieControlCmdType.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RoxieControlCmdType", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "RoxieControlCmdType", - xmlWriter); - } - } - - if (localRoxieControlCmdType == null) { - - throw new org.apache.axis2.databinding.ADBException("RoxieControlCmdType cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localRoxieControlCmdType); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static RoxieControlCmdType fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - RoxieControlCmdType enumeration = (RoxieControlCmdType) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static RoxieControlCmdType fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static RoxieControlCmdType fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return RoxieControlCmdType.Factory.fromString(content, namespaceUri); - } else { - return RoxieControlCmdType.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RoxieControlCmdType parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RoxieControlCmdType object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RoxieControlCmdType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = RoxieControlCmdType.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = RoxieControlCmdType.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RoxieControlCmdType.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** RoxieControlCmdType bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RoxieControlCmdType implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieControlCmdType", "ns1"); + + /** field for RoxieControlCmdType */ + protected java.lang.String localRoxieControlCmdType; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected RoxieControlCmdType(java.lang.String value, boolean isRegisterValue) { + localRoxieControlCmdType = value; + if (isRegisterValue) { + + _table_.put(localRoxieControlCmdType, this); + } + } + + public static final java.lang.String _Attach = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Attach"); + + public static final java.lang.String _Detach = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Detach"); + + public static final java.lang.String _State = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("State"); + + public static final java.lang.String _Reload = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Reload"); + + public static final java.lang.String _ReloadRetry = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ReloadRetry"); + + public static final java.lang.String _MemLock = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("MemLock"); + + public static final java.lang.String _MemUnlock = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("MemUnlock"); + + public static final java.lang.String _GetMemLocked = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("GetMemLocked"); + + public static final RoxieControlCmdType Attach = new RoxieControlCmdType(_Attach, true); + + public static final RoxieControlCmdType Detach = new RoxieControlCmdType(_Detach, true); + + public static final RoxieControlCmdType State = new RoxieControlCmdType(_State, true); + + public static final RoxieControlCmdType Reload = new RoxieControlCmdType(_Reload, true); + + public static final RoxieControlCmdType ReloadRetry = new RoxieControlCmdType(_ReloadRetry, true); + + public static final RoxieControlCmdType MemLock = new RoxieControlCmdType(_MemLock, true); + + public static final RoxieControlCmdType MemUnlock = new RoxieControlCmdType(_MemUnlock, true); + + public static final RoxieControlCmdType GetMemLocked = + new RoxieControlCmdType(_GetMemLocked, true); + + public java.lang.String getValue() { + return localRoxieControlCmdType; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localRoxieControlCmdType.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RoxieControlCmdType", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "RoxieControlCmdType", + xmlWriter); + } + } + + if (localRoxieControlCmdType == null) { + + throw new org.apache.axis2.databinding.ADBException("RoxieControlCmdType cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localRoxieControlCmdType); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static RoxieControlCmdType fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + RoxieControlCmdType enumeration = (RoxieControlCmdType) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static RoxieControlCmdType fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static RoxieControlCmdType fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return RoxieControlCmdType.Factory.fromString(content, namespaceUri); + } else { + return RoxieControlCmdType.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RoxieControlCmdType parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RoxieControlCmdType object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RoxieControlCmdType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = RoxieControlCmdType.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = RoxieControlCmdType.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlEndpointInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlEndpointInfo.java index 8d8531590..468b73a9e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlEndpointInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieControlEndpointInfo.java @@ -1,673 +1,673 @@ -/** - * RoxieControlEndpointInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** RoxieControlEndpointInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RoxieControlEndpointInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = RoxieControlEndpointInfo - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Address */ - protected java.lang.String localAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAddressTracker = false; - - public boolean isAddressSpecified() { - return localAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAddress() { - return localAddress; - } - - /** - * Auto generated setter method - * - * @param param Address - */ - public void setAddress(java.lang.String param) { - localAddressTracker = param != null; - - this.localAddress = param; - } - - /** field for Attached */ - protected boolean localAttached; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAttachedTracker = false; - - public boolean isAttachedSpecified() { - return localAttachedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAttached() { - return localAttached; - } - - /** - * Auto generated setter method - * - * @param param Attached - */ - public void setAttached(boolean param) { - - // setting primitive attribute tracker to true - localAttachedTracker = true; - - this.localAttached = param; - } - - /** field for StateHash */ - protected java.lang.String localStateHash; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateHashTracker = false; - - public boolean isStateHashSpecified() { - return localStateHashTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStateHash() { - return localStateHash; - } - - /** - * Auto generated setter method - * - * @param param StateHash - */ - public void setStateHash(java.lang.String param) { - localStateHashTracker = param != null; - - this.localStateHash = param; - } - - /** field for Status */ - protected java.lang.String localStatus; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusTracker = false; - - public boolean isStatusSpecified() { - return localStatusTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStatus() { - return localStatus; - } - - /** - * Auto generated setter method - * - * @param param Status - */ - public void setStatus(java.lang.String param) { - localStatusTracker = param != null; - - this.localStatus = param; - } - - /** field for MemLocked */ - protected boolean localMemLocked; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemLockedTracker = false; - - public boolean isMemLockedSpecified() { - return localMemLockedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getMemLocked() { - return localMemLocked; - } - - /** - * Auto generated setter method - * - * @param param MemLocked - */ - public void setMemLocked(boolean param) { - - // setting primitive attribute tracker to true - localMemLockedTracker = true; - - this.localMemLocked = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RoxieControlEndpointInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "RoxieControlEndpointInfo", - xmlWriter); - } - } - if (localAddressTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Address", xmlWriter); - - if (localAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Address cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAddress); - } - - xmlWriter.writeEndElement(); - } - if (localAttachedTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Attached", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Attached cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAttached)); - } - - xmlWriter.writeEndElement(); - } - if (localStateHashTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "StateHash", xmlWriter); - - if (localStateHash == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StateHash cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStateHash); - } - - xmlWriter.writeEndElement(); - } - if (localStatusTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Status", xmlWriter); - - if (localStatus == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Status cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStatus); - } - - xmlWriter.writeEndElement(); - } - if (localMemLockedTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "MemLocked", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("MemLocked cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemLocked)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RoxieControlEndpointInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RoxieControlEndpointInfo object = new RoxieControlEndpointInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"RoxieControlEndpointInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (RoxieControlEndpointInfo) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Address") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Address" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Attached") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Attached" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAttached( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StateHash") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateHash" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateHash( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Status") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Status" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStatus( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MemLocked") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemLocked" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemLocked( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RoxieControlEndpointInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** RoxieControlEndpointInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RoxieControlEndpointInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = RoxieControlEndpointInfo + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Address */ + protected java.lang.String localAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAddressTracker = false; + + public boolean isAddressSpecified() { + return localAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAddress() { + return localAddress; + } + + /** + * Auto generated setter method + * + * @param param Address + */ + public void setAddress(java.lang.String param) { + localAddressTracker = param != null; + + this.localAddress = param; + } + + /** field for Attached */ + protected boolean localAttached; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAttachedTracker = false; + + public boolean isAttachedSpecified() { + return localAttachedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAttached() { + return localAttached; + } + + /** + * Auto generated setter method + * + * @param param Attached + */ + public void setAttached(boolean param) { + + // setting primitive attribute tracker to true + localAttachedTracker = true; + + this.localAttached = param; + } + + /** field for StateHash */ + protected java.lang.String localStateHash; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateHashTracker = false; + + public boolean isStateHashSpecified() { + return localStateHashTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStateHash() { + return localStateHash; + } + + /** + * Auto generated setter method + * + * @param param StateHash + */ + public void setStateHash(java.lang.String param) { + localStateHashTracker = param != null; + + this.localStateHash = param; + } + + /** field for Status */ + protected java.lang.String localStatus; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusTracker = false; + + public boolean isStatusSpecified() { + return localStatusTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStatus() { + return localStatus; + } + + /** + * Auto generated setter method + * + * @param param Status + */ + public void setStatus(java.lang.String param) { + localStatusTracker = param != null; + + this.localStatus = param; + } + + /** field for MemLocked */ + protected boolean localMemLocked; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemLockedTracker = false; + + public boolean isMemLockedSpecified() { + return localMemLockedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getMemLocked() { + return localMemLocked; + } + + /** + * Auto generated setter method + * + * @param param MemLocked + */ + public void setMemLocked(boolean param) { + + // setting primitive attribute tracker to true + localMemLockedTracker = true; + + this.localMemLocked = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RoxieControlEndpointInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "RoxieControlEndpointInfo", + xmlWriter); + } + } + if (localAddressTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Address", xmlWriter); + + if (localAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Address cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAddress); + } + + xmlWriter.writeEndElement(); + } + if (localAttachedTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Attached", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Attached cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAttached)); + } + + xmlWriter.writeEndElement(); + } + if (localStateHashTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "StateHash", xmlWriter); + + if (localStateHash == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StateHash cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStateHash); + } + + xmlWriter.writeEndElement(); + } + if (localStatusTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Status", xmlWriter); + + if (localStatus == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Status cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStatus); + } + + xmlWriter.writeEndElement(); + } + if (localMemLockedTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "MemLocked", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("MemLocked cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemLocked)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RoxieControlEndpointInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RoxieControlEndpointInfo object = new RoxieControlEndpointInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"RoxieControlEndpointInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (RoxieControlEndpointInfo) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Address") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Address" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Attached") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Attached" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAttached( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StateHash") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateHash" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateHash( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Status") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Status" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStatus( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MemLocked") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemLocked" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemLocked( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieXrefCmd.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieXrefCmd.java index 1309e4161..a46260ea0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieXrefCmd.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieXrefCmd.java @@ -1,582 +1,582 @@ -/** - * RoxieXrefCmd.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** RoxieXrefCmd bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RoxieXrefCmd implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieXrefCmd", "ns1"); - - /** field for RoxieCluster */ - protected java.lang.String localRoxieCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRoxieClusterTracker = false; - - public boolean isRoxieClusterSpecified() { - return localRoxieClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRoxieCluster() { - return localRoxieCluster; - } - - /** - * Auto generated setter method - * - * @param param RoxieCluster - */ - public void setRoxieCluster(java.lang.String param) { - localRoxieClusterTracker = param != null; - - this.localRoxieCluster = param; - } - - /** field for QueryIds */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray localQueryIds; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdsTracker = false; - - public boolean isQueryIdsSpecified() { - return localQueryIdsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray getQueryIds() { - return localQueryIds; - } - - /** - * Auto generated setter method - * - * @param param QueryIds - */ - public void setQueryIds(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray param) { - localQueryIdsTracker = param != null; - - this.localQueryIds = param; - } - - /** field for CheckAllNodes */ - protected boolean localCheckAllNodes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCheckAllNodesTracker = false; - - public boolean isCheckAllNodesSpecified() { - return localCheckAllNodesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCheckAllNodes() { - return localCheckAllNodes; - } - - /** - * Auto generated setter method - * - * @param param CheckAllNodes - */ - public void setCheckAllNodes(boolean param) { - - // setting primitive attribute tracker to true - localCheckAllNodesTracker = true; - - this.localCheckAllNodes = param; - } - - /** field for Wait */ - protected int localWait; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RoxieXrefCmd", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "RoxieXrefCmd", xmlWriter); - } - } - if (localRoxieClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "RoxieCluster", xmlWriter); - - if (localRoxieCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RoxieCluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRoxieCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdsTracker) { - if (localQueryIds == null) { - throw new org.apache.axis2.databinding.ADBException("QueryIds cannot be null!!"); - } - localQueryIds.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueryIds"), xmlWriter); - } - if (localCheckAllNodesTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); - } - - xmlWriter.writeEndElement(); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RoxieXrefCmd parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RoxieXrefCmd object = new RoxieXrefCmd(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"RoxieXrefCmd".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (RoxieXrefCmd) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RoxieCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRoxieCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueryIds") - .equals(reader.getName())) { - - object.setQueryIds( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "CheckAllNodes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CheckAllNodes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCheckAllNodes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RoxieXrefCmd.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** RoxieXrefCmd bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RoxieXrefCmd implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieXrefCmd", "ns1"); + + /** field for RoxieCluster */ + protected java.lang.String localRoxieCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRoxieClusterTracker = false; + + public boolean isRoxieClusterSpecified() { + return localRoxieClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRoxieCluster() { + return localRoxieCluster; + } + + /** + * Auto generated setter method + * + * @param param RoxieCluster + */ + public void setRoxieCluster(java.lang.String param) { + localRoxieClusterTracker = param != null; + + this.localRoxieCluster = param; + } + + /** field for QueryIds */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray localQueryIds; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdsTracker = false; + + public boolean isQueryIdsSpecified() { + return localQueryIdsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray getQueryIds() { + return localQueryIds; + } + + /** + * Auto generated setter method + * + * @param param QueryIds + */ + public void setQueryIds(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray param) { + localQueryIdsTracker = param != null; + + this.localQueryIds = param; + } + + /** field for CheckAllNodes */ + protected boolean localCheckAllNodes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCheckAllNodesTracker = false; + + public boolean isCheckAllNodesSpecified() { + return localCheckAllNodesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCheckAllNodes() { + return localCheckAllNodes; + } + + /** + * Auto generated setter method + * + * @param param CheckAllNodes + */ + public void setCheckAllNodes(boolean param) { + + // setting primitive attribute tracker to true + localCheckAllNodesTracker = true; + + this.localCheckAllNodes = param; + } + + /** field for Wait */ + protected int localWait; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RoxieXrefCmd", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "RoxieXrefCmd", xmlWriter); + } + } + if (localRoxieClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "RoxieCluster", xmlWriter); + + if (localRoxieCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RoxieCluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRoxieCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdsTracker) { + if (localQueryIds == null) { + throw new org.apache.axis2.databinding.ADBException("QueryIds cannot be null!!"); + } + localQueryIds.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueryIds"), xmlWriter); + } + if (localCheckAllNodesTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); + } + + xmlWriter.writeEndElement(); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RoxieXrefCmd parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RoxieXrefCmd object = new RoxieXrefCmd(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"RoxieXrefCmd".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (RoxieXrefCmd) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RoxieCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRoxieCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueryIds") + .equals(reader.getName())) { + + object.setQueryIds( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspStringArray.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "CheckAllNodes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CheckAllNodes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCheckAllNodes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieXrefCmdResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieXrefCmdResponse.java index a2f4a1a52..aeb8d08dd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieXrefCmdResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/RoxieXrefCmdResponse.java @@ -1,448 +1,448 @@ -/** - * RoxieXrefCmdResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** RoxieXrefCmdResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RoxieXrefCmdResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieXrefCmdResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RoxieXrefCmdResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "RoxieXrefCmdResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RoxieXrefCmdResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RoxieXrefCmdResponse object = new RoxieXrefCmdResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"RoxieXrefCmdResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (RoxieXrefCmdResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RoxieXrefCmdResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** RoxieXrefCmdResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RoxieXrefCmdResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieXrefCmdResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RoxieXrefCmdResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "RoxieXrefCmdResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RoxieXrefCmdResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RoxieXrefCmdResponse object = new RoxieXrefCmdResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"RoxieXrefCmdResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (RoxieXrefCmdResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCIndexResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCIndexResponse.java index a634ab064..0a962edbf 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCIndexResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCIndexResponse.java @@ -1,380 +1,380 @@ -/** - * SMCIndexResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** SMCIndexResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SMCIndexResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCIndexResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SMCIndexResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SMCIndexResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SMCIndexResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SMCIndexResponse object = new SMCIndexResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SMCIndexResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SMCIndexResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SMCIndexResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** SMCIndexResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SMCIndexResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCIndexResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SMCIndexResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SMCIndexResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SMCIndexResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SMCIndexResponse object = new SMCIndexResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SMCIndexResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SMCIndexResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCJob.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCJob.java index 7aaac395e..38eaacd12 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCJob.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCJob.java @@ -1,462 +1,462 @@ -/** - * SMCJob.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** SMCJob bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SMCJob implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = SMCJob - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SMCJob", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SMCJob", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SMCJob parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - SMCJob object = new SMCJob(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SMCJob".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SMCJob) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SMCJob.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** SMCJob bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SMCJob implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = SMCJob + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SMCJob", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SMCJob", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SMCJob parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + SMCJob object = new SMCJob(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SMCJob".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SMCJob) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCJobResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCJobResponse.java index 8e284e113..0a7320e7a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCJobResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCJobResponse.java @@ -1,380 +1,380 @@ -/** - * SMCJobResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** SMCJobResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SMCJobResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJobResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SMCJobResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SMCJobResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SMCJobResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SMCJobResponse object = new SMCJobResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SMCJobResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SMCJobResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SMCJobResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** SMCJobResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SMCJobResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJobResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SMCJobResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SMCJobResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SMCJobResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SMCJobResponse object = new SMCJobResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SMCJobResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SMCJobResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCPriorityResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCPriorityResponse.java index c14134bb7..cd2994600 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCPriorityResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCPriorityResponse.java @@ -1,380 +1,380 @@ -/** - * SMCPriorityResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** SMCPriorityResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SMCPriorityResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCPriorityResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SMCPriorityResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SMCPriorityResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SMCPriorityResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SMCPriorityResponse object = new SMCPriorityResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SMCPriorityResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SMCPriorityResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SMCPriorityResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** SMCPriorityResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SMCPriorityResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCPriorityResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SMCPriorityResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SMCPriorityResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SMCPriorityResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SMCPriorityResponse object = new SMCPriorityResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SMCPriorityResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SMCPriorityResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCQueueResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCQueueResponse.java index 1e6e8353b..99c3f6da3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCQueueResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SMCQueueResponse.java @@ -1,432 +1,432 @@ -/** - * SMCQueueResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** SMCQueueResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SMCQueueResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCQueueResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for StatusServerInfo */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo localStatusServerInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusServerInfoTracker = false; - - public boolean isStatusServerInfoSpecified() { - return localStatusServerInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo getStatusServerInfo() { - return localStatusServerInfo; - } - - /** - * Auto generated setter method - * - * @param param StatusServerInfo - */ - public void setStatusServerInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo param) { - localStatusServerInfoTracker = param != null; - - this.localStatusServerInfo = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SMCQueueResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SMCQueueResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - if (localStatusServerInfoTracker) { - if (localStatusServerInfo == null) { - throw new org.apache.axis2.databinding.ADBException("StatusServerInfo cannot be null!!"); - } - localStatusServerInfo.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusServerInfo"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SMCQueueResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SMCQueueResponse object = new SMCQueueResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SMCQueueResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SMCQueueResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusServerInfo") - .equals(reader.getName())) { - - object.setStatusServerInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SMCQueueResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** SMCQueueResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SMCQueueResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCQueueResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for StatusServerInfo */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo localStatusServerInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusServerInfoTracker = false; + + public boolean isStatusServerInfoSpecified() { + return localStatusServerInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo getStatusServerInfo() { + return localStatusServerInfo; + } + + /** + * Auto generated setter method + * + * @param param StatusServerInfo + */ + public void setStatusServerInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo param) { + localStatusServerInfoTracker = param != null; + + this.localStatusServerInfo = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SMCQueueResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SMCQueueResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + if (localStatusServerInfoTracker) { + if (localStatusServerInfo == null) { + throw new org.apache.axis2.databinding.ADBException("StatusServerInfo cannot be null!!"); + } + localStatusServerInfo.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusServerInfo"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SMCQueueResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SMCQueueResponse object = new SMCQueueResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SMCQueueResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SMCQueueResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusServerInfo") + .equals(reader.getName())) { + + object.setStatusServerInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ServerJobQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ServerJobQueue.java index 361dcf9bb..ade6f8076 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ServerJobQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ServerJobQueue.java @@ -1,860 +1,860 @@ -/** - * ServerJobQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ServerJobQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ServerJobQueue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ServerJobQueue - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Queues */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue localQueues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueuesTracker = false; - - public boolean isQueuesSpecified() { - return localQueuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue getQueues() { - return localQueues; - } - - /** - * Auto generated setter method - * - * @param param Queues - */ - public void setQueues( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue param) { - localQueuesTracker = param != null; - - this.localQueues = param; - } - - /** field for ServerName */ - protected java.lang.String localServerName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerNameTracker = false; - - public boolean isServerNameSpecified() { - return localServerNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServerName() { - return localServerName; - } - - /** - * Auto generated setter method - * - * @param param ServerName - */ - public void setServerName(java.lang.String param) { - localServerNameTracker = param != null; - - this.localServerName = param; - } - - /** field for ServerType */ - protected java.lang.String localServerType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTypeTracker = false; - - public boolean isServerTypeSpecified() { - return localServerTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServerType() { - return localServerType; - } - - /** - * Auto generated setter method - * - * @param param ServerType - */ - public void setServerType(java.lang.String param) { - localServerTypeTracker = param != null; - - this.localServerType = param; - } - - /** field for QueueStatus */ - protected java.lang.String localQueueStatus; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueStatusTracker = false; - - public boolean isQueueStatusSpecified() { - return localQueueStatusTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueStatus() { - return localQueueStatus; - } - - /** - * Auto generated setter method - * - * @param param QueueStatus - */ - public void setQueueStatus(java.lang.String param) { - localQueueStatusTracker = param != null; - - this.localQueueStatus = param; - } - - /** field for StatusDetails */ - protected java.lang.String localStatusDetails; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusDetailsTracker = false; - - public boolean isStatusDetailsSpecified() { - return localStatusDetailsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStatusDetails() { - return localStatusDetails; - } - - /** - * Auto generated setter method - * - * @param param StatusDetails - */ - public void setStatusDetails(java.lang.String param) { - localStatusDetailsTracker = param != null; - - this.localStatusDetails = param; - } - - /** field for NetworkAddress */ - protected java.lang.String localNetworkAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetworkAddressTracker = false; - - public boolean isNetworkAddressSpecified() { - return localNetworkAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetworkAddress() { - return localNetworkAddress; - } - - /** - * Auto generated setter method - * - * @param param NetworkAddress - */ - public void setNetworkAddress(java.lang.String param) { - localNetworkAddressTracker = param != null; - - this.localNetworkAddress = param; - } - - /** field for Port */ - protected int localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(int param) { - - // setting primitive attribute tracker to true - localPortTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPort = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ServerJobQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ServerJobQueue", - xmlWriter); - } - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localQueuesTracker) { - if (localQueues == null) { - throw new org.apache.axis2.databinding.ADBException("Queues cannot be null!!"); - } - localQueues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Queues"), xmlWriter); - } - if (localServerNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ServerName", xmlWriter); - - if (localServerName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServerName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServerName); - } - - xmlWriter.writeEndElement(); - } - if (localServerTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ServerType", xmlWriter); - - if (localServerType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServerType); - } - - xmlWriter.writeEndElement(); - } - if (localQueueStatusTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueStatus", xmlWriter); - - if (localQueueStatus == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueStatus cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueStatus); - } - - xmlWriter.writeEndElement(); - } - if (localStatusDetailsTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "StatusDetails", xmlWriter); - - if (localStatusDetails == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StatusDetails cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStatusDetails); - } - - xmlWriter.writeEndElement(); - } - if (localNetworkAddressTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NetworkAddress", xmlWriter); - - if (localNetworkAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetworkAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ServerJobQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ServerJobQueue object = new ServerJobQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ServerJobQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ServerJobQueue) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Queues") - .equals(reader.getName())) { - - object.setQueues( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServerName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServerName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServerType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServerType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueStatus") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueStatus" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueStatus( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusDetails") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StatusDetails" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStatusDetails( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetworkAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetworkAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ServerJobQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ServerJobQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ServerJobQueue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ServerJobQueue + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Queues */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue localQueues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueuesTracker = false; + + public boolean isQueuesSpecified() { + return localQueuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue getQueues() { + return localQueues; + } + + /** + * Auto generated setter method + * + * @param param Queues + */ + public void setQueues( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue param) { + localQueuesTracker = param != null; + + this.localQueues = param; + } + + /** field for ServerName */ + protected java.lang.String localServerName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerNameTracker = false; + + public boolean isServerNameSpecified() { + return localServerNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServerName() { + return localServerName; + } + + /** + * Auto generated setter method + * + * @param param ServerName + */ + public void setServerName(java.lang.String param) { + localServerNameTracker = param != null; + + this.localServerName = param; + } + + /** field for ServerType */ + protected java.lang.String localServerType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTypeTracker = false; + + public boolean isServerTypeSpecified() { + return localServerTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServerType() { + return localServerType; + } + + /** + * Auto generated setter method + * + * @param param ServerType + */ + public void setServerType(java.lang.String param) { + localServerTypeTracker = param != null; + + this.localServerType = param; + } + + /** field for QueueStatus */ + protected java.lang.String localQueueStatus; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueStatusTracker = false; + + public boolean isQueueStatusSpecified() { + return localQueueStatusTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueStatus() { + return localQueueStatus; + } + + /** + * Auto generated setter method + * + * @param param QueueStatus + */ + public void setQueueStatus(java.lang.String param) { + localQueueStatusTracker = param != null; + + this.localQueueStatus = param; + } + + /** field for StatusDetails */ + protected java.lang.String localStatusDetails; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusDetailsTracker = false; + + public boolean isStatusDetailsSpecified() { + return localStatusDetailsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStatusDetails() { + return localStatusDetails; + } + + /** + * Auto generated setter method + * + * @param param StatusDetails + */ + public void setStatusDetails(java.lang.String param) { + localStatusDetailsTracker = param != null; + + this.localStatusDetails = param; + } + + /** field for NetworkAddress */ + protected java.lang.String localNetworkAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetworkAddressTracker = false; + + public boolean isNetworkAddressSpecified() { + return localNetworkAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetworkAddress() { + return localNetworkAddress; + } + + /** + * Auto generated setter method + * + * @param param NetworkAddress + */ + public void setNetworkAddress(java.lang.String param) { + localNetworkAddressTracker = param != null; + + this.localNetworkAddress = param; + } + + /** field for Port */ + protected int localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(int param) { + + // setting primitive attribute tracker to true + localPortTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPort = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ServerJobQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ServerJobQueue", + xmlWriter); + } + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localQueuesTracker) { + if (localQueues == null) { + throw new org.apache.axis2.databinding.ADBException("Queues cannot be null!!"); + } + localQueues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Queues"), xmlWriter); + } + if (localServerNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ServerName", xmlWriter); + + if (localServerName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServerName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServerName); + } + + xmlWriter.writeEndElement(); + } + if (localServerTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ServerType", xmlWriter); + + if (localServerType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServerType); + } + + xmlWriter.writeEndElement(); + } + if (localQueueStatusTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueStatus", xmlWriter); + + if (localQueueStatus == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueStatus cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueStatus); + } + + xmlWriter.writeEndElement(); + } + if (localStatusDetailsTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "StatusDetails", xmlWriter); + + if (localStatusDetails == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StatusDetails cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStatusDetails); + } + + xmlWriter.writeEndElement(); + } + if (localNetworkAddressTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NetworkAddress", xmlWriter); + + if (localNetworkAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetworkAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ServerJobQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ServerJobQueue object = new ServerJobQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ServerJobQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ServerJobQueue) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Queues") + .equals(reader.getName())) { + + object.setQueues( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServerName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServerName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServerType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServerType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueStatus") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueStatus" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueStatus( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusDetails") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StatusDetails" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStatusDetails( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetworkAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetworkAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetBanner.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetBanner.java index b72e91d18..a5d406407 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetBanner.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetBanner.java @@ -1,872 +1,872 @@ -/** - * SetBanner.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** SetBanner bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SetBanner implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetBanner", "ns1"); - - /** field for ChatURL */ - protected java.lang.String localChatURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localChatURLTracker = false; - - public boolean isChatURLSpecified() { - return localChatURLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getChatURL() { - return localChatURL; - } - - /** - * Auto generated setter method - * - * @param param ChatURL - */ - public void setChatURL(java.lang.String param) { - localChatURLTracker = param != null; - - this.localChatURL = param; - } - - /** field for BannerContent */ - protected java.lang.String localBannerContent; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerContentTracker = false; - - public boolean isBannerContentSpecified() { - return localBannerContentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerContent() { - return localBannerContent; - } - - /** - * Auto generated setter method - * - * @param param BannerContent - */ - public void setBannerContent(java.lang.String param) { - localBannerContentTracker = param != null; - - this.localBannerContent = param; - } - - /** field for BannerColor */ - protected java.lang.String localBannerColor; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerColorTracker = false; - - public boolean isBannerColorSpecified() { - return localBannerColorTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerColor() { - return localBannerColor; - } - - /** - * Auto generated setter method - * - * @param param BannerColor - */ - public void setBannerColor(java.lang.String param) { - localBannerColorTracker = param != null; - - this.localBannerColor = param; - } - - /** field for BannerSize */ - protected java.lang.String localBannerSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerSizeTracker = false; - - public boolean isBannerSizeSpecified() { - return localBannerSizeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerSize() { - return localBannerSize; - } - - /** - * Auto generated setter method - * - * @param param BannerSize - */ - public void setBannerSize(java.lang.String param) { - localBannerSizeTracker = param != null; - - this.localBannerSize = param; - } - - /** field for BannerScroll */ - protected java.lang.String localBannerScroll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerScrollTracker = false; - - public boolean isBannerScrollSpecified() { - return localBannerScrollTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBannerScroll() { - return localBannerScroll; - } - - /** - * Auto generated setter method - * - * @param param BannerScroll - */ - public void setBannerScroll(java.lang.String param) { - localBannerScrollTracker = param != null; - - this.localBannerScroll = param; - } - - /** field for BannerAction */ - protected int localBannerAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBannerActionTracker = false; - - public boolean isBannerActionSpecified() { - return localBannerActionTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBannerAction() { - return localBannerAction; - } - - /** - * Auto generated setter method - * - * @param param BannerAction - */ - public void setBannerAction(int param) { - - // setting primitive attribute tracker to true - localBannerActionTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBannerAction = param; - } - - /** field for EnableChatURL */ - protected boolean localEnableChatURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEnableChatURLTracker = false; - - public boolean isEnableChatURLSpecified() { - return localEnableChatURLTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getEnableChatURL() { - return localEnableChatURL; - } - - /** - * Auto generated setter method - * - * @param param EnableChatURL - */ - public void setEnableChatURL(boolean param) { - - // setting primitive attribute tracker to true - localEnableChatURLTracker = true; - - this.localEnableChatURL = param; - } - - /** field for FromSubmitBtn */ - protected boolean localFromSubmitBtn = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFromSubmitBtnTracker = false; - - public boolean isFromSubmitBtnSpecified() { - return localFromSubmitBtnTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFromSubmitBtn() { - return localFromSubmitBtn; - } - - /** - * Auto generated setter method - * - * @param param FromSubmitBtn - */ - public void setFromSubmitBtn(boolean param) { - - // setting primitive attribute tracker to true - localFromSubmitBtnTracker = true; - - this.localFromSubmitBtn = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SetBanner", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SetBanner", xmlWriter); - } - } - if (localChatURLTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ChatURL", xmlWriter); - - if (localChatURL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ChatURL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localChatURL); - } - - xmlWriter.writeEndElement(); - } - if (localBannerContentTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerContent", xmlWriter); - - if (localBannerContent == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerContent cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerContent); - } - - xmlWriter.writeEndElement(); - } - if (localBannerColorTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerColor", xmlWriter); - - if (localBannerColor == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerColor cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerColor); - } - - xmlWriter.writeEndElement(); - } - if (localBannerSizeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerSize", xmlWriter); - - if (localBannerSize == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerSize cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerSize); - } - - xmlWriter.writeEndElement(); - } - if (localBannerScrollTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerScroll", xmlWriter); - - if (localBannerScroll == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BannerScroll cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBannerScroll); - } - - xmlWriter.writeEndElement(); - } - if (localBannerActionTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "BannerAction", xmlWriter); - - if (localBannerAction == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BannerAction cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBannerAction)); - } - - xmlWriter.writeEndElement(); - } - if (localEnableChatURLTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "EnableChatURL", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("EnableChatURL cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableChatURL)); - } - - xmlWriter.writeEndElement(); - } - if (localFromSubmitBtnTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "FromSubmitBtn", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("FromSubmitBtn cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFromSubmitBtn)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SetBanner parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SetBanner object = new SetBanner(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SetBanner".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SetBanner) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ChatURL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ChatURL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setChatURL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerContent") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerContent" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerContent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerColor") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerColor" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerColor( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerScroll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerScroll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerScroll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerAction") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BannerAction" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBannerAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EnableChatURL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EnableChatURL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEnableChatURL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "FromSubmitBtn") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FromSubmitBtn" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFromSubmitBtn( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SetBanner.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** SetBanner bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SetBanner implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetBanner", "ns1"); + + /** field for ChatURL */ + protected java.lang.String localChatURL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localChatURLTracker = false; + + public boolean isChatURLSpecified() { + return localChatURLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getChatURL() { + return localChatURL; + } + + /** + * Auto generated setter method + * + * @param param ChatURL + */ + public void setChatURL(java.lang.String param) { + localChatURLTracker = param != null; + + this.localChatURL = param; + } + + /** field for BannerContent */ + protected java.lang.String localBannerContent; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerContentTracker = false; + + public boolean isBannerContentSpecified() { + return localBannerContentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerContent() { + return localBannerContent; + } + + /** + * Auto generated setter method + * + * @param param BannerContent + */ + public void setBannerContent(java.lang.String param) { + localBannerContentTracker = param != null; + + this.localBannerContent = param; + } + + /** field for BannerColor */ + protected java.lang.String localBannerColor; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerColorTracker = false; + + public boolean isBannerColorSpecified() { + return localBannerColorTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerColor() { + return localBannerColor; + } + + /** + * Auto generated setter method + * + * @param param BannerColor + */ + public void setBannerColor(java.lang.String param) { + localBannerColorTracker = param != null; + + this.localBannerColor = param; + } + + /** field for BannerSize */ + protected java.lang.String localBannerSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerSizeTracker = false; + + public boolean isBannerSizeSpecified() { + return localBannerSizeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerSize() { + return localBannerSize; + } + + /** + * Auto generated setter method + * + * @param param BannerSize + */ + public void setBannerSize(java.lang.String param) { + localBannerSizeTracker = param != null; + + this.localBannerSize = param; + } + + /** field for BannerScroll */ + protected java.lang.String localBannerScroll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerScrollTracker = false; + + public boolean isBannerScrollSpecified() { + return localBannerScrollTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBannerScroll() { + return localBannerScroll; + } + + /** + * Auto generated setter method + * + * @param param BannerScroll + */ + public void setBannerScroll(java.lang.String param) { + localBannerScrollTracker = param != null; + + this.localBannerScroll = param; + } + + /** field for BannerAction */ + protected int localBannerAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBannerActionTracker = false; + + public boolean isBannerActionSpecified() { + return localBannerActionTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBannerAction() { + return localBannerAction; + } + + /** + * Auto generated setter method + * + * @param param BannerAction + */ + public void setBannerAction(int param) { + + // setting primitive attribute tracker to true + localBannerActionTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBannerAction = param; + } + + /** field for EnableChatURL */ + protected boolean localEnableChatURL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEnableChatURLTracker = false; + + public boolean isEnableChatURLSpecified() { + return localEnableChatURLTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getEnableChatURL() { + return localEnableChatURL; + } + + /** + * Auto generated setter method + * + * @param param EnableChatURL + */ + public void setEnableChatURL(boolean param) { + + // setting primitive attribute tracker to true + localEnableChatURLTracker = true; + + this.localEnableChatURL = param; + } + + /** field for FromSubmitBtn */ + protected boolean localFromSubmitBtn = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFromSubmitBtnTracker = false; + + public boolean isFromSubmitBtnSpecified() { + return localFromSubmitBtnTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFromSubmitBtn() { + return localFromSubmitBtn; + } + + /** + * Auto generated setter method + * + * @param param FromSubmitBtn + */ + public void setFromSubmitBtn(boolean param) { + + // setting primitive attribute tracker to true + localFromSubmitBtnTracker = true; + + this.localFromSubmitBtn = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SetBanner", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SetBanner", xmlWriter); + } + } + if (localChatURLTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ChatURL", xmlWriter); + + if (localChatURL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ChatURL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localChatURL); + } + + xmlWriter.writeEndElement(); + } + if (localBannerContentTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerContent", xmlWriter); + + if (localBannerContent == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerContent cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerContent); + } + + xmlWriter.writeEndElement(); + } + if (localBannerColorTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerColor", xmlWriter); + + if (localBannerColor == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerColor cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerColor); + } + + xmlWriter.writeEndElement(); + } + if (localBannerSizeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerSize", xmlWriter); + + if (localBannerSize == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerSize cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerSize); + } + + xmlWriter.writeEndElement(); + } + if (localBannerScrollTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerScroll", xmlWriter); + + if (localBannerScroll == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BannerScroll cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBannerScroll); + } + + xmlWriter.writeEndElement(); + } + if (localBannerActionTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "BannerAction", xmlWriter); + + if (localBannerAction == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BannerAction cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBannerAction)); + } + + xmlWriter.writeEndElement(); + } + if (localEnableChatURLTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "EnableChatURL", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("EnableChatURL cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableChatURL)); + } + + xmlWriter.writeEndElement(); + } + if (localFromSubmitBtnTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "FromSubmitBtn", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("FromSubmitBtn cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFromSubmitBtn)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SetBanner parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SetBanner object = new SetBanner(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SetBanner".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SetBanner) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ChatURL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ChatURL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setChatURL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerContent") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerContent" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerContent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerColor") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerColor" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerColor( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerScroll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerScroll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerScroll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BannerAction") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BannerAction" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBannerAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "EnableChatURL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EnableChatURL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEnableChatURL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "FromSubmitBtn") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FromSubmitBtn" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFromSubmitBtn( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetBannerResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetBannerResponse.java index 418e9b8b3..4439038b3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetBannerResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetBannerResponse.java @@ -1,380 +1,380 @@ -/** - * SetBannerResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** SetBannerResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SetBannerResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetBannerResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SetBannerResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SetBannerResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SetBannerResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SetBannerResponse object = new SetBannerResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SetBannerResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SetBannerResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SetBannerResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** SetBannerResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SetBannerResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetBannerResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SetBannerResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SetBannerResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SetBannerResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SetBannerResponse object = new SetBannerResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SetBannerResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SetBannerResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetJobPriority.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetJobPriority.java index e96976145..b30602c8f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetJobPriority.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/SetJobPriority.java @@ -1,583 +1,583 @@ -/** - * SetJobPriority.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** SetJobPriority bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SetJobPriority implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetJobPriority", "ns1"); - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for SMCJobs */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob localSMCJobs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSMCJobsTracker = false; - - public boolean isSMCJobsSpecified() { - return localSMCJobsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob getSMCJobs() { - return localSMCJobs; - } - - /** - * Auto generated setter method - * - * @param param SMCJobs - */ - public void setSMCJobs(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob param) { - localSMCJobsTracker = param != null; - - this.localSMCJobs = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SetJobPriority", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SetJobPriority", - xmlWriter); - } - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localSMCJobsTracker) { - if (localSMCJobs == null) { - throw new org.apache.axis2.databinding.ADBException("SMCJobs cannot be null!!"); - } - localSMCJobs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJobs"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SetJobPriority parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SetJobPriority object = new SetJobPriority(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SetJobPriority".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SetJobPriority) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJobs") - .equals(reader.getName())) { - - object.setSMCJobs( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SetJobPriority.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** SetJobPriority bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SetJobPriority implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetJobPriority", "ns1"); + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for SMCJobs */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob localSMCJobs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSMCJobsTracker = false; + + public boolean isSMCJobsSpecified() { + return localSMCJobsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob getSMCJobs() { + return localSMCJobs; + } + + /** + * Auto generated setter method + * + * @param param SMCJobs + */ + public void setSMCJobs(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob param) { + localSMCJobsTracker = param != null; + + this.localSMCJobs = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SetJobPriority", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SetJobPriority", + xmlWriter); + } + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localSMCJobsTracker) { + if (localSMCJobs == null) { + throw new org.apache.axis2.databinding.ADBException("SMCJobs cannot be null!!"); + } + localSMCJobs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJobs"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SetJobPriority parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SetJobPriority object = new SetJobPriority(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SetJobPriority".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SetJobPriority) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SMCJobs") + .equals(reader.getName())) { + + object.setSMCJobs( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/StatusServerInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/StatusServerInfo.java index 33707cb87..08a0687c5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/StatusServerInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/StatusServerInfo.java @@ -1,487 +1,487 @@ -/** - * StatusServerInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** StatusServerInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class StatusServerInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = StatusServerInfo - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for TargetClusterInfo */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster localTargetClusterInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetClusterInfoTracker = false; - - public boolean isTargetClusterInfoSpecified() { - return localTargetClusterInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster getTargetClusterInfo() { - return localTargetClusterInfo; - } - - /** - * Auto generated setter method - * - * @param param TargetClusterInfo - */ - public void setTargetClusterInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster param) { - localTargetClusterInfoTracker = param != null; - - this.localTargetClusterInfo = param; - } - - /** field for ServerInfo */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue localServerInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerInfoTracker = false; - - public boolean isServerInfoSpecified() { - return localServerInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue getServerInfo() { - return localServerInfo; - } - - /** - * Auto generated setter method - * - * @param param ServerInfo - */ - public void setServerInfo(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue param) { - localServerInfoTracker = param != null; - - this.localServerInfo = param; - } - - /** field for Workunits */ - protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit localWorkunits; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitsTracker = false; - - public boolean isWorkunitsSpecified() { - return localWorkunitsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit getWorkunits() { - return localWorkunits; - } - - /** - * Auto generated setter method - * - * @param param Workunits - */ - public void setWorkunits( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit param) { - localWorkunitsTracker = param != null; - - this.localWorkunits = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":StatusServerInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "StatusServerInfo", - xmlWriter); - } - } - if (localTargetClusterInfoTracker) { - if (localTargetClusterInfo == null) { - throw new org.apache.axis2.databinding.ADBException("TargetClusterInfo cannot be null!!"); - } - localTargetClusterInfo.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetClusterInfo"), - xmlWriter); - } - if (localServerInfoTracker) { - if (localServerInfo == null) { - throw new org.apache.axis2.databinding.ADBException("ServerInfo cannot be null!!"); - } - localServerInfo.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerInfo"), xmlWriter); - } - if (localWorkunitsTracker) { - if (localWorkunits == null) { - throw new org.apache.axis2.databinding.ADBException("Workunits cannot be null!!"); - } - localWorkunits.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Workunits"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static StatusServerInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - StatusServerInfo object = new StatusServerInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"StatusServerInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (StatusServerInfo) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetClusterInfo") - .equals(reader.getName())) { - - object.setTargetClusterInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerInfo") - .equals(reader.getName())) { - - object.setServerInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Workunits") - .equals(reader.getName())) { - - object.setWorkunits( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * StatusServerInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** StatusServerInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class StatusServerInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = StatusServerInfo + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for TargetClusterInfo */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster localTargetClusterInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetClusterInfoTracker = false; + + public boolean isTargetClusterInfoSpecified() { + return localTargetClusterInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster getTargetClusterInfo() { + return localTargetClusterInfo; + } + + /** + * Auto generated setter method + * + * @param param TargetClusterInfo + */ + public void setTargetClusterInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster param) { + localTargetClusterInfoTracker = param != null; + + this.localTargetClusterInfo = param; + } + + /** field for ServerInfo */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue localServerInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerInfoTracker = false; + + public boolean isServerInfoSpecified() { + return localServerInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue getServerInfo() { + return localServerInfo; + } + + /** + * Auto generated setter method + * + * @param param ServerInfo + */ + public void setServerInfo(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue param) { + localServerInfoTracker = param != null; + + this.localServerInfo = param; + } + + /** field for Workunits */ + protected org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit localWorkunits; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitsTracker = false; + + public boolean isWorkunitsSpecified() { + return localWorkunitsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit getWorkunits() { + return localWorkunits; + } + + /** + * Auto generated setter method + * + * @param param Workunits + */ + public void setWorkunits( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit param) { + localWorkunitsTracker = param != null; + + this.localWorkunits = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":StatusServerInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "StatusServerInfo", + xmlWriter); + } + } + if (localTargetClusterInfoTracker) { + if (localTargetClusterInfo == null) { + throw new org.apache.axis2.databinding.ADBException("TargetClusterInfo cannot be null!!"); + } + localTargetClusterInfo.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetClusterInfo"), + xmlWriter); + } + if (localServerInfoTracker) { + if (localServerInfo == null) { + throw new org.apache.axis2.databinding.ADBException("ServerInfo cannot be null!!"); + } + localServerInfo.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerInfo"), xmlWriter); + } + if (localWorkunitsTracker) { + if (localWorkunits == null) { + throw new org.apache.axis2.databinding.ADBException("Workunits cannot be null!!"); + } + localWorkunits.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Workunits"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static StatusServerInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + StatusServerInfo object = new StatusServerInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"StatusServerInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (StatusServerInfo) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "TargetClusterInfo") + .equals(reader.getName())) { + + object.setTargetClusterInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerInfo") + .equals(reader.getName())) { + + object.setServerInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Workunits") + .equals(reader.getName())) { + + object.setWorkunits( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/StopQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/StopQueue.java index b3a383d87..ad4bc7fc2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/StopQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/StopQueue.java @@ -1,733 +1,733 @@ -/** - * StopQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** StopQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class StopQueue implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StopQueue", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for ServerType */ - protected java.lang.String localServerType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerTypeTracker = false; - - public boolean isServerTypeSpecified() { - return localServerTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServerType() { - return localServerType; - } - - /** - * Auto generated setter method - * - * @param param ServerType - */ - public void setServerType(java.lang.String param) { - localServerTypeTracker = param != null; - - this.localServerType = param; - } - - /** field for NetworkAddress */ - protected java.lang.String localNetworkAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetworkAddressTracker = false; - - public boolean isNetworkAddressSpecified() { - return localNetworkAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetworkAddress() { - return localNetworkAddress; - } - - /** - * Auto generated setter method - * - * @param param NetworkAddress - */ - public void setNetworkAddress(java.lang.String param) { - localNetworkAddressTracker = param != null; - - this.localNetworkAddress = param; - } - - /** field for Port */ - protected int localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(int param) { - - // setting primitive attribute tracker to true - localPortTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPort = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":StopQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "StopQueue", xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localServerTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ServerType", xmlWriter); - - if (localServerType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServerType); - } - - xmlWriter.writeEndElement(); - } - if (localNetworkAddressTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "NetworkAddress", xmlWriter); - - if (localNetworkAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetworkAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static StopQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - StopQueue object = new StopQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"StopQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (StopQueue) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServerType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServerType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetworkAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetworkAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * StopQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** StopQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class StopQueue implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StopQueue", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for ServerType */ + protected java.lang.String localServerType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerTypeTracker = false; + + public boolean isServerTypeSpecified() { + return localServerTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServerType() { + return localServerType; + } + + /** + * Auto generated setter method + * + * @param param ServerType + */ + public void setServerType(java.lang.String param) { + localServerTypeTracker = param != null; + + this.localServerType = param; + } + + /** field for NetworkAddress */ + protected java.lang.String localNetworkAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetworkAddressTracker = false; + + public boolean isNetworkAddressSpecified() { + return localNetworkAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetworkAddress() { + return localNetworkAddress; + } + + /** + * Auto generated setter method + * + * @param param NetworkAddress + */ + public void setNetworkAddress(java.lang.String param) { + localNetworkAddressTracker = param != null; + + this.localNetworkAddress = param; + } + + /** field for Port */ + protected int localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(int param) { + + // setting primitive attribute tracker to true + localPortTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPort = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":StopQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "StopQueue", xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localServerTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ServerType", xmlWriter); + + if (localServerType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServerType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServerType); + } + + xmlWriter.writeEndElement(); + } + if (localNetworkAddressTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NetworkAddress", xmlWriter); + + if (localNetworkAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetworkAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static StopQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + StopQueue object = new StopQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"StopQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (StopQueue) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ServerType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServerType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServerType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetworkAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetworkAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetworkAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/String.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/String.java index 5c335d98e..b40760939 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/String.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/String.java @@ -1,360 +1,360 @@ -/** - * String.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** String bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class String implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "string", "ns1"); - - /** field for String */ - protected java.lang.String localString; - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getString() { - return localString; - } - - /** - * Auto generated setter method - * - * @param param String - */ - public void setString(java.lang.String param) { - - this.localString = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - java.lang.String namespace = "urn:hpccsystems:ws:wssmc"; - java.lang.String _localName = "string"; - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":string", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); - } - } - - if (localString == null) { - - // write the nil attribute - writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); - - } else { - - xmlWriter.writeCharacters(localString); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - String object = new String(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - // Skip the element and report the null value. It cannot have subelements. - while (!reader.isEndElement()) reader.next(); - - return object; - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "string") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { - - java.lang.String content = reader.getElementText(); - - object.setString( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - } else { - - reader.getElementText(); // throw away text nodes if any. - } - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * String.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** String bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class String implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "string", "ns1"); + + /** field for String */ + protected java.lang.String localString; + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getString() { + return localString; + } + + /** + * Auto generated setter method + * + * @param param String + */ + public void setString(java.lang.String param) { + + this.localString = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + java.lang.String namespace = "urn:hpccsystems:ws:wssmc"; + java.lang.String _localName = "string"; + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":string", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); + } + } + + if (localString == null) { + + // write the nil attribute + writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); + + } else { + + xmlWriter.writeCharacters(localString); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + String object = new String(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + // Skip the element and report the null value. It cannot have subelements. + while (!reader.isEndElement()) reader.next(); + + return object; + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "string") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { + + java.lang.String content = reader.getElementText(); + + object.setString( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + } else { + + reader.getElementText(); // throw away text nodes if any. + } + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/TargetCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/TargetCluster.java index 3a3914567..d2ef3655b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/TargetCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/TargetCluster.java @@ -1,874 +1,874 @@ -/** - * TargetCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** TargetCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TargetCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TargetCluster - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for QueueStatus */ - protected java.lang.String localQueueStatus; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueStatusTracker = false; - - public boolean isQueueStatusSpecified() { - return localQueueStatusTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueStatus() { - return localQueueStatus; - } - - /** - * Auto generated setter method - * - * @param param QueueStatus - */ - public void setQueueStatus(java.lang.String param) { - localQueueStatusTracker = param != null; - - this.localQueueStatus = param; - } - - /** field for StatusDetails */ - protected java.lang.String localStatusDetails; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusDetailsTracker = false; - - public boolean isStatusDetailsSpecified() { - return localStatusDetailsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStatusDetails() { - return localStatusDetails; - } - - /** - * Auto generated setter method - * - * @param param StatusDetails - */ - public void setStatusDetails(java.lang.String param) { - localStatusDetailsTracker = param != null; - - this.localStatusDetails = param; - } - - /** field for Warning */ - protected java.lang.String localWarning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarningTracker = false; - - public boolean isWarningSpecified() { - return localWarningTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWarning() { - return localWarning; - } - - /** - * Auto generated setter method - * - * @param param Warning - */ - public void setWarning(java.lang.String param) { - localWarningTracker = param != null; - - this.localWarning = param; - } - - /** field for ClusterType */ - protected int localClusterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTypeTracker = false; - - public boolean isClusterTypeSpecified() { - return localClusterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterType() { - return localClusterType; - } - - /** - * Auto generated setter method - * - * @param param ClusterType - */ - public void setClusterType(int param) { - - // setting primitive attribute tracker to true - localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterType = param; - } - - /** field for ClusterSize */ - protected int localClusterSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterSizeTracker = false; - - public boolean isClusterSizeSpecified() { - return localClusterSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterSize() { - return localClusterSize; - } - - /** - * Auto generated setter method - * - * @param param ClusterSize - */ - public void setClusterSize(int param) { - - // setting primitive attribute tracker to true - localClusterSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterSize = param; - } - - /** field for ClusterStatus */ - protected int localClusterStatus; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterStatusTracker = false; - - public boolean isClusterStatusSpecified() { - return localClusterStatusTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterStatus() { - return localClusterStatus; - } - - /** - * Auto generated setter method - * - * @param param ClusterStatus - */ - public void setClusterStatus(int param) { - - // setting primitive attribute tracker to true - localClusterStatusTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterStatus = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TargetCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TargetCluster", xmlWriter); - } - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localQueueStatusTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueStatus", xmlWriter); - - if (localQueueStatus == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueStatus cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueStatus); - } - - xmlWriter.writeEndElement(); - } - if (localStatusDetailsTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "StatusDetails", xmlWriter); - - if (localStatusDetails == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StatusDetails cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStatusDetails); - } - - xmlWriter.writeEndElement(); - } - if (localWarningTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "Warning", xmlWriter); - - if (localWarning == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWarning); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTypeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterType", xmlWriter); - - if (localClusterType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterSizeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterSize", xmlWriter); - - if (localClusterSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterSize)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterStatusTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterStatus", xmlWriter); - - if (localClusterStatus == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterStatus cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterStatus)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TargetCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TargetCluster object = new TargetCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TargetCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TargetCluster) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueStatus") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueStatus" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueStatus( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusDetails") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StatusDetails" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStatusDetails( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Warning") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Warning" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterStatus") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterStatus" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterStatus( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TargetCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** TargetCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TargetCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TargetCluster + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for QueueStatus */ + protected java.lang.String localQueueStatus; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueStatusTracker = false; + + public boolean isQueueStatusSpecified() { + return localQueueStatusTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueStatus() { + return localQueueStatus; + } + + /** + * Auto generated setter method + * + * @param param QueueStatus + */ + public void setQueueStatus(java.lang.String param) { + localQueueStatusTracker = param != null; + + this.localQueueStatus = param; + } + + /** field for StatusDetails */ + protected java.lang.String localStatusDetails; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusDetailsTracker = false; + + public boolean isStatusDetailsSpecified() { + return localStatusDetailsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStatusDetails() { + return localStatusDetails; + } + + /** + * Auto generated setter method + * + * @param param StatusDetails + */ + public void setStatusDetails(java.lang.String param) { + localStatusDetailsTracker = param != null; + + this.localStatusDetails = param; + } + + /** field for Warning */ + protected java.lang.String localWarning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarningTracker = false; + + public boolean isWarningSpecified() { + return localWarningTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWarning() { + return localWarning; + } + + /** + * Auto generated setter method + * + * @param param Warning + */ + public void setWarning(java.lang.String param) { + localWarningTracker = param != null; + + this.localWarning = param; + } + + /** field for ClusterType */ + protected int localClusterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTypeTracker = false; + + public boolean isClusterTypeSpecified() { + return localClusterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterType() { + return localClusterType; + } + + /** + * Auto generated setter method + * + * @param param ClusterType + */ + public void setClusterType(int param) { + + // setting primitive attribute tracker to true + localClusterTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterType = param; + } + + /** field for ClusterSize */ + protected int localClusterSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterSizeTracker = false; + + public boolean isClusterSizeSpecified() { + return localClusterSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterSize() { + return localClusterSize; + } + + /** + * Auto generated setter method + * + * @param param ClusterSize + */ + public void setClusterSize(int param) { + + // setting primitive attribute tracker to true + localClusterSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterSize = param; + } + + /** field for ClusterStatus */ + protected int localClusterStatus; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterStatusTracker = false; + + public boolean isClusterStatusSpecified() { + return localClusterStatusTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterStatus() { + return localClusterStatus; + } + + /** + * Auto generated setter method + * + * @param param ClusterStatus + */ + public void setClusterStatus(int param) { + + // setting primitive attribute tracker to true + localClusterStatusTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterStatus = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TargetCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TargetCluster", xmlWriter); + } + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localQueueStatusTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueStatus", xmlWriter); + + if (localQueueStatus == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueStatus cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueStatus); + } + + xmlWriter.writeEndElement(); + } + if (localStatusDetailsTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "StatusDetails", xmlWriter); + + if (localStatusDetails == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StatusDetails cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStatusDetails); + } + + xmlWriter.writeEndElement(); + } + if (localWarningTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "Warning", xmlWriter); + + if (localWarning == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWarning); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTypeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterType", xmlWriter); + + if (localClusterType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterType)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterSizeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterSize", xmlWriter); + + if (localClusterSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterSize)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterStatusTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterStatus", xmlWriter); + + if (localClusterStatus == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterStatus cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterStatus)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TargetCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TargetCluster object = new TargetCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TargetCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TargetCluster) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueStatus") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueStatus" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueStatus( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StatusDetails") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StatusDetails" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStatusDetails( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Warning") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Warning" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterStatus") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterStatus" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterStatus( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ThorCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ThorCluster.java index 760c0b5e4..45f2f7059 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ThorCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/ThorCluster.java @@ -1,944 +1,944 @@ -/** - * ThorCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** ThorCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ThorCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ThorCluster - Namespace URI = urn:hpccsystems:ws:wssmc - Namespace Prefix = ns1 - */ - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for QueueStatus */ - protected java.lang.String localQueueStatus; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueStatusTracker = false; - - public boolean isQueueStatusSpecified() { - return localQueueStatusTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueStatus() { - return localQueueStatus; - } - - /** - * Auto generated setter method - * - * @param param QueueStatus - */ - public void setQueueStatus(java.lang.String param) { - localQueueStatusTracker = param != null; - - this.localQueueStatus = param; - } - - /** field for QueueAvailable */ - protected int localQueueAvailable; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueAvailableTracker = false; - - public boolean isQueueAvailableSpecified() { - return localQueueAvailableTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getQueueAvailable() { - return localQueueAvailable; - } - - /** - * Auto generated setter method - * - * @param param QueueAvailable - */ - public void setQueueAvailable(int param) { - - // setting primitive attribute tracker to true - localQueueAvailableTracker = param != java.lang.Integer.MIN_VALUE; - - this.localQueueAvailable = param; - } - - /** field for JobsRunning */ - protected int localJobsRunning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobsRunningTracker = false; - - public boolean isJobsRunningSpecified() { - return localJobsRunningTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getJobsRunning() { - return localJobsRunning; - } - - /** - * Auto generated setter method - * - * @param param JobsRunning - */ - public void setJobsRunning(int param) { - - // setting primitive attribute tracker to true - localJobsRunningTracker = param != java.lang.Integer.MIN_VALUE; - - this.localJobsRunning = param; - } - - /** field for JobsInQueue */ - protected int localJobsInQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobsInQueueTracker = false; - - public boolean isJobsInQueueSpecified() { - return localJobsInQueueTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getJobsInQueue() { - return localJobsInQueue; - } - - /** - * Auto generated setter method - * - * @param param JobsInQueue - */ - public void setJobsInQueue(int param) { - - // setting primitive attribute tracker to true - localJobsInQueueTracker = param != java.lang.Integer.MIN_VALUE; - - this.localJobsInQueue = param; - } - - /** field for QueueStatus2 */ - protected int localQueueStatus2; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueStatus2Tracker = false; - - public boolean isQueueStatus2Specified() { - return localQueueStatus2Tracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getQueueStatus2() { - return localQueueStatus2; - } - - /** - * Auto generated setter method - * - * @param param QueueStatus2 - */ - public void setQueueStatus2(int param) { - - // setting primitive attribute tracker to true - localQueueStatus2Tracker = param != java.lang.Integer.MIN_VALUE; - - this.localQueueStatus2 = param; - } - - /** field for ThorLCR */ - protected java.lang.String localThorLCR; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorLCRTracker = false; - - public boolean isThorLCRSpecified() { - return localThorLCRTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorLCR() { - return localThorLCR; - } - - /** - * Auto generated setter method - * - * @param param ThorLCR - */ - public void setThorLCR(java.lang.String param) { - localThorLCRTracker = param != null; - - this.localThorLCR = param; - } - - /** field for ClusterSize */ - protected int localClusterSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterSizeTracker = false; - - public boolean isClusterSizeSpecified() { - return localClusterSizeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterSize() { - return localClusterSize; - } - - /** - * Auto generated setter method - * - * @param param ClusterSize - */ - public void setClusterSize(int param) { - - // setting primitive attribute tracker to true - localClusterSizeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterSize = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ThorCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ThorCluster", xmlWriter); - } - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localQueueStatusTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueStatus", xmlWriter); - - if (localQueueStatus == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueStatus cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueStatus); - } - - xmlWriter.writeEndElement(); - } - if (localQueueAvailableTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueAvailable", xmlWriter); - - if (localQueueAvailable == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("QueueAvailable cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueueAvailable)); - } - - xmlWriter.writeEndElement(); - } - if (localJobsRunningTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "JobsRunning", xmlWriter); - - if (localJobsRunning == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("JobsRunning cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localJobsRunning)); - } - - xmlWriter.writeEndElement(); - } - if (localJobsInQueueTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "JobsInQueue", xmlWriter); - - if (localJobsInQueue == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("JobsInQueue cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localJobsInQueue)); - } - - xmlWriter.writeEndElement(); - } - if (localQueueStatus2Tracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "QueueStatus2", xmlWriter); - - if (localQueueStatus2 == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("QueueStatus2 cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueueStatus2)); - } - - xmlWriter.writeEndElement(); - } - if (localThorLCRTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ThorLCR", xmlWriter); - - if (localThorLCR == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorLCR cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorLCR); - } - - xmlWriter.writeEndElement(); - } - if (localClusterSizeTracker) { - namespace = "urn:hpccsystems:ws:wssmc"; - writeStartElement(null, namespace, "ClusterSize", xmlWriter); - - if (localClusterSize == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterSize)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ThorCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ThorCluster object = new ThorCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ThorCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ThorCluster) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueStatus") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueStatus" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueStatus( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueAvailable") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueAvailable" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueAvailable( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "JobsRunning") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobsRunning" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobsRunning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "JobsInQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobsInQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobsInQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueStatus2") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueStatus2" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueStatus2( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorLCR") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorLCR" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorLCR( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ThorCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** ThorCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ThorCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ThorCluster + Namespace URI = urn:hpccsystems:ws:wssmc + Namespace Prefix = ns1 + */ + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for QueueStatus */ + protected java.lang.String localQueueStatus; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueStatusTracker = false; + + public boolean isQueueStatusSpecified() { + return localQueueStatusTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueStatus() { + return localQueueStatus; + } + + /** + * Auto generated setter method + * + * @param param QueueStatus + */ + public void setQueueStatus(java.lang.String param) { + localQueueStatusTracker = param != null; + + this.localQueueStatus = param; + } + + /** field for QueueAvailable */ + protected int localQueueAvailable; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueAvailableTracker = false; + + public boolean isQueueAvailableSpecified() { + return localQueueAvailableTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getQueueAvailable() { + return localQueueAvailable; + } + + /** + * Auto generated setter method + * + * @param param QueueAvailable + */ + public void setQueueAvailable(int param) { + + // setting primitive attribute tracker to true + localQueueAvailableTracker = param != java.lang.Integer.MIN_VALUE; + + this.localQueueAvailable = param; + } + + /** field for JobsRunning */ + protected int localJobsRunning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobsRunningTracker = false; + + public boolean isJobsRunningSpecified() { + return localJobsRunningTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getJobsRunning() { + return localJobsRunning; + } + + /** + * Auto generated setter method + * + * @param param JobsRunning + */ + public void setJobsRunning(int param) { + + // setting primitive attribute tracker to true + localJobsRunningTracker = param != java.lang.Integer.MIN_VALUE; + + this.localJobsRunning = param; + } + + /** field for JobsInQueue */ + protected int localJobsInQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobsInQueueTracker = false; + + public boolean isJobsInQueueSpecified() { + return localJobsInQueueTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getJobsInQueue() { + return localJobsInQueue; + } + + /** + * Auto generated setter method + * + * @param param JobsInQueue + */ + public void setJobsInQueue(int param) { + + // setting primitive attribute tracker to true + localJobsInQueueTracker = param != java.lang.Integer.MIN_VALUE; + + this.localJobsInQueue = param; + } + + /** field for QueueStatus2 */ + protected int localQueueStatus2; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueStatus2Tracker = false; + + public boolean isQueueStatus2Specified() { + return localQueueStatus2Tracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getQueueStatus2() { + return localQueueStatus2; + } + + /** + * Auto generated setter method + * + * @param param QueueStatus2 + */ + public void setQueueStatus2(int param) { + + // setting primitive attribute tracker to true + localQueueStatus2Tracker = param != java.lang.Integer.MIN_VALUE; + + this.localQueueStatus2 = param; + } + + /** field for ThorLCR */ + protected java.lang.String localThorLCR; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorLCRTracker = false; + + public boolean isThorLCRSpecified() { + return localThorLCRTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorLCR() { + return localThorLCR; + } + + /** + * Auto generated setter method + * + * @param param ThorLCR + */ + public void setThorLCR(java.lang.String param) { + localThorLCRTracker = param != null; + + this.localThorLCR = param; + } + + /** field for ClusterSize */ + protected int localClusterSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterSizeTracker = false; + + public boolean isClusterSizeSpecified() { + return localClusterSizeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterSize() { + return localClusterSize; + } + + /** + * Auto generated setter method + * + * @param param ClusterSize + */ + public void setClusterSize(int param) { + + // setting primitive attribute tracker to true + localClusterSizeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterSize = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ThorCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ThorCluster", xmlWriter); + } + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localQueueStatusTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueStatus", xmlWriter); + + if (localQueueStatus == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueStatus cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueStatus); + } + + xmlWriter.writeEndElement(); + } + if (localQueueAvailableTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueAvailable", xmlWriter); + + if (localQueueAvailable == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("QueueAvailable cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueueAvailable)); + } + + xmlWriter.writeEndElement(); + } + if (localJobsRunningTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "JobsRunning", xmlWriter); + + if (localJobsRunning == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("JobsRunning cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localJobsRunning)); + } + + xmlWriter.writeEndElement(); + } + if (localJobsInQueueTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "JobsInQueue", xmlWriter); + + if (localJobsInQueue == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("JobsInQueue cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localJobsInQueue)); + } + + xmlWriter.writeEndElement(); + } + if (localQueueStatus2Tracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "QueueStatus2", xmlWriter); + + if (localQueueStatus2 == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("QueueStatus2 cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueueStatus2)); + } + + xmlWriter.writeEndElement(); + } + if (localThorLCRTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ThorLCR", xmlWriter); + + if (localThorLCR == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorLCR cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorLCR); + } + + xmlWriter.writeEndElement(); + } + if (localClusterSizeTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "ClusterSize", xmlWriter); + + if (localClusterSize == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterSize)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ThorCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ThorCluster object = new ThorCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ThorCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ThorCluster) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueStatus") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueStatus" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueStatus( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueAvailable") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueAvailable" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueAvailable( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "JobsRunning") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobsRunning" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobsRunning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "JobsInQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobsInQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobsInQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "QueueStatus2") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueStatus2" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueStatus2( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ThorLCR") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorLCR" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorLCR( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClusterSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMC.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMC.java index fbbee2b7f..168d912c0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMC.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMC.java @@ -1,263 +1,263 @@ -/** - * WsSMC.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/* - * WsSMC java interface - */ - -public interface WsSMC { - - /** - * Auto generated method signature - * - * @param lockQuery - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse lockQuery( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery lockQuery) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param pauseQueue - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse pauseQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue pauseQueue) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param resumeQueue - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse resumeQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue resumeQueue) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param index - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse index( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index index) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param activity - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse activity( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity activity) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param moveJobDown - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobDown( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown moveJobDown) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param setBanner - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse setBanner( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner setBanner) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param moveJobBack - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobBack( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack moveJobBack) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getStatusServerInfo - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse - getStatusServerInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo getStatusServerInfo) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param moveJobUp - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobUp( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp moveJobUp) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param roxieControlCmd - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse roxieControlCmd( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd roxieControlCmd) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param ping - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping ping) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param browseResources - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse browseResources( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources browseResources) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getBuildInfo - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse getBuildInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo getBuildInfo) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param clearQueue - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse clearQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue clearQueue) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param getThorQueueAvailability - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse - getThorQueueAvailability( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability - getThorQueueAvailability) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param moveJobFront - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobFront( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront moveJobFront) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param roxieXrefCmd - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse roxieXrefCmd( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd roxieXrefCmd) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param stopQueue - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse stopQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue stopQueue) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param removeJob - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse removeJob( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob removeJob) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param setJobPriority - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse setJobPriority( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority setJobPriority) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param notInCommunityEdition - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse - notInCommunityEdition( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition - notInCommunityEdition) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; - - // -} +/** + * WsSMC.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/* + * WsSMC java interface + */ + +public interface WsSMC { + + /** + * Auto generated method signature + * + * @param lockQuery + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse lockQuery( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery lockQuery) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param pauseQueue + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse pauseQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue pauseQueue) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param resumeQueue + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse resumeQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue resumeQueue) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param index + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse index( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index index) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param activity + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse activity( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity activity) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param moveJobDown + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobDown( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown moveJobDown) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param setBanner + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse setBanner( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner setBanner) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param moveJobBack + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobBack( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack moveJobBack) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getStatusServerInfo + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse + getStatusServerInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo getStatusServerInfo) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param moveJobUp + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobUp( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp moveJobUp) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param roxieControlCmd + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse roxieControlCmd( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd roxieControlCmd) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param ping + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping ping) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param browseResources + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse browseResources( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources browseResources) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getBuildInfo + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse getBuildInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo getBuildInfo) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param clearQueue + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse clearQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue clearQueue) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param getThorQueueAvailability + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse + getThorQueueAvailability( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability + getThorQueueAvailability) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param moveJobFront + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobFront( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront moveJobFront) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param roxieXrefCmd + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse roxieXrefCmd( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd roxieXrefCmd) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param stopQueue + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse stopQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue stopQueue) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param removeJob + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse removeJob( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob removeJob) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param setJobPriority + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse setJobPriority( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority setJobPriority) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param notInCommunityEdition + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse + notInCommunityEdition( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition + notInCommunityEdition) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault; + + // +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMCPingResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMCPingResponse.java index 2beb1c269..93a123039 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMCPingResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMCPingResponse.java @@ -1,314 +1,314 @@ -/** - * WsSMCPingResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/** WsSMCPingResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsSMCPingResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "WsSMCPingResponse", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsSMCPingResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsSMCPingResponse", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wssmc")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsSMCPingResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsSMCPingResponse object = new WsSMCPingResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsSMCPingResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsSMCPingResponse) - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( - nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsSMCPingResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/** WsSMCPingResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsSMCPingResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "WsSMCPingResponse", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wssmc"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsSMCPingResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsSMCPingResponse", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wssmc")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsSMCPingResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsSMCPingResponse object = new WsSMCPingResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsSMCPingResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsSMCPingResponse) + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ExtensionMapper.getTypeObject( + nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMCStub.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMCStub.java index 147860e0c..6585b457c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMCStub.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/WsSMCStub.java @@ -1,4700 +1,4700 @@ -/** - * WsSMCStub.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; - -/* - * WsSMCStub java implementation - */ - -public class WsSMCStub extends org.apache.axis2.client.Stub implements WsSMC { - protected org.apache.axis2.description.AxisOperation[] _operations; - - // hashmaps to keep the fault mapping - private java.util.Map - faultExceptionNameMap = - new java.util.HashMap(); - private java.util.Map - faultExceptionClassNameMap = - new java.util.HashMap(); - private java.util.Map faultMessageMap = - new java.util.HashMap(); - - private static int counter = 0; - - private static synchronized java.lang.String getUniqueSuffix() { - // reset the counter if it is greater than 99999 - if (counter > 99999) { - counter = 0; - } - counter = counter + 1; - return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; - } - - private void populateAxisService() throws org.apache.axis2.AxisFault { - - // creating the Service with a unique name - _service = new org.apache.axis2.description.AxisService("WsSMC" + getUniqueSuffix()); - addAnonymousOperations(); - - // creating the operations - org.apache.axis2.description.AxisOperation __operation; - - _operations = new org.apache.axis2.description.AxisOperation[22]; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "lockQuery")); - _service.addOperation(__operation); - - _operations[0] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "pauseQueue")); - _service.addOperation(__operation); - - _operations[1] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "resumeQueue")); - _service.addOperation(__operation); - - _operations[2] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "index")); - _service.addOperation(__operation); - - _operations[3] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "activity")); - _service.addOperation(__operation); - - _operations[4] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobDown")); - _service.addOperation(__operation); - - _operations[5] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "setBanner")); - _service.addOperation(__operation); - - _operations[6] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobBack")); - _service.addOperation(__operation); - - _operations[7] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getStatusServerInfo")); - _service.addOperation(__operation); - - _operations[8] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobUp")); - _service.addOperation(__operation); - - _operations[9] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "roxieControlCmd")); - _service.addOperation(__operation); - - _operations[10] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ping")); - _service.addOperation(__operation); - - _operations[11] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "browseResources")); - _service.addOperation(__operation); - - _operations[12] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getBuildInfo")); - _service.addOperation(__operation); - - _operations[13] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "clearQueue")); - _service.addOperation(__operation); - - _operations[14] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getThorQueueAvailability")); - _service.addOperation(__operation); - - _operations[15] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobFront")); - _service.addOperation(__operation); - - _operations[16] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "roxieXrefCmd")); - _service.addOperation(__operation); - - _operations[17] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "stopQueue")); - _service.addOperation(__operation); - - _operations[18] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "removeJob")); - _service.addOperation(__operation); - - _operations[19] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "setJobPriority")); - _service.addOperation(__operation); - - _operations[20] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "notInCommunityEdition")); - _service.addOperation(__operation); - - _operations[21] = __operation; - } - - // populates the faults - private void populateFaults() { - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "LockQuery"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "LockQuery"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "LockQuery"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "PauseQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "PauseQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "PauseQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ResumeQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ResumeQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ResumeQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Index"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Index"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Index"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Activity"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Activity"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Activity"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobDown"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobDown"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobDown"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "SetBanner"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "SetBanner"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "SetBanner"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobBack"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobBack"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobBack"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetStatusServerInfo"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetStatusServerInfo"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetStatusServerInfo"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobUp"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobUp"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobUp"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "RoxieControlCmd"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "RoxieControlCmd"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "RoxieControlCmd"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "BrowseResources"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "BrowseResources"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "BrowseResources"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetBuildInfo"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetBuildInfo"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetBuildInfo"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ClearQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ClearQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ClearQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetThorQueueAvailability"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetThorQueueAvailability"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "GetThorQueueAvailability"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "MoveJobFront"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "MoveJobFront"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "MoveJobFront"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "RoxieXrefCmd"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "RoxieXrefCmd"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "RoxieXrefCmd"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "StopQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "StopQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "StopQueue"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "RemoveJob"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "RemoveJob"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "RemoveJob"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "SetJobPriority"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "SetJobPriority"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "SetJobPriority"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "NotInCommunityEdition"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "NotInCommunityEdition"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), - "NotInCommunityEdition"), - "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); - } - - /** Constructor that takes in a configContext */ - public WsSMCStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint) - throws org.apache.axis2.AxisFault { - this(configurationContext, targetEndpoint, false); - } - - /** Constructor that takes in a configContext and useseperate listner */ - public WsSMCStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint, - boolean useSeparateListener) - throws org.apache.axis2.AxisFault { - // To populate AxisService - populateAxisService(); - populateFaults(); - - _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); - - _serviceClient - .getOptions() - .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); - _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); - } - - /** Default Constructor */ - public WsSMCStub(org.apache.axis2.context.ConfigurationContext configurationContext) - throws org.apache.axis2.AxisFault { - - this(configurationContext, "http://10.1.1.180:8888/WsSMC?ver_=1.26"); - } - - /** Default Constructor */ - public WsSMCStub() throws org.apache.axis2.AxisFault { - - this("http://10.1.1.180:8888/WsSMC?ver_=1.26"); - } - - /** Constructor taking the target endpoint */ - public WsSMCStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { - this(null, targetEndpoint); - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#lockQuery - * @param lockQuery7 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse lockQuery( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery lockQuery7) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[0].getName()); - _operationClient.getOptions().setAction("WsSMC/LockQuery?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - lockQuery7, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "lockQuery")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LockQuery")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "LockQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "LockQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "LockQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#pauseQueue - * @param pauseQueue9 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse pauseQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue pauseQueue9) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[1].getName()); - _operationClient.getOptions().setAction("WsSMC/PauseQueue?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - pauseQueue9, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "pauseQueue")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "PauseQueue")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "PauseQueue"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "PauseQueue")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "PauseQueue")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#resumeQueue - * @param resumeQueue11 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse resumeQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue resumeQueue11) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[2].getName()); - _operationClient.getOptions().setAction("WsSMC/ResumeQueue?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - resumeQueue11, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "resumeQueue")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ResumeQueue")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ResumeQueue"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ResumeQueue")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ResumeQueue")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#index - * @param index13 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse index( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index index13) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[3].getName()); - _operationClient.getOptions().setAction("WsSMC/Index?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - index13, - optimizeContent(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "index")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Index")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Index"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Index")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Index")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#activity - * @param activity15 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse activity( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity activity15) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[4].getName()); - _operationClient.getOptions().setAction("WsSMC/Activity?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - activity15, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "activity")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Activity")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Activity"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Activity")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Activity")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#moveJobDown - * @param moveJobDown17 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobDown( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown moveJobDown17) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[5].getName()); - _operationClient.getOptions().setAction("WsSMC/MoveJobDown?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - moveJobDown17, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobDown")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobDown")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobDown"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobDown")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobDown")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#setBanner - * @param setBanner19 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse setBanner( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner setBanner19) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[6].getName()); - _operationClient.getOptions().setAction("WsSMC/SetBanner?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - setBanner19, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "setBanner")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetBanner")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetBanner"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetBanner")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetBanner")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#moveJobBack - * @param moveJobBack21 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobBack( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack moveJobBack21) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[7].getName()); - _operationClient.getOptions().setAction("WsSMC/MoveJobBack?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - moveJobBack21, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobBack")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobBack")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobBack"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobBack")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobBack")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#getStatusServerInfo - * @param getStatusServerInfo23 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse - getStatusServerInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo - getStatusServerInfo23) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[8].getName()); - _operationClient.getOptions().setAction("WsSMC/GetStatusServerInfo?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getStatusServerInfo23, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getStatusServerInfo")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetStatusServerInfo")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetStatusServerInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetStatusServerInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetStatusServerInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#moveJobUp - * @param moveJobUp25 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobUp( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp moveJobUp25) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[9].getName()); - _operationClient.getOptions().setAction("WsSMC/MoveJobUp?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - moveJobUp25, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobUp")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobUp")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobUp"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobUp")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobUp")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#roxieControlCmd - * @param roxieControlCmd27 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse roxieControlCmd( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd roxieControlCmd27) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[10].getName()); - _operationClient.getOptions().setAction("WsSMC/RoxieControlCmd?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - roxieControlCmd27, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "roxieControlCmd")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieControlCmd")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RoxieControlCmd"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "RoxieControlCmd")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "RoxieControlCmd")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#ping - * @param ping29 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping ping29) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[11].getName()); - _operationClient.getOptions().setAction("WsSMC/Ping?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - ping29, - optimizeContent(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ping")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Ping")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#browseResources - * @param browseResources31 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse browseResources( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources browseResources31) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[12].getName()); - _operationClient.getOptions().setAction("WsSMC/BrowseResources?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - browseResources31, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "browseResources")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BrowseResources")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "BrowseResources"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "BrowseResources")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "BrowseResources")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#getBuildInfo - * @param getBuildInfo33 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse getBuildInfo( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo getBuildInfo33) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[13].getName()); - _operationClient.getOptions().setAction("WsSMC/GetBuildInfo?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getBuildInfo33, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getBuildInfo")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetBuildInfo")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetBuildInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetBuildInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetBuildInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#clearQueue - * @param clearQueue35 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse clearQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue clearQueue35) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[14].getName()); - _operationClient.getOptions().setAction("WsSMC/ClearQueue?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - clearQueue35, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "clearQueue")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClearQueue")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ClearQueue"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ClearQueue")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ClearQueue")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#getThorQueueAvailability - * @param getThorQueueAvailability37 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse - getThorQueueAvailability( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability - getThorQueueAvailability37) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[15].getName()); - _operationClient.getOptions().setAction("WsSMC/GetThorQueueAvailability?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - getThorQueueAvailability37, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wssmc", "getThorQueueAvailability")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wssmc", "GetThorQueueAvailability")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetThorQueueAvailability"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetThorQueueAvailability")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "GetThorQueueAvailability")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#moveJobFront - * @param moveJobFront39 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobFront( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront moveJobFront39) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[16].getName()); - _operationClient.getOptions().setAction("WsSMC/MoveJobFront?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - moveJobFront39, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobFront")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobFront")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobFront"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobFront")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobFront")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#roxieXrefCmd - * @param roxieXrefCmd41 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse roxieXrefCmd( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd roxieXrefCmd41) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[17].getName()); - _operationClient.getOptions().setAction("WsSMC/RoxieXrefCmd?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - roxieXrefCmd41, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "roxieXrefCmd")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieXrefCmd")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RoxieXrefCmd"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RoxieXrefCmd")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RoxieXrefCmd")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#stopQueue - * @param stopQueue43 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse stopQueue( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue stopQueue43) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[18].getName()); - _operationClient.getOptions().setAction("WsSMC/StopQueue?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - stopQueue43, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "stopQueue")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StopQueue")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "StopQueue"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "StopQueue")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "StopQueue")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#removeJob - * @param removeJob45 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse removeJob( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob removeJob45) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[19].getName()); - _operationClient.getOptions().setAction("WsSMC/RemoveJob?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - removeJob45, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "removeJob")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RemoveJob")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RemoveJob"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RemoveJob")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RemoveJob")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#setJobPriority - * @param setJobPriority47 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse setJobPriority( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority setJobPriority47) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[20].getName()); - _operationClient.getOptions().setAction("WsSMC/SetJobPriority?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - setJobPriority47, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "setJobPriority")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetJobPriority")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetJobPriority"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetJobPriority")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetJobPriority")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#notInCommunityEdition - * @param notInCommunityEdition49 - * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse - notInCommunityEdition( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition - notInCommunityEdition49) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[21].getName()); - _operationClient.getOptions().setAction("WsSMC/NotInCommunityEdition?ver_=1.26"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - notInCommunityEdition49, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wssmc", "notInCommunityEdition")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NotInCommunityEdition")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "NotInCommunityEdition"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "NotInCommunityEdition")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "NotInCommunityEdition")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - private javax.xml.namespace.QName[] opNameArray = null; - - private boolean optimizeContent(javax.xml.namespace.QName opName) { - - if (opNameArray == null) { - return false; - } - for (int i = 0; i < opNameArray.length; i++) { - if (opName.equals(opNameArray[i])) { - return true; - } - } - return false; - } - // http://10.1.1.180:8888/WsSMC?ver_=1.26 - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - /** get the default envelope */ - private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { - return factory.getDefaultEnvelope(); - } - - private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) - throws org.apache.axis2.AxisFault { - - try { - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - } catch (java.lang.Exception e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - return null; - } -} +/** + * WsSMCStub.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wssmc.latest; + +/* + * WsSMCStub java implementation + */ + +public class WsSMCStub extends org.apache.axis2.client.Stub implements WsSMC { + protected org.apache.axis2.description.AxisOperation[] _operations; + + // hashmaps to keep the fault mapping + private java.util.Map + faultExceptionNameMap = + new java.util.HashMap(); + private java.util.Map + faultExceptionClassNameMap = + new java.util.HashMap(); + private java.util.Map faultMessageMap = + new java.util.HashMap(); + + private static int counter = 0; + + private static synchronized java.lang.String getUniqueSuffix() { + // reset the counter if it is greater than 99999 + if (counter > 99999) { + counter = 0; + } + counter = counter + 1; + return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; + } + + private void populateAxisService() throws org.apache.axis2.AxisFault { + + // creating the Service with a unique name + _service = new org.apache.axis2.description.AxisService("WsSMC" + getUniqueSuffix()); + addAnonymousOperations(); + + // creating the operations + org.apache.axis2.description.AxisOperation __operation; + + _operations = new org.apache.axis2.description.AxisOperation[22]; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "lockQuery")); + _service.addOperation(__operation); + + _operations[0] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "pauseQueue")); + _service.addOperation(__operation); + + _operations[1] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "resumeQueue")); + _service.addOperation(__operation); + + _operations[2] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "index")); + _service.addOperation(__operation); + + _operations[3] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "activity")); + _service.addOperation(__operation); + + _operations[4] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobDown")); + _service.addOperation(__operation); + + _operations[5] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "setBanner")); + _service.addOperation(__operation); + + _operations[6] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobBack")); + _service.addOperation(__operation); + + _operations[7] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getStatusServerInfo")); + _service.addOperation(__operation); + + _operations[8] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobUp")); + _service.addOperation(__operation); + + _operations[9] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "roxieControlCmd")); + _service.addOperation(__operation); + + _operations[10] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ping")); + _service.addOperation(__operation); + + _operations[11] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "browseResources")); + _service.addOperation(__operation); + + _operations[12] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getBuildInfo")); + _service.addOperation(__operation); + + _operations[13] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "clearQueue")); + _service.addOperation(__operation); + + _operations[14] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getThorQueueAvailability")); + _service.addOperation(__operation); + + _operations[15] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobFront")); + _service.addOperation(__operation); + + _operations[16] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "roxieXrefCmd")); + _service.addOperation(__operation); + + _operations[17] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "stopQueue")); + _service.addOperation(__operation); + + _operations[18] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "removeJob")); + _service.addOperation(__operation); + + _operations[19] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "setJobPriority")); + _service.addOperation(__operation); + + _operations[20] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "notInCommunityEdition")); + _service.addOperation(__operation); + + _operations[21] = __operation; + } + + // populates the faults + private void populateFaults() { + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "LockQuery"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "LockQuery"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "LockQuery"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "PauseQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "PauseQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "PauseQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ResumeQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ResumeQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ResumeQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Index"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Index"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Index"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Activity"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Activity"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Activity"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobDown"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobDown"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobDown"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "SetBanner"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "SetBanner"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "SetBanner"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobBack"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobBack"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobBack"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetStatusServerInfo"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetStatusServerInfo"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetStatusServerInfo"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobUp"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobUp"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "MoveJobUp"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "RoxieControlCmd"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "RoxieControlCmd"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "RoxieControlCmd"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "BrowseResources"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "BrowseResources"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "BrowseResources"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetBuildInfo"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetBuildInfo"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetBuildInfo"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ClearQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ClearQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "ClearQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetThorQueueAvailability"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetThorQueueAvailability"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "GetThorQueueAvailability"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "MoveJobFront"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "MoveJobFront"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "MoveJobFront"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "RoxieXrefCmd"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "RoxieXrefCmd"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "RoxieXrefCmd"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "StopQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "StopQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "StopQueue"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "RemoveJob"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "RemoveJob"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), "RemoveJob"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "SetJobPriority"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "SetJobPriority"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "SetJobPriority"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "NotInCommunityEdition"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "NotInCommunityEdition"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Exceptions"), + "NotInCommunityEdition"), + "org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions"); + } + + /** Constructor that takes in a configContext */ + public WsSMCStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint) + throws org.apache.axis2.AxisFault { + this(configurationContext, targetEndpoint, false); + } + + /** Constructor that takes in a configContext and useseperate listner */ + public WsSMCStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint, + boolean useSeparateListener) + throws org.apache.axis2.AxisFault { + // To populate AxisService + populateAxisService(); + populateFaults(); + + _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); + + _serviceClient + .getOptions() + .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); + _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); + } + + /** Default Constructor */ + public WsSMCStub(org.apache.axis2.context.ConfigurationContext configurationContext) + throws org.apache.axis2.AxisFault { + + this(configurationContext, "http://eclwatch-65768756c6-9sm8c:8888/WsSMC?ver_=1.27"); + } + + /** Default Constructor */ + public WsSMCStub() throws org.apache.axis2.AxisFault { + + this("http://eclwatch-65768756c6-9sm8c:8888/WsSMC?ver_=1.27"); + } + + /** Constructor taking the target endpoint */ + public WsSMCStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { + this(null, targetEndpoint); + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#lockQuery + * @param lockQuery7 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse lockQuery( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery lockQuery7) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[0].getName()); + _operationClient.getOptions().setAction("WsSMC/LockQuery?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + lockQuery7, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "lockQuery")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "LockQuery")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "LockQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "LockQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "LockQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#pauseQueue + * @param pauseQueue9 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse pauseQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue pauseQueue9) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[1].getName()); + _operationClient.getOptions().setAction("WsSMC/PauseQueue?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + pauseQueue9, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "pauseQueue")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "PauseQueue")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "PauseQueue"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "PauseQueue")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "PauseQueue")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#resumeQueue + * @param resumeQueue11 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse resumeQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue resumeQueue11) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[2].getName()); + _operationClient.getOptions().setAction("WsSMC/ResumeQueue?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + resumeQueue11, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "resumeQueue")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ResumeQueue")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ResumeQueue"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ResumeQueue")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ResumeQueue")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#index + * @param index13 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse index( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index index13) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[3].getName()); + _operationClient.getOptions().setAction("WsSMC/Index?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + index13, + optimizeContent(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "index")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Index")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Index"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Index")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Index")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#activity + * @param activity15 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse activity( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity activity15) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[4].getName()); + _operationClient.getOptions().setAction("WsSMC/Activity?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + activity15, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "activity")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Activity")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Activity"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Activity")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Activity")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#moveJobDown + * @param moveJobDown17 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobDown( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown moveJobDown17) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[5].getName()); + _operationClient.getOptions().setAction("WsSMC/MoveJobDown?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + moveJobDown17, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobDown")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobDown")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobDown"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobDown")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobDown")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#setBanner + * @param setBanner19 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse setBanner( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner setBanner19) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[6].getName()); + _operationClient.getOptions().setAction("WsSMC/SetBanner?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + setBanner19, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "setBanner")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetBanner")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetBanner"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetBanner")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetBanner")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#moveJobBack + * @param moveJobBack21 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobBack( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack moveJobBack21) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[7].getName()); + _operationClient.getOptions().setAction("WsSMC/MoveJobBack?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + moveJobBack21, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobBack")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobBack")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobBack"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobBack")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobBack")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#getStatusServerInfo + * @param getStatusServerInfo23 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse + getStatusServerInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo + getStatusServerInfo23) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[8].getName()); + _operationClient.getOptions().setAction("WsSMC/GetStatusServerInfo?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getStatusServerInfo23, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getStatusServerInfo")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetStatusServerInfo")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetStatusServerInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetStatusServerInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetStatusServerInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#moveJobUp + * @param moveJobUp25 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobUp( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp moveJobUp25) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[9].getName()); + _operationClient.getOptions().setAction("WsSMC/MoveJobUp?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + moveJobUp25, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobUp")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobUp")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobUp"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobUp")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobUp")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#roxieControlCmd + * @param roxieControlCmd27 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse roxieControlCmd( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd roxieControlCmd27) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[10].getName()); + _operationClient.getOptions().setAction("WsSMC/RoxieControlCmd?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + roxieControlCmd27, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "roxieControlCmd")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieControlCmd")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RoxieControlCmd"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "RoxieControlCmd")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "RoxieControlCmd")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#ping + * @param ping29 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping ping29) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[11].getName()); + _operationClient.getOptions().setAction("WsSMC/Ping?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + ping29, + optimizeContent(new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ping")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "Ping")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#browseResources + * @param browseResources31 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse browseResources( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources browseResources31) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[12].getName()); + _operationClient.getOptions().setAction("WsSMC/BrowseResources?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + browseResources31, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "browseResources")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "BrowseResources")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "BrowseResources"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "BrowseResources")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "BrowseResources")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#getBuildInfo + * @param getBuildInfo33 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse getBuildInfo( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo getBuildInfo33) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[13].getName()); + _operationClient.getOptions().setAction("WsSMC/GetBuildInfo?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getBuildInfo33, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "getBuildInfo")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "GetBuildInfo")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetBuildInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetBuildInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GetBuildInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#clearQueue + * @param clearQueue35 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse clearQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue clearQueue35) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[14].getName()); + _operationClient.getOptions().setAction("WsSMC/ClearQueue?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + clearQueue35, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "clearQueue")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "ClearQueue")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ClearQueue"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ClearQueue")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "ClearQueue")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#getThorQueueAvailability + * @param getThorQueueAvailability37 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse + getThorQueueAvailability( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability + getThorQueueAvailability37) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[15].getName()); + _operationClient.getOptions().setAction("WsSMC/GetThorQueueAvailability?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + getThorQueueAvailability37, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wssmc", "getThorQueueAvailability")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wssmc", "GetThorQueueAvailability")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetThorQueueAvailability"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetThorQueueAvailability")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "GetThorQueueAvailability")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#moveJobFront + * @param moveJobFront39 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse moveJobFront( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront moveJobFront39) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[16].getName()); + _operationClient.getOptions().setAction("WsSMC/MoveJobFront?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + moveJobFront39, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "moveJobFront")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "MoveJobFront")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobFront"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobFront")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "MoveJobFront")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#roxieXrefCmd + * @param roxieXrefCmd41 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse roxieXrefCmd( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd roxieXrefCmd41) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[17].getName()); + _operationClient.getOptions().setAction("WsSMC/RoxieXrefCmd?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + roxieXrefCmd41, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "roxieXrefCmd")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RoxieXrefCmd")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RoxieXrefCmd"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RoxieXrefCmd")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RoxieXrefCmd")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#stopQueue + * @param stopQueue43 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse stopQueue( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue stopQueue43) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[18].getName()); + _operationClient.getOptions().setAction("WsSMC/StopQueue?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + stopQueue43, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "stopQueue")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "StopQueue")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "StopQueue"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "StopQueue")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "StopQueue")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#removeJob + * @param removeJob45 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse removeJob( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob removeJob45) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[19].getName()); + _operationClient.getOptions().setAction("WsSMC/RemoveJob?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + removeJob45, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "removeJob")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "RemoveJob")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RemoveJob"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RemoveJob")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "RemoveJob")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#setJobPriority + * @param setJobPriority47 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse setJobPriority( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority setJobPriority47) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[20].getName()); + _operationClient.getOptions().setAction("WsSMC/SetJobPriority?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + setJobPriority47, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "setJobPriority")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "SetJobPriority")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetJobPriority"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetJobPriority")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SetJobPriority")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMC#notInCommunityEdition + * @param notInCommunityEdition49 + * @throws org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse + notInCommunityEdition( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition + notInCommunityEdition49) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[21].getName()); + _operationClient.getOptions().setAction("WsSMC/NotInCommunityEdition?ver_=1.27"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + notInCommunityEdition49, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wssmc", "notInCommunityEdition")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NotInCommunityEdition")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "NotInCommunityEdition"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "NotInCommunityEdition")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "NotInCommunityEdition")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + private javax.xml.namespace.QName[] opNameArray = null; + + private boolean optimizeContent(javax.xml.namespace.QName opName) { + + if (opNameArray == null) { + return false; + } + for (int i = 0; i < opNameArray.length; i++) { + if (opName.equals(opNameArray[i])) { + return true; + } + } + return false; + } + // http://eclwatch-65768756c6-9sm8c:8888/WsSMC?ver_=1.27 + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + /** get the default envelope */ + private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { + return factory.getDefaultEnvelope(); + } + + private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) + throws org.apache.axis2.AxisFault { + + try { + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + } catch (java.lang.Exception e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + return null; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfEspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfEspException.java index 17ab80092..8bddc5e19 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfEspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfEspException.java @@ -1,531 +1,531 @@ -/** - * ArrayOfEspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfEspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfEspException - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Exception This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] localException; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionTracker = false; - - public boolean isExceptionSpecified() { - return localExceptionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] getException() { - return localException; - } - - /** validate the array for Exception */ - protected void validateException( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] param) {} - - /** - * Auto generated setter method - * - * @param param Exception - */ - public void setException( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] param) { - - validateException(param); - - localExceptionTracker = param != null; - - this.localException = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException - */ - public void addException( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException param) { - if (localException == null) { - localException = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] {}; - } - - // update the setting tracker - localExceptionTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); - list.add(param); - this.localException = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfEspException", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfEspException", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localExceptionTracker) { - if (localException != null) { - for (int i = 0; i < localException.length; i++) { - if (localException[i] != null) { - localException[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exception"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfEspException object = new ArrayOfEspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfEspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfEspException) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list2 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exception") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list2.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone2 = false; - while (!loopDone2) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone2 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exception") - .equals(reader.getName())) { - list2.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException.Factory - .parse(reader)); - - } else { - loopDone2 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setException( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException.class, - list2)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfEspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfEspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfEspException + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Exception This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] localException; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionTracker = false; + + public boolean isExceptionSpecified() { + return localExceptionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] getException() { + return localException; + } + + /** validate the array for Exception */ + protected void validateException( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] param) {} + + /** + * Auto generated setter method + * + * @param param Exception + */ + public void setException( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] param) { + + validateException(param); + + localExceptionTracker = param != null; + + this.localException = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException + */ + public void addException( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException param) { + if (localException == null) { + localException = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[] {}; + } + + // update the setting tracker + localExceptionTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); + list.add(param); + this.localException = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfEspException", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfEspException", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localExceptionTracker) { + if (localException != null) { + for (int i = 0; i < localException.length; i++) { + if (localException[i] != null) { + localException[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exception"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfEspException object = new ArrayOfEspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfEspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfEspException) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list2 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exception") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list2.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone2 = false; + while (!loopDone2) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone2 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exception") + .equals(reader.getName())) { + list2.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException.Factory + .parse(reader)); + + } else { + loopDone2 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setException( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException.class, + list2)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfLogFileStruct.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfLogFileStruct.java new file mode 100644 index 000000000..6289db478 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfLogFileStruct.java @@ -0,0 +1,460 @@ +/** + * ArrayOfLogFileStruct.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfLogFileStruct bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfLogFileStruct implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfLogFileStruct + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for LogFileStruct This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct[] + localLogFileStruct; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogFileStructTracker = false; + + public boolean isLogFileStructSpecified() { + return localLogFileStructTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct[] getLogFileStruct() { + return localLogFileStruct; + } + + /** validate the array for LogFileStruct */ + protected void validateLogFileStruct( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct[] param) {} + + /** + * Auto generated setter method + * + * @param param LogFileStruct + */ + public void setLogFileStruct( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct[] param) { + + validateLogFileStruct(param); + + localLogFileStructTracker = param != null; + + this.localLogFileStruct = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct + */ + public void addLogFileStruct( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct param) { + if (localLogFileStruct == null) { + localLogFileStruct = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct[] {}; + } + + // update the setting tracker + localLogFileStructTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localLogFileStruct); + list.add(param); + this.localLogFileStruct = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfLogFileStruct", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfLogFileStruct", + xmlWriter); + } + } + if (localLogFileStructTracker) { + if (localLogFileStruct != null) { + for (int i = 0; i < localLogFileStruct.length; i++) { + if (localLogFileStruct[i] != null) { + localLogFileStruct[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFileStruct"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("LogFileStruct cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfLogFileStruct parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfLogFileStruct object = new ArrayOfLogFileStruct(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfLogFileStruct".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfLogFileStruct) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFileStruct") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFileStruct") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setLogFileStruct( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpBinding.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpBinding.java index b50770209..170852860 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpBinding.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpBinding.java @@ -1,455 +1,455 @@ -/** - * ArrayOfTpBinding.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpBinding bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpBinding implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpBinding - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpBinding This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] localTpBinding; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpBindingTracker = false; - - public boolean isTpBindingSpecified() { - return localTpBindingTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] getTpBinding() { - return localTpBinding; - } - - /** validate the array for TpBinding */ - protected void validateTpBinding( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] param) {} - - /** - * Auto generated setter method - * - * @param param TpBinding - */ - public void setTpBinding( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] param) { - - validateTpBinding(param); - - localTpBindingTracker = param != null; - - this.localTpBinding = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding - */ - public void addTpBinding(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding param) { - if (localTpBinding == null) { - localTpBinding = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] {}; - } - - // update the setting tracker - localTpBindingTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpBinding); - list.add(param); - this.localTpBinding = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpBinding", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpBinding", - xmlWriter); - } - } - if (localTpBindingTracker) { - if (localTpBinding != null) { - for (int i = 0; i < localTpBinding.length; i++) { - if (localTpBinding[i] != null) { - localTpBinding[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBinding"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpBinding cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpBinding parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpBinding object = new ArrayOfTpBinding(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpBinding".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpBinding) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBinding") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBinding") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpBinding( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpBinding.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpBinding bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpBinding implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpBinding + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpBinding This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] localTpBinding; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpBindingTracker = false; + + public boolean isTpBindingSpecified() { + return localTpBindingTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] getTpBinding() { + return localTpBinding; + } + + /** validate the array for TpBinding */ + protected void validateTpBinding( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] param) {} + + /** + * Auto generated setter method + * + * @param param TpBinding + */ + public void setTpBinding( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] param) { + + validateTpBinding(param); + + localTpBindingTracker = param != null; + + this.localTpBinding = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding + */ + public void addTpBinding(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding param) { + if (localTpBinding == null) { + localTpBinding = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[] {}; + } + + // update the setting tracker + localTpBindingTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpBinding); + list.add(param); + this.localTpBinding = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpBinding", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpBinding", + xmlWriter); + } + } + if (localTpBindingTracker) { + if (localTpBinding != null) { + for (int i = 0; i < localTpBinding.length; i++) { + if (localTpBinding[i] != null) { + localTpBinding[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBinding"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpBinding cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpBinding parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpBinding object = new ArrayOfTpBinding(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpBinding".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpBinding) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBinding") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBinding") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpBinding( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpCluster.java index 9f6788af8..153ff9128 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpCluster.java @@ -1,455 +1,455 @@ -/** - * ArrayOfTpCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpCluster - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpCluster This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] localTpCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpClusterTracker = false; - - public boolean isTpClusterSpecified() { - return localTpClusterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] getTpCluster() { - return localTpCluster; - } - - /** validate the array for TpCluster */ - protected void validateTpCluster( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] param) {} - - /** - * Auto generated setter method - * - * @param param TpCluster - */ - public void setTpCluster( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] param) { - - validateTpCluster(param); - - localTpClusterTracker = param != null; - - this.localTpCluster = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster - */ - public void addTpCluster(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster param) { - if (localTpCluster == null) { - localTpCluster = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] {}; - } - - // update the setting tracker - localTpClusterTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpCluster); - list.add(param); - this.localTpCluster = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpCluster", - xmlWriter); - } - } - if (localTpClusterTracker) { - if (localTpCluster != null) { - for (int i = 0; i < localTpCluster.length; i++) { - if (localTpCluster[i] != null) { - localTpCluster[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpCluster"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpCluster cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpCluster object = new ArrayOfTpCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpCluster) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpCluster") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpCluster") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpCluster( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpCluster + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpCluster This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] localTpCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpClusterTracker = false; + + public boolean isTpClusterSpecified() { + return localTpClusterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] getTpCluster() { + return localTpCluster; + } + + /** validate the array for TpCluster */ + protected void validateTpCluster( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] param) {} + + /** + * Auto generated setter method + * + * @param param TpCluster + */ + public void setTpCluster( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] param) { + + validateTpCluster(param); + + localTpClusterTracker = param != null; + + this.localTpCluster = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster + */ + public void addTpCluster(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster param) { + if (localTpCluster == null) { + localTpCluster = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[] {}; + } + + // update the setting tracker + localTpClusterTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpCluster); + list.add(param); + this.localTpCluster = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpCluster", + xmlWriter); + } + } + if (localTpClusterTracker) { + if (localTpCluster != null) { + for (int i = 0; i < localTpCluster.length; i++) { + if (localTpCluster[i] != null) { + localTpCluster[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpCluster"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpCluster cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpCluster object = new ArrayOfTpCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpCluster) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpCluster") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpCluster") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpCluster( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpClusterNameType.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpClusterNameType.java index c04b903dd..8729227d8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpClusterNameType.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpClusterNameType.java @@ -1,462 +1,462 @@ -/** - * ArrayOfTpClusterNameType.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpClusterNameType bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpClusterNameType implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpClusterNameType - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpClusterNameType This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] - localTpClusterNameType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpClusterNameTypeTracker = false; - - public boolean isTpClusterNameTypeSpecified() { - return localTpClusterNameTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] - getTpClusterNameType() { - return localTpClusterNameType; - } - - /** validate the array for TpClusterNameType */ - protected void validateTpClusterNameType( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] param) {} - - /** - * Auto generated setter method - * - * @param param TpClusterNameType - */ - public void setTpClusterNameType( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] param) { - - validateTpClusterNameType(param); - - localTpClusterNameTypeTracker = param != null; - - this.localTpClusterNameType = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType - */ - public void addTpClusterNameType( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType param) { - if (localTpClusterNameType == null) { - localTpClusterNameType = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] {}; - } - - // update the setting tracker - localTpClusterNameTypeTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpClusterNameType); - list.add(param); - this.localTpClusterNameType = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpClusterNameType", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpClusterNameType", - xmlWriter); - } - } - if (localTpClusterNameTypeTracker) { - if (localTpClusterNameType != null) { - for (int i = 0; i < localTpClusterNameType.length; i++) { - if (localTpClusterNameType[i] != null) { - localTpClusterNameType[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusterNameType"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpClusterNameType cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpClusterNameType parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpClusterNameType object = new ArrayOfTpClusterNameType(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpClusterNameType".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpClusterNameType) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusterNameType") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpClusterNameType") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpClusterNameType( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpClusterNameType.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpClusterNameType bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpClusterNameType implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpClusterNameType + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpClusterNameType This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] + localTpClusterNameType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpClusterNameTypeTracker = false; + + public boolean isTpClusterNameTypeSpecified() { + return localTpClusterNameTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] + getTpClusterNameType() { + return localTpClusterNameType; + } + + /** validate the array for TpClusterNameType */ + protected void validateTpClusterNameType( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] param) {} + + /** + * Auto generated setter method + * + * @param param TpClusterNameType + */ + public void setTpClusterNameType( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] param) { + + validateTpClusterNameType(param); + + localTpClusterNameTypeTracker = param != null; + + this.localTpClusterNameType = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType + */ + public void addTpClusterNameType( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType param) { + if (localTpClusterNameType == null) { + localTpClusterNameType = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[] {}; + } + + // update the setting tracker + localTpClusterNameTypeTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpClusterNameType); + list.add(param); + this.localTpClusterNameType = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpClusterNameType", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpClusterNameType", + xmlWriter); + } + } + if (localTpClusterNameTypeTracker) { + if (localTpClusterNameType != null) { + for (int i = 0; i < localTpClusterNameType.length; i++) { + if (localTpClusterNameType[i] != null) { + localTpClusterNameType[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusterNameType"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpClusterNameType cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpClusterNameType parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpClusterNameType object = new ArrayOfTpClusterNameType(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpClusterNameType".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpClusterNameType) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusterNameType") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpClusterNameType") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpClusterNameType( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDali.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDali.java index ed9b90246..9103a62d9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDali.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDali.java @@ -1,448 +1,448 @@ -/** - * ArrayOfTpDali.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpDali bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpDali implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpDali - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpDali This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] localTpDali; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDaliTracker = false; - - public boolean isTpDaliSpecified() { - return localTpDaliTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] getTpDali() { - return localTpDali; - } - - /** validate the array for TpDali */ - protected void validateTpDali( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] param) {} - - /** - * Auto generated setter method - * - * @param param TpDali - */ - public void setTpDali(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] param) { - - validateTpDali(param); - - localTpDaliTracker = param != null; - - this.localTpDali = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali - */ - public void addTpDali(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali param) { - if (localTpDali == null) { - localTpDali = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] {}; - } - - // update the setting tracker - localTpDaliTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpDali); - list.add(param); - this.localTpDali = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpDali", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfTpDali", xmlWriter); - } - } - if (localTpDaliTracker) { - if (localTpDali != null) { - for (int i = 0; i < localTpDali.length; i++) { - if (localTpDali[i] != null) { - localTpDali[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDali"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpDali cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpDali parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpDali object = new ArrayOfTpDali(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpDali".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpDali) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDali") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDali") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpDali( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpDali.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpDali bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpDali implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpDali + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpDali This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] localTpDali; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDaliTracker = false; + + public boolean isTpDaliSpecified() { + return localTpDaliTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] getTpDali() { + return localTpDali; + } + + /** validate the array for TpDali */ + protected void validateTpDali( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] param) {} + + /** + * Auto generated setter method + * + * @param param TpDali + */ + public void setTpDali(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] param) { + + validateTpDali(param); + + localTpDaliTracker = param != null; + + this.localTpDali = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali + */ + public void addTpDali(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali param) { + if (localTpDali == null) { + localTpDali = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[] {}; + } + + // update the setting tracker + localTpDaliTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpDali); + list.add(param); + this.localTpDali = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpDali", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfTpDali", xmlWriter); + } + } + if (localTpDaliTracker) { + if (localTpDali != null) { + for (int i = 0; i < localTpDali.length; i++) { + if (localTpDali[i] != null) { + localTpDali[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDali"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpDali cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpDali parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpDali object = new ArrayOfTpDali(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpDali".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpDali) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDali") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDali") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpDali( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDfuServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDfuServer.java index 3f569b0f1..63f97335d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDfuServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDfuServer.java @@ -1,456 +1,456 @@ -/** - * ArrayOfTpDfuServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpDfuServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpDfuServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpDfuServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpDfuServer This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] localTpDfuServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDfuServerTracker = false; - - public boolean isTpDfuServerSpecified() { - return localTpDfuServerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] getTpDfuServer() { - return localTpDfuServer; - } - - /** validate the array for TpDfuServer */ - protected void validateTpDfuServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] param) {} - - /** - * Auto generated setter method - * - * @param param TpDfuServer - */ - public void setTpDfuServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] param) { - - validateTpDfuServer(param); - - localTpDfuServerTracker = param != null; - - this.localTpDfuServer = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer - */ - public void addTpDfuServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer param) { - if (localTpDfuServer == null) { - localTpDfuServer = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] {}; - } - - // update the setting tracker - localTpDfuServerTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpDfuServer); - list.add(param); - this.localTpDfuServer = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpDfuServer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpDfuServer", - xmlWriter); - } - } - if (localTpDfuServerTracker) { - if (localTpDfuServer != null) { - for (int i = 0; i < localTpDfuServer.length; i++) { - if (localTpDfuServer[i] != null) { - localTpDfuServer[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServer"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpDfuServer cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpDfuServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpDfuServer object = new ArrayOfTpDfuServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpDfuServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpDfuServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServer") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServer") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpDfuServer( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpDfuServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpDfuServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpDfuServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpDfuServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpDfuServer This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] localTpDfuServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDfuServerTracker = false; + + public boolean isTpDfuServerSpecified() { + return localTpDfuServerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] getTpDfuServer() { + return localTpDfuServer; + } + + /** validate the array for TpDfuServer */ + protected void validateTpDfuServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] param) {} + + /** + * Auto generated setter method + * + * @param param TpDfuServer + */ + public void setTpDfuServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] param) { + + validateTpDfuServer(param); + + localTpDfuServerTracker = param != null; + + this.localTpDfuServer = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer + */ + public void addTpDfuServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer param) { + if (localTpDfuServer == null) { + localTpDfuServer = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[] {}; + } + + // update the setting tracker + localTpDfuServerTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpDfuServer); + list.add(param); + this.localTpDfuServer = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpDfuServer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpDfuServer", + xmlWriter); + } + } + if (localTpDfuServerTracker) { + if (localTpDfuServer != null) { + for (int i = 0; i < localTpDfuServer.length; i++) { + if (localTpDfuServer[i] != null) { + localTpDfuServer[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServer"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpDfuServer cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpDfuServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpDfuServer object = new ArrayOfTpDfuServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpDfuServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpDfuServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServer") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServer") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpDfuServer( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDkcSlave.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDkcSlave.java index e70370975..a5153ad17 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDkcSlave.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDkcSlave.java @@ -1,456 +1,456 @@ -/** - * ArrayOfTpDkcSlave.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpDkcSlave bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpDkcSlave implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpDkcSlave - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpDkcSlave This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] localTpDkcSlave; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDkcSlaveTracker = false; - - public boolean isTpDkcSlaveSpecified() { - return localTpDkcSlaveTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] getTpDkcSlave() { - return localTpDkcSlave; - } - - /** validate the array for TpDkcSlave */ - protected void validateTpDkcSlave( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] param) {} - - /** - * Auto generated setter method - * - * @param param TpDkcSlave - */ - public void setTpDkcSlave( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] param) { - - validateTpDkcSlave(param); - - localTpDkcSlaveTracker = param != null; - - this.localTpDkcSlave = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave - */ - public void addTpDkcSlave( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave param) { - if (localTpDkcSlave == null) { - localTpDkcSlave = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] {}; - } - - // update the setting tracker - localTpDkcSlaveTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpDkcSlave); - list.add(param); - this.localTpDkcSlave = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpDkcSlave", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpDkcSlave", - xmlWriter); - } - } - if (localTpDkcSlaveTracker) { - if (localTpDkcSlave != null) { - for (int i = 0; i < localTpDkcSlave.length; i++) { - if (localTpDkcSlave[i] != null) { - localTpDkcSlave[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlave"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpDkcSlave cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpDkcSlave parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpDkcSlave object = new ArrayOfTpDkcSlave(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpDkcSlave".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpDkcSlave) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlave") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlave") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpDkcSlave( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpDkcSlave.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpDkcSlave bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpDkcSlave implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpDkcSlave + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpDkcSlave This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] localTpDkcSlave; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDkcSlaveTracker = false; + + public boolean isTpDkcSlaveSpecified() { + return localTpDkcSlaveTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] getTpDkcSlave() { + return localTpDkcSlave; + } + + /** validate the array for TpDkcSlave */ + protected void validateTpDkcSlave( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] param) {} + + /** + * Auto generated setter method + * + * @param param TpDkcSlave + */ + public void setTpDkcSlave( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] param) { + + validateTpDkcSlave(param); + + localTpDkcSlaveTracker = param != null; + + this.localTpDkcSlave = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave + */ + public void addTpDkcSlave( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave param) { + if (localTpDkcSlave == null) { + localTpDkcSlave = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[] {}; + } + + // update the setting tracker + localTpDkcSlaveTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpDkcSlave); + list.add(param); + this.localTpDkcSlave = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpDkcSlave", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpDkcSlave", + xmlWriter); + } + } + if (localTpDkcSlaveTracker) { + if (localTpDkcSlave != null) { + for (int i = 0; i < localTpDkcSlave.length; i++) { + if (localTpDkcSlave[i] != null) { + localTpDkcSlave[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlave"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpDkcSlave cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpDkcSlave parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpDkcSlave object = new ArrayOfTpDkcSlave(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpDkcSlave".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpDkcSlave) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlave") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlave") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpDkcSlave( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDropZone.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDropZone.java index e051e9fc0..5eb0eec10 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDropZone.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpDropZone.java @@ -1,456 +1,456 @@ -/** - * ArrayOfTpDropZone.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpDropZone bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpDropZone implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpDropZone - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpDropZone This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] localTpDropZone; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDropZoneTracker = false; - - public boolean isTpDropZoneSpecified() { - return localTpDropZoneTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] getTpDropZone() { - return localTpDropZone; - } - - /** validate the array for TpDropZone */ - protected void validateTpDropZone( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] param) {} - - /** - * Auto generated setter method - * - * @param param TpDropZone - */ - public void setTpDropZone( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] param) { - - validateTpDropZone(param); - - localTpDropZoneTracker = param != null; - - this.localTpDropZone = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone - */ - public void addTpDropZone( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone param) { - if (localTpDropZone == null) { - localTpDropZone = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] {}; - } - - // update the setting tracker - localTpDropZoneTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpDropZone); - list.add(param); - this.localTpDropZone = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpDropZone", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpDropZone", - xmlWriter); - } - } - if (localTpDropZoneTracker) { - if (localTpDropZone != null) { - for (int i = 0; i < localTpDropZone.length; i++) { - if (localTpDropZone[i] != null) { - localTpDropZone[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZone"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpDropZone cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpDropZone parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpDropZone object = new ArrayOfTpDropZone(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpDropZone".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpDropZone) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZone") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZone") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpDropZone( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpDropZone.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpDropZone bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpDropZone implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpDropZone + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpDropZone This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] localTpDropZone; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDropZoneTracker = false; + + public boolean isTpDropZoneSpecified() { + return localTpDropZoneTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] getTpDropZone() { + return localTpDropZone; + } + + /** validate the array for TpDropZone */ + protected void validateTpDropZone( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] param) {} + + /** + * Auto generated setter method + * + * @param param TpDropZone + */ + public void setTpDropZone( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] param) { + + validateTpDropZone(param); + + localTpDropZoneTracker = param != null; + + this.localTpDropZone = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone + */ + public void addTpDropZone( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone param) { + if (localTpDropZone == null) { + localTpDropZone = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[] {}; + } + + // update the setting tracker + localTpDropZoneTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpDropZone); + list.add(param); + this.localTpDropZone = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpDropZone", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpDropZone", + xmlWriter); + } + } + if (localTpDropZoneTracker) { + if (localTpDropZone != null) { + for (int i = 0; i < localTpDropZone.length; i++) { + if (localTpDropZone[i] != null) { + localTpDropZone[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZone"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpDropZone cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpDropZone parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpDropZone object = new ArrayOfTpDropZone(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpDropZone".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpDropZone) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZone") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZone") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpDropZone( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclAgent.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclAgent.java index 4e317a78b..b6c7836db 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclAgent.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclAgent.java @@ -1,456 +1,456 @@ -/** - * ArrayOfTpEclAgent.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpEclAgent bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpEclAgent implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpEclAgent - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpEclAgent This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] localTpEclAgent; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclAgentTracker = false; - - public boolean isTpEclAgentSpecified() { - return localTpEclAgentTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] getTpEclAgent() { - return localTpEclAgent; - } - - /** validate the array for TpEclAgent */ - protected void validateTpEclAgent( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] param) {} - - /** - * Auto generated setter method - * - * @param param TpEclAgent - */ - public void setTpEclAgent( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] param) { - - validateTpEclAgent(param); - - localTpEclAgentTracker = param != null; - - this.localTpEclAgent = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent - */ - public void addTpEclAgent( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent param) { - if (localTpEclAgent == null) { - localTpEclAgent = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] {}; - } - - // update the setting tracker - localTpEclAgentTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpEclAgent); - list.add(param); - this.localTpEclAgent = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpEclAgent", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpEclAgent", - xmlWriter); - } - } - if (localTpEclAgentTracker) { - if (localTpEclAgent != null) { - for (int i = 0; i < localTpEclAgent.length; i++) { - if (localTpEclAgent[i] != null) { - localTpEclAgent[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgent"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpEclAgent cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpEclAgent parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpEclAgent object = new ArrayOfTpEclAgent(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpEclAgent".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpEclAgent) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgent") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgent") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpEclAgent( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpEclAgent.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpEclAgent bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpEclAgent implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpEclAgent + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpEclAgent This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] localTpEclAgent; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclAgentTracker = false; + + public boolean isTpEclAgentSpecified() { + return localTpEclAgentTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] getTpEclAgent() { + return localTpEclAgent; + } + + /** validate the array for TpEclAgent */ + protected void validateTpEclAgent( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] param) {} + + /** + * Auto generated setter method + * + * @param param TpEclAgent + */ + public void setTpEclAgent( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] param) { + + validateTpEclAgent(param); + + localTpEclAgentTracker = param != null; + + this.localTpEclAgent = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent + */ + public void addTpEclAgent( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent param) { + if (localTpEclAgent == null) { + localTpEclAgent = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[] {}; + } + + // update the setting tracker + localTpEclAgentTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpEclAgent); + list.add(param); + this.localTpEclAgent = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpEclAgent", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpEclAgent", + xmlWriter); + } + } + if (localTpEclAgentTracker) { + if (localTpEclAgent != null) { + for (int i = 0; i < localTpEclAgent.length; i++) { + if (localTpEclAgent[i] != null) { + localTpEclAgent[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgent"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpEclAgent cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpEclAgent parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpEclAgent object = new ArrayOfTpEclAgent(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpEclAgent".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpEclAgent) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgent") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgent") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpEclAgent( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclScheduler.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclScheduler.java index 5e975b6f3..ae38f0ac5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclScheduler.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclScheduler.java @@ -1,461 +1,461 @@ -/** - * ArrayOfTpEclScheduler.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpEclScheduler bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpEclScheduler implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpEclScheduler - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpEclScheduler This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] - localTpEclScheduler; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclSchedulerTracker = false; - - public boolean isTpEclSchedulerSpecified() { - return localTpEclSchedulerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] - getTpEclScheduler() { - return localTpEclScheduler; - } - - /** validate the array for TpEclScheduler */ - protected void validateTpEclScheduler( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] param) {} - - /** - * Auto generated setter method - * - * @param param TpEclScheduler - */ - public void setTpEclScheduler( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] param) { - - validateTpEclScheduler(param); - - localTpEclSchedulerTracker = param != null; - - this.localTpEclScheduler = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler - */ - public void addTpEclScheduler( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler param) { - if (localTpEclScheduler == null) { - localTpEclScheduler = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] {}; - } - - // update the setting tracker - localTpEclSchedulerTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpEclScheduler); - list.add(param); - this.localTpEclScheduler = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpEclScheduler", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpEclScheduler", - xmlWriter); - } - } - if (localTpEclSchedulerTracker) { - if (localTpEclScheduler != null) { - for (int i = 0; i < localTpEclScheduler.length; i++) { - if (localTpEclScheduler[i] != null) { - localTpEclScheduler[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclScheduler"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpEclScheduler cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpEclScheduler parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpEclScheduler object = new ArrayOfTpEclScheduler(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpEclScheduler".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpEclScheduler) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclScheduler") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclScheduler") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpEclScheduler( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpEclScheduler.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpEclScheduler bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpEclScheduler implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpEclScheduler + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpEclScheduler This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] + localTpEclScheduler; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclSchedulerTracker = false; + + public boolean isTpEclSchedulerSpecified() { + return localTpEclSchedulerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] + getTpEclScheduler() { + return localTpEclScheduler; + } + + /** validate the array for TpEclScheduler */ + protected void validateTpEclScheduler( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] param) {} + + /** + * Auto generated setter method + * + * @param param TpEclScheduler + */ + public void setTpEclScheduler( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] param) { + + validateTpEclScheduler(param); + + localTpEclSchedulerTracker = param != null; + + this.localTpEclScheduler = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler + */ + public void addTpEclScheduler( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler param) { + if (localTpEclScheduler == null) { + localTpEclScheduler = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[] {}; + } + + // update the setting tracker + localTpEclSchedulerTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpEclScheduler); + list.add(param); + this.localTpEclScheduler = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpEclScheduler", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpEclScheduler", + xmlWriter); + } + } + if (localTpEclSchedulerTracker) { + if (localTpEclScheduler != null) { + for (int i = 0; i < localTpEclScheduler.length; i++) { + if (localTpEclScheduler[i] != null) { + localTpEclScheduler[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclScheduler"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpEclScheduler cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpEclScheduler parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpEclScheduler object = new ArrayOfTpEclScheduler(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpEclScheduler".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpEclScheduler) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclScheduler") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclScheduler") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpEclScheduler( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclServer.java index 4cd64c503..74234a29b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEclServer.java @@ -1,456 +1,456 @@ -/** - * ArrayOfTpEclServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpEclServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpEclServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpEclServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpEclServer This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] localTpEclServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclServerTracker = false; - - public boolean isTpEclServerSpecified() { - return localTpEclServerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] getTpEclServer() { - return localTpEclServer; - } - - /** validate the array for TpEclServer */ - protected void validateTpEclServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] param) {} - - /** - * Auto generated setter method - * - * @param param TpEclServer - */ - public void setTpEclServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] param) { - - validateTpEclServer(param); - - localTpEclServerTracker = param != null; - - this.localTpEclServer = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer - */ - public void addTpEclServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer param) { - if (localTpEclServer == null) { - localTpEclServer = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] {}; - } - - // update the setting tracker - localTpEclServerTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpEclServer); - list.add(param); - this.localTpEclServer = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpEclServer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpEclServer", - xmlWriter); - } - } - if (localTpEclServerTracker) { - if (localTpEclServer != null) { - for (int i = 0; i < localTpEclServer.length; i++) { - if (localTpEclServer[i] != null) { - localTpEclServer[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServer"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpEclServer cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpEclServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpEclServer object = new ArrayOfTpEclServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpEclServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpEclServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServer") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServer") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpEclServer( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpEclServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpEclServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpEclServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpEclServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpEclServer This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] localTpEclServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclServerTracker = false; + + public boolean isTpEclServerSpecified() { + return localTpEclServerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] getTpEclServer() { + return localTpEclServer; + } + + /** validate the array for TpEclServer */ + protected void validateTpEclServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] param) {} + + /** + * Auto generated setter method + * + * @param param TpEclServer + */ + public void setTpEclServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] param) { + + validateTpEclServer(param); + + localTpEclServerTracker = param != null; + + this.localTpEclServer = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer + */ + public void addTpEclServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer param) { + if (localTpEclServer == null) { + localTpEclServer = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[] {}; + } + + // update the setting tracker + localTpEclServerTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpEclServer); + list.add(param); + this.localTpEclServer = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpEclServer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpEclServer", + xmlWriter); + } + } + if (localTpEclServerTracker) { + if (localTpEclServer != null) { + for (int i = 0; i < localTpEclServer.length; i++) { + if (localTpEclServer[i] != null) { + localTpEclServer[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServer"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpEclServer cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpEclServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpEclServer object = new ArrayOfTpEclServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpEclServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpEclServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServer") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServer") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpEclServer( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEspServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEspServer.java index 913ebd789..248dad0a9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEspServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpEspServer.java @@ -1,456 +1,456 @@ -/** - * ArrayOfTpEspServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpEspServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpEspServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpEspServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpEspServer This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] localTpEspServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEspServerTracker = false; - - public boolean isTpEspServerSpecified() { - return localTpEspServerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] getTpEspServer() { - return localTpEspServer; - } - - /** validate the array for TpEspServer */ - protected void validateTpEspServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] param) {} - - /** - * Auto generated setter method - * - * @param param TpEspServer - */ - public void setTpEspServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] param) { - - validateTpEspServer(param); - - localTpEspServerTracker = param != null; - - this.localTpEspServer = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer - */ - public void addTpEspServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer param) { - if (localTpEspServer == null) { - localTpEspServer = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] {}; - } - - // update the setting tracker - localTpEspServerTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpEspServer); - list.add(param); - this.localTpEspServer = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpEspServer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpEspServer", - xmlWriter); - } - } - if (localTpEspServerTracker) { - if (localTpEspServer != null) { - for (int i = 0; i < localTpEspServer.length; i++) { - if (localTpEspServer[i] != null) { - localTpEspServer[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServer"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpEspServer cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpEspServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpEspServer object = new ArrayOfTpEspServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpEspServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpEspServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServer") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServer") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpEspServer( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpEspServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpEspServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpEspServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpEspServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpEspServer This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] localTpEspServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEspServerTracker = false; + + public boolean isTpEspServerSpecified() { + return localTpEspServerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] getTpEspServer() { + return localTpEspServer; + } + + /** validate the array for TpEspServer */ + protected void validateTpEspServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] param) {} + + /** + * Auto generated setter method + * + * @param param TpEspServer + */ + public void setTpEspServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] param) { + + validateTpEspServer(param); + + localTpEspServerTracker = param != null; + + this.localTpEspServer = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer + */ + public void addTpEspServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer param) { + if (localTpEspServer == null) { + localTpEspServer = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[] {}; + } + + // update the setting tracker + localTpEspServerTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpEspServer); + list.add(param); + this.localTpEspServer = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpEspServer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpEspServer", + xmlWriter); + } + } + if (localTpEspServerTracker) { + if (localTpEspServer != null) { + for (int i = 0; i < localTpEspServer.length; i++) { + if (localTpEspServer[i] != null) { + localTpEspServer[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServer"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpEspServer cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpEspServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpEspServer object = new ArrayOfTpEspServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpEspServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpEspServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServer") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServer") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpEspServer( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpFTSlave.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpFTSlave.java index cbd3cb6a6..cb89c40e7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpFTSlave.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpFTSlave.java @@ -1,455 +1,455 @@ -/** - * ArrayOfTpFTSlave.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpFTSlave bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpFTSlave implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpFTSlave - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpFTSlave This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] localTpFTSlave; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpFTSlaveTracker = false; - - public boolean isTpFTSlaveSpecified() { - return localTpFTSlaveTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] getTpFTSlave() { - return localTpFTSlave; - } - - /** validate the array for TpFTSlave */ - protected void validateTpFTSlave( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] param) {} - - /** - * Auto generated setter method - * - * @param param TpFTSlave - */ - public void setTpFTSlave( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] param) { - - validateTpFTSlave(param); - - localTpFTSlaveTracker = param != null; - - this.localTpFTSlave = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave - */ - public void addTpFTSlave(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave param) { - if (localTpFTSlave == null) { - localTpFTSlave = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] {}; - } - - // update the setting tracker - localTpFTSlaveTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpFTSlave); - list.add(param); - this.localTpFTSlave = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpFTSlave", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpFTSlave", - xmlWriter); - } - } - if (localTpFTSlaveTracker) { - if (localTpFTSlave != null) { - for (int i = 0; i < localTpFTSlave.length; i++) { - if (localTpFTSlave[i] != null) { - localTpFTSlave[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlave"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpFTSlave cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpFTSlave parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpFTSlave object = new ArrayOfTpFTSlave(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpFTSlave".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpFTSlave) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlave") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlave") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpFTSlave( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpFTSlave.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpFTSlave bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpFTSlave implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpFTSlave + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpFTSlave This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] localTpFTSlave; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpFTSlaveTracker = false; + + public boolean isTpFTSlaveSpecified() { + return localTpFTSlaveTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] getTpFTSlave() { + return localTpFTSlave; + } + + /** validate the array for TpFTSlave */ + protected void validateTpFTSlave( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] param) {} + + /** + * Auto generated setter method + * + * @param param TpFTSlave + */ + public void setTpFTSlave( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] param) { + + validateTpFTSlave(param); + + localTpFTSlaveTracker = param != null; + + this.localTpFTSlave = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave + */ + public void addTpFTSlave(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave param) { + if (localTpFTSlave == null) { + localTpFTSlave = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[] {}; + } + + // update the setting tracker + localTpFTSlaveTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpFTSlave); + list.add(param); + this.localTpFTSlave = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpFTSlave", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpFTSlave", + xmlWriter); + } + } + if (localTpFTSlaveTracker) { + if (localTpFTSlave != null) { + for (int i = 0; i < localTpFTSlave.length; i++) { + if (localTpFTSlave[i] != null) { + localTpFTSlave[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlave"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpFTSlave cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpFTSlave parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpFTSlave object = new ArrayOfTpFTSlave(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpFTSlave".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpFTSlave) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlave") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlave") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpFTSlave( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpGenesisServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpGenesisServer.java index 88485453a..7b0192295 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpGenesisServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpGenesisServer.java @@ -1,461 +1,461 @@ -/** - * ArrayOfTpGenesisServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpGenesisServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpGenesisServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpGenesisServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpGenesisServer This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] - localTpGenesisServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpGenesisServerTracker = false; - - public boolean isTpGenesisServerSpecified() { - return localTpGenesisServerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] - getTpGenesisServer() { - return localTpGenesisServer; - } - - /** validate the array for TpGenesisServer */ - protected void validateTpGenesisServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] param) {} - - /** - * Auto generated setter method - * - * @param param TpGenesisServer - */ - public void setTpGenesisServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] param) { - - validateTpGenesisServer(param); - - localTpGenesisServerTracker = param != null; - - this.localTpGenesisServer = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer - */ - public void addTpGenesisServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer param) { - if (localTpGenesisServer == null) { - localTpGenesisServer = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] {}; - } - - // update the setting tracker - localTpGenesisServerTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpGenesisServer); - list.add(param); - this.localTpGenesisServer = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpGenesisServer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpGenesisServer", - xmlWriter); - } - } - if (localTpGenesisServerTracker) { - if (localTpGenesisServer != null) { - for (int i = 0; i < localTpGenesisServer.length; i++) { - if (localTpGenesisServer[i] != null) { - localTpGenesisServer[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGenesisServer"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpGenesisServer cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpGenesisServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpGenesisServer object = new ArrayOfTpGenesisServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpGenesisServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpGenesisServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGenesisServer") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGenesisServer") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpGenesisServer( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpGenesisServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpGenesisServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpGenesisServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpGenesisServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpGenesisServer This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] + localTpGenesisServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpGenesisServerTracker = false; + + public boolean isTpGenesisServerSpecified() { + return localTpGenesisServerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] + getTpGenesisServer() { + return localTpGenesisServer; + } + + /** validate the array for TpGenesisServer */ + protected void validateTpGenesisServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] param) {} + + /** + * Auto generated setter method + * + * @param param TpGenesisServer + */ + public void setTpGenesisServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] param) { + + validateTpGenesisServer(param); + + localTpGenesisServerTracker = param != null; + + this.localTpGenesisServer = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer + */ + public void addTpGenesisServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer param) { + if (localTpGenesisServer == null) { + localTpGenesisServer = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[] {}; + } + + // update the setting tracker + localTpGenesisServerTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpGenesisServer); + list.add(param); + this.localTpGenesisServer = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpGenesisServer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpGenesisServer", + xmlWriter); + } + } + if (localTpGenesisServerTracker) { + if (localTpGenesisServer != null) { + for (int i = 0; i < localTpGenesisServer.length; i++) { + if (localTpGenesisServer[i] != null) { + localTpGenesisServer[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGenesisServer"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpGenesisServer cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpGenesisServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpGenesisServer object = new ArrayOfTpGenesisServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpGenesisServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpGenesisServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGenesisServer") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGenesisServer") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpGenesisServer( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpGroup.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpGroup.java index a07e5ef62..8cfc7a734 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpGroup.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpGroup.java @@ -1,452 +1,452 @@ -/** - * ArrayOfTpGroup.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpGroup bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpGroup implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpGroup - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpGroup This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] localTpGroup; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpGroupTracker = false; - - public boolean isTpGroupSpecified() { - return localTpGroupTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] getTpGroup() { - return localTpGroup; - } - - /** validate the array for TpGroup */ - protected void validateTpGroup( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] param) {} - - /** - * Auto generated setter method - * - * @param param TpGroup - */ - public void setTpGroup(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] param) { - - validateTpGroup(param); - - localTpGroupTracker = param != null; - - this.localTpGroup = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup - */ - public void addTpGroup(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup param) { - if (localTpGroup == null) { - localTpGroup = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] {}; - } - - // update the setting tracker - localTpGroupTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpGroup); - list.add(param); - this.localTpGroup = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpGroup", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpGroup", - xmlWriter); - } - } - if (localTpGroupTracker) { - if (localTpGroup != null) { - for (int i = 0; i < localTpGroup.length; i++) { - if (localTpGroup[i] != null) { - localTpGroup[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroup"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpGroup cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpGroup parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpGroup object = new ArrayOfTpGroup(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpGroup".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpGroup) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroup") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroup") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpGroup( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpGroup.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpGroup bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpGroup implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpGroup + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpGroup This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] localTpGroup; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpGroupTracker = false; + + public boolean isTpGroupSpecified() { + return localTpGroupTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] getTpGroup() { + return localTpGroup; + } + + /** validate the array for TpGroup */ + protected void validateTpGroup( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] param) {} + + /** + * Auto generated setter method + * + * @param param TpGroup + */ + public void setTpGroup(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] param) { + + validateTpGroup(param); + + localTpGroupTracker = param != null; + + this.localTpGroup = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup + */ + public void addTpGroup(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup param) { + if (localTpGroup == null) { + localTpGroup = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[] {}; + } + + // update the setting tracker + localTpGroupTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpGroup); + list.add(param); + this.localTpGroup = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpGroup", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpGroup", + xmlWriter); + } + } + if (localTpGroupTracker) { + if (localTpGroup != null) { + for (int i = 0; i < localTpGroup.length; i++) { + if (localTpGroup[i] != null) { + localTpGroup[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroup"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpGroup cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpGroup parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpGroup object = new ArrayOfTpGroup(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpGroup".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpGroup) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroup") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroup") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpGroup( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpLdapServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpLdapServer.java index 653f9b013..61e23a1a9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpLdapServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpLdapServer.java @@ -1,459 +1,459 @@ -/** - * ArrayOfTpLdapServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpLdapServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpLdapServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpLdapServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpLdapServer This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] localTpLdapServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpLdapServerTracker = false; - - public boolean isTpLdapServerSpecified() { - return localTpLdapServerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] getTpLdapServer() { - return localTpLdapServer; - } - - /** validate the array for TpLdapServer */ - protected void validateTpLdapServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] param) {} - - /** - * Auto generated setter method - * - * @param param TpLdapServer - */ - public void setTpLdapServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] param) { - - validateTpLdapServer(param); - - localTpLdapServerTracker = param != null; - - this.localTpLdapServer = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer - */ - public void addTpLdapServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer param) { - if (localTpLdapServer == null) { - localTpLdapServer = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] {}; - } - - // update the setting tracker - localTpLdapServerTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpLdapServer); - list.add(param); - this.localTpLdapServer = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpLdapServer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpLdapServer", - xmlWriter); - } - } - if (localTpLdapServerTracker) { - if (localTpLdapServer != null) { - for (int i = 0; i < localTpLdapServer.length; i++) { - if (localTpLdapServer[i] != null) { - localTpLdapServer[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServer"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpLdapServer cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpLdapServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpLdapServer object = new ArrayOfTpLdapServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpLdapServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpLdapServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServer") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServer") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpLdapServer( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpLdapServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpLdapServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpLdapServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpLdapServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpLdapServer This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] localTpLdapServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpLdapServerTracker = false; + + public boolean isTpLdapServerSpecified() { + return localTpLdapServerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] getTpLdapServer() { + return localTpLdapServer; + } + + /** validate the array for TpLdapServer */ + protected void validateTpLdapServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] param) {} + + /** + * Auto generated setter method + * + * @param param TpLdapServer + */ + public void setTpLdapServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] param) { + + validateTpLdapServer(param); + + localTpLdapServerTracker = param != null; + + this.localTpLdapServer = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer + */ + public void addTpLdapServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer param) { + if (localTpLdapServer == null) { + localTpLdapServer = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[] {}; + } + + // update the setting tracker + localTpLdapServerTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpLdapServer); + list.add(param); + this.localTpLdapServer = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpLdapServer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpLdapServer", + xmlWriter); + } + } + if (localTpLdapServerTracker) { + if (localTpLdapServer != null) { + for (int i = 0; i < localTpLdapServer.length; i++) { + if (localTpLdapServer[i] != null) { + localTpLdapServer[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServer"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpLdapServer cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpLdapServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpLdapServer object = new ArrayOfTpLdapServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpLdapServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpLdapServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServer") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServer") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpLdapServer( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpLogicalCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpLogicalCluster.java index d258c167b..4743b0fe8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpLogicalCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpLogicalCluster.java @@ -1,461 +1,461 @@ -/** - * ArrayOfTpLogicalCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpLogicalCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpLogicalCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpLogicalCluster - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpLogicalCluster This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] - localTpLogicalCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpLogicalClusterTracker = false; - - public boolean isTpLogicalClusterSpecified() { - return localTpLogicalClusterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] - getTpLogicalCluster() { - return localTpLogicalCluster; - } - - /** validate the array for TpLogicalCluster */ - protected void validateTpLogicalCluster( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] param) {} - - /** - * Auto generated setter method - * - * @param param TpLogicalCluster - */ - public void setTpLogicalCluster( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] param) { - - validateTpLogicalCluster(param); - - localTpLogicalClusterTracker = param != null; - - this.localTpLogicalCluster = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster - */ - public void addTpLogicalCluster( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster param) { - if (localTpLogicalCluster == null) { - localTpLogicalCluster = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] {}; - } - - // update the setting tracker - localTpLogicalClusterTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpLogicalCluster); - list.add(param); - this.localTpLogicalCluster = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpLogicalCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpLogicalCluster", - xmlWriter); - } - } - if (localTpLogicalClusterTracker) { - if (localTpLogicalCluster != null) { - for (int i = 0; i < localTpLogicalCluster.length; i++) { - if (localTpLogicalCluster[i] != null) { - localTpLogicalCluster[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogicalCluster"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpLogicalCluster cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpLogicalCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpLogicalCluster object = new ArrayOfTpLogicalCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpLogicalCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpLogicalCluster) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogicalCluster") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogicalCluster") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpLogicalCluster( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpLogicalCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpLogicalCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpLogicalCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpLogicalCluster + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpLogicalCluster This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] + localTpLogicalCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpLogicalClusterTracker = false; + + public boolean isTpLogicalClusterSpecified() { + return localTpLogicalClusterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] + getTpLogicalCluster() { + return localTpLogicalCluster; + } + + /** validate the array for TpLogicalCluster */ + protected void validateTpLogicalCluster( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] param) {} + + /** + * Auto generated setter method + * + * @param param TpLogicalCluster + */ + public void setTpLogicalCluster( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] param) { + + validateTpLogicalCluster(param); + + localTpLogicalClusterTracker = param != null; + + this.localTpLogicalCluster = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster + */ + public void addTpLogicalCluster( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster param) { + if (localTpLogicalCluster == null) { + localTpLogicalCluster = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[] {}; + } + + // update the setting tracker + localTpLogicalClusterTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpLogicalCluster); + list.add(param); + this.localTpLogicalCluster = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpLogicalCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpLogicalCluster", + xmlWriter); + } + } + if (localTpLogicalClusterTracker) { + if (localTpLogicalCluster != null) { + for (int i = 0; i < localTpLogicalCluster.length; i++) { + if (localTpLogicalCluster[i] != null) { + localTpLogicalCluster[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogicalCluster"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpLogicalCluster cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpLogicalCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpLogicalCluster object = new ArrayOfTpLogicalCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpLogicalCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpLogicalCluster) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogicalCluster") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogicalCluster") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpLogicalCluster( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpMachine.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpMachine.java index 7cf75afaa..9e63b2f60 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpMachine.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpMachine.java @@ -1,455 +1,455 @@ -/** - * ArrayOfTpMachine.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpMachine bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpMachine implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpMachine - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpMachine This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] localTpMachine; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachineTracker = false; - - public boolean isTpMachineSpecified() { - return localTpMachineTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] getTpMachine() { - return localTpMachine; - } - - /** validate the array for TpMachine */ - protected void validateTpMachine( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] param) {} - - /** - * Auto generated setter method - * - * @param param TpMachine - */ - public void setTpMachine( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] param) { - - validateTpMachine(param); - - localTpMachineTracker = param != null; - - this.localTpMachine = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine - */ - public void addTpMachine(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine param) { - if (localTpMachine == null) { - localTpMachine = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] {}; - } - - // update the setting tracker - localTpMachineTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpMachine); - list.add(param); - this.localTpMachine = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpMachine", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpMachine", - xmlWriter); - } - } - if (localTpMachineTracker) { - if (localTpMachine != null) { - for (int i = 0; i < localTpMachine.length; i++) { - if (localTpMachine[i] != null) { - localTpMachine[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachine"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpMachine cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpMachine parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpMachine object = new ArrayOfTpMachine(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpMachine".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpMachine) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachine") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachine") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpMachine( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpMachine.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpMachine bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpMachine implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpMachine + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpMachine This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] localTpMachine; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachineTracker = false; + + public boolean isTpMachineSpecified() { + return localTpMachineTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] getTpMachine() { + return localTpMachine; + } + + /** validate the array for TpMachine */ + protected void validateTpMachine( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] param) {} + + /** + * Auto generated setter method + * + * @param param TpMachine + */ + public void setTpMachine( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] param) { + + validateTpMachine(param); + + localTpMachineTracker = param != null; + + this.localTpMachine = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine + */ + public void addTpMachine(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine param) { + if (localTpMachine == null) { + localTpMachine = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[] {}; + } + + // update the setting tracker + localTpMachineTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpMachine); + list.add(param); + this.localTpMachine = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpMachine", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpMachine", + xmlWriter); + } + } + if (localTpMachineTracker) { + if (localTpMachine != null) { + for (int i = 0; i < localTpMachine.length; i++) { + if (localTpMachine[i] != null) { + localTpMachine[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachine"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpMachine cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpMachine parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpMachine object = new ArrayOfTpMachine(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpMachine".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpMachine) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachine") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachine") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpMachine( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpMySqlServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpMySqlServer.java index f01564229..def9f616e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpMySqlServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpMySqlServer.java @@ -1,460 +1,460 @@ -/** - * ArrayOfTpMySqlServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpMySqlServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpMySqlServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpMySqlServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpMySqlServer This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] - localTpMySqlServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMySqlServerTracker = false; - - public boolean isTpMySqlServerSpecified() { - return localTpMySqlServerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] getTpMySqlServer() { - return localTpMySqlServer; - } - - /** validate the array for TpMySqlServer */ - protected void validateTpMySqlServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] param) {} - - /** - * Auto generated setter method - * - * @param param TpMySqlServer - */ - public void setTpMySqlServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] param) { - - validateTpMySqlServer(param); - - localTpMySqlServerTracker = param != null; - - this.localTpMySqlServer = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer - */ - public void addTpMySqlServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer param) { - if (localTpMySqlServer == null) { - localTpMySqlServer = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] {}; - } - - // update the setting tracker - localTpMySqlServerTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpMySqlServer); - list.add(param); - this.localTpMySqlServer = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpMySqlServer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpMySqlServer", - xmlWriter); - } - } - if (localTpMySqlServerTracker) { - if (localTpMySqlServer != null) { - for (int i = 0; i < localTpMySqlServer.length; i++) { - if (localTpMySqlServer[i] != null) { - localTpMySqlServer[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServer"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpMySqlServer cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpMySqlServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpMySqlServer object = new ArrayOfTpMySqlServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpMySqlServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpMySqlServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServer") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServer") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpMySqlServer( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpMySqlServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpMySqlServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpMySqlServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpMySqlServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpMySqlServer This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] + localTpMySqlServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMySqlServerTracker = false; + + public boolean isTpMySqlServerSpecified() { + return localTpMySqlServerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] getTpMySqlServer() { + return localTpMySqlServer; + } + + /** validate the array for TpMySqlServer */ + protected void validateTpMySqlServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] param) {} + + /** + * Auto generated setter method + * + * @param param TpMySqlServer + */ + public void setTpMySqlServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] param) { + + validateTpMySqlServer(param); + + localTpMySqlServerTracker = param != null; + + this.localTpMySqlServer = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer + */ + public void addTpMySqlServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer param) { + if (localTpMySqlServer == null) { + localTpMySqlServer = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[] {}; + } + + // update the setting tracker + localTpMySqlServerTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpMySqlServer); + list.add(param); + this.localTpMySqlServer = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpMySqlServer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpMySqlServer", + xmlWriter); + } + } + if (localTpMySqlServerTracker) { + if (localTpMySqlServer != null) { + for (int i = 0; i < localTpMySqlServer.length; i++) { + if (localTpMySqlServer[i] != null) { + localTpMySqlServer[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServer"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpMySqlServer cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpMySqlServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpMySqlServer object = new ArrayOfTpMySqlServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpMySqlServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpMySqlServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServer") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServer") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpMySqlServer( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpQueue.java index f5d2bc8f5..50d98763d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpQueue.java @@ -1,452 +1,452 @@ -/** - * ArrayOfTpQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpQueue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpQueue - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpQueue This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] localTpQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpQueueTracker = false; - - public boolean isTpQueueSpecified() { - return localTpQueueTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] getTpQueue() { - return localTpQueue; - } - - /** validate the array for TpQueue */ - protected void validateTpQueue( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] param) {} - - /** - * Auto generated setter method - * - * @param param TpQueue - */ - public void setTpQueue(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] param) { - - validateTpQueue(param); - - localTpQueueTracker = param != null; - - this.localTpQueue = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue - */ - public void addTpQueue(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue param) { - if (localTpQueue == null) { - localTpQueue = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] {}; - } - - // update the setting tracker - localTpQueueTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpQueue); - list.add(param); - this.localTpQueue = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpQueue", - xmlWriter); - } - } - if (localTpQueueTracker) { - if (localTpQueue != null) { - for (int i = 0; i < localTpQueue.length; i++) { - if (localTpQueue[i] != null) { - localTpQueue[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueue"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpQueue cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpQueue object = new ArrayOfTpQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpQueue) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueue") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueue") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpQueue( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpQueue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpQueue + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpQueue This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] localTpQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpQueueTracker = false; + + public boolean isTpQueueSpecified() { + return localTpQueueTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] getTpQueue() { + return localTpQueue; + } + + /** validate the array for TpQueue */ + protected void validateTpQueue( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] param) {} + + /** + * Auto generated setter method + * + * @param param TpQueue + */ + public void setTpQueue(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] param) { + + validateTpQueue(param); + + localTpQueueTracker = param != null; + + this.localTpQueue = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue + */ + public void addTpQueue(org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue param) { + if (localTpQueue == null) { + localTpQueue = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[] {}; + } + + // update the setting tracker + localTpQueueTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpQueue); + list.add(param); + this.localTpQueue = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpQueue", + xmlWriter); + } + } + if (localTpQueueTracker) { + if (localTpQueue != null) { + for (int i = 0; i < localTpQueue.length; i++) { + if (localTpQueue[i] != null) { + localTpQueue[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueue"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpQueue cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpQueue object = new ArrayOfTpQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpQueue) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueue") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueue") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpQueue( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpSashaServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpSashaServer.java index fb2c0f2c6..2edc24c36 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpSashaServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpSashaServer.java @@ -1,460 +1,460 @@ -/** - * ArrayOfTpSashaServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpSashaServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpSashaServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpSashaServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpSashaServer This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] - localTpSashaServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpSashaServerTracker = false; - - public boolean isTpSashaServerSpecified() { - return localTpSashaServerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] getTpSashaServer() { - return localTpSashaServer; - } - - /** validate the array for TpSashaServer */ - protected void validateTpSashaServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] param) {} - - /** - * Auto generated setter method - * - * @param param TpSashaServer - */ - public void setTpSashaServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] param) { - - validateTpSashaServer(param); - - localTpSashaServerTracker = param != null; - - this.localTpSashaServer = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer - */ - public void addTpSashaServer( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer param) { - if (localTpSashaServer == null) { - localTpSashaServer = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] {}; - } - - // update the setting tracker - localTpSashaServerTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpSashaServer); - list.add(param); - this.localTpSashaServer = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpSashaServer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpSashaServer", - xmlWriter); - } - } - if (localTpSashaServerTracker) { - if (localTpSashaServer != null) { - for (int i = 0; i < localTpSashaServer.length; i++) { - if (localTpSashaServer[i] != null) { - localTpSashaServer[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServer"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpSashaServer cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpSashaServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpSashaServer object = new ArrayOfTpSashaServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpSashaServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpSashaServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServer") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServer") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpSashaServer( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpSashaServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpSashaServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpSashaServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpSashaServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpSashaServer This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] + localTpSashaServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpSashaServerTracker = false; + + public boolean isTpSashaServerSpecified() { + return localTpSashaServerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] getTpSashaServer() { + return localTpSashaServer; + } + + /** validate the array for TpSashaServer */ + protected void validateTpSashaServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] param) {} + + /** + * Auto generated setter method + * + * @param param TpSashaServer + */ + public void setTpSashaServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] param) { + + validateTpSashaServer(param); + + localTpSashaServerTracker = param != null; + + this.localTpSashaServer = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer + */ + public void addTpSashaServer( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer param) { + if (localTpSashaServer == null) { + localTpSashaServer = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[] {}; + } + + // update the setting tracker + localTpSashaServerTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpSashaServer); + list.add(param); + this.localTpSashaServer = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpSashaServer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpSashaServer", + xmlWriter); + } + } + if (localTpSashaServerTracker) { + if (localTpSashaServer != null) { + for (int i = 0; i < localTpSashaServer.length; i++) { + if (localTpSashaServer[i] != null) { + localTpSashaServer[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServer"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpSashaServer cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpSashaServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpSashaServer object = new ArrayOfTpSashaServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpSashaServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpSashaServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServer") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServer") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpSashaServer( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpSparkThor.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpSparkThor.java index 15390e6ad..18ff2a7f0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpSparkThor.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpSparkThor.java @@ -1,456 +1,456 @@ -/** - * ArrayOfTpSparkThor.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpSparkThor bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpSparkThor implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpSparkThor - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpSparkThor This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] localTpSparkThor; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpSparkThorTracker = false; - - public boolean isTpSparkThorSpecified() { - return localTpSparkThorTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] getTpSparkThor() { - return localTpSparkThor; - } - - /** validate the array for TpSparkThor */ - protected void validateTpSparkThor( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] param) {} - - /** - * Auto generated setter method - * - * @param param TpSparkThor - */ - public void setTpSparkThor( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] param) { - - validateTpSparkThor(param); - - localTpSparkThorTracker = param != null; - - this.localTpSparkThor = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor - */ - public void addTpSparkThor( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor param) { - if (localTpSparkThor == null) { - localTpSparkThor = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] {}; - } - - // update the setting tracker - localTpSparkThorTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpSparkThor); - list.add(param); - this.localTpSparkThor = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpSparkThor", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpSparkThor", - xmlWriter); - } - } - if (localTpSparkThorTracker) { - if (localTpSparkThor != null) { - for (int i = 0; i < localTpSparkThor.length; i++) { - if (localTpSparkThor[i] != null) { - localTpSparkThor[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThor"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpSparkThor cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpSparkThor parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpSparkThor object = new ArrayOfTpSparkThor(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpSparkThor".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpSparkThor) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThor") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThor") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpSparkThor( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpSparkThor.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpSparkThor bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpSparkThor implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpSparkThor + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpSparkThor This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] localTpSparkThor; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpSparkThorTracker = false; + + public boolean isTpSparkThorSpecified() { + return localTpSparkThorTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] getTpSparkThor() { + return localTpSparkThor; + } + + /** validate the array for TpSparkThor */ + protected void validateTpSparkThor( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] param) {} + + /** + * Auto generated setter method + * + * @param param TpSparkThor + */ + public void setTpSparkThor( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] param) { + + validateTpSparkThor(param); + + localTpSparkThorTracker = param != null; + + this.localTpSparkThor = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor + */ + public void addTpSparkThor( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor param) { + if (localTpSparkThor == null) { + localTpSparkThor = new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[] {}; + } + + // update the setting tracker + localTpSparkThorTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpSparkThor); + list.add(param); + this.localTpSparkThor = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpSparkThor", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpSparkThor", + xmlWriter); + } + } + if (localTpSparkThorTracker) { + if (localTpSparkThor != null) { + for (int i = 0; i < localTpSparkThor.length; i++) { + if (localTpSparkThor[i] != null) { + localTpSparkThor[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThor"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpSparkThor cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpSparkThor parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpSparkThor object = new ArrayOfTpSparkThor(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpSparkThor".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpSparkThor) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThor") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThor") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpSparkThor( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpTargetCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpTargetCluster.java index 2afc6023e..fdf9dc784 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpTargetCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ArrayOfTpTargetCluster.java @@ -1,461 +1,461 @@ -/** - * ArrayOfTpTargetCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ArrayOfTpTargetCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTpTargetCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTpTargetCluster - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpTargetCluster This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] - localTpTargetCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpTargetClusterTracker = false; - - public boolean isTpTargetClusterSpecified() { - return localTpTargetClusterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] - getTpTargetCluster() { - return localTpTargetCluster; - } - - /** validate the array for TpTargetCluster */ - protected void validateTpTargetCluster( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] param) {} - - /** - * Auto generated setter method - * - * @param param TpTargetCluster - */ - public void setTpTargetCluster( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] param) { - - validateTpTargetCluster(param); - - localTpTargetClusterTracker = param != null; - - this.localTpTargetCluster = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster - */ - public void addTpTargetCluster( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster param) { - if (localTpTargetCluster == null) { - localTpTargetCluster = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] {}; - } - - // update the setting tracker - localTpTargetClusterTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpTargetCluster); - list.add(param); - this.localTpTargetCluster = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTpTargetCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTpTargetCluster", - xmlWriter); - } - } - if (localTpTargetClusterTracker) { - if (localTpTargetCluster != null) { - for (int i = 0; i < localTpTargetCluster.length; i++) { - if (localTpTargetCluster[i] != null) { - localTpTargetCluster[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpTargetCluster"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("TpTargetCluster cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTpTargetCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTpTargetCluster object = new ArrayOfTpTargetCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTpTargetCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTpTargetCluster) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpTargetCluster") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpTargetCluster") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTpTargetCluster( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTpTargetCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ArrayOfTpTargetCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTpTargetCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTpTargetCluster + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpTargetCluster This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] + localTpTargetCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpTargetClusterTracker = false; + + public boolean isTpTargetClusterSpecified() { + return localTpTargetClusterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] + getTpTargetCluster() { + return localTpTargetCluster; + } + + /** validate the array for TpTargetCluster */ + protected void validateTpTargetCluster( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] param) {} + + /** + * Auto generated setter method + * + * @param param TpTargetCluster + */ + public void setTpTargetCluster( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] param) { + + validateTpTargetCluster(param); + + localTpTargetClusterTracker = param != null; + + this.localTpTargetCluster = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster + */ + public void addTpTargetCluster( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster param) { + if (localTpTargetCluster == null) { + localTpTargetCluster = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[] {}; + } + + // update the setting tracker + localTpTargetClusterTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTpTargetCluster); + list.add(param); + this.localTpTargetCluster = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTpTargetCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTpTargetCluster", + xmlWriter); + } + } + if (localTpTargetClusterTracker) { + if (localTpTargetCluster != null) { + for (int i = 0; i < localTpTargetCluster.length; i++) { + if (localTpTargetCluster[i] != null) { + localTpTargetCluster[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpTargetCluster"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("TpTargetCluster cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTpTargetCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTpTargetCluster object = new ArrayOfTpTargetCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTpTargetCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTpTargetCluster) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpTargetCluster") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpTargetCluster") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTpTargetCluster( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspException.java index 44f275b60..131da32eb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspException.java @@ -1,599 +1,599 @@ -/** - * EspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** EspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspException - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Code */ - protected java.lang.String localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(java.lang.String param) { - localCodeTracker = param != null; - - this.localCode = param; - } - - /** field for Audience */ - protected java.lang.String localAudience; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAudienceTracker = false; - - public boolean isAudienceSpecified() { - return localAudienceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAudience() { - return localAudience; - } - - /** - * Auto generated setter method - * - * @param param Audience - */ - public void setAudience(java.lang.String param) { - localAudienceTracker = param != null; - - this.localAudience = param; - } - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspException", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); - } - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Code", xmlWriter); - - if (localCode == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCode); - } - - xmlWriter.writeEndElement(); - } - if (localAudienceTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Audience", xmlWriter); - - if (localAudience == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAudience); - } - - xmlWriter.writeEndElement(); - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspException object = new EspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspException) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Audience") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Audience" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAudience( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** EspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspException + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Code */ + protected java.lang.String localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(java.lang.String param) { + localCodeTracker = param != null; + + this.localCode = param; + } + + /** field for Audience */ + protected java.lang.String localAudience; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAudienceTracker = false; + + public boolean isAudienceSpecified() { + return localAudienceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAudience() { + return localAudience; + } + + /** + * Auto generated setter method + * + * @param param Audience + */ + public void setAudience(java.lang.String param) { + localAudienceTracker = param != null; + + this.localAudience = param; + } + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspException", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); + } + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Code", xmlWriter); + + if (localCode == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCode); + } + + xmlWriter.writeEndElement(); + } + if (localAudienceTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Audience", xmlWriter); + + if (localAudience == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAudience); + } + + xmlWriter.writeEndElement(); + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspException object = new EspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspException) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Audience") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Audience" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAudience( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspSoapFault.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspSoapFault.java index a64a804d3..082c04767 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspSoapFault.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspSoapFault.java @@ -1,39 +1,39 @@ -/** - * EspSoapFault.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -public class EspSoapFault extends java.lang.Exception { - - private static final long serialVersionUID = 1686863029580L; - - private org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions faultMessage; - - public EspSoapFault() { - super("EspSoapFault"); - } - - public EspSoapFault(java.lang.String s) { - super(s); - } - - public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { - super(s, ex); - } - - public EspSoapFault(java.lang.Throwable cause) { - super(cause); - } - - public void setFaultMessage( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions msg) { - faultMessage = msg; - } - - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions getFaultMessage() { - return faultMessage; - } -} +/** + * EspSoapFault.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +public class EspSoapFault extends java.lang.Exception { + + private static final long serialVersionUID = 1710436327804L; + + private org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions faultMessage; + + public EspSoapFault() { + super("EspSoapFault"); + } + + public EspSoapFault(java.lang.String s) { + super(s); + } + + public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { + super(s, ex); + } + + public EspSoapFault(java.lang.Throwable cause) { + super(cause); + } + + public void setFaultMessage( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions msg) { + faultMessage = msg; + } + + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions getFaultMessage() { + return faultMessage; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspStringArray.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspStringArray.java index f39a9fd3b..141e37581 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspStringArray.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/EspStringArray.java @@ -1,451 +1,451 @@ -/** - * EspStringArray.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** EspStringArray bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspStringArray implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspStringArray - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Item This was an Array! */ - protected java.lang.String[] localItem; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localItemTracker = false; - - public boolean isItemSpecified() { - return localItemTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getItem() { - return localItem; - } - - /** validate the array for Item */ - protected void validateItem(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Item - */ - public void setItem(java.lang.String[] param) { - - validateItem(param); - - localItemTracker = param != null; - - this.localItem = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addItem(java.lang.String param) { - if (localItem == null) { - localItem = new java.lang.String[] {}; - } - - // update the setting tracker - localItemTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); - list.add(param); - this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspStringArray", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "EspStringArray", - xmlWriter); - } - } - if (localItemTracker) { - if (localItem != null) { - namespace = "urn:hpccsystems:ws:wstopology"; - for (int i = 0; i < localItem.length; i++) { - - if (localItem[i] != null) { - - writeStartElement(null, namespace, "Item", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspStringArray object = new EspStringArray(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspStringArray".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspStringArray) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Item") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Item") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspStringArray.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** EspStringArray bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspStringArray implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspStringArray + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Item This was an Array! */ + protected java.lang.String[] localItem; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localItemTracker = false; + + public boolean isItemSpecified() { + return localItemTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getItem() { + return localItem; + } + + /** validate the array for Item */ + protected void validateItem(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Item + */ + public void setItem(java.lang.String[] param) { + + validateItem(param); + + localItemTracker = param != null; + + this.localItem = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addItem(java.lang.String param) { + if (localItem == null) { + localItem = new java.lang.String[] {}; + } + + // update the setting tracker + localItemTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); + list.add(param); + this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspStringArray", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "EspStringArray", + xmlWriter); + } + } + if (localItemTracker) { + if (localItem != null) { + namespace = "urn:hpccsystems:ws:wstopology"; + for (int i = 0; i < localItem.length; i++) { + + if (localItem[i] != null) { + + writeStartElement(null, namespace, "Item", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspStringArray object = new EspStringArray(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspStringArray".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspStringArray) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Item") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Item") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/Exceptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/Exceptions.java index a5a62047c..c1af7efeb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/Exceptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/Exceptions.java @@ -1,316 +1,316 @@ -/** - * Exceptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** Exceptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Exceptions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); - } - localExceptions.serialize(MY_QNAME, xmlWriter); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Exceptions object = new Exceptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Exceptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** Exceptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Exceptions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); + } + localExceptions.serialize(MY_QNAME, xmlWriter); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Exceptions object = new Exceptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ExtensionMapper.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ExtensionMapper.java index 3e3dd542b..86c2da328 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ExtensionMapper.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/ExtensionMapper.java @@ -1,343 +1,356 @@ -/** - * ExtensionMapper.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** ExtensionMapper class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExtensionMapper { - - public static java.lang.Object getTypeObject( - java.lang.String namespaceURI, - java.lang.String typeName, - javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpMySqlServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpDkcSlave".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpLogicalCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpEclScheduler".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpBinding".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpMachine".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpBinding".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpDropZone".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpFTSlave".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "Plugins_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpDkcSlave".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "ArrayOfTpDali".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpTargetCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpClusterNameType".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpLdapServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "TpGenesisServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpDali".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpEclServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpSashaServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpEspServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpMachine".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpEclScheduler".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpEclAgent".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "TpLogicalCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpDropZone".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpSparkThor".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "ArrayOfTpQueue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpDfuServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpSparkThor".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpDfuServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "TpEspServicePlugin".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpLdapServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "TpTargetCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "TpClusterNameType".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpMySqlServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "ArrayOfTpGroup".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "RoxieQueueFilter".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpGenesisServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "EspStringArray".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpCluster".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpFTSlave".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpGroup".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpSashaServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpEclServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "EspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfEspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpServices".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpQueue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpEclAgent".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) - && "ArrayOfTpEspServer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer.Factory.parse( - reader); - } - - throw new org.apache.axis2.databinding.ADBException( - "Unsupported type " + namespaceURI + " " + typeName); - } -} +/** + * ExtensionMapper.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** ExtensionMapper class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExtensionMapper { + + public static java.lang.Object getTypeObject( + java.lang.String namespaceURI, + java.lang.String typeName, + javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpMySqlServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMySqlServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpDkcSlave".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDkcSlave.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpLogicalCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpEclScheduler".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpBinding".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpBinding.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpMachine".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpBinding".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpDropZone".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZone.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpFTSlave".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "Plugins_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpDkcSlave".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "ArrayOfTpDali".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpTargetCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpClusterNameType".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpLdapServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLdapServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "TpGenesisServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGenesisServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpDali".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDali.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpEclServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpSashaServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSashaServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpEspServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpMachine".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpEclScheduler".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclScheduler.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpEclAgent".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "TpLogicalCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalCluster.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfLogFileStruct".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfLogFileStruct.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpDropZone".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpSparkThor".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "ArrayOfTpQueue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpDfuServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDfuServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpSparkThor".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSparkThor.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpDfuServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "TpEspServicePlugin".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpLdapServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "TpTargetCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetCluster.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "TpClusterNameType".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterNameType.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpMySqlServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "ArrayOfTpGroup".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "RoxieQueueFilter".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "LogFileStruct".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.LogFileStruct.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpGenesisServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "EspStringArray".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpCluster".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpCluster.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpFTSlave".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpFTSlave.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpGroup".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroup.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpSashaServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpEclServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclServer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "EspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfEspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpServices".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpQueue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpQueue.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) && "TpEclAgent".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEclAgent.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wstopology".equals(namespaceURI) + && "ArrayOfTpEspServer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer.Factory.parse( + reader); + } + + throw new org.apache.axis2.databinding.ADBException( + "Unsupported type " + namespaceURI + " " + typeName); + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/LogFileStruct.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/LogFileStruct.java new file mode 100644 index 000000000..1099b2916 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/LogFileStruct.java @@ -0,0 +1,737 @@ +/** + * LogFileStruct.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** LogFileStruct bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LogFileStruct implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = LogFileStruct + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Host */ + protected java.lang.String localHost; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHostTracker = false; + + public boolean isHostSpecified() { + return localHostTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getHost() { + return localHost; + } + + /** + * Auto generated setter method + * + * @param param Host + */ + public void setHost(java.lang.String param) { + localHostTracker = param != null; + + this.localHost = param; + } + + /** field for IsDir */ + protected boolean localIsDir; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsDirTracker = false; + + public boolean isIsDirSpecified() { + return localIsDirTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsDir() { + return localIsDir; + } + + /** + * Auto generated setter method + * + * @param param IsDir + */ + public void setIsDir(boolean param) { + + // setting primitive attribute tracker to true + localIsDirTracker = true; + + this.localIsDir = param; + } + + /** field for FileSize */ + protected long localFileSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileSizeTracker = false; + + public boolean isFileSizeSpecified() { + return localFileSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getFileSize() { + return localFileSize; + } + + /** + * Auto generated setter method + * + * @param param FileSize + */ + public void setFileSize(long param) { + + // setting primitive attribute tracker to true + localFileSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localFileSize = param; + } + + /** field for Modifiedtime */ + protected java.lang.String localModifiedtime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModifiedtimeTracker = false; + + public boolean isModifiedtimeSpecified() { + return localModifiedtimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getModifiedtime() { + return localModifiedtime; + } + + /** + * Auto generated setter method + * + * @param param Modifiedtime + */ + public void setModifiedtime(java.lang.String param) { + localModifiedtimeTracker = param != null; + + this.localModifiedtime = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LogFileStruct", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "LogFileStruct", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localHostTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Host", xmlWriter); + + if (localHost == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Host cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localHost); + } + + xmlWriter.writeEndElement(); + } + if (localIsDirTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "IsDir", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsDir cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsDir)); + } + + xmlWriter.writeEndElement(); + } + if (localFileSizeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FileSize", xmlWriter); + + if (localFileSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("FileSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileSize)); + } + + xmlWriter.writeEndElement(); + } + if (localModifiedtimeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Modifiedtime", xmlWriter); + + if (localModifiedtime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Modifiedtime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localModifiedtime); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LogFileStruct parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LogFileStruct object = new LogFileStruct(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"LogFileStruct".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (LogFileStruct) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Host") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Host" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setHost( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "IsDir") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsDir" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsDir( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FileSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Modifiedtime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Modifiedtime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setModifiedtime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/Plugins_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/Plugins_type0.java index 85b244523..bd5c4bc4d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/Plugins_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/Plugins_type0.java @@ -1,455 +1,455 @@ -/** - * Plugins_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** Plugins_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Plugins_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Plugins_type0 - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Plugin This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] localPlugin; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPluginTracker = false; - - public boolean isPluginSpecified() { - return localPluginTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] getPlugin() { - return localPlugin; - } - - /** validate the array for Plugin */ - protected void validatePlugin( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] param) {} - - /** - * Auto generated setter method - * - * @param param Plugin - */ - public void setPlugin( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] param) { - - validatePlugin(param); - - localPluginTracker = param != null; - - this.localPlugin = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin - */ - public void addPlugin( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin param) { - if (localPlugin == null) { - localPlugin = - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] {}; - } - - // update the setting tracker - localPluginTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localPlugin); - list.add(param); - this.localPlugin = - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Plugins_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Plugins_type0", xmlWriter); - } - } - if (localPluginTracker) { - if (localPlugin != null) { - for (int i = 0; i < localPlugin.length; i++) { - if (localPlugin[i] != null) { - localPlugin[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugin"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Plugin cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Plugins_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Plugins_type0 object = new Plugins_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Plugins_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Plugins_type0) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugin") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugin") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setPlugin( - (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Plugins_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** Plugins_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Plugins_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Plugins_type0 + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Plugin This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] localPlugin; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPluginTracker = false; + + public boolean isPluginSpecified() { + return localPluginTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] getPlugin() { + return localPlugin; + } + + /** validate the array for Plugin */ + protected void validatePlugin( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] param) {} + + /** + * Auto generated setter method + * + * @param param Plugin + */ + public void setPlugin( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] param) { + + validatePlugin(param); + + localPluginTracker = param != null; + + this.localPlugin = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin + */ + public void addPlugin( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin param) { + if (localPlugin == null) { + localPlugin = + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[] {}; + } + + // update the setting tracker + localPluginTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localPlugin); + list.add(param); + this.localPlugin = + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Plugins_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Plugins_type0", xmlWriter); + } + } + if (localPluginTracker) { + if (localPlugin != null) { + for (int i = 0; i < localPlugin.length; i++) { + if (localPlugin[i] != null) { + localPlugin[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugin"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Plugin cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Plugins_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Plugins_type0 object = new Plugins_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Plugins_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Plugins_type0) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugin") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugin") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setPlugin( + (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpEspServicePlugin + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/RoxieQueueFilter.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/RoxieQueueFilter.java index 86b87cad7..96dbc0f25 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/RoxieQueueFilter.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/RoxieQueueFilter.java @@ -1,413 +1,413 @@ -/** - * RoxieQueueFilter.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** RoxieQueueFilter bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class RoxieQueueFilter implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "RoxieQueueFilter", "ns1"); - - /** field for RoxieQueueFilter */ - protected java.lang.String localRoxieQueueFilter; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected RoxieQueueFilter(java.lang.String value, boolean isRegisterValue) { - localRoxieQueueFilter = value; - if (isRegisterValue) { - - _table_.put(localRoxieQueueFilter, this); - } - } - - public static final java.lang.String _All = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("All"); - - public static final java.lang.String _QueriesOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("QueriesOnly"); - - public static final java.lang.String _WorkunitsOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("WorkunitsOnly"); - - public static final RoxieQueueFilter All = new RoxieQueueFilter(_All, true); - - public static final RoxieQueueFilter QueriesOnly = new RoxieQueueFilter(_QueriesOnly, true); - - public static final RoxieQueueFilter WorkunitsOnly = new RoxieQueueFilter(_WorkunitsOnly, true); - - public java.lang.String getValue() { - return localRoxieQueueFilter; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localRoxieQueueFilter.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":RoxieQueueFilter", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "RoxieQueueFilter", - xmlWriter); - } - } - - if (localRoxieQueueFilter == null) { - - throw new org.apache.axis2.databinding.ADBException("RoxieQueueFilter cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localRoxieQueueFilter); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static RoxieQueueFilter fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - RoxieQueueFilter enumeration = (RoxieQueueFilter) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static RoxieQueueFilter fromString(java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static RoxieQueueFilter fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return RoxieQueueFilter.Factory.fromString(content, namespaceUri); - } else { - return RoxieQueueFilter.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static RoxieQueueFilter parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - RoxieQueueFilter object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RoxieQueueFilter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = RoxieQueueFilter.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = RoxieQueueFilter.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * RoxieQueueFilter.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** RoxieQueueFilter bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class RoxieQueueFilter implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "RoxieQueueFilter", "ns1"); + + /** field for RoxieQueueFilter */ + protected java.lang.String localRoxieQueueFilter; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected RoxieQueueFilter(java.lang.String value, boolean isRegisterValue) { + localRoxieQueueFilter = value; + if (isRegisterValue) { + + _table_.put(localRoxieQueueFilter, this); + } + } + + public static final java.lang.String _All = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("All"); + + public static final java.lang.String _QueriesOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("QueriesOnly"); + + public static final java.lang.String _WorkunitsOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("WorkunitsOnly"); + + public static final RoxieQueueFilter All = new RoxieQueueFilter(_All, true); + + public static final RoxieQueueFilter QueriesOnly = new RoxieQueueFilter(_QueriesOnly, true); + + public static final RoxieQueueFilter WorkunitsOnly = new RoxieQueueFilter(_WorkunitsOnly, true); + + public java.lang.String getValue() { + return localRoxieQueueFilter; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localRoxieQueueFilter.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":RoxieQueueFilter", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "RoxieQueueFilter", + xmlWriter); + } + } + + if (localRoxieQueueFilter == null) { + + throw new org.apache.axis2.databinding.ADBException("RoxieQueueFilter cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localRoxieQueueFilter); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static RoxieQueueFilter fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + RoxieQueueFilter enumeration = (RoxieQueueFilter) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static RoxieQueueFilter fromString(java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static RoxieQueueFilter fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return RoxieQueueFilter.Factory.fromString(content, namespaceUri); + } else { + return RoxieQueueFilter.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static RoxieQueueFilter parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + RoxieQueueFilter object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RoxieQueueFilter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = RoxieQueueFilter.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = RoxieQueueFilter.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/String.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/String.java index 6dd2ac919..936b181a4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/String.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/String.java @@ -1,360 +1,360 @@ -/** - * String.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** String bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class String implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "string", "ns1"); - - /** field for String */ - protected java.lang.String localString; - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getString() { - return localString; - } - - /** - * Auto generated setter method - * - * @param param String - */ - public void setString(java.lang.String param) { - - this.localString = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - java.lang.String namespace = "urn:hpccsystems:ws:wstopology"; - java.lang.String _localName = "string"; - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":string", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); - } - } - - if (localString == null) { - - // write the nil attribute - writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); - - } else { - - xmlWriter.writeCharacters(localString); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - String object = new String(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - // Skip the element and report the null value. It cannot have subelements. - while (!reader.isEndElement()) reader.next(); - - return object; - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "string") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { - - java.lang.String content = reader.getElementText(); - - object.setString( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - } else { - - reader.getElementText(); // throw away text nodes if any. - } - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * String.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** String bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class String implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "string", "ns1"); + + /** field for String */ + protected java.lang.String localString; + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getString() { + return localString; + } + + /** + * Auto generated setter method + * + * @param param String + */ + public void setString(java.lang.String param) { + + this.localString = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + java.lang.String namespace = "urn:hpccsystems:ws:wstopology"; + java.lang.String _localName = "string"; + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":string", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); + } + } + + if (localString == null) { + + // write the nil attribute + writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); + + } else { + + xmlWriter.writeCharacters(localString); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + String object = new String(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + // Skip the element and report the null value. It cannot have subelements. + while (!reader.isEndElement()) reader.next(); + + return object; + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "string") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { + + java.lang.String content = reader.getElementText(); + + object.setString( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + } else { + + reader.getElementText(); // throw away text nodes if any. + } + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/SystemLogRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/SystemLogRequest.java index b89f18798..3bdd9312b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/SystemLogRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/SystemLogRequest.java @@ -1,532 +1,532 @@ -/** - * SystemLogRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** SystemLogRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SystemLogRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SystemLogRequest", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Zip */ - protected int localZip; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localZipTracker = false; - - public boolean isZipSpecified() { - return localZipTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getZip() { - return localZip; - } - - /** - * Auto generated setter method - * - * @param param Zip - */ - public void setZip(int param) { - - // setting primitive attribute tracker to true - localZipTracker = param != java.lang.Integer.MIN_VALUE; - - this.localZip = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SystemLogRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SystemLogRequest", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localZipTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Zip", xmlWriter); - - if (localZip == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Zip cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localZip)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SystemLogRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SystemLogRequest object = new SystemLogRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SystemLogRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SystemLogRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Zip") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Zip" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setZip(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SystemLogRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** SystemLogRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SystemLogRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SystemLogRequest", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Zip */ + protected int localZip; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localZipTracker = false; + + public boolean isZipSpecified() { + return localZipTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getZip() { + return localZip; + } + + /** + * Auto generated setter method + * + * @param param Zip + */ + public void setZip(int param) { + + // setting primitive attribute tracker to true + localZipTracker = param != java.lang.Integer.MIN_VALUE; + + this.localZip = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SystemLogRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SystemLogRequest", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localZipTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Zip", xmlWriter); + + if (localZip == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Zip cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localZip)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SystemLogRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SystemLogRequest object = new SystemLogRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SystemLogRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SystemLogRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Zip") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Zip" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setZip(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/SystemLogResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/SystemLogResponse.java index f639a87b4..657c8f23e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/SystemLogResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/SystemLogResponse.java @@ -1,443 +1,443 @@ -/** - * SystemLogResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** SystemLogResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SystemLogResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SystemLogResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Thefile */ - protected javax.activation.DataHandler localThefile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThefileTracker = false; - - public boolean isThefileSpecified() { - return localThefileTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getThefile() { - return localThefile; - } - - /** - * Auto generated setter method - * - * @param param Thefile - */ - public void setThefile(javax.activation.DataHandler param) { - localThefileTracker = param != null; - - this.localThefile = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SystemLogResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SystemLogResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localThefileTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "thefile", xmlWriter); - - if (localThefile != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localThefile, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for thefile", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SystemLogResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SystemLogResponse object = new SystemLogResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SystemLogResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SystemLogResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "thefile") - .equals(reader.getName())) { - - object.setThefile( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SystemLogResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** SystemLogResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SystemLogResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SystemLogResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Thefile */ + protected javax.activation.DataHandler localThefile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThefileTracker = false; + + public boolean isThefileSpecified() { + return localThefileTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getThefile() { + return localThefile; + } + + /** + * Auto generated setter method + * + * @param param Thefile + */ + public void setThefile(javax.activation.DataHandler param) { + localThefileTracker = param != null; + + this.localThefile = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SystemLogResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SystemLogResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localThefileTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "thefile", xmlWriter); + + if (localThefile != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localThefile, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for thefile", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SystemLogResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SystemLogResponse object = new SystemLogResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SystemLogResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SystemLogResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "thefile") + .equals(reader.getName())) { + + object.setThefile( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpBinding.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpBinding.java index fae74063e..37cec59c1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpBinding.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpBinding.java @@ -1,803 +1,803 @@ -/** - * TpBinding.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpBinding bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpBinding implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpBinding - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Service */ - protected java.lang.String localService; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServiceTracker = false; - - public boolean isServiceSpecified() { - return localServiceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getService() { - return localService; - } - - /** - * Auto generated setter method - * - * @param param Service - */ - public void setService(java.lang.String param) { - localServiceTracker = param != null; - - this.localService = param; - } - - /** field for ServiceType */ - protected java.lang.String localServiceType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServiceTypeTracker = false; - - public boolean isServiceTypeSpecified() { - return localServiceTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServiceType() { - return localServiceType; - } - - /** - * Auto generated setter method - * - * @param param ServiceType - */ - public void setServiceType(java.lang.String param) { - localServiceTypeTracker = param != null; - - this.localServiceType = param; - } - - /** field for BindingType */ - protected java.lang.String localBindingType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBindingTypeTracker = false; - - public boolean isBindingTypeSpecified() { - return localBindingTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBindingType() { - return localBindingType; - } - - /** - * Auto generated setter method - * - * @param param BindingType - */ - public void setBindingType(java.lang.String param) { - localBindingTypeTracker = param != null; - - this.localBindingType = param; - } - - /** field for ServiceBuildSet */ - protected java.lang.String localServiceBuildSet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServiceBuildSetTracker = false; - - public boolean isServiceBuildSetSpecified() { - return localServiceBuildSetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getServiceBuildSet() { - return localServiceBuildSet; - } - - /** - * Auto generated setter method - * - * @param param ServiceBuildSet - */ - public void setServiceBuildSet(java.lang.String param) { - localServiceBuildSetTracker = param != null; - - this.localServiceBuildSet = param; - } - - /** field for Port */ - protected java.lang.String localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(java.lang.String param) { - localPortTracker = param != null; - - this.localPort = param; - } - - /** field for Protocol */ - protected java.lang.String localProtocol; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtocolTracker = false; - - public boolean isProtocolSpecified() { - return localProtocolTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProtocol() { - return localProtocol; - } - - /** - * Auto generated setter method - * - * @param param Protocol - */ - public void setProtocol(java.lang.String param) { - localProtocolTracker = param != null; - - this.localProtocol = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpBinding", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpBinding", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localServiceTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Service", xmlWriter); - - if (localService == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Service cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localService); - } - - xmlWriter.writeEndElement(); - } - if (localServiceTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ServiceType", xmlWriter); - - if (localServiceType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServiceType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServiceType); - } - - xmlWriter.writeEndElement(); - } - if (localBindingTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "BindingType", xmlWriter); - - if (localBindingType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BindingType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBindingType); - } - - xmlWriter.writeEndElement(); - } - if (localServiceBuildSetTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ServiceBuildSet", xmlWriter); - - if (localServiceBuildSet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ServiceBuildSet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localServiceBuildSet); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPort); - } - - xmlWriter.writeEndElement(); - } - if (localProtocolTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Protocol", xmlWriter); - - if (localProtocol == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Protocol cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProtocol); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpBinding parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpBinding object = new TpBinding(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpBinding".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpBinding) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Service") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Service" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setService( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ServiceType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServiceType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServiceType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "BindingType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BindingType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBindingType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ServiceBuildSet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ServiceBuildSet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setServiceBuildSet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Protocol") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Protocol" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtocol( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpBinding.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpBinding bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpBinding implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpBinding + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Service */ + protected java.lang.String localService; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServiceTracker = false; + + public boolean isServiceSpecified() { + return localServiceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getService() { + return localService; + } + + /** + * Auto generated setter method + * + * @param param Service + */ + public void setService(java.lang.String param) { + localServiceTracker = param != null; + + this.localService = param; + } + + /** field for ServiceType */ + protected java.lang.String localServiceType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServiceTypeTracker = false; + + public boolean isServiceTypeSpecified() { + return localServiceTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServiceType() { + return localServiceType; + } + + /** + * Auto generated setter method + * + * @param param ServiceType + */ + public void setServiceType(java.lang.String param) { + localServiceTypeTracker = param != null; + + this.localServiceType = param; + } + + /** field for BindingType */ + protected java.lang.String localBindingType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBindingTypeTracker = false; + + public boolean isBindingTypeSpecified() { + return localBindingTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBindingType() { + return localBindingType; + } + + /** + * Auto generated setter method + * + * @param param BindingType + */ + public void setBindingType(java.lang.String param) { + localBindingTypeTracker = param != null; + + this.localBindingType = param; + } + + /** field for ServiceBuildSet */ + protected java.lang.String localServiceBuildSet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServiceBuildSetTracker = false; + + public boolean isServiceBuildSetSpecified() { + return localServiceBuildSetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getServiceBuildSet() { + return localServiceBuildSet; + } + + /** + * Auto generated setter method + * + * @param param ServiceBuildSet + */ + public void setServiceBuildSet(java.lang.String param) { + localServiceBuildSetTracker = param != null; + + this.localServiceBuildSet = param; + } + + /** field for Port */ + protected java.lang.String localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(java.lang.String param) { + localPortTracker = param != null; + + this.localPort = param; + } + + /** field for Protocol */ + protected java.lang.String localProtocol; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtocolTracker = false; + + public boolean isProtocolSpecified() { + return localProtocolTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProtocol() { + return localProtocol; + } + + /** + * Auto generated setter method + * + * @param param Protocol + */ + public void setProtocol(java.lang.String param) { + localProtocolTracker = param != null; + + this.localProtocol = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpBinding", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpBinding", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localServiceTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Service", xmlWriter); + + if (localService == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Service cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localService); + } + + xmlWriter.writeEndElement(); + } + if (localServiceTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ServiceType", xmlWriter); + + if (localServiceType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServiceType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServiceType); + } + + xmlWriter.writeEndElement(); + } + if (localBindingTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "BindingType", xmlWriter); + + if (localBindingType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BindingType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBindingType); + } + + xmlWriter.writeEndElement(); + } + if (localServiceBuildSetTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ServiceBuildSet", xmlWriter); + + if (localServiceBuildSet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ServiceBuildSet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localServiceBuildSet); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPort); + } + + xmlWriter.writeEndElement(); + } + if (localProtocolTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Protocol", xmlWriter); + + if (localProtocol == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Protocol cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProtocol); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpBinding parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpBinding object = new TpBinding(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpBinding".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpBinding) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Service") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Service" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setService( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ServiceType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServiceType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServiceType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "BindingType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BindingType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBindingType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ServiceBuildSet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ServiceBuildSet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setServiceBuildSet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Protocol") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Protocol" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtocol( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpCluster.java index 92a83d7ed..97161c305 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpCluster.java @@ -1,1130 +1,1130 @@ -/** - * TpCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpCluster - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for QueueName */ - protected java.lang.String localQueueName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueNameTracker = false; - - public boolean isQueueNameSpecified() { - return localQueueNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueueName() { - return localQueueName; - } - - /** - * Auto generated setter method - * - * @param param QueueName - */ - public void setQueueName(java.lang.String param) { - localQueueNameTracker = param != null; - - this.localQueueName = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Directory */ - protected java.lang.String localDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDirectoryTracker = false; - - public boolean isDirectorySpecified() { - return localDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDirectory() { - return localDirectory; - } - - /** - * Auto generated setter method - * - * @param param Directory - */ - public void setDirectory(java.lang.String param) { - localDirectoryTracker = param != null; - - this.localDirectory = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for Desc */ - protected java.lang.String localDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescTracker = false; - - public boolean isDescSpecified() { - return localDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDesc() { - return localDesc; - } - - /** - * Auto generated setter method - * - * @param param Desc - */ - public void setDesc(java.lang.String param) { - localDescTracker = param != null; - - this.localDesc = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for DataModel */ - protected java.lang.String localDataModel; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDataModelTracker = false; - - public boolean isDataModelSpecified() { - return localDataModelTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDataModel() { - return localDataModel; - } - - /** - * Auto generated setter method - * - * @param param DataModel - */ - public void setDataModel(java.lang.String param) { - localDataModelTracker = param != null; - - this.localDataModel = param; - } - - /** field for OS */ - protected int localOS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOSTracker = false; - - public boolean isOSSpecified() { - return localOSTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getOS() { - return localOS; - } - - /** - * Auto generated setter method - * - * @param param OS - */ - public void setOS(int param) { - - // setting primitive attribute tracker to true - localOSTracker = param != java.lang.Integer.MIN_VALUE; - - this.localOS = param; - } - - /** field for HasThorSpareProcess */ - protected boolean localHasThorSpareProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHasThorSpareProcessTracker = false; - - public boolean isHasThorSpareProcessSpecified() { - return localHasThorSpareProcessTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getHasThorSpareProcess() { - return localHasThorSpareProcess; - } - - /** - * Auto generated setter method - * - * @param param HasThorSpareProcess - */ - public void setHasThorSpareProcess(boolean param) { - - // setting primitive attribute tracker to true - localHasThorSpareProcessTracker = true; - - this.localHasThorSpareProcess = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpCluster", xmlWriter); - } - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localQueueNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "QueueName", xmlWriter); - - if (localQueueName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueueName); - } - - xmlWriter.writeEndElement(); - } - if (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Directory", xmlWriter); - - if (localDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localDescTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Desc", xmlWriter); - - if (localDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Desc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDesc); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localDataModelTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "DataModel", xmlWriter); - - if (localDataModel == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DataModel cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDataModel); - } - - xmlWriter.writeEndElement(); - } - if (localOSTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "OS", xmlWriter); - - if (localOS == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); - } - - xmlWriter.writeEndElement(); - } - if (localHasThorSpareProcessTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "HasThorSpareProcess", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("HasThorSpareProcess cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localHasThorSpareProcess)); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpCluster object = new TpCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpCluster) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "QueueName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueueName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueueName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Directory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Directory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Desc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Desc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DataModel") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DataModel" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDataModel( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "HasThorSpareProcess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "HasThorSpareProcess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setHasThorSpareProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpCluster + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for QueueName */ + protected java.lang.String localQueueName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueNameTracker = false; + + public boolean isQueueNameSpecified() { + return localQueueNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueueName() { + return localQueueName; + } + + /** + * Auto generated setter method + * + * @param param QueueName + */ + public void setQueueName(java.lang.String param) { + localQueueNameTracker = param != null; + + this.localQueueName = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Directory */ + protected java.lang.String localDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDirectoryTracker = false; + + public boolean isDirectorySpecified() { + return localDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDirectory() { + return localDirectory; + } + + /** + * Auto generated setter method + * + * @param param Directory + */ + public void setDirectory(java.lang.String param) { + localDirectoryTracker = param != null; + + this.localDirectory = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for Desc */ + protected java.lang.String localDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescTracker = false; + + public boolean isDescSpecified() { + return localDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDesc() { + return localDesc; + } + + /** + * Auto generated setter method + * + * @param param Desc + */ + public void setDesc(java.lang.String param) { + localDescTracker = param != null; + + this.localDesc = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for DataModel */ + protected java.lang.String localDataModel; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDataModelTracker = false; + + public boolean isDataModelSpecified() { + return localDataModelTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDataModel() { + return localDataModel; + } + + /** + * Auto generated setter method + * + * @param param DataModel + */ + public void setDataModel(java.lang.String param) { + localDataModelTracker = param != null; + + this.localDataModel = param; + } + + /** field for OS */ + protected int localOS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOSTracker = false; + + public boolean isOSSpecified() { + return localOSTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getOS() { + return localOS; + } + + /** + * Auto generated setter method + * + * @param param OS + */ + public void setOS(int param) { + + // setting primitive attribute tracker to true + localOSTracker = param != java.lang.Integer.MIN_VALUE; + + this.localOS = param; + } + + /** field for HasThorSpareProcess */ + protected boolean localHasThorSpareProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHasThorSpareProcessTracker = false; + + public boolean isHasThorSpareProcessSpecified() { + return localHasThorSpareProcessTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getHasThorSpareProcess() { + return localHasThorSpareProcess; + } + + /** + * Auto generated setter method + * + * @param param HasThorSpareProcess + */ + public void setHasThorSpareProcess(boolean param) { + + // setting primitive attribute tracker to true + localHasThorSpareProcessTracker = true; + + this.localHasThorSpareProcess = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpCluster", xmlWriter); + } + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localQueueNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "QueueName", xmlWriter); + + if (localQueueName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueueName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueueName); + } + + xmlWriter.writeEndElement(); + } + if (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Directory", xmlWriter); + + if (localDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localDescTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Desc", xmlWriter); + + if (localDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Desc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDesc); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localDataModelTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "DataModel", xmlWriter); + + if (localDataModel == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DataModel cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDataModel); + } + + xmlWriter.writeEndElement(); + } + if (localOSTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "OS", xmlWriter); + + if (localOS == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); + } + + xmlWriter.writeEndElement(); + } + if (localHasThorSpareProcessTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "HasThorSpareProcess", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("HasThorSpareProcess cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localHasThorSpareProcess)); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpCluster object = new TpCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpCluster) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "QueueName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueueName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueueName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Directory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Directory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Desc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Desc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DataModel") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DataModel" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDataModel( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "HasThorSpareProcess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "HasThorSpareProcess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setHasThorSpareProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterInfoRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterInfoRequest.java index 94b743dd7..c18f4617a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterInfoRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterInfoRequest.java @@ -1,396 +1,396 @@ -/** - * TpClusterInfoRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpClusterInfoRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpClusterInfoRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusterInfoRequest", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpClusterInfoRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpClusterInfoRequest", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - if (localName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpClusterInfoRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpClusterInfoRequest object = new TpClusterInfoRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpClusterInfoRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpClusterInfoRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpClusterInfoRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpClusterInfoRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpClusterInfoRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusterInfoRequest", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpClusterInfoRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpClusterInfoRequest", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + if (localName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpClusterInfoRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpClusterInfoRequest object = new TpClusterInfoRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpClusterInfoRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpClusterInfoRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterInfoResponse.java index 97d9401ef..7b561117b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterInfoResponse.java @@ -1,570 +1,570 @@ -/** - * TpClusterInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpClusterInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpClusterInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpClusterInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for WorkUnit */ - protected java.lang.String localWorkUnit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkUnitTracker = false; - - public boolean isWorkUnitSpecified() { - return localWorkUnitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWorkUnit() { - return localWorkUnit; - } - - /** - * Auto generated setter method - * - * @param param WorkUnit - */ - public void setWorkUnit(java.lang.String param) { - localWorkUnitTracker = param != null; - - this.localWorkUnit = param; - } - - /** field for TpQueues */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue localTpQueues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpQueuesTracker = false; - - public boolean isTpQueuesSpecified() { - return localTpQueuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue getTpQueues() { - return localTpQueues; - } - - /** - * Auto generated setter method - * - * @param param TpQueues - */ - public void setTpQueues( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue param) { - localTpQueuesTracker = param != null; - - this.localTpQueues = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpClusterInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpClusterInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localWorkUnitTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "WorkUnit", xmlWriter); - - if (localWorkUnit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WorkUnit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWorkUnit); - } - - xmlWriter.writeEndElement(); - } - if (localTpQueuesTracker) { - if (localTpQueues == null) { - throw new org.apache.axis2.databinding.ADBException("TpQueues cannot be null!!"); - } - localTpQueues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueues"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpClusterInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpClusterInfoResponse object = new TpClusterInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpClusterInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpClusterInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "WorkUnit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WorkUnit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWorkUnit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueues") - .equals(reader.getName())) { - - object.setTpQueues( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpClusterInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpClusterInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpClusterInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpClusterInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for WorkUnit */ + protected java.lang.String localWorkUnit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkUnitTracker = false; + + public boolean isWorkUnitSpecified() { + return localWorkUnitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWorkUnit() { + return localWorkUnit; + } + + /** + * Auto generated setter method + * + * @param param WorkUnit + */ + public void setWorkUnit(java.lang.String param) { + localWorkUnitTracker = param != null; + + this.localWorkUnit = param; + } + + /** field for TpQueues */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue localTpQueues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpQueuesTracker = false; + + public boolean isTpQueuesSpecified() { + return localTpQueuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue getTpQueues() { + return localTpQueues; + } + + /** + * Auto generated setter method + * + * @param param TpQueues + */ + public void setTpQueues( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue param) { + localTpQueuesTracker = param != null; + + this.localTpQueues = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpClusterInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpClusterInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localWorkUnitTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "WorkUnit", xmlWriter); + + if (localWorkUnit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WorkUnit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWorkUnit); + } + + xmlWriter.writeEndElement(); + } + if (localTpQueuesTracker) { + if (localTpQueues == null) { + throw new org.apache.axis2.databinding.ADBException("TpQueues cannot be null!!"); + } + localTpQueues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueues"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpClusterInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpClusterInfoResponse object = new TpClusterInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpClusterInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpClusterInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "WorkUnit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WorkUnit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWorkUnit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpQueues") + .equals(reader.getName())) { + + object.setTpQueues( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpQueue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterNameType.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterNameType.java index ffa9c2077..f1b2e5f5e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterNameType.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterNameType.java @@ -1,536 +1,536 @@ -/** - * TpClusterNameType.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpClusterNameType bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpClusterNameType implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpClusterNameType - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for IsDefault */ - protected boolean localIsDefault; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsDefaultTracker = false; - - public boolean isIsDefaultSpecified() { - return localIsDefaultTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsDefault() { - return localIsDefault; - } - - /** - * Auto generated setter method - * - * @param param IsDefault - */ - public void setIsDefault(boolean param) { - - // setting primitive attribute tracker to true - localIsDefaultTracker = true; - - this.localIsDefault = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpClusterNameType", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpClusterNameType", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localIsDefaultTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "IsDefault", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsDefault cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsDefault)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpClusterNameType parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpClusterNameType object = new TpClusterNameType(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpClusterNameType".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpClusterNameType) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "IsDefault") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsDefault" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsDefault( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpClusterNameType.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpClusterNameType bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpClusterNameType implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpClusterNameType + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for IsDefault */ + protected boolean localIsDefault; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsDefaultTracker = false; + + public boolean isIsDefaultSpecified() { + return localIsDefaultTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsDefault() { + return localIsDefault; + } + + /** + * Auto generated setter method + * + * @param param IsDefault + */ + public void setIsDefault(boolean param) { + + // setting primitive attribute tracker to true + localIsDefaultTracker = true; + + this.localIsDefault = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpClusterNameType", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpClusterNameType", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localIsDefaultTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "IsDefault", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsDefault cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsDefault)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpClusterNameType parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpClusterNameType object = new TpClusterNameType(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpClusterNameType".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpClusterNameType) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "IsDefault") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsDefault" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsDefault( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterQueryRequest.java index 5541023d6..f5e4e3658 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterQueryRequest.java @@ -1,397 +1,397 @@ -/** - * TpClusterQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpClusterQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpClusterQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpClusterQueryRequest", "ns1"); - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpClusterQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpClusterQueryRequest", - xmlWriter); - } - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpClusterQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpClusterQueryRequest object = new TpClusterQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpClusterQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpClusterQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpClusterQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpClusterQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpClusterQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpClusterQueryRequest", "ns1"); + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpClusterQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpClusterQueryRequest", + xmlWriter); + } + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpClusterQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpClusterQueryRequest object = new TpClusterQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpClusterQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpClusterQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterQueryResponse.java index 910176e58..f6c07e745 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpClusterQueryResponse.java @@ -1,571 +1,571 @@ -/** - * TpClusterQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpClusterQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpClusterQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpClusterQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for EnableSNMP */ - protected boolean localEnableSNMP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEnableSNMPTracker = false; - - public boolean isEnableSNMPSpecified() { - return localEnableSNMPTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getEnableSNMP() { - return localEnableSNMP; - } - - /** - * Auto generated setter method - * - * @param param EnableSNMP - */ - public void setEnableSNMP(boolean param) { - - // setting primitive attribute tracker to true - localEnableSNMPTracker = true; - - this.localEnableSNMP = param; - } - - /** field for AcceptLanguage */ - protected java.lang.String localAcceptLanguage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAcceptLanguageTracker = false; - - public boolean isAcceptLanguageSpecified() { - return localAcceptLanguageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAcceptLanguage() { - return localAcceptLanguage; - } - - /** - * Auto generated setter method - * - * @param param AcceptLanguage - */ - public void setAcceptLanguage(java.lang.String param) { - localAcceptLanguageTracker = param != null; - - this.localAcceptLanguage = param; - } - - /** field for TpClusters */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster localTpClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpClustersTracker = false; - - public boolean isTpClustersSpecified() { - return localTpClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster getTpClusters() { - return localTpClusters; - } - - /** - * Auto generated setter method - * - * @param param TpClusters - */ - public void setTpClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster param) { - localTpClustersTracker = param != null; - - this.localTpClusters = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpClusterQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpClusterQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localEnableSNMPTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "EnableSNMP", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("EnableSNMP cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableSNMP)); - } - - xmlWriter.writeEndElement(); - } - if (localAcceptLanguageTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); - - if (localAcceptLanguage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAcceptLanguage); - } - - xmlWriter.writeEndElement(); - } - if (localTpClustersTracker) { - if (localTpClusters == null) { - throw new org.apache.axis2.databinding.ADBException("TpClusters cannot be null!!"); - } - localTpClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusters"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpClusterQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpClusterQueryResponse object = new TpClusterQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpClusterQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpClusterQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EnableSNMP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EnableSNMP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEnableSNMP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AcceptLanguage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAcceptLanguage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusters") - .equals(reader.getName())) { - - object.setTpClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpClusterQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpClusterQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpClusterQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpClusterQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for EnableSNMP */ + protected boolean localEnableSNMP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEnableSNMPTracker = false; + + public boolean isEnableSNMPSpecified() { + return localEnableSNMPTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getEnableSNMP() { + return localEnableSNMP; + } + + /** + * Auto generated setter method + * + * @param param EnableSNMP + */ + public void setEnableSNMP(boolean param) { + + // setting primitive attribute tracker to true + localEnableSNMPTracker = true; + + this.localEnableSNMP = param; + } + + /** field for AcceptLanguage */ + protected java.lang.String localAcceptLanguage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAcceptLanguageTracker = false; + + public boolean isAcceptLanguageSpecified() { + return localAcceptLanguageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAcceptLanguage() { + return localAcceptLanguage; + } + + /** + * Auto generated setter method + * + * @param param AcceptLanguage + */ + public void setAcceptLanguage(java.lang.String param) { + localAcceptLanguageTracker = param != null; + + this.localAcceptLanguage = param; + } + + /** field for TpClusters */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster localTpClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpClustersTracker = false; + + public boolean isTpClustersSpecified() { + return localTpClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster getTpClusters() { + return localTpClusters; + } + + /** + * Auto generated setter method + * + * @param param TpClusters + */ + public void setTpClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster param) { + localTpClustersTracker = param != null; + + this.localTpClusters = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpClusterQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpClusterQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localEnableSNMPTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "EnableSNMP", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("EnableSNMP cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableSNMP)); + } + + xmlWriter.writeEndElement(); + } + if (localAcceptLanguageTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); + + if (localAcceptLanguage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAcceptLanguage); + } + + xmlWriter.writeEndElement(); + } + if (localTpClustersTracker) { + if (localTpClusters == null) { + throw new org.apache.axis2.databinding.ADBException("TpClusters cannot be null!!"); + } + localTpClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusters"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpClusterQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpClusterQueryResponse object = new TpClusterQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpClusterQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpClusterQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EnableSNMP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EnableSNMP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEnableSNMP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AcceptLanguage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAcceptLanguage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusters") + .equals(reader.getName())) { + + object.setTpClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDali.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDali.java index 552bc104c..921d54e21 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDali.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDali.java @@ -1,991 +1,991 @@ -/** - * TpDali.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpDali bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpDali implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpDali - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for BackupComputer */ - protected java.lang.String localBackupComputer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBackupComputerTracker = false; - - public boolean isBackupComputerSpecified() { - return localBackupComputerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBackupComputer() { - return localBackupComputer; - } - - /** - * Auto generated setter method - * - * @param param BackupComputer - */ - public void setBackupComputer(java.lang.String param) { - localBackupComputerTracker = param != null; - - this.localBackupComputer = param; - } - - /** field for BackupDirectory */ - protected java.lang.String localBackupDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBackupDirectoryTracker = false; - - public boolean isBackupDirectorySpecified() { - return localBackupDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBackupDirectory() { - return localBackupDirectory; - } - - /** - * Auto generated setter method - * - * @param param BackupDirectory - */ - public void setBackupDirectory(java.lang.String param) { - localBackupDirectoryTracker = param != null; - - this.localBackupDirectory = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for AuditLogDirectory */ - protected java.lang.String localAuditLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAuditLogDirectoryTracker = false; - - public boolean isAuditLogDirectorySpecified() { - return localAuditLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAuditLogDirectory() { - return localAuditLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param AuditLogDirectory - */ - public void setAuditLogDirectory(java.lang.String param) { - localAuditLogDirectoryTracker = param != null; - - this.localAuditLogDirectory = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpDali", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpDali", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localBackupComputerTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "BackupComputer", xmlWriter); - - if (localBackupComputer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BackupComputer cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBackupComputer); - } - - xmlWriter.writeEndElement(); - } - if (localBackupDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "BackupDirectory", xmlWriter); - - if (localBackupDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BackupDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBackupDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localAuditLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "AuditLogDirectory", xmlWriter); - - if (localAuditLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AuditLogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAuditLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpDali parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - TpDali object = new TpDali(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpDali".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpDali) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "BackupComputer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BackupComputer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBackupComputer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "BackupDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BackupDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBackupDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "AuditLogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AuditLogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAuditLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpDali.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpDali bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpDali implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpDali + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for BackupComputer */ + protected java.lang.String localBackupComputer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBackupComputerTracker = false; + + public boolean isBackupComputerSpecified() { + return localBackupComputerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBackupComputer() { + return localBackupComputer; + } + + /** + * Auto generated setter method + * + * @param param BackupComputer + */ + public void setBackupComputer(java.lang.String param) { + localBackupComputerTracker = param != null; + + this.localBackupComputer = param; + } + + /** field for BackupDirectory */ + protected java.lang.String localBackupDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBackupDirectoryTracker = false; + + public boolean isBackupDirectorySpecified() { + return localBackupDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBackupDirectory() { + return localBackupDirectory; + } + + /** + * Auto generated setter method + * + * @param param BackupDirectory + */ + public void setBackupDirectory(java.lang.String param) { + localBackupDirectoryTracker = param != null; + + this.localBackupDirectory = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for AuditLogDirectory */ + protected java.lang.String localAuditLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAuditLogDirectoryTracker = false; + + public boolean isAuditLogDirectorySpecified() { + return localAuditLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAuditLogDirectory() { + return localAuditLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param AuditLogDirectory + */ + public void setAuditLogDirectory(java.lang.String param) { + localAuditLogDirectoryTracker = param != null; + + this.localAuditLogDirectory = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpDali", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpDali", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localBackupComputerTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "BackupComputer", xmlWriter); + + if (localBackupComputer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BackupComputer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBackupComputer); + } + + xmlWriter.writeEndElement(); + } + if (localBackupDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "BackupDirectory", xmlWriter); + + if (localBackupDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BackupDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBackupDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localAuditLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "AuditLogDirectory", xmlWriter); + + if (localAuditLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AuditLogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAuditLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpDali parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + TpDali object = new TpDali(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpDali".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpDali) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "BackupComputer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BackupComputer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBackupComputer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "BackupDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BackupDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBackupDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "AuditLogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AuditLogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAuditLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDfuServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDfuServer.java index d2b8c0306..fa57d66ef 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDfuServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDfuServer.java @@ -1,855 +1,855 @@ -/** - * TpDfuServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpDfuServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpDfuServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpDfuServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpDfuServer", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpDfuServer", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpDfuServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpDfuServer object = new TpDfuServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpDfuServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpDfuServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpDfuServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpDfuServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpDfuServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpDfuServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpDfuServer", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpDfuServer", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpDfuServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpDfuServer object = new TpDfuServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpDfuServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpDfuServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDkcSlave.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDkcSlave.java index fa881d256..d11b38ba0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDkcSlave.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDkcSlave.java @@ -1,651 +1,651 @@ -/** - * TpDkcSlave.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpDkcSlave bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpDkcSlave implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpDkcSlave - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpDkcSlave", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpDkcSlave", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpDkcSlave parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpDkcSlave object = new TpDkcSlave(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpDkcSlave".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpDkcSlave) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpDkcSlave.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpDkcSlave bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpDkcSlave implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpDkcSlave + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpDkcSlave", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpDkcSlave", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpDkcSlave parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpDkcSlave object = new TpDkcSlave(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpDkcSlave".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpDkcSlave) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZone.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZone.java index b7b710adb..e107197c6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZone.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZone.java @@ -1,788 +1,788 @@ -/** - * TpDropZone.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpDropZone bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpDropZone implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpDropZone - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for ECLWatchVisible */ - protected boolean localECLWatchVisible; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLWatchVisibleTracker = false; - - public boolean isECLWatchVisibleSpecified() { - return localECLWatchVisibleTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getECLWatchVisible() { - return localECLWatchVisible; - } - - /** - * Auto generated setter method - * - * @param param ECLWatchVisible - */ - public void setECLWatchVisible(boolean param) { - - // setting primitive attribute tracker to true - localECLWatchVisibleTracker = true; - - this.localECLWatchVisible = param; - } - - /** field for UMask */ - protected java.lang.String localUMask; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUMaskTracker = false; - - public boolean isUMaskSpecified() { - return localUMaskTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getUMask() { - return localUMask; - } - - /** - * Auto generated setter method - * - * @param param UMask - */ - public void setUMask(java.lang.String param) { - localUMaskTracker = param != null; - - this.localUMask = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpDropZone", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpDropZone", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localECLWatchVisibleTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ECLWatchVisible", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ECLWatchVisible cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localECLWatchVisible)); - } - - xmlWriter.writeEndElement(); - } - if (localUMaskTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "UMask", xmlWriter); - - if (localUMask == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("UMask cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localUMask); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpDropZone parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpDropZone object = new TpDropZone(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpDropZone".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpDropZone) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ECLWatchVisible") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECLWatchVisible" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECLWatchVisible( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "UMask") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UMask" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUMask( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpDropZone.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpDropZone bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpDropZone implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpDropZone + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for ECLWatchVisible */ + protected boolean localECLWatchVisible; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWatchVisibleTracker = false; + + public boolean isECLWatchVisibleSpecified() { + return localECLWatchVisibleTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getECLWatchVisible() { + return localECLWatchVisible; + } + + /** + * Auto generated setter method + * + * @param param ECLWatchVisible + */ + public void setECLWatchVisible(boolean param) { + + // setting primitive attribute tracker to true + localECLWatchVisibleTracker = true; + + this.localECLWatchVisible = param; + } + + /** field for UMask */ + protected java.lang.String localUMask; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUMaskTracker = false; + + public boolean isUMaskSpecified() { + return localUMaskTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getUMask() { + return localUMask; + } + + /** + * Auto generated setter method + * + * @param param UMask + */ + public void setUMask(java.lang.String param) { + localUMaskTracker = param != null; + + this.localUMask = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpDropZone", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpDropZone", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localECLWatchVisibleTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ECLWatchVisible", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ECLWatchVisible cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localECLWatchVisible)); + } + + xmlWriter.writeEndElement(); + } + if (localUMaskTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "UMask", xmlWriter); + + if (localUMask == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("UMask cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localUMask); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpDropZone parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpDropZone object = new TpDropZone(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpDropZone".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpDropZone) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ECLWatchVisible") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECLWatchVisible" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECLWatchVisible( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "UMask") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UMask" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUMask( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZoneQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZoneQueryRequest.java index 8780a12d9..bef9d4d83 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZoneQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZoneQueryRequest.java @@ -1,468 +1,468 @@ -/** - * TpDropZoneQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpDropZoneQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpDropZoneQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpDropZoneQueryRequest", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for ECLWatchVisibleOnly */ - protected boolean localECLWatchVisibleOnly; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLWatchVisibleOnlyTracker = false; - - public boolean isECLWatchVisibleOnlySpecified() { - return localECLWatchVisibleOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getECLWatchVisibleOnly() { - return localECLWatchVisibleOnly; - } - - /** - * Auto generated setter method - * - * @param param ECLWatchVisibleOnly - */ - public void setECLWatchVisibleOnly(boolean param) { - - // setting primitive attribute tracker to true - localECLWatchVisibleOnlyTracker = true; - - this.localECLWatchVisibleOnly = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpDropZoneQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpDropZoneQueryRequest", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localECLWatchVisibleOnlyTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ECLWatchVisibleOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ECLWatchVisibleOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localECLWatchVisibleOnly)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpDropZoneQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpDropZoneQueryRequest object = new TpDropZoneQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpDropZoneQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpDropZoneQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "ECLWatchVisibleOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECLWatchVisibleOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECLWatchVisibleOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpDropZoneQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpDropZoneQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpDropZoneQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpDropZoneQueryRequest", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for ECLWatchVisibleOnly */ + protected boolean localECLWatchVisibleOnly; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWatchVisibleOnlyTracker = false; + + public boolean isECLWatchVisibleOnlySpecified() { + return localECLWatchVisibleOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getECLWatchVisibleOnly() { + return localECLWatchVisibleOnly; + } + + /** + * Auto generated setter method + * + * @param param ECLWatchVisibleOnly + */ + public void setECLWatchVisibleOnly(boolean param) { + + // setting primitive attribute tracker to true + localECLWatchVisibleOnlyTracker = true; + + this.localECLWatchVisibleOnly = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpDropZoneQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpDropZoneQueryRequest", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localECLWatchVisibleOnlyTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ECLWatchVisibleOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ECLWatchVisibleOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localECLWatchVisibleOnly)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpDropZoneQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpDropZoneQueryRequest object = new TpDropZoneQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpDropZoneQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpDropZoneQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "ECLWatchVisibleOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECLWatchVisibleOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECLWatchVisibleOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZoneQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZoneQueryResponse.java index 57892b55e..4fa5b0cec 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZoneQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpDropZoneQueryResponse.java @@ -1,435 +1,435 @@ -/** - * TpDropZoneQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpDropZoneQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpDropZoneQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpDropZoneQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for TpDropZones */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone - localTpDropZones; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDropZonesTracker = false; - - public boolean isTpDropZonesSpecified() { - return localTpDropZonesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone getTpDropZones() { - return localTpDropZones; - } - - /** - * Auto generated setter method - * - * @param param TpDropZones - */ - public void setTpDropZones( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone param) { - localTpDropZonesTracker = param != null; - - this.localTpDropZones = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpDropZoneQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpDropZoneQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localTpDropZonesTracker) { - if (localTpDropZones == null) { - throw new org.apache.axis2.databinding.ADBException("TpDropZones cannot be null!!"); - } - localTpDropZones.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZones"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpDropZoneQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpDropZoneQueryResponse object = new TpDropZoneQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpDropZoneQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpDropZoneQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZones") - .equals(reader.getName())) { - - object.setTpDropZones( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpDropZoneQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpDropZoneQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpDropZoneQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpDropZoneQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for TpDropZones */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone + localTpDropZones; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDropZonesTracker = false; + + public boolean isTpDropZonesSpecified() { + return localTpDropZonesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone getTpDropZones() { + return localTpDropZones; + } + + /** + * Auto generated setter method + * + * @param param TpDropZones + */ + public void setTpDropZones( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone param) { + localTpDropZonesTracker = param != null; + + this.localTpDropZones = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpDropZoneQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpDropZoneQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localTpDropZonesTracker) { + if (localTpDropZones == null) { + throw new org.apache.axis2.databinding.ADBException("TpDropZones cannot be null!!"); + } + localTpDropZones.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZones"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpDropZoneQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpDropZoneQueryResponse object = new TpDropZoneQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpDropZoneQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpDropZoneQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZones") + .equals(reader.getName())) { + + object.setTpDropZones( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclAgent.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclAgent.java index 1f6b7b288..3102046ab 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclAgent.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclAgent.java @@ -1,855 +1,855 @@ -/** - * TpEclAgent.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpEclAgent bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpEclAgent implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpEclAgent - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for DaliServer */ - protected java.lang.String localDaliServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDaliServerTracker = false; - - public boolean isDaliServerSpecified() { - return localDaliServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDaliServer() { - return localDaliServer; - } - - /** - * Auto generated setter method - * - * @param param DaliServer - */ - public void setDaliServer(java.lang.String param) { - localDaliServerTracker = param != null; - - this.localDaliServer = param; - } - - /** field for LogDir */ - protected java.lang.String localLogDir; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirTracker = false; - - public boolean isLogDirSpecified() { - return localLogDirTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDir() { - return localLogDir; - } - - /** - * Auto generated setter method - * - * @param param LogDir - */ - public void setLogDir(java.lang.String param) { - localLogDirTracker = param != null; - - this.localLogDir = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpEclAgent", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpEclAgent", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localDaliServerTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "DaliServer", xmlWriter); - - if (localDaliServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DaliServer cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDaliServer); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDir", xmlWriter); - - if (localLogDir == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDir cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDir); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpEclAgent parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpEclAgent object = new TpEclAgent(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpEclAgent".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpEclAgent) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DaliServer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DaliServer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDaliServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDir") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDir" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDir( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpEclAgent.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpEclAgent bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpEclAgent implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpEclAgent + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for DaliServer */ + protected java.lang.String localDaliServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDaliServerTracker = false; + + public boolean isDaliServerSpecified() { + return localDaliServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDaliServer() { + return localDaliServer; + } + + /** + * Auto generated setter method + * + * @param param DaliServer + */ + public void setDaliServer(java.lang.String param) { + localDaliServerTracker = param != null; + + this.localDaliServer = param; + } + + /** field for LogDir */ + protected java.lang.String localLogDir; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirTracker = false; + + public boolean isLogDirSpecified() { + return localLogDirTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDir() { + return localLogDir; + } + + /** + * Auto generated setter method + * + * @param param LogDir + */ + public void setLogDir(java.lang.String param) { + localLogDirTracker = param != null; + + this.localLogDir = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpEclAgent", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpEclAgent", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localDaliServerTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "DaliServer", xmlWriter); + + if (localDaliServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DaliServer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDaliServer); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDir", xmlWriter); + + if (localLogDir == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDir cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDir); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpEclAgent parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpEclAgent object = new TpEclAgent(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpEclAgent".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpEclAgent) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DaliServer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DaliServer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDaliServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDir") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDir" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDir( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclScheduler.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclScheduler.java index f983657ea..ef8a82633 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclScheduler.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclScheduler.java @@ -1,791 +1,791 @@ -/** - * TpEclScheduler.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpEclScheduler bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpEclScheduler implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpEclScheduler - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpEclScheduler", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpEclScheduler", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpEclScheduler parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpEclScheduler object = new TpEclScheduler(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpEclScheduler".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpEclScheduler) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpEclScheduler.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpEclScheduler bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpEclScheduler implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpEclScheduler + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpEclScheduler", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpEclScheduler", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpEclScheduler parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpEclScheduler object = new TpEclScheduler(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpEclScheduler".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpEclScheduler) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclServer.java index 40c19bcf5..04457bc1b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEclServer.java @@ -1,787 +1,787 @@ -/** - * TpEclServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpEclServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpEclServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpEclServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpEclServer", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpEclServer", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpEclServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpEclServer object = new TpEclServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpEclServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpEclServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpEclServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpEclServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpEclServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpEclServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpEclServer", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpEclServer", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpEclServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpEclServer object = new TpEclServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpEclServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpEclServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEspServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEspServer.java index 4ad29d544..c1354b1e6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEspServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEspServer.java @@ -1,839 +1,839 @@ -/** - * TpEspServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpEspServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpEspServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpEspServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** field for TpBindings */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding localTpBindings; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpBindingsTracker = false; - - public boolean isTpBindingsSpecified() { - return localTpBindingsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding getTpBindings() { - return localTpBindings; - } - - /** - * Auto generated setter method - * - * @param param TpBindings - */ - public void setTpBindings( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding param) { - localTpBindingsTracker = param != null; - - this.localTpBindings = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpEspServer", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpEspServer", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - if (localTpBindingsTracker) { - if (localTpBindings == null) { - throw new org.apache.axis2.databinding.ADBException("TpBindings cannot be null!!"); - } - localTpBindings.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBindings"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpEspServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpEspServer object = new TpEspServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpEspServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpEspServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBindings") - .equals(reader.getName())) { - - object.setTpBindings( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpEspServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpEspServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpEspServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpEspServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** field for TpBindings */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding localTpBindings; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpBindingsTracker = false; + + public boolean isTpBindingsSpecified() { + return localTpBindingsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding getTpBindings() { + return localTpBindings; + } + + /** + * Auto generated setter method + * + * @param param TpBindings + */ + public void setTpBindings( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding param) { + localTpBindingsTracker = param != null; + + this.localTpBindings = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpEspServer", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpEspServer", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + if (localTpBindingsTracker) { + if (localTpBindings == null) { + throw new org.apache.axis2.databinding.ADBException("TpBindings cannot be null!!"); + } + localTpBindings.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBindings"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpEspServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpEspServer object = new TpEspServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpEspServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpEspServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpBindings") + .equals(reader.getName())) { + + object.setTpBindings( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpBinding.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEspServicePlugin.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEspServicePlugin.java index b5d615990..ad2f0e408 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEspServicePlugin.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpEspServicePlugin.java @@ -1,603 +1,603 @@ -/** - * TpEspServicePlugin.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpEspServicePlugin bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpEspServicePlugin implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpEspServicePlugin - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for ShortName */ - protected java.lang.String localShortName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShortNameTracker = false; - - public boolean isShortNameSpecified() { - return localShortNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getShortName() { - return localShortName; - } - - /** - * Auto generated setter method - * - * @param param ShortName - */ - public void setShortName(java.lang.String param) { - localShortNameTracker = param != null; - - this.localShortName = param; - } - - /** field for LongName */ - protected java.lang.String localLongName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLongNameTracker = false; - - public boolean isLongNameSpecified() { - return localLongNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLongName() { - return localLongName; - } - - /** - * Auto generated setter method - * - * @param param LongName - */ - public void setLongName(java.lang.String param) { - localLongNameTracker = param != null; - - this.localLongName = param; - } - - /** field for FolderName */ - protected java.lang.String localFolderName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFolderNameTracker = false; - - public boolean isFolderNameSpecified() { - return localFolderNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFolderName() { - return localFolderName; - } - - /** - * Auto generated setter method - * - * @param param FolderName - */ - public void setFolderName(java.lang.String param) { - localFolderNameTracker = param != null; - - this.localFolderName = param; - } - - /** field for WidgetName */ - protected java.lang.String localWidgetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWidgetNameTracker = false; - - public boolean isWidgetNameSpecified() { - return localWidgetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWidgetName() { - return localWidgetName; - } - - /** - * Auto generated setter method - * - * @param param WidgetName - */ - public void setWidgetName(java.lang.String param) { - localWidgetNameTracker = param != null; - - this.localWidgetName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpEspServicePlugin", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpEspServicePlugin", - xmlWriter); - } - } - if (localShortNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ShortName", xmlWriter); - - if (localShortName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ShortName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localShortName); - } - - xmlWriter.writeEndElement(); - } - if (localLongNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LongName", xmlWriter); - - if (localLongName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LongName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLongName); - } - - xmlWriter.writeEndElement(); - } - if (localFolderNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "FolderName", xmlWriter); - - if (localFolderName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FolderName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFolderName); - } - - xmlWriter.writeEndElement(); - } - if (localWidgetNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "WidgetName", xmlWriter); - - if (localWidgetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WidgetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWidgetName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpEspServicePlugin parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpEspServicePlugin object = new TpEspServicePlugin(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpEspServicePlugin".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpEspServicePlugin) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ShortName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShortName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShortName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LongName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LongName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLongName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FolderName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FolderName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFolderName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "WidgetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WidgetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWidgetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpEspServicePlugin.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpEspServicePlugin bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpEspServicePlugin implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpEspServicePlugin + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for ShortName */ + protected java.lang.String localShortName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShortNameTracker = false; + + public boolean isShortNameSpecified() { + return localShortNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getShortName() { + return localShortName; + } + + /** + * Auto generated setter method + * + * @param param ShortName + */ + public void setShortName(java.lang.String param) { + localShortNameTracker = param != null; + + this.localShortName = param; + } + + /** field for LongName */ + protected java.lang.String localLongName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLongNameTracker = false; + + public boolean isLongNameSpecified() { + return localLongNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLongName() { + return localLongName; + } + + /** + * Auto generated setter method + * + * @param param LongName + */ + public void setLongName(java.lang.String param) { + localLongNameTracker = param != null; + + this.localLongName = param; + } + + /** field for FolderName */ + protected java.lang.String localFolderName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFolderNameTracker = false; + + public boolean isFolderNameSpecified() { + return localFolderNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFolderName() { + return localFolderName; + } + + /** + * Auto generated setter method + * + * @param param FolderName + */ + public void setFolderName(java.lang.String param) { + localFolderNameTracker = param != null; + + this.localFolderName = param; + } + + /** field for WidgetName */ + protected java.lang.String localWidgetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWidgetNameTracker = false; + + public boolean isWidgetNameSpecified() { + return localWidgetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWidgetName() { + return localWidgetName; + } + + /** + * Auto generated setter method + * + * @param param WidgetName + */ + public void setWidgetName(java.lang.String param) { + localWidgetNameTracker = param != null; + + this.localWidgetName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpEspServicePlugin", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpEspServicePlugin", + xmlWriter); + } + } + if (localShortNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ShortName", xmlWriter); + + if (localShortName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ShortName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localShortName); + } + + xmlWriter.writeEndElement(); + } + if (localLongNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LongName", xmlWriter); + + if (localLongName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LongName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLongName); + } + + xmlWriter.writeEndElement(); + } + if (localFolderNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FolderName", xmlWriter); + + if (localFolderName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FolderName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFolderName); + } + + xmlWriter.writeEndElement(); + } + if (localWidgetNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "WidgetName", xmlWriter); + + if (localWidgetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WidgetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWidgetName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpEspServicePlugin parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpEspServicePlugin object = new TpEspServicePlugin(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpEspServicePlugin".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpEspServicePlugin) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ShortName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShortName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShortName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LongName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LongName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLongName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FolderName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FolderName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFolderName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "WidgetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WidgetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWidgetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpFTSlave.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpFTSlave.java index 111fcbced..7336991df 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpFTSlave.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpFTSlave.java @@ -1,651 +1,651 @@ -/** - * TpFTSlave.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpFTSlave bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpFTSlave implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpFTSlave - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpFTSlave", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpFTSlave", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpFTSlave parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpFTSlave object = new TpFTSlave(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpFTSlave".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpFTSlave) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpFTSlave.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpFTSlave bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpFTSlave implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpFTSlave + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpFTSlave", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpFTSlave", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpFTSlave parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpFTSlave object = new TpFTSlave(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpFTSlave".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpFTSlave) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGenesisServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGenesisServer.java index 4f701dbef..96d1b2190 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGenesisServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGenesisServer.java @@ -1,655 +1,655 @@ -/** - * TpGenesisServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpGenesisServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpGenesisServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpGenesisServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpGenesisServer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpGenesisServer", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpGenesisServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpGenesisServer object = new TpGenesisServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpGenesisServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpGenesisServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpGenesisServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpGenesisServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpGenesisServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpGenesisServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpGenesisServer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpGenesisServer", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpGenesisServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpGenesisServer object = new TpGenesisServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpGenesisServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpGenesisServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetComponentFileRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetComponentFileRequest.java index faa8ffaae..bcf23b075 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetComponentFileRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetComponentFileRequest.java @@ -1,806 +1,806 @@ -/** - * TpGetComponentFileRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpGetComponentFileRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpGetComponentFileRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpGetComponentFileRequest", "ns1"); - - /** field for CompType */ - protected java.lang.String localCompType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompTypeTracker = false; - - public boolean isCompTypeSpecified() { - return localCompTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCompType() { - return localCompType; - } - - /** - * Auto generated setter method - * - * @param param CompType - */ - public void setCompType(java.lang.String param) { - localCompTypeTracker = param != null; - - this.localCompType = param; - } - - /** field for CompName */ - protected java.lang.String localCompName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompNameTracker = false; - - public boolean isCompNameSpecified() { - return localCompNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCompName() { - return localCompName; - } - - /** - * Auto generated setter method - * - * @param param CompName - */ - public void setCompName(java.lang.String param) { - localCompNameTracker = param != null; - - this.localCompName = param; - } - - /** field for NetAddress */ - protected java.lang.String localNetAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetAddressTracker = false; - - public boolean isNetAddressSpecified() { - return localNetAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetAddress() { - return localNetAddress; - } - - /** - * Auto generated setter method - * - * @param param NetAddress - */ - public void setNetAddress(java.lang.String param) { - localNetAddressTracker = param != null; - - this.localNetAddress = param; - } - - /** field for Directory */ - protected java.lang.String localDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDirectoryTracker = false; - - public boolean isDirectorySpecified() { - return localDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDirectory() { - return localDirectory; - } - - /** - * Auto generated setter method - * - * @param param Directory - */ - public void setDirectory(java.lang.String param) { - localDirectoryTracker = param != null; - - this.localDirectory = param; - } - - /** field for FileType */ - protected java.lang.String localFileType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTypeTracker = false; - - public boolean isFileTypeSpecified() { - return localFileTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileType() { - return localFileType; - } - - /** - * Auto generated setter method - * - * @param param FileType - */ - public void setFileType(java.lang.String param) { - localFileTypeTracker = param != null; - - this.localFileType = param; - } - - /** field for OsType */ - protected int localOsType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOsTypeTracker = false; - - public boolean isOsTypeSpecified() { - return localOsTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getOsType() { - return localOsType; - } - - /** - * Auto generated setter method - * - * @param param OsType - */ - public void setOsType(int param) { - - // setting primitive attribute tracker to true - localOsTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localOsType = param; - } - - /** field for PlainText */ - protected java.lang.String localPlainText; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPlainTextTracker = false; - - public boolean isPlainTextSpecified() { - return localPlainTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPlainText() { - return localPlainText; - } - - /** - * Auto generated setter method - * - * @param param PlainText - */ - public void setPlainText(java.lang.String param) { - localPlainTextTracker = param != null; - - this.localPlainText = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpGetComponentFileRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpGetComponentFileRequest", - xmlWriter); - } - } - if (localCompTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "CompType", xmlWriter); - - if (localCompType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("CompType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCompType); - } - - xmlWriter.writeEndElement(); - } - if (localCompNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "CompName", xmlWriter); - - if (localCompName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("CompName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCompName); - } - - xmlWriter.writeEndElement(); - } - if (localNetAddressTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "NetAddress", xmlWriter); - - if (localNetAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetAddress); - } - - xmlWriter.writeEndElement(); - } - if (localDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Directory", xmlWriter); - - if (localDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localFileTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "FileType", xmlWriter); - - if (localFileType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileType); - } - - xmlWriter.writeEndElement(); - } - if (localOsTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "OsType", xmlWriter); - - if (localOsType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("OsType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOsType)); - } - - xmlWriter.writeEndElement(); - } - if (localPlainTextTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PlainText", xmlWriter); - - if (localPlainText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PlainText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPlainText); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpGetComponentFileRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpGetComponentFileRequest object = new TpGetComponentFileRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpGetComponentFileRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpGetComponentFileRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CompType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CompType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CompName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CompName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NetAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Directory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Directory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FileType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OsType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OsType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOsType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PlainText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PlainText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPlainText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpGetComponentFileRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpGetComponentFileRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpGetComponentFileRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpGetComponentFileRequest", "ns1"); + + /** field for CompType */ + protected java.lang.String localCompType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompTypeTracker = false; + + public boolean isCompTypeSpecified() { + return localCompTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCompType() { + return localCompType; + } + + /** + * Auto generated setter method + * + * @param param CompType + */ + public void setCompType(java.lang.String param) { + localCompTypeTracker = param != null; + + this.localCompType = param; + } + + /** field for CompName */ + protected java.lang.String localCompName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompNameTracker = false; + + public boolean isCompNameSpecified() { + return localCompNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCompName() { + return localCompName; + } + + /** + * Auto generated setter method + * + * @param param CompName + */ + public void setCompName(java.lang.String param) { + localCompNameTracker = param != null; + + this.localCompName = param; + } + + /** field for NetAddress */ + protected java.lang.String localNetAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetAddressTracker = false; + + public boolean isNetAddressSpecified() { + return localNetAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetAddress() { + return localNetAddress; + } + + /** + * Auto generated setter method + * + * @param param NetAddress + */ + public void setNetAddress(java.lang.String param) { + localNetAddressTracker = param != null; + + this.localNetAddress = param; + } + + /** field for Directory */ + protected java.lang.String localDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDirectoryTracker = false; + + public boolean isDirectorySpecified() { + return localDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDirectory() { + return localDirectory; + } + + /** + * Auto generated setter method + * + * @param param Directory + */ + public void setDirectory(java.lang.String param) { + localDirectoryTracker = param != null; + + this.localDirectory = param; + } + + /** field for FileType */ + protected java.lang.String localFileType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTypeTracker = false; + + public boolean isFileTypeSpecified() { + return localFileTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileType() { + return localFileType; + } + + /** + * Auto generated setter method + * + * @param param FileType + */ + public void setFileType(java.lang.String param) { + localFileTypeTracker = param != null; + + this.localFileType = param; + } + + /** field for OsType */ + protected int localOsType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOsTypeTracker = false; + + public boolean isOsTypeSpecified() { + return localOsTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getOsType() { + return localOsType; + } + + /** + * Auto generated setter method + * + * @param param OsType + */ + public void setOsType(int param) { + + // setting primitive attribute tracker to true + localOsTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localOsType = param; + } + + /** field for PlainText */ + protected java.lang.String localPlainText; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPlainTextTracker = false; + + public boolean isPlainTextSpecified() { + return localPlainTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPlainText() { + return localPlainText; + } + + /** + * Auto generated setter method + * + * @param param PlainText + */ + public void setPlainText(java.lang.String param) { + localPlainTextTracker = param != null; + + this.localPlainText = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpGetComponentFileRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpGetComponentFileRequest", + xmlWriter); + } + } + if (localCompTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "CompType", xmlWriter); + + if (localCompType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("CompType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCompType); + } + + xmlWriter.writeEndElement(); + } + if (localCompNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "CompName", xmlWriter); + + if (localCompName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("CompName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCompName); + } + + xmlWriter.writeEndElement(); + } + if (localNetAddressTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "NetAddress", xmlWriter); + + if (localNetAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetAddress); + } + + xmlWriter.writeEndElement(); + } + if (localDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Directory", xmlWriter); + + if (localDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localFileTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FileType", xmlWriter); + + if (localFileType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileType); + } + + xmlWriter.writeEndElement(); + } + if (localOsTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "OsType", xmlWriter); + + if (localOsType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("OsType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOsType)); + } + + xmlWriter.writeEndElement(); + } + if (localPlainTextTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PlainText", xmlWriter); + + if (localPlainText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PlainText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPlainText); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpGetComponentFileRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpGetComponentFileRequest object = new TpGetComponentFileRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpGetComponentFileRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpGetComponentFileRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CompType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CompType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CompName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CompName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NetAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Directory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Directory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FileType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OsType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OsType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOsType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PlainText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PlainText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPlainText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetComponentFileResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetComponentFileResponse.java index 9c3e2ffc5..d3d323af5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetComponentFileResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetComponentFileResponse.java @@ -1,444 +1,444 @@ -/** - * TpGetComponentFileResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpGetComponentFileResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpGetComponentFileResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpGetComponentFileResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for FileContents */ - protected javax.activation.DataHandler localFileContents; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileContentsTracker = false; - - public boolean isFileContentsSpecified() { - return localFileContentsTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getFileContents() { - return localFileContents; - } - - /** - * Auto generated setter method - * - * @param param FileContents - */ - public void setFileContents(javax.activation.DataHandler param) { - localFileContentsTracker = param != null; - - this.localFileContents = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpGetComponentFileResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpGetComponentFileResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localFileContentsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "FileContents", xmlWriter); - - if (localFileContents != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localFileContents, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for FileContents", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpGetComponentFileResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpGetComponentFileResponse object = new TpGetComponentFileResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpGetComponentFileResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpGetComponentFileResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FileContents") - .equals(reader.getName())) { - - object.setFileContents( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpGetComponentFileResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpGetComponentFileResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpGetComponentFileResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpGetComponentFileResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for FileContents */ + protected javax.activation.DataHandler localFileContents; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileContentsTracker = false; + + public boolean isFileContentsSpecified() { + return localFileContentsTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getFileContents() { + return localFileContents; + } + + /** + * Auto generated setter method + * + * @param param FileContents + */ + public void setFileContents(javax.activation.DataHandler param) { + localFileContentsTracker = param != null; + + this.localFileContents = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpGetComponentFileResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpGetComponentFileResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localFileContentsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FileContents", xmlWriter); + + if (localFileContents != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localFileContents, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for FileContents", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpGetComponentFileResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpGetComponentFileResponse object = new TpGetComponentFileResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpGetComponentFileResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpGetComponentFileResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FileContents") + .equals(reader.getName())) { + + object.setFileContents( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetServicePluginsRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetServicePluginsRequest.java index aa889914b..3b6181c2a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetServicePluginsRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetServicePluginsRequest.java @@ -1,315 +1,315 @@ -/** - * TpGetServicePluginsRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpGetServicePluginsRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpGetServicePluginsRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpGetServicePluginsRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpGetServicePluginsRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpGetServicePluginsRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpGetServicePluginsRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpGetServicePluginsRequest object = new TpGetServicePluginsRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpGetServicePluginsRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpGetServicePluginsRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpGetServicePluginsRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpGetServicePluginsRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpGetServicePluginsRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpGetServicePluginsRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpGetServicePluginsRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpGetServicePluginsRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpGetServicePluginsRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpGetServicePluginsRequest object = new TpGetServicePluginsRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpGetServicePluginsRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpGetServicePluginsRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetServicePluginsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetServicePluginsResponse.java index a002e0dd1..398c61fc3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetServicePluginsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGetServicePluginsResponse.java @@ -1,434 +1,434 @@ -/** - * TpGetServicePluginsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpGetServicePluginsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpGetServicePluginsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpGetServicePluginsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Plugins */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0 localPlugins; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPluginsTracker = false; - - public boolean isPluginsSpecified() { - return localPluginsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0 getPlugins() { - return localPlugins; - } - - /** - * Auto generated setter method - * - * @param param Plugins - */ - public void setPlugins( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0 param) { - localPluginsTracker = param != null; - - this.localPlugins = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpGetServicePluginsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpGetServicePluginsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localPluginsTracker) { - if (localPlugins == null) { - throw new org.apache.axis2.databinding.ADBException("Plugins cannot be null!!"); - } - localPlugins.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugins"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpGetServicePluginsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpGetServicePluginsResponse object = new TpGetServicePluginsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpGetServicePluginsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpGetServicePluginsResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugins") - .equals(reader.getName())) { - - object.setPlugins( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpGetServicePluginsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpGetServicePluginsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpGetServicePluginsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpGetServicePluginsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Plugins */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0 localPlugins; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPluginsTracker = false; + + public boolean isPluginsSpecified() { + return localPluginsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0 getPlugins() { + return localPlugins; + } + + /** + * Auto generated setter method + * + * @param param Plugins + */ + public void setPlugins( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0 param) { + localPluginsTracker = param != null; + + this.localPlugins = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpGetServicePluginsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpGetServicePluginsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localPluginsTracker) { + if (localPlugins == null) { + throw new org.apache.axis2.databinding.ADBException("Plugins cannot be null!!"); + } + localPlugins.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugins"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpGetServicePluginsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpGetServicePluginsResponse object = new TpGetServicePluginsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpGetServicePluginsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpGetServicePluginsResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Plugins") + .equals(reader.getName())) { + + object.setPlugins( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Plugins_type0.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroup.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroup.java index ae825b0e6..2ece65fae 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroup.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroup.java @@ -1,534 +1,534 @@ -/** - * TpGroup.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpGroup bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpGroup implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpGroup - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Kind */ - protected java.lang.String localKind; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKindTracker = false; - - public boolean isKindSpecified() { - return localKindTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getKind() { - return localKind; - } - - /** - * Auto generated setter method - * - * @param param Kind - */ - public void setKind(java.lang.String param) { - localKindTracker = param != null; - - this.localKind = param; - } - - /** field for ReplicateOutputs */ - protected boolean localReplicateOutputs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplicateOutputsTracker = false; - - public boolean isReplicateOutputsSpecified() { - return localReplicateOutputsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReplicateOutputs() { - return localReplicateOutputs; - } - - /** - * Auto generated setter method - * - * @param param ReplicateOutputs - */ - public void setReplicateOutputs(boolean param) { - - // setting primitive attribute tracker to true - localReplicateOutputsTracker = true; - - this.localReplicateOutputs = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpGroup", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpGroup", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localKindTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Kind", xmlWriter); - - if (localKind == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localKind); - } - - xmlWriter.writeEndElement(); - } - if (localReplicateOutputsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ReplicateOutputs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ReplicateOutputs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localReplicateOutputs)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpGroup parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpGroup object = new TpGroup(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpGroup".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpGroup) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Kind") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Kind" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKind( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "ReplicateOutputs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReplicateOutputs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplicateOutputs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpGroup.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpGroup bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpGroup implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpGroup + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Kind */ + protected java.lang.String localKind; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKindTracker = false; + + public boolean isKindSpecified() { + return localKindTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getKind() { + return localKind; + } + + /** + * Auto generated setter method + * + * @param param Kind + */ + public void setKind(java.lang.String param) { + localKindTracker = param != null; + + this.localKind = param; + } + + /** field for ReplicateOutputs */ + protected boolean localReplicateOutputs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplicateOutputsTracker = false; + + public boolean isReplicateOutputsSpecified() { + return localReplicateOutputsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReplicateOutputs() { + return localReplicateOutputs; + } + + /** + * Auto generated setter method + * + * @param param ReplicateOutputs + */ + public void setReplicateOutputs(boolean param) { + + // setting primitive attribute tracker to true + localReplicateOutputsTracker = true; + + this.localReplicateOutputs = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpGroup", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpGroup", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localKindTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Kind", xmlWriter); + + if (localKind == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localKind); + } + + xmlWriter.writeEndElement(); + } + if (localReplicateOutputsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ReplicateOutputs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ReplicateOutputs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localReplicateOutputs)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpGroup parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpGroup object = new TpGroup(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpGroup".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpGroup) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Kind") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Kind" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKind( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "ReplicateOutputs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReplicateOutputs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplicateOutputs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroupQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroupQueryRequest.java index 906301ac4..546796d3c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroupQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroupQueryRequest.java @@ -1,396 +1,396 @@ -/** - * TpGroupQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpGroupQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpGroupQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroupQueryRequest", "ns1"); - - /** field for Kind */ - protected java.lang.String localKind; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKindTracker = false; - - public boolean isKindSpecified() { - return localKindTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getKind() { - return localKind; - } - - /** - * Auto generated setter method - * - * @param param Kind - */ - public void setKind(java.lang.String param) { - localKindTracker = param != null; - - this.localKind = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpGroupQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpGroupQueryRequest", - xmlWriter); - } - } - if (localKindTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Kind", xmlWriter); - - if (localKind == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localKind); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpGroupQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpGroupQueryRequest object = new TpGroupQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpGroupQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpGroupQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Kind") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Kind" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKind( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpGroupQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpGroupQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpGroupQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroupQueryRequest", "ns1"); + + /** field for Kind */ + protected java.lang.String localKind; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKindTracker = false; + + public boolean isKindSpecified() { + return localKindTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getKind() { + return localKind; + } + + /** + * Auto generated setter method + * + * @param param Kind + */ + public void setKind(java.lang.String param) { + localKindTracker = param != null; + + this.localKind = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpGroupQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpGroupQueryRequest", + xmlWriter); + } + } + if (localKindTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Kind", xmlWriter); + + if (localKind == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localKind); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpGroupQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpGroupQueryRequest object = new TpGroupQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpGroupQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpGroupQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Kind") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Kind" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKind( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroupQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroupQueryResponse.java index ef2ab0471..d03c93084 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroupQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpGroupQueryResponse.java @@ -1,433 +1,433 @@ -/** - * TpGroupQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpGroupQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpGroupQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroupQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for TpGroups */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup localTpGroups; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpGroupsTracker = false; - - public boolean isTpGroupsSpecified() { - return localTpGroupsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup getTpGroups() { - return localTpGroups; - } - - /** - * Auto generated setter method - * - * @param param TpGroups - */ - public void setTpGroups( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup param) { - localTpGroupsTracker = param != null; - - this.localTpGroups = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpGroupQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpGroupQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localTpGroupsTracker) { - if (localTpGroups == null) { - throw new org.apache.axis2.databinding.ADBException("TpGroups cannot be null!!"); - } - localTpGroups.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroups"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpGroupQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpGroupQueryResponse object = new TpGroupQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpGroupQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpGroupQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroups") - .equals(reader.getName())) { - - object.setTpGroups( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpGroupQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpGroupQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpGroupQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroupQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for TpGroups */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup localTpGroups; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpGroupsTracker = false; + + public boolean isTpGroupsSpecified() { + return localTpGroupsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup getTpGroups() { + return localTpGroups; + } + + /** + * Auto generated setter method + * + * @param param TpGroups + */ + public void setTpGroups( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup param) { + localTpGroupsTracker = param != null; + + this.localTpGroups = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpGroupQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpGroupQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localTpGroupsTracker) { + if (localTpGroups == null) { + throw new org.apache.axis2.databinding.ADBException("TpGroups cannot be null!!"); + } + localTpGroups.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroups"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpGroupQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpGroupQueryResponse object = new TpGroupQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpGroupQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpGroupQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGroups") + .equals(reader.getName())) { + + object.setTpGroups( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGroup.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLdapServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLdapServer.java index a72ca3fcd..0fc365d5f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLdapServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLdapServer.java @@ -1,651 +1,651 @@ -/** - * TpLdapServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpLdapServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpLdapServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpLdapServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpLdapServer", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpLdapServer", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpLdapServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpLdapServer object = new TpLdapServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpLdapServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpLdapServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpLdapServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpLdapServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpLdapServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpLdapServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpLdapServer", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpLdapServer", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpLdapServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpLdapServer object = new TpLdapServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpLdapServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpLdapServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListLogFilesRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListLogFilesRequest.java new file mode 100644 index 000000000..b74dc17fd --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListLogFilesRequest.java @@ -0,0 +1,465 @@ +/** + * TpListLogFilesRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpListLogFilesRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpListLogFilesRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpListLogFilesRequest", "ns1"); + + /** field for NetworkAddress */ + protected java.lang.String localNetworkAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetworkAddressTracker = false; + + public boolean isNetworkAddressSpecified() { + return localNetworkAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetworkAddress() { + return localNetworkAddress; + } + + /** + * Auto generated setter method + * + * @param param NetworkAddress + */ + public void setNetworkAddress(java.lang.String param) { + localNetworkAddressTracker = param != null; + + this.localNetworkAddress = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpListLogFilesRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpListLogFilesRequest", + xmlWriter); + } + } + if (localNetworkAddressTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "NetworkAddress", xmlWriter); + + if (localNetworkAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetworkAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetworkAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpListLogFilesRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpListLogFilesRequest object = new TpListLogFilesRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpListLogFilesRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpListLogFilesRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NetworkAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetworkAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetworkAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListLogFilesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListLogFilesResponse.java new file mode 100644 index 000000000..db5b6da52 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListLogFilesResponse.java @@ -0,0 +1,434 @@ +/** + * TpListLogFilesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpListLogFilesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpListLogFilesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpListLogFilesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfLogFileStruct localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfLogFileStruct + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfLogFileStruct getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfLogFileStruct param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpListLogFilesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpListLogFilesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Files"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpListLogFilesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpListLogFilesResponse object = new TpListLogFilesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpListLogFilesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpListLogFilesResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfLogFileStruct.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListTargetClustersRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListTargetClustersRequest.java index 01657ea85..32aec371c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListTargetClustersRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListTargetClustersRequest.java @@ -1,315 +1,315 @@ -/** - * TpListTargetClustersRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpListTargetClustersRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpListTargetClustersRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpListTargetClustersRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpListTargetClustersRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpListTargetClustersRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpListTargetClustersRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpListTargetClustersRequest object = new TpListTargetClustersRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpListTargetClustersRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpListTargetClustersRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpListTargetClustersRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpListTargetClustersRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpListTargetClustersRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpListTargetClustersRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpListTargetClustersRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpListTargetClustersRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpListTargetClustersRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpListTargetClustersRequest object = new TpListTargetClustersRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpListTargetClustersRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpListTargetClustersRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListTargetClustersResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListTargetClustersResponse.java index 24e77d935..f37b1816a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListTargetClustersResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpListTargetClustersResponse.java @@ -1,437 +1,437 @@ -/** - * TpListTargetClustersResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpListTargetClustersResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpListTargetClustersResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpListTargetClustersResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for TargetClusters */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType - localTargetClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetClustersTracker = false; - - public boolean isTargetClustersSpecified() { - return localTargetClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType - getTargetClusters() { - return localTargetClusters; - } - - /** - * Auto generated setter method - * - * @param param TargetClusters - */ - public void setTargetClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType param) { - localTargetClustersTracker = param != null; - - this.localTargetClusters = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpListTargetClustersResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpListTargetClustersResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localTargetClustersTracker) { - if (localTargetClusters == null) { - throw new org.apache.axis2.databinding.ADBException("TargetClusters cannot be null!!"); - } - localTargetClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TargetClusters"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpListTargetClustersResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpListTargetClustersResponse object = new TpListTargetClustersResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpListTargetClustersResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpListTargetClustersResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TargetClusters") - .equals(reader.getName())) { - - object.setTargetClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpListTargetClustersResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpListTargetClustersResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpListTargetClustersResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpListTargetClustersResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for TargetClusters */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType + localTargetClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetClustersTracker = false; + + public boolean isTargetClustersSpecified() { + return localTargetClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType + getTargetClusters() { + return localTargetClusters; + } + + /** + * Auto generated setter method + * + * @param param TargetClusters + */ + public void setTargetClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType param) { + localTargetClustersTracker = param != null; + + this.localTargetClusters = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpListTargetClustersResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpListTargetClustersResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localTargetClustersTracker) { + if (localTargetClusters == null) { + throw new org.apache.axis2.databinding.ADBException("TargetClusters cannot be null!!"); + } + localTargetClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TargetClusters"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpListTargetClustersResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpListTargetClustersResponse object = new TpListTargetClustersResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpListTargetClustersResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpListTargetClustersResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TargetClusters") + .equals(reader.getName())) { + + object.setTargetClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpClusterNameType + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogFileRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogFileRequest.java index 12fbc3dd0..900cc267e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogFileRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogFileRequest.java @@ -1,1228 +1,1230 @@ -/** - * TpLogFileRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpLogFileRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpLogFileRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogFileRequest", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for LastHours */ - protected int localLastHours; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLastHoursTracker = false; - - public boolean isLastHoursSpecified() { - return localLastHoursTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getLastHours() { - return localLastHours; - } - - /** - * Auto generated setter method - * - * @param param LastHours - */ - public void setLastHours(int param) { - - // setting primitive attribute tracker to true - localLastHoursTracker = param != java.lang.Integer.MIN_VALUE; - - this.localLastHours = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for FirstRows */ - protected int localFirstRows; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFirstRowsTracker = false; - - public boolean isFirstRowsSpecified() { - return localFirstRowsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getFirstRows() { - return localFirstRows; - } - - /** - * Auto generated setter method - * - * @param param FirstRows - */ - public void setFirstRows(int param) { - - // setting primitive attribute tracker to true - localFirstRowsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localFirstRows = param; - } - - /** field for LastRows */ - protected int localLastRows; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLastRowsTracker = false; - - public boolean isLastRowsSpecified() { - return localLastRowsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getLastRows() { - return localLastRows; - } - - /** - * Auto generated setter method - * - * @param param LastRows - */ - public void setLastRows(int param) { - - // setting primitive attribute tracker to true - localLastRowsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localLastRows = param; - } - - /** field for FilterType */ - protected int localFilterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTypeTracker = false; - - public boolean isFilterTypeSpecified() { - return localFilterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getFilterType() { - return localFilterType; - } - - /** - * Auto generated setter method - * - * @param param FilterType - */ - public void setFilterType(int param) { - - // setting primitive attribute tracker to true - localFilterTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localFilterType = param; - } - - /** field for Reversely */ - protected boolean localReversely = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReverselyTracker = false; - - public boolean isReverselySpecified() { - return localReverselyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReversely() { - return localReversely; - } - - /** - * Auto generated setter method - * - * @param param Reversely - */ - public void setReversely(boolean param) { - - // setting primitive attribute tracker to true - localReverselyTracker = true; - - this.localReversely = param; - } - - /** field for Zip */ - protected boolean localZip = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localZipTracker = false; - - public boolean isZipSpecified() { - return localZipTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getZip() { - return localZip; - } - - /** - * Auto generated setter method - * - * @param param Zip - */ - public void setZip(boolean param) { - - // setting primitive attribute tracker to true - localZipTracker = true; - - this.localZip = param; - } - - /** field for PageNumber */ - protected int localPageNumber; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageNumberTracker = false; - - public boolean isPageNumberSpecified() { - return localPageNumberTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPageNumber() { - return localPageNumber; - } - - /** - * Auto generated setter method - * - * @param param PageNumber - */ - public void setPageNumber(int param) { - - // setting primitive attribute tracker to true - localPageNumberTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPageNumber = param; - } - - /** field for LoadData */ - protected boolean localLoadData = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLoadDataTracker = false; - - public boolean isLoadDataSpecified() { - return localLoadDataTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getLoadData() { - return localLoadData; - } - - /** - * Auto generated setter method - * - * @param param LoadData - */ - public void setLoadData(boolean param) { - - // setting primitive attribute tracker to true - localLoadDataTracker = true; - - this.localLoadData = param; - } - - /** field for IncludeLogFieldNames */ - protected boolean localIncludeLogFieldNames = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeLogFieldNamesTracker = false; - - public boolean isIncludeLogFieldNamesSpecified() { - return localIncludeLogFieldNamesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeLogFieldNames() { - return localIncludeLogFieldNames; - } - - /** - * Auto generated setter method - * - * @param param IncludeLogFieldNames - */ - public void setIncludeLogFieldNames(boolean param) { - - // setting primitive attribute tracker to true - localIncludeLogFieldNamesTracker = true; - - this.localIncludeLogFieldNames = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpLogFileRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpLogFileRequest", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localLastHoursTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LastHours", xmlWriter); - - if (localLastHours == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("LastHours cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastHours)); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localFirstRowsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "FirstRows", xmlWriter); - - if (localFirstRows == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("FirstRows cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFirstRows)); - } - - xmlWriter.writeEndElement(); - } - if (localLastRowsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LastRows", xmlWriter); - - if (localLastRows == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("LastRows cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastRows)); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "FilterType", xmlWriter); - - if (localFilterType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFilterType)); - } - - xmlWriter.writeEndElement(); - } - if (localReverselyTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Reversely", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Reversely cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReversely)); - } - - xmlWriter.writeEndElement(); - } - if (localZipTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Zip", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Zip cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localZip)); - } - - xmlWriter.writeEndElement(); - } - if (localPageNumberTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PageNumber", xmlWriter); - - if (localPageNumber == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageNumber cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageNumber)); - } - - xmlWriter.writeEndElement(); - } - if (localLoadDataTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LoadData", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("LoadData cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLoadData)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeLogFieldNamesTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "IncludeLogFieldNames", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeLogFieldNames cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeLogFieldNames)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpLogFileRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpLogFileRequest object = new TpLogFileRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpLogFileRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpLogFileRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LastHours") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LastHours" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLastHours( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FirstRows") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FirstRows" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFirstRows( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LastRows") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LastRows" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLastRows( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FilterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FilterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Reversely") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Reversely" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReversely( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Zip") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Zip" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setZip( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PageNumber") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageNumber" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageNumber( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LoadData") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LoadData" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLoadData( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "IncludeLogFieldNames") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeLogFieldNames" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeLogFieldNames( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpLogFileRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpLogFileRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpLogFileRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogFileRequest", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for LastHours */ + protected int localLastHours; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLastHoursTracker = false; + + public boolean isLastHoursSpecified() { + return localLastHoursTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getLastHours() { + return localLastHours; + } + + /** + * Auto generated setter method + * + * @param param LastHours + */ + public void setLastHours(int param) { + + // setting primitive attribute tracker to true + localLastHoursTracker = param != java.lang.Integer.MIN_VALUE; + + this.localLastHours = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for FirstRows */ + protected int localFirstRows; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFirstRowsTracker = false; + + public boolean isFirstRowsSpecified() { + return localFirstRowsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getFirstRows() { + return localFirstRows; + } + + /** + * Auto generated setter method + * + * @param param FirstRows + */ + public void setFirstRows(int param) { + + // setting primitive attribute tracker to true + localFirstRowsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localFirstRows = param; + } + + /** field for LastRows */ + protected int localLastRows; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLastRowsTracker = false; + + public boolean isLastRowsSpecified() { + return localLastRowsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getLastRows() { + return localLastRows; + } + + /** + * Auto generated setter method + * + * @param param LastRows + */ + public void setLastRows(int param) { + + // setting primitive attribute tracker to true + localLastRowsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localLastRows = param; + } + + /** field for FilterType */ + protected int localFilterType = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTypeTracker = false; + + public boolean isFilterTypeSpecified() { + return localFilterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getFilterType() { + return localFilterType; + } + + /** + * Auto generated setter method + * + * @param param FilterType + */ + public void setFilterType(int param) { + + // setting primitive attribute tracker to true + localFilterTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localFilterType = param; + } + + /** field for Reversely */ + protected boolean localReversely = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReverselyTracker = false; + + public boolean isReverselySpecified() { + return localReverselyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReversely() { + return localReversely; + } + + /** + * Auto generated setter method + * + * @param param Reversely + */ + public void setReversely(boolean param) { + + // setting primitive attribute tracker to true + localReverselyTracker = true; + + this.localReversely = param; + } + + /** field for Zip */ + protected boolean localZip = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localZipTracker = false; + + public boolean isZipSpecified() { + return localZipTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getZip() { + return localZip; + } + + /** + * Auto generated setter method + * + * @param param Zip + */ + public void setZip(boolean param) { + + // setting primitive attribute tracker to true + localZipTracker = true; + + this.localZip = param; + } + + /** field for PageNumber */ + protected int localPageNumber = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageNumberTracker = false; + + public boolean isPageNumberSpecified() { + return localPageNumberTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPageNumber() { + return localPageNumber; + } + + /** + * Auto generated setter method + * + * @param param PageNumber + */ + public void setPageNumber(int param) { + + // setting primitive attribute tracker to true + localPageNumberTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPageNumber = param; + } + + /** field for LoadData */ + protected boolean localLoadData = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLoadDataTracker = false; + + public boolean isLoadDataSpecified() { + return localLoadDataTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getLoadData() { + return localLoadData; + } + + /** + * Auto generated setter method + * + * @param param LoadData + */ + public void setLoadData(boolean param) { + + // setting primitive attribute tracker to true + localLoadDataTracker = true; + + this.localLoadData = param; + } + + /** field for IncludeLogFieldNames */ + protected boolean localIncludeLogFieldNames = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeLogFieldNamesTracker = false; + + public boolean isIncludeLogFieldNamesSpecified() { + return localIncludeLogFieldNamesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeLogFieldNames() { + return localIncludeLogFieldNames; + } + + /** + * Auto generated setter method + * + * @param param IncludeLogFieldNames + */ + public void setIncludeLogFieldNames(boolean param) { + + // setting primitive attribute tracker to true + localIncludeLogFieldNamesTracker = true; + + this.localIncludeLogFieldNames = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpLogFileRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpLogFileRequest", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localLastHoursTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LastHours", xmlWriter); + + if (localLastHours == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LastHours cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastHours)); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localFirstRowsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FirstRows", xmlWriter); + + if (localFirstRows == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("FirstRows cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFirstRows)); + } + + xmlWriter.writeEndElement(); + } + if (localLastRowsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LastRows", xmlWriter); + + if (localLastRows == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LastRows cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastRows)); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FilterType", xmlWriter); + + if (localFilterType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFilterType)); + } + + xmlWriter.writeEndElement(); + } + if (localReverselyTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Reversely", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Reversely cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReversely)); + } + + xmlWriter.writeEndElement(); + } + if (localZipTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Zip", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Zip cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localZip)); + } + + xmlWriter.writeEndElement(); + } + if (localPageNumberTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PageNumber", xmlWriter); + + if (localPageNumber == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageNumber cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageNumber)); + } + + xmlWriter.writeEndElement(); + } + if (localLoadDataTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LoadData", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("LoadData cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLoadData)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeLogFieldNamesTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "IncludeLogFieldNames", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeLogFieldNames cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeLogFieldNames)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpLogFileRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpLogFileRequest object = new TpLogFileRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpLogFileRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpLogFileRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LastHours") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LastHours" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLastHours( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FirstRows") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FirstRows" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFirstRows( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LastRows") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LastRows" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLastRows( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FilterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FilterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Reversely") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Reversely" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReversely( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Zip") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Zip" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setZip( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PageNumber") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageNumber" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageNumber( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LoadData") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LoadData" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLoadData( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "IncludeLogFieldNames") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeLogFieldNames" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeLogFieldNames( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogFileResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogFileResponse.java index 229f06c16..9bfcd718d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogFileResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogFileResponse.java @@ -1,1809 +1,1811 @@ -/** - * TpLogFileResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpLogFileResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpLogFileResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogFileResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for LastHours */ - protected int localLastHours; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLastHoursTracker = false; - - public boolean isLastHoursSpecified() { - return localLastHoursTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getLastHours() { - return localLastHours; - } - - /** - * Auto generated setter method - * - * @param param LastHours - */ - public void setLastHours(int param) { - - // setting primitive attribute tracker to true - localLastHoursTracker = param != java.lang.Integer.MIN_VALUE; - - this.localLastHours = param; - } - - /** field for FirstRows */ - protected int localFirstRows; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFirstRowsTracker = false; - - public boolean isFirstRowsSpecified() { - return localFirstRowsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getFirstRows() { - return localFirstRows; - } - - /** - * Auto generated setter method - * - * @param param FirstRows - */ - public void setFirstRows(int param) { - - // setting primitive attribute tracker to true - localFirstRowsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localFirstRows = param; - } - - /** field for LastRows */ - protected int localLastRows; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLastRowsTracker = false; - - public boolean isLastRowsSpecified() { - return localLastRowsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getLastRows() { - return localLastRows; - } - - /** - * Auto generated setter method - * - * @param param LastRows - */ - public void setLastRows(int param) { - - // setting primitive attribute tracker to true - localLastRowsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localLastRows = param; - } - - /** field for Reversely */ - protected boolean localReversely; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReverselyTracker = false; - - public boolean isReverselySpecified() { - return localReverselyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReversely() { - return localReversely; - } - - /** - * Auto generated setter method - * - * @param param Reversely - */ - public void setReversely(boolean param) { - - // setting primitive attribute tracker to true - localReverselyTracker = true; - - this.localReversely = param; - } - - /** field for Zip */ - protected boolean localZip; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localZipTracker = false; - - public boolean isZipSpecified() { - return localZipTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getZip() { - return localZip; - } - - /** - * Auto generated setter method - * - * @param param Zip - */ - public void setZip(boolean param) { - - // setting primitive attribute tracker to true - localZipTracker = true; - - this.localZip = param; - } - - /** field for FilterType */ - protected int localFilterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTypeTracker = false; - - public boolean isFilterTypeSpecified() { - return localFilterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getFilterType() { - return localFilterType; - } - - /** - * Auto generated setter method - * - * @param param FilterType - */ - public void setFilterType(int param) { - - // setting primitive attribute tracker to true - localFilterTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localFilterType = param; - } - - /** field for LogData */ - protected java.lang.String localLogData; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDataTracker = false; - - public boolean isLogDataSpecified() { - return localLogDataTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogData() { - return localLogData; - } - - /** - * Auto generated setter method - * - * @param param LogData - */ - public void setLogData(java.lang.String param) { - localLogDataTracker = param != null; - - this.localLogData = param; - } - - /** field for HasDate */ - protected boolean localHasDate = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHasDateTracker = false; - - public boolean isHasDateSpecified() { - return localHasDateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getHasDate() { - return localHasDate; - } - - /** - * Auto generated setter method - * - * @param param HasDate - */ - public void setHasDate(boolean param) { - - // setting primitive attribute tracker to true - localHasDateTracker = true; - - this.localHasDate = param; - } - - /** field for FileSize */ - protected long localFileSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileSizeTracker = false; - - public boolean isFileSizeSpecified() { - return localFileSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getFileSize() { - return localFileSize; - } - - /** - * Auto generated setter method - * - * @param param FileSize - */ - public void setFileSize(long param) { - - // setting primitive attribute tracker to true - localFileSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localFileSize = param; - } - - /** field for PageFrom */ - protected long localPageFrom; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageFromTracker = false; - - public boolean isPageFromSpecified() { - return localPageFromTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageFrom() { - return localPageFrom; - } - - /** - * Auto generated setter method - * - * @param param PageFrom - */ - public void setPageFrom(long param) { - - // setting primitive attribute tracker to true - localPageFromTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageFrom = param; - } - - /** field for PageTo */ - protected long localPageTo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageToTracker = false; - - public boolean isPageToSpecified() { - return localPageToTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageTo() { - return localPageTo; - } - - /** - * Auto generated setter method - * - * @param param PageTo - */ - public void setPageTo(long param) { - - // setting primitive attribute tracker to true - localPageToTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageTo = param; - } - - /** field for PageNumber */ - protected int localPageNumber; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageNumberTracker = false; - - public boolean isPageNumberSpecified() { - return localPageNumberTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPageNumber() { - return localPageNumber; - } - - /** - * Auto generated setter method - * - * @param param PageNumber - */ - public void setPageNumber(int param) { - - // setting primitive attribute tracker to true - localPageNumberTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPageNumber = param; - } - - /** field for PrevPage */ - protected int localPrevPage = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPrevPageTracker = false; - - public boolean isPrevPageSpecified() { - return localPrevPageTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPrevPage() { - return localPrevPage; - } - - /** - * Auto generated setter method - * - * @param param PrevPage - */ - public void setPrevPage(int param) { - - // setting primitive attribute tracker to true - localPrevPageTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPrevPage = param; - } - - /** field for NextPage */ - protected int localNextPage = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNextPageTracker = false; - - public boolean isNextPageSpecified() { - return localNextPageTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getNextPage() { - return localNextPage; - } - - /** - * Auto generated setter method - * - * @param param NextPage - */ - public void setNextPage(int param) { - - // setting primitive attribute tracker to true - localNextPageTracker = param != java.lang.Integer.MIN_VALUE; - - this.localNextPage = param; - } - - /** field for TotalPages */ - protected int localTotalPages; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalPagesTracker = false; - - public boolean isTotalPagesSpecified() { - return localTotalPagesTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTotalPages() { - return localTotalPages; - } - - /** - * Auto generated setter method - * - * @param param TotalPages - */ - public void setTotalPages(int param) { - - // setting primitive attribute tracker to true - localTotalPagesTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTotalPages = param; - } - - /** field for AcceptLanguage */ - protected java.lang.String localAcceptLanguage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAcceptLanguageTracker = false; - - public boolean isAcceptLanguageSpecified() { - return localAcceptLanguageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAcceptLanguage() { - return localAcceptLanguage; - } - - /** - * Auto generated setter method - * - * @param param AcceptLanguage - */ - public void setAcceptLanguage(java.lang.String param) { - localAcceptLanguageTracker = param != null; - - this.localAcceptLanguage = param; - } - - /** field for LogFieldNames */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray localLogFieldNames; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogFieldNamesTracker = false; - - public boolean isLogFieldNamesSpecified() { - return localLogFieldNamesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray getLogFieldNames() { - return localLogFieldNames; - } - - /** - * Auto generated setter method - * - * @param param LogFieldNames - */ - public void setLogFieldNames( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray param) { - localLogFieldNamesTracker = param != null; - - this.localLogFieldNames = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpLogFileResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpLogFileResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localLastHoursTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LastHours", xmlWriter); - - if (localLastHours == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("LastHours cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastHours)); - } - - xmlWriter.writeEndElement(); - } - if (localFirstRowsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "FirstRows", xmlWriter); - - if (localFirstRows == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("FirstRows cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFirstRows)); - } - - xmlWriter.writeEndElement(); - } - if (localLastRowsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LastRows", xmlWriter); - - if (localLastRows == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("LastRows cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastRows)); - } - - xmlWriter.writeEndElement(); - } - if (localReverselyTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Reversely", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Reversely cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReversely)); - } - - xmlWriter.writeEndElement(); - } - if (localZipTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Zip", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Zip cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localZip)); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "FilterType", xmlWriter); - - if (localFilterType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFilterType)); - } - - xmlWriter.writeEndElement(); - } - if (localLogDataTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogData", xmlWriter); - - if (localLogData == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogData cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogData); - } - - xmlWriter.writeEndElement(); - } - if (localHasDateTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "HasDate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("HasDate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasDate)); - } - - xmlWriter.writeEndElement(); - } - if (localFileSizeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "FileSize", xmlWriter); - - if (localFileSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("FileSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPageFromTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PageFrom", xmlWriter); - - if (localPageFrom == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localPageToTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PageTo", xmlWriter); - - if (localPageTo == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageTo cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageTo)); - } - - xmlWriter.writeEndElement(); - } - if (localPageNumberTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PageNumber", xmlWriter); - - if (localPageNumber == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageNumber cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageNumber)); - } - - xmlWriter.writeEndElement(); - } - if (localPrevPageTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PrevPage", xmlWriter); - - if (localPrevPage == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PrevPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrevPage)); - } - - xmlWriter.writeEndElement(); - } - if (localNextPageTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "NextPage", xmlWriter); - - if (localNextPage == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NextPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNextPage)); - } - - xmlWriter.writeEndElement(); - } - if (localTotalPagesTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "TotalPages", xmlWriter); - - if (localTotalPages == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("TotalPages cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotalPages)); - } - - xmlWriter.writeEndElement(); - } - if (localAcceptLanguageTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); - - if (localAcceptLanguage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAcceptLanguage); - } - - xmlWriter.writeEndElement(); - } - if (localLogFieldNamesTracker) { - if (localLogFieldNames == null) { - throw new org.apache.axis2.databinding.ADBException("LogFieldNames cannot be null!!"); - } - localLogFieldNames.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFieldNames"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpLogFileResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpLogFileResponse object = new TpLogFileResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpLogFileResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpLogFileResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LastHours") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LastHours" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLastHours( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FirstRows") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FirstRows" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFirstRows( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LastRows") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LastRows" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLastRows( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Reversely") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Reversely" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReversely( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Zip") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Zip" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setZip( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FilterType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FilterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilterType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogData") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogData" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogData( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "HasDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "HasDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setHasDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FileSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PageFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PageTo") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageTo" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageTo( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PageNumber") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageNumber" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageNumber( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PrevPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PrevPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPrevPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NextPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NextPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNextPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TotalPages") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TotalPages" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotalPages( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AcceptLanguage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAcceptLanguage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFieldNames") - .equals(reader.getName())) { - - object.setLogFieldNames( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpLogFileResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpLogFileResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpLogFileResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogFileResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for LastHours */ + protected int localLastHours; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLastHoursTracker = false; + + public boolean isLastHoursSpecified() { + return localLastHoursTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getLastHours() { + return localLastHours; + } + + /** + * Auto generated setter method + * + * @param param LastHours + */ + public void setLastHours(int param) { + + // setting primitive attribute tracker to true + localLastHoursTracker = param != java.lang.Integer.MIN_VALUE; + + this.localLastHours = param; + } + + /** field for FirstRows */ + protected int localFirstRows; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFirstRowsTracker = false; + + public boolean isFirstRowsSpecified() { + return localFirstRowsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getFirstRows() { + return localFirstRows; + } + + /** + * Auto generated setter method + * + * @param param FirstRows + */ + public void setFirstRows(int param) { + + // setting primitive attribute tracker to true + localFirstRowsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localFirstRows = param; + } + + /** field for LastRows */ + protected int localLastRows; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLastRowsTracker = false; + + public boolean isLastRowsSpecified() { + return localLastRowsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getLastRows() { + return localLastRows; + } + + /** + * Auto generated setter method + * + * @param param LastRows + */ + public void setLastRows(int param) { + + // setting primitive attribute tracker to true + localLastRowsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localLastRows = param; + } + + /** field for Reversely */ + protected boolean localReversely; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReverselyTracker = false; + + public boolean isReverselySpecified() { + return localReverselyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReversely() { + return localReversely; + } + + /** + * Auto generated setter method + * + * @param param Reversely + */ + public void setReversely(boolean param) { + + // setting primitive attribute tracker to true + localReverselyTracker = true; + + this.localReversely = param; + } + + /** field for Zip */ + protected boolean localZip; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localZipTracker = false; + + public boolean isZipSpecified() { + return localZipTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getZip() { + return localZip; + } + + /** + * Auto generated setter method + * + * @param param Zip + */ + public void setZip(boolean param) { + + // setting primitive attribute tracker to true + localZipTracker = true; + + this.localZip = param; + } + + /** field for FilterType */ + protected int localFilterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTypeTracker = false; + + public boolean isFilterTypeSpecified() { + return localFilterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getFilterType() { + return localFilterType; + } + + /** + * Auto generated setter method + * + * @param param FilterType + */ + public void setFilterType(int param) { + + // setting primitive attribute tracker to true + localFilterTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localFilterType = param; + } + + /** field for LogData */ + protected java.lang.String localLogData; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDataTracker = false; + + public boolean isLogDataSpecified() { + return localLogDataTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogData() { + return localLogData; + } + + /** + * Auto generated setter method + * + * @param param LogData + */ + public void setLogData(java.lang.String param) { + localLogDataTracker = param != null; + + this.localLogData = param; + } + + /** field for HasDate */ + protected boolean localHasDate = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHasDateTracker = false; + + public boolean isHasDateSpecified() { + return localHasDateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getHasDate() { + return localHasDate; + } + + /** + * Auto generated setter method + * + * @param param HasDate + */ + public void setHasDate(boolean param) { + + // setting primitive attribute tracker to true + localHasDateTracker = true; + + this.localHasDate = param; + } + + /** field for FileSize */ + protected long localFileSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileSizeTracker = false; + + public boolean isFileSizeSpecified() { + return localFileSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getFileSize() { + return localFileSize; + } + + /** + * Auto generated setter method + * + * @param param FileSize + */ + public void setFileSize(long param) { + + // setting primitive attribute tracker to true + localFileSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localFileSize = param; + } + + /** field for PageFrom */ + protected long localPageFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageFromTracker = false; + + public boolean isPageFromSpecified() { + return localPageFromTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageFrom() { + return localPageFrom; + } + + /** + * Auto generated setter method + * + * @param param PageFrom + */ + public void setPageFrom(long param) { + + // setting primitive attribute tracker to true + localPageFromTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageFrom = param; + } + + /** field for PageTo */ + protected long localPageTo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageToTracker = false; + + public boolean isPageToSpecified() { + return localPageToTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageTo() { + return localPageTo; + } + + /** + * Auto generated setter method + * + * @param param PageTo + */ + public void setPageTo(long param) { + + // setting primitive attribute tracker to true + localPageToTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageTo = param; + } + + /** field for PageNumber */ + protected int localPageNumber = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageNumberTracker = false; + + public boolean isPageNumberSpecified() { + return localPageNumberTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPageNumber() { + return localPageNumber; + } + + /** + * Auto generated setter method + * + * @param param PageNumber + */ + public void setPageNumber(int param) { + + // setting primitive attribute tracker to true + localPageNumberTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPageNumber = param; + } + + /** field for PrevPage */ + protected int localPrevPage = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPrevPageTracker = false; + + public boolean isPrevPageSpecified() { + return localPrevPageTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPrevPage() { + return localPrevPage; + } + + /** + * Auto generated setter method + * + * @param param PrevPage + */ + public void setPrevPage(int param) { + + // setting primitive attribute tracker to true + localPrevPageTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPrevPage = param; + } + + /** field for NextPage */ + protected int localNextPage = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNextPageTracker = false; + + public boolean isNextPageSpecified() { + return localNextPageTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getNextPage() { + return localNextPage; + } + + /** + * Auto generated setter method + * + * @param param NextPage + */ + public void setNextPage(int param) { + + // setting primitive attribute tracker to true + localNextPageTracker = param != java.lang.Integer.MIN_VALUE; + + this.localNextPage = param; + } + + /** field for TotalPages */ + protected int localTotalPages; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalPagesTracker = false; + + public boolean isTotalPagesSpecified() { + return localTotalPagesTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTotalPages() { + return localTotalPages; + } + + /** + * Auto generated setter method + * + * @param param TotalPages + */ + public void setTotalPages(int param) { + + // setting primitive attribute tracker to true + localTotalPagesTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTotalPages = param; + } + + /** field for AcceptLanguage */ + protected java.lang.String localAcceptLanguage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAcceptLanguageTracker = false; + + public boolean isAcceptLanguageSpecified() { + return localAcceptLanguageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAcceptLanguage() { + return localAcceptLanguage; + } + + /** + * Auto generated setter method + * + * @param param AcceptLanguage + */ + public void setAcceptLanguage(java.lang.String param) { + localAcceptLanguageTracker = param != null; + + this.localAcceptLanguage = param; + } + + /** field for LogFieldNames */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray localLogFieldNames; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogFieldNamesTracker = false; + + public boolean isLogFieldNamesSpecified() { + return localLogFieldNamesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray getLogFieldNames() { + return localLogFieldNames; + } + + /** + * Auto generated setter method + * + * @param param LogFieldNames + */ + public void setLogFieldNames( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray param) { + localLogFieldNamesTracker = param != null; + + this.localLogFieldNames = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpLogFileResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpLogFileResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localLastHoursTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LastHours", xmlWriter); + + if (localLastHours == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LastHours cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastHours)); + } + + xmlWriter.writeEndElement(); + } + if (localFirstRowsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FirstRows", xmlWriter); + + if (localFirstRows == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("FirstRows cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFirstRows)); + } + + xmlWriter.writeEndElement(); + } + if (localLastRowsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LastRows", xmlWriter); + + if (localLastRows == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LastRows cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastRows)); + } + + xmlWriter.writeEndElement(); + } + if (localReverselyTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Reversely", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Reversely cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReversely)); + } + + xmlWriter.writeEndElement(); + } + if (localZipTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Zip", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Zip cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localZip)); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FilterType", xmlWriter); + + if (localFilterType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFilterType)); + } + + xmlWriter.writeEndElement(); + } + if (localLogDataTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogData", xmlWriter); + + if (localLogData == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogData cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogData); + } + + xmlWriter.writeEndElement(); + } + if (localHasDateTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "HasDate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("HasDate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasDate)); + } + + xmlWriter.writeEndElement(); + } + if (localFileSizeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "FileSize", xmlWriter); + + if (localFileSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("FileSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPageFromTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PageFrom", xmlWriter); + + if (localPageFrom == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localPageToTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PageTo", xmlWriter); + + if (localPageTo == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageTo cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageTo)); + } + + xmlWriter.writeEndElement(); + } + if (localPageNumberTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PageNumber", xmlWriter); + + if (localPageNumber == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageNumber cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageNumber)); + } + + xmlWriter.writeEndElement(); + } + if (localPrevPageTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PrevPage", xmlWriter); + + if (localPrevPage == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PrevPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrevPage)); + } + + xmlWriter.writeEndElement(); + } + if (localNextPageTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "NextPage", xmlWriter); + + if (localNextPage == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NextPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNextPage)); + } + + xmlWriter.writeEndElement(); + } + if (localTotalPagesTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "TotalPages", xmlWriter); + + if (localTotalPages == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("TotalPages cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotalPages)); + } + + xmlWriter.writeEndElement(); + } + if (localAcceptLanguageTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); + + if (localAcceptLanguage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAcceptLanguage); + } + + xmlWriter.writeEndElement(); + } + if (localLogFieldNamesTracker) { + if (localLogFieldNames == null) { + throw new org.apache.axis2.databinding.ADBException("LogFieldNames cannot be null!!"); + } + localLogFieldNames.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFieldNames"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpLogFileResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpLogFileResponse object = new TpLogFileResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpLogFileResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpLogFileResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LastHours") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LastHours" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLastHours( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FirstRows") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FirstRows" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFirstRows( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LastRows") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LastRows" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLastRows( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Reversely") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Reversely" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReversely( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Zip") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Zip" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setZip( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FilterType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FilterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilterType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogData") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogData" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogData( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "HasDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "HasDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setHasDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "FileSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PageFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PageTo") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageTo" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageTo( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PageNumber") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageNumber" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageNumber( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "PrevPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PrevPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPrevPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NextPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NextPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNextPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TotalPages") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TotalPages" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotalPages( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AcceptLanguage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAcceptLanguage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFieldNames") + .equals(reader.getName())) { + + object.setLogFieldNames( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalCluster.java index 4d5c721a3..d749c1b45 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalCluster.java @@ -1,740 +1,740 @@ -/** - * TpLogicalCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpLogicalCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpLogicalCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpLogicalCluster - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for LanguageVersion */ - protected java.lang.String localLanguageVersion; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLanguageVersionTracker = false; - - public boolean isLanguageVersionSpecified() { - return localLanguageVersionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLanguageVersion() { - return localLanguageVersion; - } - - /** - * Auto generated setter method - * - * @param param LanguageVersion - */ - public void setLanguageVersion(java.lang.String param) { - localLanguageVersionTracker = param != null; - - this.localLanguageVersion = param; - } - - /** field for Process */ - protected java.lang.String localProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessTracker = false; - - public boolean isProcessSpecified() { - return localProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProcess() { - return localProcess; - } - - /** - * Auto generated setter method - * - * @param param Process - */ - public void setProcess(java.lang.String param) { - localProcessTracker = param != null; - - this.localProcess = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for QueriesOnly */ - protected boolean localQueriesOnly; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueriesOnlyTracker = false; - - public boolean isQueriesOnlySpecified() { - return localQueriesOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getQueriesOnly() { - return localQueriesOnly; - } - - /** - * Auto generated setter method - * - * @param param QueriesOnly - */ - public void setQueriesOnly(boolean param) { - - // setting primitive attribute tracker to true - localQueriesOnlyTracker = true; - - this.localQueriesOnly = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpLogicalCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpLogicalCluster", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localLanguageVersionTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LanguageVersion", xmlWriter); - - if (localLanguageVersion == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LanguageVersion cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLanguageVersion); - } - - xmlWriter.writeEndElement(); - } - if (localProcessTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Process", xmlWriter); - - if (localProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProcess); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localQueriesOnlyTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "QueriesOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("QueriesOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueriesOnly)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpLogicalCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpLogicalCluster object = new TpLogicalCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpLogicalCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpLogicalCluster) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LanguageVersion") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LanguageVersion" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLanguageVersion( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Process") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Process" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "QueriesOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueriesOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueriesOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpLogicalCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpLogicalCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpLogicalCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpLogicalCluster + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for LanguageVersion */ + protected java.lang.String localLanguageVersion; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLanguageVersionTracker = false; + + public boolean isLanguageVersionSpecified() { + return localLanguageVersionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLanguageVersion() { + return localLanguageVersion; + } + + /** + * Auto generated setter method + * + * @param param LanguageVersion + */ + public void setLanguageVersion(java.lang.String param) { + localLanguageVersionTracker = param != null; + + this.localLanguageVersion = param; + } + + /** field for Process */ + protected java.lang.String localProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessTracker = false; + + public boolean isProcessSpecified() { + return localProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProcess() { + return localProcess; + } + + /** + * Auto generated setter method + * + * @param param Process + */ + public void setProcess(java.lang.String param) { + localProcessTracker = param != null; + + this.localProcess = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for QueriesOnly */ + protected boolean localQueriesOnly; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueriesOnlyTracker = false; + + public boolean isQueriesOnlySpecified() { + return localQueriesOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getQueriesOnly() { + return localQueriesOnly; + } + + /** + * Auto generated setter method + * + * @param param QueriesOnly + */ + public void setQueriesOnly(boolean param) { + + // setting primitive attribute tracker to true + localQueriesOnlyTracker = true; + + this.localQueriesOnly = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpLogicalCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpLogicalCluster", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localLanguageVersionTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LanguageVersion", xmlWriter); + + if (localLanguageVersion == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LanguageVersion cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLanguageVersion); + } + + xmlWriter.writeEndElement(); + } + if (localProcessTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Process", xmlWriter); + + if (localProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProcess); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localQueriesOnlyTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "QueriesOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("QueriesOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueriesOnly)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpLogicalCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpLogicalCluster object = new TpLogicalCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpLogicalCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpLogicalCluster) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LanguageVersion") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LanguageVersion" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLanguageVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Process") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Process" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "QueriesOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueriesOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueriesOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalClusterQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalClusterQueryRequest.java index 49f6b3e0d..f3102b536 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalClusterQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalClusterQueryRequest.java @@ -1,453 +1,453 @@ -/** - * TpLogicalClusterQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpLogicalClusterQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpLogicalClusterQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpLogicalClusterQueryRequest", "ns1"); - - /** field for EclServerQueue */ - protected java.lang.String localEclServerQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEclServerQueueTracker = false; - - public boolean isEclServerQueueSpecified() { - return localEclServerQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEclServerQueue() { - return localEclServerQueue; - } - - /** - * Auto generated setter method - * - * @param param EclServerQueue - */ - public void setEclServerQueue(java.lang.String param) { - localEclServerQueueTracker = param != null; - - this.localEclServerQueue = param; - } - - /** field for RoxieQueueFilter */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter - localRoxieQueueFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRoxieQueueFilterTracker = false; - - public boolean isRoxieQueueFilterSpecified() { - return localRoxieQueueFilterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter - getRoxieQueueFilter() { - return localRoxieQueueFilter; - } - - /** - * Auto generated setter method - * - * @param param RoxieQueueFilter - */ - public void setRoxieQueueFilter( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter param) { - localRoxieQueueFilterTracker = param != null; - - this.localRoxieQueueFilter = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpLogicalClusterQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpLogicalClusterQueryRequest", - xmlWriter); - } - } - if (localEclServerQueueTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "EclServerQueue", xmlWriter); - - if (localEclServerQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EclServerQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEclServerQueue); - } - - xmlWriter.writeEndElement(); - } - if (localRoxieQueueFilterTracker) { - if (localRoxieQueueFilter == null) { - throw new org.apache.axis2.databinding.ADBException("RoxieQueueFilter cannot be null!!"); - } - localRoxieQueueFilter.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "RoxieQueueFilter"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpLogicalClusterQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpLogicalClusterQueryRequest object = new TpLogicalClusterQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpLogicalClusterQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpLogicalClusterQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EclServerQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EclServerQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEclServerQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "RoxieQueueFilter") - .equals(reader.getName())) { - - object.setRoxieQueueFilter( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpLogicalClusterQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpLogicalClusterQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpLogicalClusterQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpLogicalClusterQueryRequest", "ns1"); + + /** field for EclServerQueue */ + protected java.lang.String localEclServerQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEclServerQueueTracker = false; + + public boolean isEclServerQueueSpecified() { + return localEclServerQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEclServerQueue() { + return localEclServerQueue; + } + + /** + * Auto generated setter method + * + * @param param EclServerQueue + */ + public void setEclServerQueue(java.lang.String param) { + localEclServerQueueTracker = param != null; + + this.localEclServerQueue = param; + } + + /** field for RoxieQueueFilter */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter + localRoxieQueueFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRoxieQueueFilterTracker = false; + + public boolean isRoxieQueueFilterSpecified() { + return localRoxieQueueFilterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter + getRoxieQueueFilter() { + return localRoxieQueueFilter; + } + + /** + * Auto generated setter method + * + * @param param RoxieQueueFilter + */ + public void setRoxieQueueFilter( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter param) { + localRoxieQueueFilterTracker = param != null; + + this.localRoxieQueueFilter = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpLogicalClusterQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpLogicalClusterQueryRequest", + xmlWriter); + } + } + if (localEclServerQueueTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "EclServerQueue", xmlWriter); + + if (localEclServerQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EclServerQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEclServerQueue); + } + + xmlWriter.writeEndElement(); + } + if (localRoxieQueueFilterTracker) { + if (localRoxieQueueFilter == null) { + throw new org.apache.axis2.databinding.ADBException("RoxieQueueFilter cannot be null!!"); + } + localRoxieQueueFilter.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "RoxieQueueFilter"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpLogicalClusterQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpLogicalClusterQueryRequest object = new TpLogicalClusterQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpLogicalClusterQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpLogicalClusterQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EclServerQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EclServerQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEclServerQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "RoxieQueueFilter") + .equals(reader.getName())) { + + object.setRoxieQueueFilter( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.RoxieQueueFilter.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalClusterQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalClusterQueryResponse.java index 6477a41bc..6e828b883 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalClusterQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpLogicalClusterQueryResponse.java @@ -1,438 +1,438 @@ -/** - * TpLogicalClusterQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpLogicalClusterQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpLogicalClusterQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpLogicalClusterQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for TpLogicalClusters */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster - localTpLogicalClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpLogicalClustersTracker = false; - - public boolean isTpLogicalClustersSpecified() { - return localTpLogicalClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster - getTpLogicalClusters() { - return localTpLogicalClusters; - } - - /** - * Auto generated setter method - * - * @param param TpLogicalClusters - */ - public void setTpLogicalClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster param) { - localTpLogicalClustersTracker = param != null; - - this.localTpLogicalClusters = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpLogicalClusterQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpLogicalClusterQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localTpLogicalClustersTracker) { - if (localTpLogicalClusters == null) { - throw new org.apache.axis2.databinding.ADBException("TpLogicalClusters cannot be null!!"); - } - localTpLogicalClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogicalClusters"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpLogicalClusterQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpLogicalClusterQueryResponse object = new TpLogicalClusterQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpLogicalClusterQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpLogicalClusterQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpLogicalClusters") - .equals(reader.getName())) { - - object.setTpLogicalClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpLogicalClusterQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpLogicalClusterQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpLogicalClusterQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpLogicalClusterQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for TpLogicalClusters */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster + localTpLogicalClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpLogicalClustersTracker = false; + + public boolean isTpLogicalClustersSpecified() { + return localTpLogicalClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster + getTpLogicalClusters() { + return localTpLogicalClusters; + } + + /** + * Auto generated setter method + * + * @param param TpLogicalClusters + */ + public void setTpLogicalClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster param) { + localTpLogicalClustersTracker = param != null; + + this.localTpLogicalClusters = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpLogicalClusterQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpLogicalClusterQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localTpLogicalClustersTracker) { + if (localTpLogicalClusters == null) { + throw new org.apache.axis2.databinding.ADBException("TpLogicalClusters cannot be null!!"); + } + localTpLogicalClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogicalClusters"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpLogicalClusterQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpLogicalClusterQueryResponse object = new TpLogicalClusterQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpLogicalClusterQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpLogicalClusterQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpLogicalClusters") + .equals(reader.getName())) { + + object.setTpLogicalClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLogicalCluster + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachine.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachine.java index b665fdb45..1bee3b8aa 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachine.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachine.java @@ -1,1147 +1,1147 @@ -/** - * TpMachine.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpMachine bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpMachine implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpMachine - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Netaddress */ - protected java.lang.String localNetaddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetaddressTracker = false; - - public boolean isNetaddressSpecified() { - return localNetaddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetaddress() { - return localNetaddress; - } - - /** - * Auto generated setter method - * - * @param param Netaddress - */ - public void setNetaddress(java.lang.String param) { - localNetaddressTracker = param != null; - - this.localNetaddress = param; - } - - /** field for ConfigNetaddress */ - protected java.lang.String localConfigNetaddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localConfigNetaddressTracker = false; - - public boolean isConfigNetaddressSpecified() { - return localConfigNetaddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getConfigNetaddress() { - return localConfigNetaddress; - } - - /** - * Auto generated setter method - * - * @param param ConfigNetaddress - */ - public void setConfigNetaddress(java.lang.String param) { - localConfigNetaddressTracker = param != null; - - this.localConfigNetaddress = param; - } - - /** field for Domain */ - protected java.lang.String localDomain; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDomainTracker = false; - - public boolean isDomainSpecified() { - return localDomainTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDomain() { - return localDomain; - } - - /** - * Auto generated setter method - * - * @param param Domain - */ - public void setDomain(java.lang.String param) { - localDomainTracker = param != null; - - this.localDomain = param; - } - - /** field for Directory */ - protected java.lang.String localDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDirectoryTracker = false; - - public boolean isDirectorySpecified() { - return localDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDirectory() { - return localDirectory; - } - - /** - * Auto generated setter method - * - * @param param Directory - */ - public void setDirectory(java.lang.String param) { - localDirectoryTracker = param != null; - - this.localDirectory = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Available */ - protected java.lang.String localAvailable; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAvailableTracker = false; - - public boolean isAvailableSpecified() { - return localAvailableTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAvailable() { - return localAvailable; - } - - /** - * Auto generated setter method - * - * @param param Available - */ - public void setAvailable(java.lang.String param) { - localAvailableTracker = param != null; - - this.localAvailable = param; - } - - /** field for OS */ - protected int localOS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOSTracker = false; - - public boolean isOSSpecified() { - return localOSTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getOS() { - return localOS; - } - - /** - * Auto generated setter method - * - * @param param OS - */ - public void setOS(int param) { - - // setting primitive attribute tracker to true - localOSTracker = param != java.lang.Integer.MIN_VALUE; - - this.localOS = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Port */ - protected int localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(int param) { - - // setting primitive attribute tracker to true - localPortTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPort = param; - } - - /** field for ProcessNumber */ - protected int localProcessNumber; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessNumberTracker = false; - - public boolean isProcessNumberSpecified() { - return localProcessNumberTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getProcessNumber() { - return localProcessNumber; - } - - /** - * Auto generated setter method - * - * @param param ProcessNumber - */ - public void setProcessNumber(int param) { - - // setting primitive attribute tracker to true - localProcessNumberTracker = param != java.lang.Integer.MIN_VALUE; - - this.localProcessNumber = param; - } - - /** field for Channels */ - protected org.apache.axis2.databinding.types.UnsignedInt localChannels; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localChannelsTracker = false; - - public boolean isChannelsSpecified() { - return localChannelsTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getChannels() { - return localChannels; - } - - /** - * Auto generated setter method - * - * @param param Channels - */ - public void setChannels(org.apache.axis2.databinding.types.UnsignedInt param) { - localChannelsTracker = param != null; - - this.localChannels = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpMachine", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpMachine", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localNetaddressTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Netaddress", xmlWriter); - - if (localNetaddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Netaddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetaddress); - } - - xmlWriter.writeEndElement(); - } - if (localConfigNetaddressTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ConfigNetaddress", xmlWriter); - - if (localConfigNetaddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ConfigNetaddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localConfigNetaddress); - } - - xmlWriter.writeEndElement(); - } - if (localDomainTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Domain", xmlWriter); - - if (localDomain == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Domain cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDomain); - } - - xmlWriter.writeEndElement(); - } - if (localDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Directory", xmlWriter); - - if (localDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localAvailableTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Available", xmlWriter); - - if (localAvailable == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Available cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAvailable); - } - - xmlWriter.writeEndElement(); - } - if (localOSTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "OS", xmlWriter); - - if (localOS == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); - } - - xmlWriter.writeEndElement(); - } - if (localProcessNumberTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ProcessNumber", xmlWriter); - - if (localProcessNumber == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ProcessNumber cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProcessNumber)); - } - - xmlWriter.writeEndElement(); - } - if (localChannelsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Channels", xmlWriter); - - if (localChannels == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Channels cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localChannels)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpMachine parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpMachine object = new TpMachine(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpMachine".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpMachine) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Netaddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Netaddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetaddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "ConfigNetaddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ConfigNetaddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setConfigNetaddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Domain") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Domain" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDomain( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Directory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Directory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Available") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Available" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAvailable( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ProcessNumber") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProcessNumber" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcessNumber( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Channels") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Channels" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setChannels( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpMachine.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpMachine bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpMachine implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpMachine + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Netaddress */ + protected java.lang.String localNetaddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetaddressTracker = false; + + public boolean isNetaddressSpecified() { + return localNetaddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetaddress() { + return localNetaddress; + } + + /** + * Auto generated setter method + * + * @param param Netaddress + */ + public void setNetaddress(java.lang.String param) { + localNetaddressTracker = param != null; + + this.localNetaddress = param; + } + + /** field for ConfigNetaddress */ + protected java.lang.String localConfigNetaddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localConfigNetaddressTracker = false; + + public boolean isConfigNetaddressSpecified() { + return localConfigNetaddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getConfigNetaddress() { + return localConfigNetaddress; + } + + /** + * Auto generated setter method + * + * @param param ConfigNetaddress + */ + public void setConfigNetaddress(java.lang.String param) { + localConfigNetaddressTracker = param != null; + + this.localConfigNetaddress = param; + } + + /** field for Domain */ + protected java.lang.String localDomain; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDomainTracker = false; + + public boolean isDomainSpecified() { + return localDomainTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDomain() { + return localDomain; + } + + /** + * Auto generated setter method + * + * @param param Domain + */ + public void setDomain(java.lang.String param) { + localDomainTracker = param != null; + + this.localDomain = param; + } + + /** field for Directory */ + protected java.lang.String localDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDirectoryTracker = false; + + public boolean isDirectorySpecified() { + return localDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDirectory() { + return localDirectory; + } + + /** + * Auto generated setter method + * + * @param param Directory + */ + public void setDirectory(java.lang.String param) { + localDirectoryTracker = param != null; + + this.localDirectory = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Available */ + protected java.lang.String localAvailable; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAvailableTracker = false; + + public boolean isAvailableSpecified() { + return localAvailableTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAvailable() { + return localAvailable; + } + + /** + * Auto generated setter method + * + * @param param Available + */ + public void setAvailable(java.lang.String param) { + localAvailableTracker = param != null; + + this.localAvailable = param; + } + + /** field for OS */ + protected int localOS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOSTracker = false; + + public boolean isOSSpecified() { + return localOSTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getOS() { + return localOS; + } + + /** + * Auto generated setter method + * + * @param param OS + */ + public void setOS(int param) { + + // setting primitive attribute tracker to true + localOSTracker = param != java.lang.Integer.MIN_VALUE; + + this.localOS = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Port */ + protected int localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(int param) { + + // setting primitive attribute tracker to true + localPortTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPort = param; + } + + /** field for ProcessNumber */ + protected int localProcessNumber; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessNumberTracker = false; + + public boolean isProcessNumberSpecified() { + return localProcessNumberTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getProcessNumber() { + return localProcessNumber; + } + + /** + * Auto generated setter method + * + * @param param ProcessNumber + */ + public void setProcessNumber(int param) { + + // setting primitive attribute tracker to true + localProcessNumberTracker = param != java.lang.Integer.MIN_VALUE; + + this.localProcessNumber = param; + } + + /** field for Channels */ + protected org.apache.axis2.databinding.types.UnsignedInt localChannels; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localChannelsTracker = false; + + public boolean isChannelsSpecified() { + return localChannelsTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getChannels() { + return localChannels; + } + + /** + * Auto generated setter method + * + * @param param Channels + */ + public void setChannels(org.apache.axis2.databinding.types.UnsignedInt param) { + localChannelsTracker = param != null; + + this.localChannels = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpMachine", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpMachine", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localNetaddressTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Netaddress", xmlWriter); + + if (localNetaddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Netaddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetaddress); + } + + xmlWriter.writeEndElement(); + } + if (localConfigNetaddressTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ConfigNetaddress", xmlWriter); + + if (localConfigNetaddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ConfigNetaddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localConfigNetaddress); + } + + xmlWriter.writeEndElement(); + } + if (localDomainTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Domain", xmlWriter); + + if (localDomain == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Domain cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDomain); + } + + xmlWriter.writeEndElement(); + } + if (localDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Directory", xmlWriter); + + if (localDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localAvailableTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Available", xmlWriter); + + if (localAvailable == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Available cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAvailable); + } + + xmlWriter.writeEndElement(); + } + if (localOSTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "OS", xmlWriter); + + if (localOS == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("OS cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOS)); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); + } + + xmlWriter.writeEndElement(); + } + if (localProcessNumberTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ProcessNumber", xmlWriter); + + if (localProcessNumber == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ProcessNumber cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProcessNumber)); + } + + xmlWriter.writeEndElement(); + } + if (localChannelsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Channels", xmlWriter); + + if (localChannels == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Channels cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localChannels)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpMachine parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpMachine object = new TpMachine(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpMachine".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpMachine) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Netaddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Netaddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetaddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "ConfigNetaddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ConfigNetaddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setConfigNetaddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Domain") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Domain" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDomain( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Directory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Directory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Available") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Available" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAvailable( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ProcessNumber") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProcessNumber" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcessNumber( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Channels") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Channels" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setChannels( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineInfoRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineInfoRequest.java index 28d5f4aee..9331cf04c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineInfoRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineInfoRequest.java @@ -1,464 +1,464 @@ -/** - * TpMachineInfoRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpMachineInfoRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpMachineInfoRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachineInfoRequest", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for NetAddress */ - protected java.lang.String localNetAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetAddressTracker = false; - - public boolean isNetAddressSpecified() { - return localNetAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetAddress() { - return localNetAddress; - } - - /** - * Auto generated setter method - * - * @param param NetAddress - */ - public void setNetAddress(java.lang.String param) { - localNetAddressTracker = param != null; - - this.localNetAddress = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpMachineInfoRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpMachineInfoRequest", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localNetAddressTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "NetAddress", xmlWriter); - - if (localNetAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetAddress); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpMachineInfoRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpMachineInfoRequest object = new TpMachineInfoRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpMachineInfoRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpMachineInfoRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NetAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpMachineInfoRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpMachineInfoRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpMachineInfoRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachineInfoRequest", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for NetAddress */ + protected java.lang.String localNetAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetAddressTracker = false; + + public boolean isNetAddressSpecified() { + return localNetAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetAddress() { + return localNetAddress; + } + + /** + * Auto generated setter method + * + * @param param NetAddress + */ + public void setNetAddress(java.lang.String param) { + localNetAddressTracker = param != null; + + this.localNetAddress = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpMachineInfoRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpMachineInfoRequest", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localNetAddressTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "NetAddress", xmlWriter); + + if (localNetAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetAddress); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpMachineInfoRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpMachineInfoRequest object = new TpMachineInfoRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpMachineInfoRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpMachineInfoRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NetAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineInfoResponse.java index ad981f482..a66648aba 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineInfoResponse.java @@ -1,434 +1,434 @@ -/** - * TpMachineInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpMachineInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpMachineInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpMachineInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for MachineInfo */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine localMachineInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMachineInfoTracker = false; - - public boolean isMachineInfoSpecified() { - return localMachineInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine getMachineInfo() { - return localMachineInfo; - } - - /** - * Auto generated setter method - * - * @param param MachineInfo - */ - public void setMachineInfo( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine param) { - localMachineInfoTracker = param != null; - - this.localMachineInfo = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpMachineInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpMachineInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localMachineInfoTracker) { - if (localMachineInfo == null) { - throw new org.apache.axis2.databinding.ADBException("MachineInfo cannot be null!!"); - } - localMachineInfo.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MachineInfo"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpMachineInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpMachineInfoResponse object = new TpMachineInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpMachineInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpMachineInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MachineInfo") - .equals(reader.getName())) { - - object.setMachineInfo( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpMachineInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpMachineInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpMachineInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpMachineInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for MachineInfo */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine localMachineInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMachineInfoTracker = false; + + public boolean isMachineInfoSpecified() { + return localMachineInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine getMachineInfo() { + return localMachineInfo; + } + + /** + * Auto generated setter method + * + * @param param MachineInfo + */ + public void setMachineInfo( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine param) { + localMachineInfoTracker = param != null; + + this.localMachineInfo = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpMachineInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpMachineInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localMachineInfoTracker) { + if (localMachineInfo == null) { + throw new org.apache.axis2.databinding.ADBException("MachineInfo cannot be null!!"); + } + localMachineInfo.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MachineInfo"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpMachineInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpMachineInfoResponse object = new TpMachineInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpMachineInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpMachineInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MachineInfo") + .equals(reader.getName())) { + + object.setMachineInfo( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachine.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineQueryRequest.java index 448b62ff9..33c589260 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineQueryRequest.java @@ -1,737 +1,737 @@ -/** - * TpMachineQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpMachineQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpMachineQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpMachineQueryRequest", "ns1"); - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for OldIP */ - protected java.lang.String localOldIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOldIPTracker = false; - - public boolean isOldIPSpecified() { - return localOldIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOldIP() { - return localOldIP; - } - - /** - * Auto generated setter method - * - * @param param OldIP - */ - public void setOldIP(java.lang.String param) { - localOldIPTracker = param != null; - - this.localOldIP = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Directory */ - protected java.lang.String localDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDirectoryTracker = false; - - public boolean isDirectorySpecified() { - return localDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDirectory() { - return localDirectory; - } - - /** - * Auto generated setter method - * - * @param param Directory - */ - public void setDirectory(java.lang.String param) { - localDirectoryTracker = param != null; - - this.localDirectory = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpMachineQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpMachineQueryRequest", - xmlWriter); - } - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localOldIPTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "OldIP", xmlWriter); - - if (localOldIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("OldIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOldIP); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Directory", xmlWriter); - - if (localDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpMachineQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpMachineQueryRequest object = new TpMachineQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpMachineQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpMachineQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OldIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OldIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOldIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Directory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Directory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpMachineQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpMachineQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpMachineQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpMachineQueryRequest", "ns1"); + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for OldIP */ + protected java.lang.String localOldIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOldIPTracker = false; + + public boolean isOldIPSpecified() { + return localOldIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOldIP() { + return localOldIP; + } + + /** + * Auto generated setter method + * + * @param param OldIP + */ + public void setOldIP(java.lang.String param) { + localOldIPTracker = param != null; + + this.localOldIP = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Directory */ + protected java.lang.String localDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDirectoryTracker = false; + + public boolean isDirectorySpecified() { + return localDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDirectory() { + return localDirectory; + } + + /** + * Auto generated setter method + * + * @param param Directory + */ + public void setDirectory(java.lang.String param) { + localDirectoryTracker = param != null; + + this.localDirectory = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpMachineQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpMachineQueryRequest", + xmlWriter); + } + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localOldIPTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "OldIP", xmlWriter); + + if (localOldIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("OldIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOldIP); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Directory", xmlWriter); + + if (localDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Directory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpMachineQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpMachineQueryRequest object = new TpMachineQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpMachineQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpMachineQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OldIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OldIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOldIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Directory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Directory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineQueryResponse.java index 605dda9f9..dedb168ad 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMachineQueryResponse.java @@ -1,1468 +1,1468 @@ -/** - * TpMachineQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpMachineQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpMachineQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpMachineQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for EnablePreflightInfo */ - protected boolean localEnablePreflightInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEnablePreflightInfoTracker = false; - - public boolean isEnablePreflightInfoSpecified() { - return localEnablePreflightInfoTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getEnablePreflightInfo() { - return localEnablePreflightInfo; - } - - /** - * Auto generated setter method - * - * @param param EnablePreflightInfo - */ - public void setEnablePreflightInfo(boolean param) { - - // setting primitive attribute tracker to true - localEnablePreflightInfoTracker = true; - - this.localEnablePreflightInfo = param; - } - - /** field for HasThorSpareProcess */ - protected boolean localHasThorSpareProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHasThorSpareProcessTracker = false; - - public boolean isHasThorSpareProcessSpecified() { - return localHasThorSpareProcessTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getHasThorSpareProcess() { - return localHasThorSpareProcess; - } - - /** - * Auto generated setter method - * - * @param param HasThorSpareProcess - */ - public void setHasThorSpareProcess(boolean param) { - - // setting primitive attribute tracker to true - localHasThorSpareProcessTracker = true; - - this.localHasThorSpareProcess = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for OldIP */ - protected java.lang.String localOldIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOldIPTracker = false; - - public boolean isOldIPSpecified() { - return localOldIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOldIP() { - return localOldIP; - } - - /** - * Auto generated setter method - * - * @param param OldIP - */ - public void setOldIP(java.lang.String param) { - localOldIPTracker = param != null; - - this.localOldIP = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for MemThreshold */ - protected int localMemThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemThresholdTracker = false; - - public boolean isMemThresholdSpecified() { - return localMemThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMemThreshold() { - return localMemThreshold; - } - - /** - * Auto generated setter method - * - * @param param MemThreshold - */ - public void setMemThreshold(int param) { - - // setting primitive attribute tracker to true - localMemThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMemThreshold = param; - } - - /** field for DiskThreshold */ - protected int localDiskThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDiskThresholdTracker = false; - - public boolean isDiskThresholdSpecified() { - return localDiskThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDiskThreshold() { - return localDiskThreshold; - } - - /** - * Auto generated setter method - * - * @param param DiskThreshold - */ - public void setDiskThreshold(int param) { - - // setting primitive attribute tracker to true - localDiskThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDiskThreshold = param; - } - - /** field for CpuThreshold */ - protected int localCpuThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCpuThresholdTracker = false; - - public boolean isCpuThresholdSpecified() { - return localCpuThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCpuThreshold() { - return localCpuThreshold; - } - - /** - * Auto generated setter method - * - * @param param CpuThreshold - */ - public void setCpuThreshold(int param) { - - // setting primitive attribute tracker to true - localCpuThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCpuThreshold = param; - } - - /** field for MemThresholdType */ - protected java.lang.String localMemThresholdType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemThresholdTypeTracker = false; - - public boolean isMemThresholdTypeSpecified() { - return localMemThresholdTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemThresholdType() { - return localMemThresholdType; - } - - /** - * Auto generated setter method - * - * @param param MemThresholdType - */ - public void setMemThresholdType(java.lang.String param) { - localMemThresholdTypeTracker = param != null; - - this.localMemThresholdType = param; - } - - /** field for DiskThresholdType */ - protected java.lang.String localDiskThresholdType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDiskThresholdTypeTracker = false; - - public boolean isDiskThresholdTypeSpecified() { - return localDiskThresholdTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDiskThresholdType() { - return localDiskThresholdType; - } - - /** - * Auto generated setter method - * - * @param param DiskThresholdType - */ - public void setDiskThresholdType(java.lang.String param) { - localDiskThresholdTypeTracker = param != null; - - this.localDiskThresholdType = param; - } - - /** field for PreflightProcessFilter */ - protected java.lang.String localPreflightProcessFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPreflightProcessFilterTracker = false; - - public boolean isPreflightProcessFilterSpecified() { - return localPreflightProcessFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPreflightProcessFilter() { - return localPreflightProcessFilter; - } - - /** - * Auto generated setter method - * - * @param param PreflightProcessFilter - */ - public void setPreflightProcessFilter(java.lang.String param) { - localPreflightProcessFilterTracker = param != null; - - this.localPreflightProcessFilter = param; - } - - /** field for EnableSNMP */ - protected boolean localEnableSNMP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEnableSNMPTracker = false; - - public boolean isEnableSNMPSpecified() { - return localEnableSNMPTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getEnableSNMP() { - return localEnableSNMP; - } - - /** - * Auto generated setter method - * - * @param param EnableSNMP - */ - public void setEnableSNMP(boolean param) { - - // setting primitive attribute tracker to true - localEnableSNMPTracker = true; - - this.localEnableSNMP = param; - } - - /** field for AcceptLanguage */ - protected java.lang.String localAcceptLanguage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAcceptLanguageTracker = false; - - public boolean isAcceptLanguageSpecified() { - return localAcceptLanguageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAcceptLanguage() { - return localAcceptLanguage; - } - - /** - * Auto generated setter method - * - * @param param AcceptLanguage - */ - public void setAcceptLanguage(java.lang.String param) { - localAcceptLanguageTracker = param != null; - - this.localAcceptLanguage = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpMachineQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpMachineQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localEnablePreflightInfoTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "EnablePreflightInfo", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("EnablePreflightInfo cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localEnablePreflightInfo)); - } - - xmlWriter.writeEndElement(); - } - if (localHasThorSpareProcessTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "HasThorSpareProcess", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("HasThorSpareProcess cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localHasThorSpareProcess)); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localOldIPTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "OldIP", xmlWriter); - - if (localOldIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("OldIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOldIP); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localMemThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "MemThreshold", xmlWriter); - - if (localMemThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MemThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localDiskThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "DiskThreshold", xmlWriter); - - if (localDiskThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("DiskThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDiskThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localCpuThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "CpuThreshold", xmlWriter); - - if (localCpuThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CpuThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCpuThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localMemThresholdTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "MemThresholdType", xmlWriter); - - if (localMemThresholdType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MemThresholdType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemThresholdType); - } - - xmlWriter.writeEndElement(); - } - if (localDiskThresholdTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "DiskThresholdType", xmlWriter); - - if (localDiskThresholdType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DiskThresholdType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDiskThresholdType); - } - - xmlWriter.writeEndElement(); - } - if (localPreflightProcessFilterTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PreflightProcessFilter", xmlWriter); - - if (localPreflightProcessFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "PreflightProcessFilter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPreflightProcessFilter); - } - - xmlWriter.writeEndElement(); - } - if (localEnableSNMPTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "EnableSNMP", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("EnableSNMP cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableSNMP)); - } - - xmlWriter.writeEndElement(); - } - if (localAcceptLanguageTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); - - if (localAcceptLanguage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAcceptLanguage); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpMachineQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpMachineQueryResponse object = new TpMachineQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpMachineQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpMachineQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "EnablePreflightInfo") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EnablePreflightInfo" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEnablePreflightInfo( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "HasThorSpareProcess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "HasThorSpareProcess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setHasThorSpareProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OldIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OldIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOldIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MemThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DiskThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DiskThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDiskThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CpuThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CpuThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCpuThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "MemThresholdType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemThresholdType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemThresholdType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "DiskThresholdType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DiskThresholdType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDiskThresholdType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "PreflightProcessFilter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PreflightProcessFilter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPreflightProcessFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EnableSNMP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EnableSNMP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEnableSNMP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AcceptLanguage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAcceptLanguage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpMachineQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpMachineQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpMachineQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpMachineQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for EnablePreflightInfo */ + protected boolean localEnablePreflightInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEnablePreflightInfoTracker = false; + + public boolean isEnablePreflightInfoSpecified() { + return localEnablePreflightInfoTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getEnablePreflightInfo() { + return localEnablePreflightInfo; + } + + /** + * Auto generated setter method + * + * @param param EnablePreflightInfo + */ + public void setEnablePreflightInfo(boolean param) { + + // setting primitive attribute tracker to true + localEnablePreflightInfoTracker = true; + + this.localEnablePreflightInfo = param; + } + + /** field for HasThorSpareProcess */ + protected boolean localHasThorSpareProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHasThorSpareProcessTracker = false; + + public boolean isHasThorSpareProcessSpecified() { + return localHasThorSpareProcessTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getHasThorSpareProcess() { + return localHasThorSpareProcess; + } + + /** + * Auto generated setter method + * + * @param param HasThorSpareProcess + */ + public void setHasThorSpareProcess(boolean param) { + + // setting primitive attribute tracker to true + localHasThorSpareProcessTracker = true; + + this.localHasThorSpareProcess = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for OldIP */ + protected java.lang.String localOldIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOldIPTracker = false; + + public boolean isOldIPSpecified() { + return localOldIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOldIP() { + return localOldIP; + } + + /** + * Auto generated setter method + * + * @param param OldIP + */ + public void setOldIP(java.lang.String param) { + localOldIPTracker = param != null; + + this.localOldIP = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for MemThreshold */ + protected int localMemThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemThresholdTracker = false; + + public boolean isMemThresholdSpecified() { + return localMemThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMemThreshold() { + return localMemThreshold; + } + + /** + * Auto generated setter method + * + * @param param MemThreshold + */ + public void setMemThreshold(int param) { + + // setting primitive attribute tracker to true + localMemThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMemThreshold = param; + } + + /** field for DiskThreshold */ + protected int localDiskThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDiskThresholdTracker = false; + + public boolean isDiskThresholdSpecified() { + return localDiskThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDiskThreshold() { + return localDiskThreshold; + } + + /** + * Auto generated setter method + * + * @param param DiskThreshold + */ + public void setDiskThreshold(int param) { + + // setting primitive attribute tracker to true + localDiskThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDiskThreshold = param; + } + + /** field for CpuThreshold */ + protected int localCpuThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCpuThresholdTracker = false; + + public boolean isCpuThresholdSpecified() { + return localCpuThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCpuThreshold() { + return localCpuThreshold; + } + + /** + * Auto generated setter method + * + * @param param CpuThreshold + */ + public void setCpuThreshold(int param) { + + // setting primitive attribute tracker to true + localCpuThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCpuThreshold = param; + } + + /** field for MemThresholdType */ + protected java.lang.String localMemThresholdType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemThresholdTypeTracker = false; + + public boolean isMemThresholdTypeSpecified() { + return localMemThresholdTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemThresholdType() { + return localMemThresholdType; + } + + /** + * Auto generated setter method + * + * @param param MemThresholdType + */ + public void setMemThresholdType(java.lang.String param) { + localMemThresholdTypeTracker = param != null; + + this.localMemThresholdType = param; + } + + /** field for DiskThresholdType */ + protected java.lang.String localDiskThresholdType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDiskThresholdTypeTracker = false; + + public boolean isDiskThresholdTypeSpecified() { + return localDiskThresholdTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDiskThresholdType() { + return localDiskThresholdType; + } + + /** + * Auto generated setter method + * + * @param param DiskThresholdType + */ + public void setDiskThresholdType(java.lang.String param) { + localDiskThresholdTypeTracker = param != null; + + this.localDiskThresholdType = param; + } + + /** field for PreflightProcessFilter */ + protected java.lang.String localPreflightProcessFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPreflightProcessFilterTracker = false; + + public boolean isPreflightProcessFilterSpecified() { + return localPreflightProcessFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPreflightProcessFilter() { + return localPreflightProcessFilter; + } + + /** + * Auto generated setter method + * + * @param param PreflightProcessFilter + */ + public void setPreflightProcessFilter(java.lang.String param) { + localPreflightProcessFilterTracker = param != null; + + this.localPreflightProcessFilter = param; + } + + /** field for EnableSNMP */ + protected boolean localEnableSNMP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEnableSNMPTracker = false; + + public boolean isEnableSNMPSpecified() { + return localEnableSNMPTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getEnableSNMP() { + return localEnableSNMP; + } + + /** + * Auto generated setter method + * + * @param param EnableSNMP + */ + public void setEnableSNMP(boolean param) { + + // setting primitive attribute tracker to true + localEnableSNMPTracker = true; + + this.localEnableSNMP = param; + } + + /** field for AcceptLanguage */ + protected java.lang.String localAcceptLanguage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAcceptLanguageTracker = false; + + public boolean isAcceptLanguageSpecified() { + return localAcceptLanguageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAcceptLanguage() { + return localAcceptLanguage; + } + + /** + * Auto generated setter method + * + * @param param AcceptLanguage + */ + public void setAcceptLanguage(java.lang.String param) { + localAcceptLanguageTracker = param != null; + + this.localAcceptLanguage = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpMachineQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpMachineQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localEnablePreflightInfoTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "EnablePreflightInfo", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("EnablePreflightInfo cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localEnablePreflightInfo)); + } + + xmlWriter.writeEndElement(); + } + if (localHasThorSpareProcessTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "HasThorSpareProcess", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("HasThorSpareProcess cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localHasThorSpareProcess)); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localOldIPTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "OldIP", xmlWriter); + + if (localOldIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("OldIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOldIP); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localMemThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "MemThreshold", xmlWriter); + + if (localMemThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MemThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localDiskThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "DiskThreshold", xmlWriter); + + if (localDiskThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("DiskThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDiskThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localCpuThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "CpuThreshold", xmlWriter); + + if (localCpuThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CpuThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCpuThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localMemThresholdTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "MemThresholdType", xmlWriter); + + if (localMemThresholdType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MemThresholdType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemThresholdType); + } + + xmlWriter.writeEndElement(); + } + if (localDiskThresholdTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "DiskThresholdType", xmlWriter); + + if (localDiskThresholdType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DiskThresholdType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDiskThresholdType); + } + + xmlWriter.writeEndElement(); + } + if (localPreflightProcessFilterTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PreflightProcessFilter", xmlWriter); + + if (localPreflightProcessFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "PreflightProcessFilter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPreflightProcessFilter); + } + + xmlWriter.writeEndElement(); + } + if (localEnableSNMPTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "EnableSNMP", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("EnableSNMP cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableSNMP)); + } + + xmlWriter.writeEndElement(); + } + if (localAcceptLanguageTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); + + if (localAcceptLanguage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAcceptLanguage); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpMachineQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpMachineQueryResponse object = new TpMachineQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpMachineQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpMachineQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "EnablePreflightInfo") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EnablePreflightInfo" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEnablePreflightInfo( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "HasThorSpareProcess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "HasThorSpareProcess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setHasThorSpareProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OldIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OldIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOldIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MemThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DiskThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DiskThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDiskThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CpuThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CpuThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCpuThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "MemThresholdType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemThresholdType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemThresholdType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "DiskThresholdType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DiskThresholdType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDiskThresholdType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "PreflightProcessFilter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PreflightProcessFilter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPreflightProcessFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EnableSNMP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EnableSNMP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEnableSNMP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AcceptLanguage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAcceptLanguage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMySqlServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMySqlServer.java index 43b6b5ee8..4967a81f5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMySqlServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpMySqlServer.java @@ -1,651 +1,651 @@ -/** - * TpMySqlServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpMySqlServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpMySqlServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpMySqlServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpMySqlServer", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpMySqlServer", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpMySqlServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpMySqlServer object = new TpMySqlServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpMySqlServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpMySqlServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpMySqlServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpMySqlServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpMySqlServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpMySqlServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpMySqlServer", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpMySqlServer", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpMySqlServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpMySqlServer object = new TpMySqlServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpMySqlServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpMySqlServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpQueue.java index c8b6a7a3b..14a37eb2f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpQueue.java @@ -1,463 +1,463 @@ -/** - * TpQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpQueue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpQueue - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for WorkUnit */ - protected java.lang.String localWorkUnit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkUnitTracker = false; - - public boolean isWorkUnitSpecified() { - return localWorkUnitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWorkUnit() { - return localWorkUnit; - } - - /** - * Auto generated setter method - * - * @param param WorkUnit - */ - public void setWorkUnit(java.lang.String param) { - localWorkUnitTracker = param != null; - - this.localWorkUnit = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpQueue", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localWorkUnitTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "WorkUnit", xmlWriter); - - if (localWorkUnit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WorkUnit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWorkUnit); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpQueue object = new TpQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpQueue) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "WorkUnit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WorkUnit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWorkUnit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpQueue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpQueue + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for WorkUnit */ + protected java.lang.String localWorkUnit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkUnitTracker = false; + + public boolean isWorkUnitSpecified() { + return localWorkUnitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWorkUnit() { + return localWorkUnit; + } + + /** + * Auto generated setter method + * + * @param param WorkUnit + */ + public void setWorkUnit(java.lang.String param) { + localWorkUnitTracker = param != null; + + this.localWorkUnit = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpQueue", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localWorkUnitTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "WorkUnit", xmlWriter); + + if (localWorkUnit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WorkUnit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWorkUnit); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpQueue object = new TpQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpQueue) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "WorkUnit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WorkUnit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWorkUnit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSashaServer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSashaServer.java index 2ccf57e8a..21e17344c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSashaServer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSashaServer.java @@ -1,719 +1,719 @@ -/** - * TpSashaServer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpSashaServer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpSashaServer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpSashaServer - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpSashaServer", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpSashaServer", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpSashaServer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpSashaServer object = new TpSashaServer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpSashaServer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpSashaServer) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpSashaServer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpSashaServer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpSashaServer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpSashaServer + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpSashaServer", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpSashaServer", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpSashaServer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpSashaServer object = new TpSashaServer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpSashaServer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpSashaServer) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServiceQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServiceQueryRequest.java index e69483546..20e5164b5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServiceQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServiceQueryRequest.java @@ -1,397 +1,397 @@ -/** - * TpServiceQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpServiceQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpServiceQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpServiceQueryRequest", "ns1"); - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpServiceQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpServiceQueryRequest", - xmlWriter); - } - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpServiceQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpServiceQueryRequest object = new TpServiceQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpServiceQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpServiceQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpServiceQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpServiceQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpServiceQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpServiceQueryRequest", "ns1"); + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpServiceQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpServiceQueryRequest", + xmlWriter); + } + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpServiceQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpServiceQueryRequest object = new TpServiceQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpServiceQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpServiceQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServiceQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServiceQueryResponse.java index 0fe02bebe..248db2879 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServiceQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServiceQueryResponse.java @@ -1,1057 +1,1057 @@ -/** - * TpServiceQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpServiceQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpServiceQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpServiceQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for MemThreshold */ - protected int localMemThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemThresholdTracker = false; - - public boolean isMemThresholdSpecified() { - return localMemThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMemThreshold() { - return localMemThreshold; - } - - /** - * Auto generated setter method - * - * @param param MemThreshold - */ - public void setMemThreshold(int param) { - - // setting primitive attribute tracker to true - localMemThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMemThreshold = param; - } - - /** field for DiskThreshold */ - protected int localDiskThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDiskThresholdTracker = false; - - public boolean isDiskThresholdSpecified() { - return localDiskThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDiskThreshold() { - return localDiskThreshold; - } - - /** - * Auto generated setter method - * - * @param param DiskThreshold - */ - public void setDiskThreshold(int param) { - - // setting primitive attribute tracker to true - localDiskThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDiskThreshold = param; - } - - /** field for CpuThreshold */ - protected int localCpuThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCpuThresholdTracker = false; - - public boolean isCpuThresholdSpecified() { - return localCpuThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCpuThreshold() { - return localCpuThreshold; - } - - /** - * Auto generated setter method - * - * @param param CpuThreshold - */ - public void setCpuThreshold(int param) { - - // setting primitive attribute tracker to true - localCpuThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCpuThreshold = param; - } - - /** field for EncapsulatedSystem */ - protected boolean localEncapsulatedSystem; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEncapsulatedSystemTracker = false; - - public boolean isEncapsulatedSystemSpecified() { - return localEncapsulatedSystemTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getEncapsulatedSystem() { - return localEncapsulatedSystem; - } - - /** - * Auto generated setter method - * - * @param param EncapsulatedSystem - */ - public void setEncapsulatedSystem(boolean param) { - - // setting primitive attribute tracker to true - localEncapsulatedSystemTracker = true; - - this.localEncapsulatedSystem = param; - } - - /** field for EnableSNMP */ - protected boolean localEnableSNMP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEnableSNMPTracker = false; - - public boolean isEnableSNMPSpecified() { - return localEnableSNMPTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getEnableSNMP() { - return localEnableSNMP; - } - - /** - * Auto generated setter method - * - * @param param EnableSNMP - */ - public void setEnableSNMP(boolean param) { - - // setting primitive attribute tracker to true - localEnableSNMPTracker = true; - - this.localEnableSNMP = param; - } - - /** field for PreflightProcessFilter */ - protected java.lang.String localPreflightProcessFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPreflightProcessFilterTracker = false; - - public boolean isPreflightProcessFilterSpecified() { - return localPreflightProcessFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPreflightProcessFilter() { - return localPreflightProcessFilter; - } - - /** - * Auto generated setter method - * - * @param param PreflightProcessFilter - */ - public void setPreflightProcessFilter(java.lang.String param) { - localPreflightProcessFilterTracker = param != null; - - this.localPreflightProcessFilter = param; - } - - /** field for AcceptLanguage */ - protected java.lang.String localAcceptLanguage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAcceptLanguageTracker = false; - - public boolean isAcceptLanguageSpecified() { - return localAcceptLanguageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAcceptLanguage() { - return localAcceptLanguage; - } - - /** - * Auto generated setter method - * - * @param param AcceptLanguage - */ - public void setAcceptLanguage(java.lang.String param) { - localAcceptLanguageTracker = param != null; - - this.localAcceptLanguage = param; - } - - /** field for MemThresholdType */ - protected java.lang.String localMemThresholdType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemThresholdTypeTracker = false; - - public boolean isMemThresholdTypeSpecified() { - return localMemThresholdTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemThresholdType() { - return localMemThresholdType; - } - - /** - * Auto generated setter method - * - * @param param MemThresholdType - */ - public void setMemThresholdType(java.lang.String param) { - localMemThresholdTypeTracker = param != null; - - this.localMemThresholdType = param; - } - - /** field for DiskThresholdType */ - protected java.lang.String localDiskThresholdType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDiskThresholdTypeTracker = false; - - public boolean isDiskThresholdTypeSpecified() { - return localDiskThresholdTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDiskThresholdType() { - return localDiskThresholdType; - } - - /** - * Auto generated setter method - * - * @param param DiskThresholdType - */ - public void setDiskThresholdType(java.lang.String param) { - localDiskThresholdTypeTracker = param != null; - - this.localDiskThresholdType = param; - } - - /** field for ServiceList */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices localServiceList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServiceListTracker = false; - - public boolean isServiceListSpecified() { - return localServiceListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices getServiceList() { - return localServiceList; - } - - /** - * Auto generated setter method - * - * @param param ServiceList - */ - public void setServiceList( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices param) { - localServiceListTracker = param != null; - - this.localServiceList = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpServiceQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpServiceQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localMemThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "MemThreshold", xmlWriter); - - if (localMemThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MemThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localDiskThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "DiskThreshold", xmlWriter); - - if (localDiskThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("DiskThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDiskThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localCpuThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "CpuThreshold", xmlWriter); - - if (localCpuThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CpuThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCpuThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localEncapsulatedSystemTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "EncapsulatedSystem", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("EncapsulatedSystem cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localEncapsulatedSystem)); - } - - xmlWriter.writeEndElement(); - } - if (localEnableSNMPTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "EnableSNMP", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("EnableSNMP cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableSNMP)); - } - - xmlWriter.writeEndElement(); - } - if (localPreflightProcessFilterTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PreflightProcessFilter", xmlWriter); - - if (localPreflightProcessFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "PreflightProcessFilter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPreflightProcessFilter); - } - - xmlWriter.writeEndElement(); - } - if (localAcceptLanguageTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); - - if (localAcceptLanguage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAcceptLanguage); - } - - xmlWriter.writeEndElement(); - } - if (localMemThresholdTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "MemThresholdType", xmlWriter); - - if (localMemThresholdType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MemThresholdType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemThresholdType); - } - - xmlWriter.writeEndElement(); - } - if (localDiskThresholdTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "DiskThresholdType", xmlWriter); - - if (localDiskThresholdType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DiskThresholdType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDiskThresholdType); - } - - xmlWriter.writeEndElement(); - } - if (localServiceListTracker) { - if (localServiceList == null) { - throw new org.apache.axis2.databinding.ADBException("ServiceList cannot be null!!"); - } - localServiceList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ServiceList"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpServiceQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpServiceQueryResponse object = new TpServiceQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpServiceQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpServiceQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MemThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DiskThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DiskThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDiskThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CpuThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CpuThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCpuThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "EncapsulatedSystem") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EncapsulatedSystem" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEncapsulatedSystem( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EnableSNMP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EnableSNMP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEnableSNMP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "PreflightProcessFilter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PreflightProcessFilter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPreflightProcessFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AcceptLanguage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAcceptLanguage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "MemThresholdType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemThresholdType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemThresholdType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "DiskThresholdType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DiskThresholdType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDiskThresholdType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ServiceList") - .equals(reader.getName())) { - - object.setServiceList( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpServiceQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpServiceQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpServiceQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpServiceQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for MemThreshold */ + protected int localMemThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemThresholdTracker = false; + + public boolean isMemThresholdSpecified() { + return localMemThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMemThreshold() { + return localMemThreshold; + } + + /** + * Auto generated setter method + * + * @param param MemThreshold + */ + public void setMemThreshold(int param) { + + // setting primitive attribute tracker to true + localMemThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMemThreshold = param; + } + + /** field for DiskThreshold */ + protected int localDiskThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDiskThresholdTracker = false; + + public boolean isDiskThresholdSpecified() { + return localDiskThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDiskThreshold() { + return localDiskThreshold; + } + + /** + * Auto generated setter method + * + * @param param DiskThreshold + */ + public void setDiskThreshold(int param) { + + // setting primitive attribute tracker to true + localDiskThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDiskThreshold = param; + } + + /** field for CpuThreshold */ + protected int localCpuThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCpuThresholdTracker = false; + + public boolean isCpuThresholdSpecified() { + return localCpuThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCpuThreshold() { + return localCpuThreshold; + } + + /** + * Auto generated setter method + * + * @param param CpuThreshold + */ + public void setCpuThreshold(int param) { + + // setting primitive attribute tracker to true + localCpuThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCpuThreshold = param; + } + + /** field for EncapsulatedSystem */ + protected boolean localEncapsulatedSystem; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEncapsulatedSystemTracker = false; + + public boolean isEncapsulatedSystemSpecified() { + return localEncapsulatedSystemTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getEncapsulatedSystem() { + return localEncapsulatedSystem; + } + + /** + * Auto generated setter method + * + * @param param EncapsulatedSystem + */ + public void setEncapsulatedSystem(boolean param) { + + // setting primitive attribute tracker to true + localEncapsulatedSystemTracker = true; + + this.localEncapsulatedSystem = param; + } + + /** field for EnableSNMP */ + protected boolean localEnableSNMP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEnableSNMPTracker = false; + + public boolean isEnableSNMPSpecified() { + return localEnableSNMPTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getEnableSNMP() { + return localEnableSNMP; + } + + /** + * Auto generated setter method + * + * @param param EnableSNMP + */ + public void setEnableSNMP(boolean param) { + + // setting primitive attribute tracker to true + localEnableSNMPTracker = true; + + this.localEnableSNMP = param; + } + + /** field for PreflightProcessFilter */ + protected java.lang.String localPreflightProcessFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPreflightProcessFilterTracker = false; + + public boolean isPreflightProcessFilterSpecified() { + return localPreflightProcessFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPreflightProcessFilter() { + return localPreflightProcessFilter; + } + + /** + * Auto generated setter method + * + * @param param PreflightProcessFilter + */ + public void setPreflightProcessFilter(java.lang.String param) { + localPreflightProcessFilterTracker = param != null; + + this.localPreflightProcessFilter = param; + } + + /** field for AcceptLanguage */ + protected java.lang.String localAcceptLanguage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAcceptLanguageTracker = false; + + public boolean isAcceptLanguageSpecified() { + return localAcceptLanguageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAcceptLanguage() { + return localAcceptLanguage; + } + + /** + * Auto generated setter method + * + * @param param AcceptLanguage + */ + public void setAcceptLanguage(java.lang.String param) { + localAcceptLanguageTracker = param != null; + + this.localAcceptLanguage = param; + } + + /** field for MemThresholdType */ + protected java.lang.String localMemThresholdType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemThresholdTypeTracker = false; + + public boolean isMemThresholdTypeSpecified() { + return localMemThresholdTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemThresholdType() { + return localMemThresholdType; + } + + /** + * Auto generated setter method + * + * @param param MemThresholdType + */ + public void setMemThresholdType(java.lang.String param) { + localMemThresholdTypeTracker = param != null; + + this.localMemThresholdType = param; + } + + /** field for DiskThresholdType */ + protected java.lang.String localDiskThresholdType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDiskThresholdTypeTracker = false; + + public boolean isDiskThresholdTypeSpecified() { + return localDiskThresholdTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDiskThresholdType() { + return localDiskThresholdType; + } + + /** + * Auto generated setter method + * + * @param param DiskThresholdType + */ + public void setDiskThresholdType(java.lang.String param) { + localDiskThresholdTypeTracker = param != null; + + this.localDiskThresholdType = param; + } + + /** field for ServiceList */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices localServiceList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServiceListTracker = false; + + public boolean isServiceListSpecified() { + return localServiceListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices getServiceList() { + return localServiceList; + } + + /** + * Auto generated setter method + * + * @param param ServiceList + */ + public void setServiceList( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices param) { + localServiceListTracker = param != null; + + this.localServiceList = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpServiceQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpServiceQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localMemThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "MemThreshold", xmlWriter); + + if (localMemThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MemThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localDiskThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "DiskThreshold", xmlWriter); + + if (localDiskThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("DiskThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDiskThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localCpuThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "CpuThreshold", xmlWriter); + + if (localCpuThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CpuThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCpuThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localEncapsulatedSystemTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "EncapsulatedSystem", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("EncapsulatedSystem cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localEncapsulatedSystem)); + } + + xmlWriter.writeEndElement(); + } + if (localEnableSNMPTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "EnableSNMP", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("EnableSNMP cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEnableSNMP)); + } + + xmlWriter.writeEndElement(); + } + if (localPreflightProcessFilterTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PreflightProcessFilter", xmlWriter); + + if (localPreflightProcessFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "PreflightProcessFilter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPreflightProcessFilter); + } + + xmlWriter.writeEndElement(); + } + if (localAcceptLanguageTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); + + if (localAcceptLanguage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAcceptLanguage); + } + + xmlWriter.writeEndElement(); + } + if (localMemThresholdTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "MemThresholdType", xmlWriter); + + if (localMemThresholdType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MemThresholdType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemThresholdType); + } + + xmlWriter.writeEndElement(); + } + if (localDiskThresholdTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "DiskThresholdType", xmlWriter); + + if (localDiskThresholdType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DiskThresholdType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDiskThresholdType); + } + + xmlWriter.writeEndElement(); + } + if (localServiceListTracker) { + if (localServiceList == null) { + throw new org.apache.axis2.databinding.ADBException("ServiceList cannot be null!!"); + } + localServiceList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ServiceList"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpServiceQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpServiceQueryResponse object = new TpServiceQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpServiceQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpServiceQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MemThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DiskThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DiskThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDiskThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CpuThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CpuThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCpuThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "EncapsulatedSystem") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EncapsulatedSystem" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEncapsulatedSystem( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "EnableSNMP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EnableSNMP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEnableSNMP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "PreflightProcessFilter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PreflightProcessFilter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPreflightProcessFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AcceptLanguage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAcceptLanguage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "MemThresholdType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemThresholdType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemThresholdType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "DiskThresholdType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DiskThresholdType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDiskThresholdType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ServiceList") + .equals(reader.getName())) { + + object.setServiceList( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServices.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServices.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServices.java index cbc24a885..9ef6182bb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServices.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpServices.java @@ -1,1141 +1,1141 @@ -/** - * TpServices.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpServices bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpServices implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpServices - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for TpDalis */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali localTpDalis; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDalisTracker = false; - - public boolean isTpDalisSpecified() { - return localTpDalisTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali getTpDalis() { - return localTpDalis; - } - - /** - * Auto generated setter method - * - * @param param TpDalis - */ - public void setTpDalis( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali param) { - localTpDalisTracker = param != null; - - this.localTpDalis = param; - } - - /** field for TpDfuServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer - localTpDfuServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDfuServersTracker = false; - - public boolean isTpDfuServersSpecified() { - return localTpDfuServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer - getTpDfuServers() { - return localTpDfuServers; - } - - /** - * Auto generated setter method - * - * @param param TpDfuServers - */ - public void setTpDfuServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer param) { - localTpDfuServersTracker = param != null; - - this.localTpDfuServers = param; - } - - /** field for TpDkcSlaves */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave - localTpDkcSlaves; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDkcSlavesTracker = false; - - public boolean isTpDkcSlavesSpecified() { - return localTpDkcSlavesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave getTpDkcSlaves() { - return localTpDkcSlaves; - } - - /** - * Auto generated setter method - * - * @param param TpDkcSlaves - */ - public void setTpDkcSlaves( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave param) { - localTpDkcSlavesTracker = param != null; - - this.localTpDkcSlaves = param; - } - - /** field for TpDropZones */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone - localTpDropZones; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpDropZonesTracker = false; - - public boolean isTpDropZonesSpecified() { - return localTpDropZonesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone getTpDropZones() { - return localTpDropZones; - } - - /** - * Auto generated setter method - * - * @param param TpDropZones - */ - public void setTpDropZones( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone param) { - localTpDropZonesTracker = param != null; - - this.localTpDropZones = param; - } - - /** field for TpEclAgents */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent - localTpEclAgents; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclAgentsTracker = false; - - public boolean isTpEclAgentsSpecified() { - return localTpEclAgentsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent getTpEclAgents() { - return localTpEclAgents; - } - - /** - * Auto generated setter method - * - * @param param TpEclAgents - */ - public void setTpEclAgents( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent param) { - localTpEclAgentsTracker = param != null; - - this.localTpEclAgents = param; - } - - /** field for TpEclServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - localTpEclServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclServersTracker = false; - - public boolean isTpEclServersSpecified() { - return localTpEclServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - getTpEclServers() { - return localTpEclServers; - } - - /** - * Auto generated setter method - * - * @param param TpEclServers - */ - public void setTpEclServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer param) { - localTpEclServersTracker = param != null; - - this.localTpEclServers = param; - } - - /** field for TpEclCCServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - localTpEclCCServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclCCServersTracker = false; - - public boolean isTpEclCCServersSpecified() { - return localTpEclCCServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - getTpEclCCServers() { - return localTpEclCCServers; - } - - /** - * Auto generated setter method - * - * @param param TpEclCCServers - */ - public void setTpEclCCServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer param) { - localTpEclCCServersTracker = param != null; - - this.localTpEclCCServers = param; - } - - /** field for TpEclSchedulers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler - localTpEclSchedulers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclSchedulersTracker = false; - - public boolean isTpEclSchedulersSpecified() { - return localTpEclSchedulersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler - getTpEclSchedulers() { - return localTpEclSchedulers; - } - - /** - * Auto generated setter method - * - * @param param TpEclSchedulers - */ - public void setTpEclSchedulers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler param) { - localTpEclSchedulersTracker = param != null; - - this.localTpEclSchedulers = param; - } - - /** field for TpEspServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer - localTpEspServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEspServersTracker = false; - - public boolean isTpEspServersSpecified() { - return localTpEspServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer - getTpEspServers() { - return localTpEspServers; - } - - /** - * Auto generated setter method - * - * @param param TpEspServers - */ - public void setTpEspServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer param) { - localTpEspServersTracker = param != null; - - this.localTpEspServers = param; - } - - /** field for TpFTSlaves */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave localTpFTSlaves; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpFTSlavesTracker = false; - - public boolean isTpFTSlavesSpecified() { - return localTpFTSlavesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave getTpFTSlaves() { - return localTpFTSlaves; - } - - /** - * Auto generated setter method - * - * @param param TpFTSlaves - */ - public void setTpFTSlaves( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave param) { - localTpFTSlavesTracker = param != null; - - this.localTpFTSlaves = param; - } - - /** field for TpGenesisServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer - localTpGenesisServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpGenesisServersTracker = false; - - public boolean isTpGenesisServersSpecified() { - return localTpGenesisServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer - getTpGenesisServers() { - return localTpGenesisServers; - } - - /** - * Auto generated setter method - * - * @param param TpGenesisServers - */ - public void setTpGenesisServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer param) { - localTpGenesisServersTracker = param != null; - - this.localTpGenesisServers = param; - } - - /** field for TpLdapServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer - localTpLdapServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpLdapServersTracker = false; - - public boolean isTpLdapServersSpecified() { - return localTpLdapServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer - getTpLdapServers() { - return localTpLdapServers; - } - - /** - * Auto generated setter method - * - * @param param TpLdapServers - */ - public void setTpLdapServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer param) { - localTpLdapServersTracker = param != null; - - this.localTpLdapServers = param; - } - - /** field for TpMySqlServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer - localTpMySqlServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMySqlServersTracker = false; - - public boolean isTpMySqlServersSpecified() { - return localTpMySqlServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer - getTpMySqlServers() { - return localTpMySqlServers; - } - - /** - * Auto generated setter method - * - * @param param TpMySqlServers - */ - public void setTpMySqlServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer param) { - localTpMySqlServersTracker = param != null; - - this.localTpMySqlServers = param; - } - - /** field for TpSashaServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer - localTpSashaServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpSashaServersTracker = false; - - public boolean isTpSashaServersSpecified() { - return localTpSashaServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer - getTpSashaServers() { - return localTpSashaServers; - } - - /** - * Auto generated setter method - * - * @param param TpSashaServers - */ - public void setTpSashaServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer param) { - localTpSashaServersTracker = param != null; - - this.localTpSashaServers = param; - } - - /** field for TpSparkThors */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor - localTpSparkThors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpSparkThorsTracker = false; - - public boolean isTpSparkThorsSpecified() { - return localTpSparkThorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor - getTpSparkThors() { - return localTpSparkThors; - } - - /** - * Auto generated setter method - * - * @param param TpSparkThors - */ - public void setTpSparkThors( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor param) { - localTpSparkThorsTracker = param != null; - - this.localTpSparkThors = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpServices", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpServices", xmlWriter); - } - } - if (localTpDalisTracker) { - if (localTpDalis == null) { - throw new org.apache.axis2.databinding.ADBException("TpDalis cannot be null!!"); - } - localTpDalis.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDalis"), xmlWriter); - } - if (localTpDfuServersTracker) { - if (localTpDfuServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpDfuServers cannot be null!!"); - } - localTpDfuServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServers"), - xmlWriter); - } - if (localTpDkcSlavesTracker) { - if (localTpDkcSlaves == null) { - throw new org.apache.axis2.databinding.ADBException("TpDkcSlaves cannot be null!!"); - } - localTpDkcSlaves.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlaves"), xmlWriter); - } - if (localTpDropZonesTracker) { - if (localTpDropZones == null) { - throw new org.apache.axis2.databinding.ADBException("TpDropZones cannot be null!!"); - } - localTpDropZones.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZones"), xmlWriter); - } - if (localTpEclAgentsTracker) { - if (localTpEclAgents == null) { - throw new org.apache.axis2.databinding.ADBException("TpEclAgents cannot be null!!"); - } - localTpEclAgents.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgents"), xmlWriter); - } - if (localTpEclServersTracker) { - if (localTpEclServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpEclServers cannot be null!!"); - } - localTpEclServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServers"), - xmlWriter); - } - if (localTpEclCCServersTracker) { - if (localTpEclCCServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpEclCCServers cannot be null!!"); - } - localTpEclCCServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclCCServers"), - xmlWriter); - } - if (localTpEclSchedulersTracker) { - if (localTpEclSchedulers == null) { - throw new org.apache.axis2.databinding.ADBException("TpEclSchedulers cannot be null!!"); - } - localTpEclSchedulers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclSchedulers"), - xmlWriter); - } - if (localTpEspServersTracker) { - if (localTpEspServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpEspServers cannot be null!!"); - } - localTpEspServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServers"), - xmlWriter); - } - if (localTpFTSlavesTracker) { - if (localTpFTSlaves == null) { - throw new org.apache.axis2.databinding.ADBException("TpFTSlaves cannot be null!!"); - } - localTpFTSlaves.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlaves"), xmlWriter); - } - if (localTpGenesisServersTracker) { - if (localTpGenesisServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpGenesisServers cannot be null!!"); - } - localTpGenesisServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGenesisServers"), - xmlWriter); - } - if (localTpLdapServersTracker) { - if (localTpLdapServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpLdapServers cannot be null!!"); - } - localTpLdapServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServers"), - xmlWriter); - } - if (localTpMySqlServersTracker) { - if (localTpMySqlServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpMySqlServers cannot be null!!"); - } - localTpMySqlServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServers"), - xmlWriter); - } - if (localTpSashaServersTracker) { - if (localTpSashaServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpSashaServers cannot be null!!"); - } - localTpSashaServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServers"), - xmlWriter); - } - if (localTpSparkThorsTracker) { - if (localTpSparkThors == null) { - throw new org.apache.axis2.databinding.ADBException("TpSparkThors cannot be null!!"); - } - localTpSparkThors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThors"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpServices parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpServices object = new TpServices(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpServices".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpServices) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDalis") - .equals(reader.getName())) { - - object.setTpDalis( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServers") - .equals(reader.getName())) { - - object.setTpDfuServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlaves") - .equals(reader.getName())) { - - object.setTpDkcSlaves( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZones") - .equals(reader.getName())) { - - object.setTpDropZones( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgents") - .equals(reader.getName())) { - - object.setTpEclAgents( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServers") - .equals(reader.getName())) { - - object.setTpEclServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclCCServers") - .equals(reader.getName())) { - - object.setTpEclCCServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclSchedulers") - .equals(reader.getName())) { - - object.setTpEclSchedulers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServers") - .equals(reader.getName())) { - - object.setTpEspServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlaves") - .equals(reader.getName())) { - - object.setTpFTSlaves( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpGenesisServers") - .equals(reader.getName())) { - - object.setTpGenesisServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServers") - .equals(reader.getName())) { - - object.setTpLdapServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServers") - .equals(reader.getName())) { - - object.setTpMySqlServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServers") - .equals(reader.getName())) { - - object.setTpSashaServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThors") - .equals(reader.getName())) { - - object.setTpSparkThors( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpServices.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpServices bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpServices implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpServices + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for TpDalis */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali localTpDalis; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDalisTracker = false; + + public boolean isTpDalisSpecified() { + return localTpDalisTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali getTpDalis() { + return localTpDalis; + } + + /** + * Auto generated setter method + * + * @param param TpDalis + */ + public void setTpDalis( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali param) { + localTpDalisTracker = param != null; + + this.localTpDalis = param; + } + + /** field for TpDfuServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer + localTpDfuServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDfuServersTracker = false; + + public boolean isTpDfuServersSpecified() { + return localTpDfuServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer + getTpDfuServers() { + return localTpDfuServers; + } + + /** + * Auto generated setter method + * + * @param param TpDfuServers + */ + public void setTpDfuServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer param) { + localTpDfuServersTracker = param != null; + + this.localTpDfuServers = param; + } + + /** field for TpDkcSlaves */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave + localTpDkcSlaves; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDkcSlavesTracker = false; + + public boolean isTpDkcSlavesSpecified() { + return localTpDkcSlavesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave getTpDkcSlaves() { + return localTpDkcSlaves; + } + + /** + * Auto generated setter method + * + * @param param TpDkcSlaves + */ + public void setTpDkcSlaves( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave param) { + localTpDkcSlavesTracker = param != null; + + this.localTpDkcSlaves = param; + } + + /** field for TpDropZones */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone + localTpDropZones; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpDropZonesTracker = false; + + public boolean isTpDropZonesSpecified() { + return localTpDropZonesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone getTpDropZones() { + return localTpDropZones; + } + + /** + * Auto generated setter method + * + * @param param TpDropZones + */ + public void setTpDropZones( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone param) { + localTpDropZonesTracker = param != null; + + this.localTpDropZones = param; + } + + /** field for TpEclAgents */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent + localTpEclAgents; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclAgentsTracker = false; + + public boolean isTpEclAgentsSpecified() { + return localTpEclAgentsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent getTpEclAgents() { + return localTpEclAgents; + } + + /** + * Auto generated setter method + * + * @param param TpEclAgents + */ + public void setTpEclAgents( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent param) { + localTpEclAgentsTracker = param != null; + + this.localTpEclAgents = param; + } + + /** field for TpEclServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + localTpEclServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclServersTracker = false; + + public boolean isTpEclServersSpecified() { + return localTpEclServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + getTpEclServers() { + return localTpEclServers; + } + + /** + * Auto generated setter method + * + * @param param TpEclServers + */ + public void setTpEclServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer param) { + localTpEclServersTracker = param != null; + + this.localTpEclServers = param; + } + + /** field for TpEclCCServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + localTpEclCCServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclCCServersTracker = false; + + public boolean isTpEclCCServersSpecified() { + return localTpEclCCServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + getTpEclCCServers() { + return localTpEclCCServers; + } + + /** + * Auto generated setter method + * + * @param param TpEclCCServers + */ + public void setTpEclCCServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer param) { + localTpEclCCServersTracker = param != null; + + this.localTpEclCCServers = param; + } + + /** field for TpEclSchedulers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler + localTpEclSchedulers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclSchedulersTracker = false; + + public boolean isTpEclSchedulersSpecified() { + return localTpEclSchedulersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler + getTpEclSchedulers() { + return localTpEclSchedulers; + } + + /** + * Auto generated setter method + * + * @param param TpEclSchedulers + */ + public void setTpEclSchedulers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler param) { + localTpEclSchedulersTracker = param != null; + + this.localTpEclSchedulers = param; + } + + /** field for TpEspServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer + localTpEspServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEspServersTracker = false; + + public boolean isTpEspServersSpecified() { + return localTpEspServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer + getTpEspServers() { + return localTpEspServers; + } + + /** + * Auto generated setter method + * + * @param param TpEspServers + */ + public void setTpEspServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer param) { + localTpEspServersTracker = param != null; + + this.localTpEspServers = param; + } + + /** field for TpFTSlaves */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave localTpFTSlaves; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpFTSlavesTracker = false; + + public boolean isTpFTSlavesSpecified() { + return localTpFTSlavesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave getTpFTSlaves() { + return localTpFTSlaves; + } + + /** + * Auto generated setter method + * + * @param param TpFTSlaves + */ + public void setTpFTSlaves( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave param) { + localTpFTSlavesTracker = param != null; + + this.localTpFTSlaves = param; + } + + /** field for TpGenesisServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer + localTpGenesisServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpGenesisServersTracker = false; + + public boolean isTpGenesisServersSpecified() { + return localTpGenesisServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer + getTpGenesisServers() { + return localTpGenesisServers; + } + + /** + * Auto generated setter method + * + * @param param TpGenesisServers + */ + public void setTpGenesisServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer param) { + localTpGenesisServersTracker = param != null; + + this.localTpGenesisServers = param; + } + + /** field for TpLdapServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer + localTpLdapServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpLdapServersTracker = false; + + public boolean isTpLdapServersSpecified() { + return localTpLdapServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer + getTpLdapServers() { + return localTpLdapServers; + } + + /** + * Auto generated setter method + * + * @param param TpLdapServers + */ + public void setTpLdapServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer param) { + localTpLdapServersTracker = param != null; + + this.localTpLdapServers = param; + } + + /** field for TpMySqlServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer + localTpMySqlServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMySqlServersTracker = false; + + public boolean isTpMySqlServersSpecified() { + return localTpMySqlServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer + getTpMySqlServers() { + return localTpMySqlServers; + } + + /** + * Auto generated setter method + * + * @param param TpMySqlServers + */ + public void setTpMySqlServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer param) { + localTpMySqlServersTracker = param != null; + + this.localTpMySqlServers = param; + } + + /** field for TpSashaServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer + localTpSashaServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpSashaServersTracker = false; + + public boolean isTpSashaServersSpecified() { + return localTpSashaServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer + getTpSashaServers() { + return localTpSashaServers; + } + + /** + * Auto generated setter method + * + * @param param TpSashaServers + */ + public void setTpSashaServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer param) { + localTpSashaServersTracker = param != null; + + this.localTpSashaServers = param; + } + + /** field for TpSparkThors */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor + localTpSparkThors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpSparkThorsTracker = false; + + public boolean isTpSparkThorsSpecified() { + return localTpSparkThorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor + getTpSparkThors() { + return localTpSparkThors; + } + + /** + * Auto generated setter method + * + * @param param TpSparkThors + */ + public void setTpSparkThors( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor param) { + localTpSparkThorsTracker = param != null; + + this.localTpSparkThors = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpServices", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpServices", xmlWriter); + } + } + if (localTpDalisTracker) { + if (localTpDalis == null) { + throw new org.apache.axis2.databinding.ADBException("TpDalis cannot be null!!"); + } + localTpDalis.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDalis"), xmlWriter); + } + if (localTpDfuServersTracker) { + if (localTpDfuServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpDfuServers cannot be null!!"); + } + localTpDfuServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServers"), + xmlWriter); + } + if (localTpDkcSlavesTracker) { + if (localTpDkcSlaves == null) { + throw new org.apache.axis2.databinding.ADBException("TpDkcSlaves cannot be null!!"); + } + localTpDkcSlaves.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlaves"), xmlWriter); + } + if (localTpDropZonesTracker) { + if (localTpDropZones == null) { + throw new org.apache.axis2.databinding.ADBException("TpDropZones cannot be null!!"); + } + localTpDropZones.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZones"), xmlWriter); + } + if (localTpEclAgentsTracker) { + if (localTpEclAgents == null) { + throw new org.apache.axis2.databinding.ADBException("TpEclAgents cannot be null!!"); + } + localTpEclAgents.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgents"), xmlWriter); + } + if (localTpEclServersTracker) { + if (localTpEclServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpEclServers cannot be null!!"); + } + localTpEclServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServers"), + xmlWriter); + } + if (localTpEclCCServersTracker) { + if (localTpEclCCServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpEclCCServers cannot be null!!"); + } + localTpEclCCServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclCCServers"), + xmlWriter); + } + if (localTpEclSchedulersTracker) { + if (localTpEclSchedulers == null) { + throw new org.apache.axis2.databinding.ADBException("TpEclSchedulers cannot be null!!"); + } + localTpEclSchedulers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclSchedulers"), + xmlWriter); + } + if (localTpEspServersTracker) { + if (localTpEspServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpEspServers cannot be null!!"); + } + localTpEspServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServers"), + xmlWriter); + } + if (localTpFTSlavesTracker) { + if (localTpFTSlaves == null) { + throw new org.apache.axis2.databinding.ADBException("TpFTSlaves cannot be null!!"); + } + localTpFTSlaves.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlaves"), xmlWriter); + } + if (localTpGenesisServersTracker) { + if (localTpGenesisServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpGenesisServers cannot be null!!"); + } + localTpGenesisServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpGenesisServers"), + xmlWriter); + } + if (localTpLdapServersTracker) { + if (localTpLdapServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpLdapServers cannot be null!!"); + } + localTpLdapServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServers"), + xmlWriter); + } + if (localTpMySqlServersTracker) { + if (localTpMySqlServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpMySqlServers cannot be null!!"); + } + localTpMySqlServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServers"), + xmlWriter); + } + if (localTpSashaServersTracker) { + if (localTpSashaServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpSashaServers cannot be null!!"); + } + localTpSashaServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServers"), + xmlWriter); + } + if (localTpSparkThorsTracker) { + if (localTpSparkThors == null) { + throw new org.apache.axis2.databinding.ADBException("TpSparkThors cannot be null!!"); + } + localTpSparkThors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThors"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpServices parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpServices object = new TpServices(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpServices".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpServices) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDalis") + .equals(reader.getName())) { + + object.setTpDalis( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDali.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDfuServers") + .equals(reader.getName())) { + + object.setTpDfuServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDfuServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDkcSlaves") + .equals(reader.getName())) { + + object.setTpDkcSlaves( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDkcSlave.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpDropZones") + .equals(reader.getName())) { + + object.setTpDropZones( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpDropZone.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgents") + .equals(reader.getName())) { + + object.setTpEclAgents( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServers") + .equals(reader.getName())) { + + object.setTpEclServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclCCServers") + .equals(reader.getName())) { + + object.setTpEclCCServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclSchedulers") + .equals(reader.getName())) { + + object.setTpEclSchedulers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEspServers") + .equals(reader.getName())) { + + object.setTpEspServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEspServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpFTSlaves") + .equals(reader.getName())) { + + object.setTpFTSlaves( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpFTSlave.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpGenesisServers") + .equals(reader.getName())) { + + object.setTpGenesisServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpGenesisServer + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLdapServers") + .equals(reader.getName())) { + + object.setTpLdapServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpLdapServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMySqlServers") + .equals(reader.getName())) { + + object.setTpMySqlServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMySqlServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSashaServers") + .equals(reader.getName())) { + + object.setTpSashaServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSashaServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSparkThors") + .equals(reader.getName())) { + + object.setTpSparkThors( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpSparkThor.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSetMachineStatusRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSetMachineStatusRequest.java index 8df3e0066..6ecf44b5b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSetMachineStatusRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSetMachineStatusRequest.java @@ -1,465 +1,465 @@ -/** - * TpSetMachineStatusRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpSetMachineStatusRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpSetMachineStatusRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpSetMachineStatusRequest", "ns1"); - - /** field for MachinePath */ - protected java.lang.String localMachinePath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMachinePathTracker = false; - - public boolean isMachinePathSpecified() { - return localMachinePathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMachinePath() { - return localMachinePath; - } - - /** - * Auto generated setter method - * - * @param param MachinePath - */ - public void setMachinePath(java.lang.String param) { - localMachinePathTracker = param != null; - - this.localMachinePath = param; - } - - /** field for StatusValue */ - protected java.lang.String localStatusValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusValueTracker = false; - - public boolean isStatusValueSpecified() { - return localStatusValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStatusValue() { - return localStatusValue; - } - - /** - * Auto generated setter method - * - * @param param StatusValue - */ - public void setStatusValue(java.lang.String param) { - localStatusValueTracker = param != null; - - this.localStatusValue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpSetMachineStatusRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpSetMachineStatusRequest", - xmlWriter); - } - } - if (localMachinePathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "MachinePath", xmlWriter); - - if (localMachinePath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MachinePath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMachinePath); - } - - xmlWriter.writeEndElement(); - } - if (localStatusValueTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "StatusValue", xmlWriter); - - if (localStatusValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StatusValue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStatusValue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpSetMachineStatusRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpSetMachineStatusRequest object = new TpSetMachineStatusRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpSetMachineStatusRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpSetMachineStatusRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MachinePath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MachinePath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMachinePath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "StatusValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StatusValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStatusValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpSetMachineStatusRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpSetMachineStatusRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpSetMachineStatusRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpSetMachineStatusRequest", "ns1"); + + /** field for MachinePath */ + protected java.lang.String localMachinePath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMachinePathTracker = false; + + public boolean isMachinePathSpecified() { + return localMachinePathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMachinePath() { + return localMachinePath; + } + + /** + * Auto generated setter method + * + * @param param MachinePath + */ + public void setMachinePath(java.lang.String param) { + localMachinePathTracker = param != null; + + this.localMachinePath = param; + } + + /** field for StatusValue */ + protected java.lang.String localStatusValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusValueTracker = false; + + public boolean isStatusValueSpecified() { + return localStatusValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStatusValue() { + return localStatusValue; + } + + /** + * Auto generated setter method + * + * @param param StatusValue + */ + public void setStatusValue(java.lang.String param) { + localStatusValueTracker = param != null; + + this.localStatusValue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpSetMachineStatusRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpSetMachineStatusRequest", + xmlWriter); + } + } + if (localMachinePathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "MachinePath", xmlWriter); + + if (localMachinePath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MachinePath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMachinePath); + } + + xmlWriter.writeEndElement(); + } + if (localStatusValueTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "StatusValue", xmlWriter); + + if (localStatusValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StatusValue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStatusValue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpSetMachineStatusRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpSetMachineStatusRequest object = new TpSetMachineStatusRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpSetMachineStatusRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpSetMachineStatusRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MachinePath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MachinePath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMachinePath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "StatusValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StatusValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStatusValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSetMachineStatusResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSetMachineStatusResponse.java index 2c35478c5..6cd654d88 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSetMachineStatusResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSetMachineStatusResponse.java @@ -1,454 +1,454 @@ -/** - * TpSetMachineStatusResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpSetMachineStatusResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpSetMachineStatusResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpSetMachineStatusResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for TpSetMachineStatusResult */ - protected boolean localTpSetMachineStatusResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpSetMachineStatusResultTracker = false; - - public boolean isTpSetMachineStatusResultSpecified() { - return localTpSetMachineStatusResultTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getTpSetMachineStatusResult() { - return localTpSetMachineStatusResult; - } - - /** - * Auto generated setter method - * - * @param param TpSetMachineStatusResult - */ - public void setTpSetMachineStatusResult(boolean param) { - - // setting primitive attribute tracker to true - localTpSetMachineStatusResultTracker = true; - - this.localTpSetMachineStatusResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpSetMachineStatusResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpSetMachineStatusResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localTpSetMachineStatusResultTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "TpSetMachineStatusResult", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "TpSetMachineStatusResult cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTpSetMachineStatusResult)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpSetMachineStatusResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpSetMachineStatusResponse object = new TpSetMachineStatusResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpSetMachineStatusResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpSetMachineStatusResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpSetMachineStatusResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TpSetMachineStatusResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTpSetMachineStatusResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpSetMachineStatusResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpSetMachineStatusResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpSetMachineStatusResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpSetMachineStatusResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for TpSetMachineStatusResult */ + protected boolean localTpSetMachineStatusResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpSetMachineStatusResultTracker = false; + + public boolean isTpSetMachineStatusResultSpecified() { + return localTpSetMachineStatusResultTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getTpSetMachineStatusResult() { + return localTpSetMachineStatusResult; + } + + /** + * Auto generated setter method + * + * @param param TpSetMachineStatusResult + */ + public void setTpSetMachineStatusResult(boolean param) { + + // setting primitive attribute tracker to true + localTpSetMachineStatusResultTracker = true; + + this.localTpSetMachineStatusResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpSetMachineStatusResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpSetMachineStatusResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localTpSetMachineStatusResultTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "TpSetMachineStatusResult", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "TpSetMachineStatusResult cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTpSetMachineStatusResult)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpSetMachineStatusResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpSetMachineStatusResponse object = new TpSetMachineStatusResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpSetMachineStatusResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpSetMachineStatusResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpSetMachineStatusResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TpSetMachineStatusResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTpSetMachineStatusResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSparkThor.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSparkThor.java index 4fbff6237..a7954f986 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSparkThor.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSparkThor.java @@ -1,1281 +1,1281 @@ -/** - * TpSparkThor.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpSparkThor bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpSparkThor implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpSparkThor - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Build */ - protected java.lang.String localBuild; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildTracker = false; - - public boolean isBuildSpecified() { - return localBuildTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuild() { - return localBuild; - } - - /** - * Auto generated setter method - * - * @param param Build - */ - public void setBuild(java.lang.String param) { - localBuildTracker = param != null; - - this.localBuild = param; - } - - /** field for ThorClusterName */ - protected java.lang.String localThorClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorClusterNameTracker = false; - - public boolean isThorClusterNameSpecified() { - return localThorClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorClusterName() { - return localThorClusterName; - } - - /** - * Auto generated setter method - * - * @param param ThorClusterName - */ - public void setThorClusterName(java.lang.String param) { - localThorClusterNameTracker = param != null; - - this.localThorClusterName = param; - } - - /** field for ThorPath */ - protected java.lang.String localThorPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorPathTracker = false; - - public boolean isThorPathSpecified() { - return localThorPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorPath() { - return localThorPath; - } - - /** - * Auto generated setter method - * - * @param param ThorPath - */ - public void setThorPath(java.lang.String param) { - localThorPathTracker = param != null; - - this.localThorPath = param; - } - - /** field for SparkExecutorCores */ - protected org.apache.axis2.databinding.types.UnsignedInt localSparkExecutorCores; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSparkExecutorCoresTracker = false; - - public boolean isSparkExecutorCoresSpecified() { - return localSparkExecutorCoresTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getSparkExecutorCores() { - return localSparkExecutorCores; - } - - /** - * Auto generated setter method - * - * @param param SparkExecutorCores - */ - public void setSparkExecutorCores(org.apache.axis2.databinding.types.UnsignedInt param) { - localSparkExecutorCoresTracker = param != null; - - this.localSparkExecutorCores = param; - } - - /** field for SparkExecutorMemory */ - protected long localSparkExecutorMemory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSparkExecutorMemoryTracker = false; - - public boolean isSparkExecutorMemorySpecified() { - return localSparkExecutorMemoryTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getSparkExecutorMemory() { - return localSparkExecutorMemory; - } - - /** - * Auto generated setter method - * - * @param param SparkExecutorMemory - */ - public void setSparkExecutorMemory(long param) { - - // setting primitive attribute tracker to true - localSparkExecutorMemoryTracker = param != java.lang.Long.MIN_VALUE; - - this.localSparkExecutorMemory = param; - } - - /** field for SparkMasterPort */ - protected org.apache.axis2.databinding.types.UnsignedInt localSparkMasterPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSparkMasterPortTracker = false; - - public boolean isSparkMasterPortSpecified() { - return localSparkMasterPortTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getSparkMasterPort() { - return localSparkMasterPort; - } - - /** - * Auto generated setter method - * - * @param param SparkMasterPort - */ - public void setSparkMasterPort(org.apache.axis2.databinding.types.UnsignedInt param) { - localSparkMasterPortTracker = param != null; - - this.localSparkMasterPort = param; - } - - /** field for SparkMasterWebUIPort */ - protected org.apache.axis2.databinding.types.UnsignedInt localSparkMasterWebUIPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSparkMasterWebUIPortTracker = false; - - public boolean isSparkMasterWebUIPortSpecified() { - return localSparkMasterWebUIPortTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getSparkMasterWebUIPort() { - return localSparkMasterWebUIPort; - } - - /** - * Auto generated setter method - * - * @param param SparkMasterWebUIPort - */ - public void setSparkMasterWebUIPort(org.apache.axis2.databinding.types.UnsignedInt param) { - localSparkMasterWebUIPortTracker = param != null; - - this.localSparkMasterWebUIPort = param; - } - - /** field for SparkWorkerCores */ - protected org.apache.axis2.databinding.types.UnsignedInt localSparkWorkerCores; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSparkWorkerCoresTracker = false; - - public boolean isSparkWorkerCoresSpecified() { - return localSparkWorkerCoresTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getSparkWorkerCores() { - return localSparkWorkerCores; - } - - /** - * Auto generated setter method - * - * @param param SparkWorkerCores - */ - public void setSparkWorkerCores(org.apache.axis2.databinding.types.UnsignedInt param) { - localSparkWorkerCoresTracker = param != null; - - this.localSparkWorkerCores = param; - } - - /** field for SparkWorkerMemory */ - protected long localSparkWorkerMemory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSparkWorkerMemoryTracker = false; - - public boolean isSparkWorkerMemorySpecified() { - return localSparkWorkerMemoryTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getSparkWorkerMemory() { - return localSparkWorkerMemory; - } - - /** - * Auto generated setter method - * - * @param param SparkWorkerMemory - */ - public void setSparkWorkerMemory(long param) { - - // setting primitive attribute tracker to true - localSparkWorkerMemoryTracker = param != java.lang.Long.MIN_VALUE; - - this.localSparkWorkerMemory = param; - } - - /** field for SparkWorkerPort */ - protected org.apache.axis2.databinding.types.UnsignedInt localSparkWorkerPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSparkWorkerPortTracker = false; - - public boolean isSparkWorkerPortSpecified() { - return localSparkWorkerPortTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getSparkWorkerPort() { - return localSparkWorkerPort; - } - - /** - * Auto generated setter method - * - * @param param SparkWorkerPort - */ - public void setSparkWorkerPort(org.apache.axis2.databinding.types.UnsignedInt param) { - localSparkWorkerPortTracker = param != null; - - this.localSparkWorkerPort = param; - } - - /** field for LogDirectory */ - protected java.lang.String localLogDirectory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDirectoryTracker = false; - - public boolean isLogDirectorySpecified() { - return localLogDirectoryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDirectory() { - return localLogDirectory; - } - - /** - * Auto generated setter method - * - * @param param LogDirectory - */ - public void setLogDirectory(java.lang.String param) { - localLogDirectoryTracker = param != null; - - this.localLogDirectory = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for TpMachines */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpMachinesTracker = false; - - public boolean isTpMachinesSpecified() { - return localTpMachinesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { - return localTpMachines; - } - - /** - * Auto generated setter method - * - * @param param TpMachines - */ - public void setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { - localTpMachinesTracker = param != null; - - this.localTpMachines = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpSparkThor", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpSparkThor", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localBuildTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Build", xmlWriter); - - if (localBuild == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuild); - } - - xmlWriter.writeEndElement(); - } - if (localThorClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ThorClusterName", xmlWriter); - - if (localThorClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localThorPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ThorPath", xmlWriter); - - if (localThorPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorPath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorPath); - } - - xmlWriter.writeEndElement(); - } - if (localSparkExecutorCoresTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SparkExecutorCores", xmlWriter); - - if (localSparkExecutorCores == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SparkExecutorCores cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSparkExecutorCores)); - } - - xmlWriter.writeEndElement(); - } - if (localSparkExecutorMemoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SparkExecutorMemory", xmlWriter); - - if (localSparkExecutorMemory == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SparkExecutorMemory cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSparkExecutorMemory)); - } - - xmlWriter.writeEndElement(); - } - if (localSparkMasterPortTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SparkMasterPort", xmlWriter); - - if (localSparkMasterPort == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SparkMasterPort cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSparkMasterPort)); - } - - xmlWriter.writeEndElement(); - } - if (localSparkMasterWebUIPortTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SparkMasterWebUIPort", xmlWriter); - - if (localSparkMasterWebUIPort == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "SparkMasterWebUIPort cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSparkMasterWebUIPort)); - } - - xmlWriter.writeEndElement(); - } - if (localSparkWorkerCoresTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SparkWorkerCores", xmlWriter); - - if (localSparkWorkerCores == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SparkWorkerCores cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSparkWorkerCores)); - } - - xmlWriter.writeEndElement(); - } - if (localSparkWorkerMemoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SparkWorkerMemory", xmlWriter); - - if (localSparkWorkerMemory == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SparkWorkerMemory cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSparkWorkerMemory)); - } - - xmlWriter.writeEndElement(); - } - if (localSparkWorkerPortTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SparkWorkerPort", xmlWriter); - - if (localSparkWorkerPort == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SparkWorkerPort cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSparkWorkerPort)); - } - - xmlWriter.writeEndElement(); - } - if (localLogDirectoryTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogDirectory", xmlWriter); - - if (localLogDirectory == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDirectory); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localTpMachinesTracker) { - if (localTpMachines == null) { - throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); - } - localTpMachines.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpSparkThor parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpSparkThor object = new TpSparkThor(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpSparkThor".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpSparkThor) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Build" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuild( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ThorClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ThorPath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorPath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "SparkExecutorCores") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SparkExecutorCores" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSparkExecutorCores( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "SparkExecutorMemory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SparkExecutorMemory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSparkExecutorMemory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SparkMasterPort") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SparkMasterPort" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSparkMasterPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "SparkMasterWebUIPort") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SparkMasterWebUIPort" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSparkMasterWebUIPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "SparkWorkerCores") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SparkWorkerCores" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSparkWorkerCores( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "SparkWorkerMemory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SparkWorkerMemory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSparkWorkerMemory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SparkWorkerPort") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SparkWorkerPort" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSparkWorkerPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDirectory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDirectory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") - .equals(reader.getName())) { - - object.setTpMachines( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpSparkThor.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpSparkThor bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpSparkThor implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpSparkThor + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Build */ + protected java.lang.String localBuild; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTracker = false; + + public boolean isBuildSpecified() { + return localBuildTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuild() { + return localBuild; + } + + /** + * Auto generated setter method + * + * @param param Build + */ + public void setBuild(java.lang.String param) { + localBuildTracker = param != null; + + this.localBuild = param; + } + + /** field for ThorClusterName */ + protected java.lang.String localThorClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorClusterNameTracker = false; + + public boolean isThorClusterNameSpecified() { + return localThorClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorClusterName() { + return localThorClusterName; + } + + /** + * Auto generated setter method + * + * @param param ThorClusterName + */ + public void setThorClusterName(java.lang.String param) { + localThorClusterNameTracker = param != null; + + this.localThorClusterName = param; + } + + /** field for ThorPath */ + protected java.lang.String localThorPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorPathTracker = false; + + public boolean isThorPathSpecified() { + return localThorPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorPath() { + return localThorPath; + } + + /** + * Auto generated setter method + * + * @param param ThorPath + */ + public void setThorPath(java.lang.String param) { + localThorPathTracker = param != null; + + this.localThorPath = param; + } + + /** field for SparkExecutorCores */ + protected org.apache.axis2.databinding.types.UnsignedInt localSparkExecutorCores; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSparkExecutorCoresTracker = false; + + public boolean isSparkExecutorCoresSpecified() { + return localSparkExecutorCoresTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getSparkExecutorCores() { + return localSparkExecutorCores; + } + + /** + * Auto generated setter method + * + * @param param SparkExecutorCores + */ + public void setSparkExecutorCores(org.apache.axis2.databinding.types.UnsignedInt param) { + localSparkExecutorCoresTracker = param != null; + + this.localSparkExecutorCores = param; + } + + /** field for SparkExecutorMemory */ + protected long localSparkExecutorMemory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSparkExecutorMemoryTracker = false; + + public boolean isSparkExecutorMemorySpecified() { + return localSparkExecutorMemoryTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getSparkExecutorMemory() { + return localSparkExecutorMemory; + } + + /** + * Auto generated setter method + * + * @param param SparkExecutorMemory + */ + public void setSparkExecutorMemory(long param) { + + // setting primitive attribute tracker to true + localSparkExecutorMemoryTracker = param != java.lang.Long.MIN_VALUE; + + this.localSparkExecutorMemory = param; + } + + /** field for SparkMasterPort */ + protected org.apache.axis2.databinding.types.UnsignedInt localSparkMasterPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSparkMasterPortTracker = false; + + public boolean isSparkMasterPortSpecified() { + return localSparkMasterPortTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getSparkMasterPort() { + return localSparkMasterPort; + } + + /** + * Auto generated setter method + * + * @param param SparkMasterPort + */ + public void setSparkMasterPort(org.apache.axis2.databinding.types.UnsignedInt param) { + localSparkMasterPortTracker = param != null; + + this.localSparkMasterPort = param; + } + + /** field for SparkMasterWebUIPort */ + protected org.apache.axis2.databinding.types.UnsignedInt localSparkMasterWebUIPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSparkMasterWebUIPortTracker = false; + + public boolean isSparkMasterWebUIPortSpecified() { + return localSparkMasterWebUIPortTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getSparkMasterWebUIPort() { + return localSparkMasterWebUIPort; + } + + /** + * Auto generated setter method + * + * @param param SparkMasterWebUIPort + */ + public void setSparkMasterWebUIPort(org.apache.axis2.databinding.types.UnsignedInt param) { + localSparkMasterWebUIPortTracker = param != null; + + this.localSparkMasterWebUIPort = param; + } + + /** field for SparkWorkerCores */ + protected org.apache.axis2.databinding.types.UnsignedInt localSparkWorkerCores; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSparkWorkerCoresTracker = false; + + public boolean isSparkWorkerCoresSpecified() { + return localSparkWorkerCoresTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getSparkWorkerCores() { + return localSparkWorkerCores; + } + + /** + * Auto generated setter method + * + * @param param SparkWorkerCores + */ + public void setSparkWorkerCores(org.apache.axis2.databinding.types.UnsignedInt param) { + localSparkWorkerCoresTracker = param != null; + + this.localSparkWorkerCores = param; + } + + /** field for SparkWorkerMemory */ + protected long localSparkWorkerMemory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSparkWorkerMemoryTracker = false; + + public boolean isSparkWorkerMemorySpecified() { + return localSparkWorkerMemoryTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getSparkWorkerMemory() { + return localSparkWorkerMemory; + } + + /** + * Auto generated setter method + * + * @param param SparkWorkerMemory + */ + public void setSparkWorkerMemory(long param) { + + // setting primitive attribute tracker to true + localSparkWorkerMemoryTracker = param != java.lang.Long.MIN_VALUE; + + this.localSparkWorkerMemory = param; + } + + /** field for SparkWorkerPort */ + protected org.apache.axis2.databinding.types.UnsignedInt localSparkWorkerPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSparkWorkerPortTracker = false; + + public boolean isSparkWorkerPortSpecified() { + return localSparkWorkerPortTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getSparkWorkerPort() { + return localSparkWorkerPort; + } + + /** + * Auto generated setter method + * + * @param param SparkWorkerPort + */ + public void setSparkWorkerPort(org.apache.axis2.databinding.types.UnsignedInt param) { + localSparkWorkerPortTracker = param != null; + + this.localSparkWorkerPort = param; + } + + /** field for LogDirectory */ + protected java.lang.String localLogDirectory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDirectoryTracker = false; + + public boolean isLogDirectorySpecified() { + return localLogDirectoryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDirectory() { + return localLogDirectory; + } + + /** + * Auto generated setter method + * + * @param param LogDirectory + */ + public void setLogDirectory(java.lang.String param) { + localLogDirectoryTracker = param != null; + + this.localLogDirectory = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for TpMachines */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine localTpMachines; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpMachinesTracker = false; + + public boolean isTpMachinesSpecified() { + return localTpMachinesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine getTpMachines() { + return localTpMachines; + } + + /** + * Auto generated setter method + * + * @param param TpMachines + */ + public void setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine param) { + localTpMachinesTracker = param != null; + + this.localTpMachines = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpSparkThor", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TpSparkThor", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localBuildTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Build", xmlWriter); + + if (localBuild == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Build cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuild); + } + + xmlWriter.writeEndElement(); + } + if (localThorClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ThorClusterName", xmlWriter); + + if (localThorClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localThorPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ThorPath", xmlWriter); + + if (localThorPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorPath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorPath); + } + + xmlWriter.writeEndElement(); + } + if (localSparkExecutorCoresTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SparkExecutorCores", xmlWriter); + + if (localSparkExecutorCores == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SparkExecutorCores cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSparkExecutorCores)); + } + + xmlWriter.writeEndElement(); + } + if (localSparkExecutorMemoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SparkExecutorMemory", xmlWriter); + + if (localSparkExecutorMemory == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SparkExecutorMemory cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSparkExecutorMemory)); + } + + xmlWriter.writeEndElement(); + } + if (localSparkMasterPortTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SparkMasterPort", xmlWriter); + + if (localSparkMasterPort == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SparkMasterPort cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSparkMasterPort)); + } + + xmlWriter.writeEndElement(); + } + if (localSparkMasterWebUIPortTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SparkMasterWebUIPort", xmlWriter); + + if (localSparkMasterWebUIPort == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "SparkMasterWebUIPort cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSparkMasterWebUIPort)); + } + + xmlWriter.writeEndElement(); + } + if (localSparkWorkerCoresTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SparkWorkerCores", xmlWriter); + + if (localSparkWorkerCores == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SparkWorkerCores cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSparkWorkerCores)); + } + + xmlWriter.writeEndElement(); + } + if (localSparkWorkerMemoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SparkWorkerMemory", xmlWriter); + + if (localSparkWorkerMemory == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SparkWorkerMemory cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSparkWorkerMemory)); + } + + xmlWriter.writeEndElement(); + } + if (localSparkWorkerPortTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SparkWorkerPort", xmlWriter); + + if (localSparkWorkerPort == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SparkWorkerPort cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSparkWorkerPort)); + } + + xmlWriter.writeEndElement(); + } + if (localLogDirectoryTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogDirectory", xmlWriter); + + if (localLogDirectory == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDirectory cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDirectory); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localTpMachinesTracker) { + if (localTpMachines == null) { + throw new org.apache.axis2.databinding.ADBException("TpMachines cannot be null!!"); + } + localTpMachines.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpSparkThor parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpSparkThor object = new TpSparkThor(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpSparkThor".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpSparkThor) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Build") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Build" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuild( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ThorClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ThorPath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorPath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "SparkExecutorCores") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SparkExecutorCores" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSparkExecutorCores( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "SparkExecutorMemory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SparkExecutorMemory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSparkExecutorMemory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SparkMasterPort") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SparkMasterPort" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSparkMasterPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "SparkMasterWebUIPort") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SparkMasterWebUIPort" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSparkMasterWebUIPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "SparkWorkerCores") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SparkWorkerCores" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSparkWorkerCores( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "SparkWorkerMemory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SparkWorkerMemory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSparkWorkerMemory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SparkWorkerPort") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SparkWorkerPort" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSparkWorkerPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogDirectory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDirectory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDirectory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpMachines") + .equals(reader.getName())) { + + object.setTpMachines( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpMachine.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSwapNodeRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSwapNodeRequest.java index 7deda590b..3b4ddb870 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSwapNodeRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSwapNodeRequest.java @@ -1,532 +1,532 @@ -/** - * TpSwapNodeRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpSwapNodeRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpSwapNodeRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSwapNodeRequest", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for OldIP */ - protected java.lang.String localOldIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOldIPTracker = false; - - public boolean isOldIPSpecified() { - return localOldIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOldIP() { - return localOldIP; - } - - /** - * Auto generated setter method - * - * @param param OldIP - */ - public void setOldIP(java.lang.String param) { - localOldIPTracker = param != null; - - this.localOldIP = param; - } - - /** field for NewIP */ - protected java.lang.String localNewIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNewIPTracker = false; - - public boolean isNewIPSpecified() { - return localNewIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNewIP() { - return localNewIP; - } - - /** - * Auto generated setter method - * - * @param param NewIP - */ - public void setNewIP(java.lang.String param) { - localNewIPTracker = param != null; - - this.localNewIP = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpSwapNodeRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpSwapNodeRequest", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localOldIPTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "OldIP", xmlWriter); - - if (localOldIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("OldIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOldIP); - } - - xmlWriter.writeEndElement(); - } - if (localNewIPTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "NewIP", xmlWriter); - - if (localNewIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NewIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNewIP); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpSwapNodeRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpSwapNodeRequest object = new TpSwapNodeRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpSwapNodeRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpSwapNodeRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OldIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OldIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOldIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NewIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NewIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNewIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpSwapNodeRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpSwapNodeRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpSwapNodeRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSwapNodeRequest", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for OldIP */ + protected java.lang.String localOldIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOldIPTracker = false; + + public boolean isOldIPSpecified() { + return localOldIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOldIP() { + return localOldIP; + } + + /** + * Auto generated setter method + * + * @param param OldIP + */ + public void setOldIP(java.lang.String param) { + localOldIPTracker = param != null; + + this.localOldIP = param; + } + + /** field for NewIP */ + protected java.lang.String localNewIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNewIPTracker = false; + + public boolean isNewIPSpecified() { + return localNewIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNewIP() { + return localNewIP; + } + + /** + * Auto generated setter method + * + * @param param NewIP + */ + public void setNewIP(java.lang.String param) { + localNewIPTracker = param != null; + + this.localNewIP = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpSwapNodeRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpSwapNodeRequest", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localOldIPTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "OldIP", xmlWriter); + + if (localOldIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("OldIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOldIP); + } + + xmlWriter.writeEndElement(); + } + if (localNewIPTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "NewIP", xmlWriter); + + if (localNewIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NewIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNewIP); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpSwapNodeRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpSwapNodeRequest object = new TpSwapNodeRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpSwapNodeRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpSwapNodeRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "OldIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OldIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOldIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "NewIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NewIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNewIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSwapNodeResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSwapNodeResponse.java index 66a41ad1f..206c7001c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSwapNodeResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpSwapNodeResponse.java @@ -1,452 +1,452 @@ -/** - * TpSwapNodeResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpSwapNodeResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpSwapNodeResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSwapNodeResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for TpSwapNodeResult */ - protected boolean localTpSwapNodeResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpSwapNodeResultTracker = false; - - public boolean isTpSwapNodeResultSpecified() { - return localTpSwapNodeResultTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getTpSwapNodeResult() { - return localTpSwapNodeResult; - } - - /** - * Auto generated setter method - * - * @param param TpSwapNodeResult - */ - public void setTpSwapNodeResult(boolean param) { - - // setting primitive attribute tracker to true - localTpSwapNodeResultTracker = true; - - this.localTpSwapNodeResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpSwapNodeResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpSwapNodeResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localTpSwapNodeResultTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "TpSwapNodeResult", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("TpSwapNodeResult cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTpSwapNodeResult)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpSwapNodeResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpSwapNodeResponse object = new TpSwapNodeResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpSwapNodeResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpSwapNodeResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpSwapNodeResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TpSwapNodeResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTpSwapNodeResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpSwapNodeResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpSwapNodeResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpSwapNodeResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSwapNodeResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for TpSwapNodeResult */ + protected boolean localTpSwapNodeResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpSwapNodeResultTracker = false; + + public boolean isTpSwapNodeResultSpecified() { + return localTpSwapNodeResultTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getTpSwapNodeResult() { + return localTpSwapNodeResult; + } + + /** + * Auto generated setter method + * + * @param param TpSwapNodeResult + */ + public void setTpSwapNodeResult(boolean param) { + + // setting primitive attribute tracker to true + localTpSwapNodeResultTracker = true; + + this.localTpSwapNodeResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpSwapNodeResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpSwapNodeResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localTpSwapNodeResultTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "TpSwapNodeResult", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("TpSwapNodeResult cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTpSwapNodeResult)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpSwapNodeResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpSwapNodeResponse object = new TpSwapNodeResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpSwapNodeResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpSwapNodeResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpSwapNodeResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TpSwapNodeResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTpSwapNodeResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetCluster.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetCluster.java index fddf9fb59..52b4c5159 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetCluster.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetCluster.java @@ -1,805 +1,805 @@ -/** - * TpTargetCluster.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpTargetCluster bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpTargetCluster implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TpTargetCluster - Namespace URI = urn:hpccsystems:ws:wstopology - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Prefix */ - protected java.lang.String localPrefix; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPrefixTracker = false; - - public boolean isPrefixSpecified() { - return localPrefixTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPrefix() { - return localPrefix; - } - - /** - * Auto generated setter method - * - * @param param Prefix - */ - public void setPrefix(java.lang.String param) { - localPrefixTracker = param != null; - - this.localPrefix = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for TpClusters */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster localTpClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpClustersTracker = false; - - public boolean isTpClustersSpecified() { - return localTpClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster getTpClusters() { - return localTpClusters; - } - - /** - * Auto generated setter method - * - * @param param TpClusters - */ - public void setTpClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster param) { - localTpClustersTracker = param != null; - - this.localTpClusters = param; - } - - /** field for TpEclCCServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - localTpEclCCServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclCCServersTracker = false; - - public boolean isTpEclCCServersSpecified() { - return localTpEclCCServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - getTpEclCCServers() { - return localTpEclCCServers; - } - - /** - * Auto generated setter method - * - * @param param TpEclCCServers - */ - public void setTpEclCCServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer param) { - localTpEclCCServersTracker = param != null; - - this.localTpEclCCServers = param; - } - - /** field for TpEclServers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - localTpEclServers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclServersTracker = false; - - public boolean isTpEclServersSpecified() { - return localTpEclServersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer - getTpEclServers() { - return localTpEclServers; - } - - /** - * Auto generated setter method - * - * @param param TpEclServers - */ - public void setTpEclServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer param) { - localTpEclServersTracker = param != null; - - this.localTpEclServers = param; - } - - /** field for TpEclAgents */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent - localTpEclAgents; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclAgentsTracker = false; - - public boolean isTpEclAgentsSpecified() { - return localTpEclAgentsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent getTpEclAgents() { - return localTpEclAgents; - } - - /** - * Auto generated setter method - * - * @param param TpEclAgents - */ - public void setTpEclAgents( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent param) { - localTpEclAgentsTracker = param != null; - - this.localTpEclAgents = param; - } - - /** field for TpEclSchedulers */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler - localTpEclSchedulers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpEclSchedulersTracker = false; - - public boolean isTpEclSchedulersSpecified() { - return localTpEclSchedulersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler - getTpEclSchedulers() { - return localTpEclSchedulers; - } - - /** - * Auto generated setter method - * - * @param param TpEclSchedulers - */ - public void setTpEclSchedulers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler param) { - localTpEclSchedulersTracker = param != null; - - this.localTpEclSchedulers = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpTargetCluster", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpTargetCluster", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localPrefixTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Prefix", xmlWriter); - - if (localPrefix == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Prefix cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPrefix); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localTpClustersTracker) { - if (localTpClusters == null) { - throw new org.apache.axis2.databinding.ADBException("TpClusters cannot be null!!"); - } - localTpClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusters"), xmlWriter); - } - if (localTpEclCCServersTracker) { - if (localTpEclCCServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpEclCCServers cannot be null!!"); - } - localTpEclCCServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclCCServers"), - xmlWriter); - } - if (localTpEclServersTracker) { - if (localTpEclServers == null) { - throw new org.apache.axis2.databinding.ADBException("TpEclServers cannot be null!!"); - } - localTpEclServers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServers"), - xmlWriter); - } - if (localTpEclAgentsTracker) { - if (localTpEclAgents == null) { - throw new org.apache.axis2.databinding.ADBException("TpEclAgents cannot be null!!"); - } - localTpEclAgents.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgents"), xmlWriter); - } - if (localTpEclSchedulersTracker) { - if (localTpEclSchedulers == null) { - throw new org.apache.axis2.databinding.ADBException("TpEclSchedulers cannot be null!!"); - } - localTpEclSchedulers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclSchedulers"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpTargetCluster parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpTargetCluster object = new TpTargetCluster(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpTargetCluster".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpTargetCluster) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Prefix") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Prefix" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPrefix( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusters") - .equals(reader.getName())) { - - object.setTpClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclCCServers") - .equals(reader.getName())) { - - object.setTpEclCCServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServers") - .equals(reader.getName())) { - - object.setTpEclServers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgents") - .equals(reader.getName())) { - - object.setTpEclAgents( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclSchedulers") - .equals(reader.getName())) { - - object.setTpEclSchedulers( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpTargetCluster.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpTargetCluster bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpTargetCluster implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TpTargetCluster + Namespace URI = urn:hpccsystems:ws:wstopology + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Prefix */ + protected java.lang.String localPrefix; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPrefixTracker = false; + + public boolean isPrefixSpecified() { + return localPrefixTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPrefix() { + return localPrefix; + } + + /** + * Auto generated setter method + * + * @param param Prefix + */ + public void setPrefix(java.lang.String param) { + localPrefixTracker = param != null; + + this.localPrefix = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for TpClusters */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster localTpClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpClustersTracker = false; + + public boolean isTpClustersSpecified() { + return localTpClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster getTpClusters() { + return localTpClusters; + } + + /** + * Auto generated setter method + * + * @param param TpClusters + */ + public void setTpClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster param) { + localTpClustersTracker = param != null; + + this.localTpClusters = param; + } + + /** field for TpEclCCServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + localTpEclCCServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclCCServersTracker = false; + + public boolean isTpEclCCServersSpecified() { + return localTpEclCCServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + getTpEclCCServers() { + return localTpEclCCServers; + } + + /** + * Auto generated setter method + * + * @param param TpEclCCServers + */ + public void setTpEclCCServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer param) { + localTpEclCCServersTracker = param != null; + + this.localTpEclCCServers = param; + } + + /** field for TpEclServers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + localTpEclServers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclServersTracker = false; + + public boolean isTpEclServersSpecified() { + return localTpEclServersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer + getTpEclServers() { + return localTpEclServers; + } + + /** + * Auto generated setter method + * + * @param param TpEclServers + */ + public void setTpEclServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer param) { + localTpEclServersTracker = param != null; + + this.localTpEclServers = param; + } + + /** field for TpEclAgents */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent + localTpEclAgents; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclAgentsTracker = false; + + public boolean isTpEclAgentsSpecified() { + return localTpEclAgentsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent getTpEclAgents() { + return localTpEclAgents; + } + + /** + * Auto generated setter method + * + * @param param TpEclAgents + */ + public void setTpEclAgents( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent param) { + localTpEclAgentsTracker = param != null; + + this.localTpEclAgents = param; + } + + /** field for TpEclSchedulers */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler + localTpEclSchedulers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpEclSchedulersTracker = false; + + public boolean isTpEclSchedulersSpecified() { + return localTpEclSchedulersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler + getTpEclSchedulers() { + return localTpEclSchedulers; + } + + /** + * Auto generated setter method + * + * @param param TpEclSchedulers + */ + public void setTpEclSchedulers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler param) { + localTpEclSchedulersTracker = param != null; + + this.localTpEclSchedulers = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpTargetCluster", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpTargetCluster", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localPrefixTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Prefix", xmlWriter); + + if (localPrefix == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Prefix cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPrefix); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localTpClustersTracker) { + if (localTpClusters == null) { + throw new org.apache.axis2.databinding.ADBException("TpClusters cannot be null!!"); + } + localTpClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusters"), xmlWriter); + } + if (localTpEclCCServersTracker) { + if (localTpEclCCServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpEclCCServers cannot be null!!"); + } + localTpEclCCServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclCCServers"), + xmlWriter); + } + if (localTpEclServersTracker) { + if (localTpEclServers == null) { + throw new org.apache.axis2.databinding.ADBException("TpEclServers cannot be null!!"); + } + localTpEclServers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServers"), + xmlWriter); + } + if (localTpEclAgentsTracker) { + if (localTpEclAgents == null) { + throw new org.apache.axis2.databinding.ADBException("TpEclAgents cannot be null!!"); + } + localTpEclAgents.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgents"), xmlWriter); + } + if (localTpEclSchedulersTracker) { + if (localTpEclSchedulers == null) { + throw new org.apache.axis2.databinding.ADBException("TpEclSchedulers cannot be null!!"); + } + localTpEclSchedulers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclSchedulers"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpTargetCluster parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpTargetCluster object = new TpTargetCluster(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpTargetCluster".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpTargetCluster) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Prefix") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Prefix" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPrefix( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpClusters") + .equals(reader.getName())) { + + object.setTpClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpCluster.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclCCServers") + .equals(reader.getName())) { + + object.setTpEclCCServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclServers") + .equals(reader.getName())) { + + object.setTpEclServers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclServer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclAgents") + .equals(reader.getName())) { + + object.setTpEclAgents( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclAgent.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpEclSchedulers") + .equals(reader.getName())) { + + object.setTpEclSchedulers( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpEclScheduler + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetClusterQueryRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetClusterQueryRequest.java index 1123d71c9..a0c992135 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetClusterQueryRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetClusterQueryRequest.java @@ -1,535 +1,535 @@ -/** - * TpTargetClusterQueryRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpTargetClusterQueryRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpTargetClusterQueryRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpTargetClusterQueryRequest", "ns1"); - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for ShowDetails */ - protected boolean localShowDetails = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowDetailsTracker = false; - - public boolean isShowDetailsSpecified() { - return localShowDetailsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getShowDetails() { - return localShowDetails; - } - - /** - * Auto generated setter method - * - * @param param ShowDetails - */ - public void setShowDetails(boolean param) { - - // setting primitive attribute tracker to true - localShowDetailsTracker = true; - - this.localShowDetails = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpTargetClusterQueryRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpTargetClusterQueryRequest", - xmlWriter); - } - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localShowDetailsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ShowDetails", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ShowDetails cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowDetails)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpTargetClusterQueryRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpTargetClusterQueryRequest object = new TpTargetClusterQueryRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpTargetClusterQueryRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpTargetClusterQueryRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ShowDetails") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowDetails" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowDetails( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpTargetClusterQueryRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpTargetClusterQueryRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpTargetClusterQueryRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpTargetClusterQueryRequest", "ns1"); + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for ShowDetails */ + protected boolean localShowDetails = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowDetailsTracker = false; + + public boolean isShowDetailsSpecified() { + return localShowDetailsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getShowDetails() { + return localShowDetails; + } + + /** + * Auto generated setter method + * + * @param param ShowDetails + */ + public void setShowDetails(boolean param) { + + // setting primitive attribute tracker to true + localShowDetailsTracker = true; + + this.localShowDetails = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpTargetClusterQueryRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpTargetClusterQueryRequest", + xmlWriter); + } + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localShowDetailsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ShowDetails", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ShowDetails cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowDetails)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpTargetClusterQueryRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpTargetClusterQueryRequest object = new TpTargetClusterQueryRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpTargetClusterQueryRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpTargetClusterQueryRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ShowDetails") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowDetails" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowDetails( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetClusterQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetClusterQueryResponse.java index fee29f15c..03039c962 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetClusterQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpTargetClusterQueryResponse.java @@ -1,991 +1,991 @@ -/** - * TpTargetClusterQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpTargetClusterQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpTargetClusterQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpTargetClusterQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ShowDetails */ - protected boolean localShowDetails = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowDetailsTracker = false; - - public boolean isShowDetailsSpecified() { - return localShowDetailsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getShowDetails() { - return localShowDetails; - } - - /** - * Auto generated setter method - * - * @param param ShowDetails - */ - public void setShowDetails(boolean param) { - - // setting primitive attribute tracker to true - localShowDetailsTracker = true; - - this.localShowDetails = param; - } - - /** field for MemThreshold */ - protected int localMemThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemThresholdTracker = false; - - public boolean isMemThresholdSpecified() { - return localMemThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMemThreshold() { - return localMemThreshold; - } - - /** - * Auto generated setter method - * - * @param param MemThreshold - */ - public void setMemThreshold(int param) { - - // setting primitive attribute tracker to true - localMemThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMemThreshold = param; - } - - /** field for DiskThreshold */ - protected int localDiskThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDiskThresholdTracker = false; - - public boolean isDiskThresholdSpecified() { - return localDiskThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDiskThreshold() { - return localDiskThreshold; - } - - /** - * Auto generated setter method - * - * @param param DiskThreshold - */ - public void setDiskThreshold(int param) { - - // setting primitive attribute tracker to true - localDiskThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDiskThreshold = param; - } - - /** field for CpuThreshold */ - protected int localCpuThreshold; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCpuThresholdTracker = false; - - public boolean isCpuThresholdSpecified() { - return localCpuThresholdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCpuThreshold() { - return localCpuThreshold; - } - - /** - * Auto generated setter method - * - * @param param CpuThreshold - */ - public void setCpuThreshold(int param) { - - // setting primitive attribute tracker to true - localCpuThresholdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCpuThreshold = param; - } - - /** field for MemThresholdType */ - protected java.lang.String localMemThresholdType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemThresholdTypeTracker = false; - - public boolean isMemThresholdTypeSpecified() { - return localMemThresholdTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemThresholdType() { - return localMemThresholdType; - } - - /** - * Auto generated setter method - * - * @param param MemThresholdType - */ - public void setMemThresholdType(java.lang.String param) { - localMemThresholdTypeTracker = param != null; - - this.localMemThresholdType = param; - } - - /** field for DiskThresholdType */ - protected java.lang.String localDiskThresholdType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDiskThresholdTypeTracker = false; - - public boolean isDiskThresholdTypeSpecified() { - return localDiskThresholdTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDiskThresholdType() { - return localDiskThresholdType; - } - - /** - * Auto generated setter method - * - * @param param DiskThresholdType - */ - public void setDiskThresholdType(java.lang.String param) { - localDiskThresholdTypeTracker = param != null; - - this.localDiskThresholdType = param; - } - - /** field for PreflightProcessFilter */ - protected java.lang.String localPreflightProcessFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPreflightProcessFilterTracker = false; - - public boolean isPreflightProcessFilterSpecified() { - return localPreflightProcessFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPreflightProcessFilter() { - return localPreflightProcessFilter; - } - - /** - * Auto generated setter method - * - * @param param PreflightProcessFilter - */ - public void setPreflightProcessFilter(java.lang.String param) { - localPreflightProcessFilterTracker = param != null; - - this.localPreflightProcessFilter = param; - } - - /** field for AcceptLanguage */ - protected java.lang.String localAcceptLanguage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAcceptLanguageTracker = false; - - public boolean isAcceptLanguageSpecified() { - return localAcceptLanguageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAcceptLanguage() { - return localAcceptLanguage; - } - - /** - * Auto generated setter method - * - * @param param AcceptLanguage - */ - public void setAcceptLanguage(java.lang.String param) { - localAcceptLanguageTracker = param != null; - - this.localAcceptLanguage = param; - } - - /** field for TpTargetClusters */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster - localTpTargetClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTpTargetClustersTracker = false; - - public boolean isTpTargetClustersSpecified() { - return localTpTargetClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster - getTpTargetClusters() { - return localTpTargetClusters; - } - - /** - * Auto generated setter method - * - * @param param TpTargetClusters - */ - public void setTpTargetClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster param) { - localTpTargetClustersTracker = param != null; - - this.localTpTargetClusters = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpTargetClusterQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpTargetClusterQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localShowDetailsTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ShowDetails", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ShowDetails cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowDetails)); - } - - xmlWriter.writeEndElement(); - } - if (localMemThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "MemThreshold", xmlWriter); - - if (localMemThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MemThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localDiskThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "DiskThreshold", xmlWriter); - - if (localDiskThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("DiskThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDiskThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localCpuThresholdTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "CpuThreshold", xmlWriter); - - if (localCpuThreshold == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CpuThreshold cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCpuThreshold)); - } - - xmlWriter.writeEndElement(); - } - if (localMemThresholdTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "MemThresholdType", xmlWriter); - - if (localMemThresholdType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MemThresholdType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemThresholdType); - } - - xmlWriter.writeEndElement(); - } - if (localDiskThresholdTypeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "DiskThresholdType", xmlWriter); - - if (localDiskThresholdType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DiskThresholdType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDiskThresholdType); - } - - xmlWriter.writeEndElement(); - } - if (localPreflightProcessFilterTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "PreflightProcessFilter", xmlWriter); - - if (localPreflightProcessFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "PreflightProcessFilter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPreflightProcessFilter); - } - - xmlWriter.writeEndElement(); - } - if (localAcceptLanguageTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); - - if (localAcceptLanguage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAcceptLanguage); - } - - xmlWriter.writeEndElement(); - } - if (localTpTargetClustersTracker) { - if (localTpTargetClusters == null) { - throw new org.apache.axis2.databinding.ADBException("TpTargetClusters cannot be null!!"); - } - localTpTargetClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpTargetClusters"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpTargetClusterQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpTargetClusterQueryResponse object = new TpTargetClusterQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpTargetClusterQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpTargetClusterQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ShowDetails") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowDetails" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowDetails( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MemThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DiskThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DiskThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDiskThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CpuThreshold") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CpuThreshold" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCpuThreshold( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "MemThresholdType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemThresholdType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemThresholdType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "DiskThresholdType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DiskThresholdType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDiskThresholdType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "PreflightProcessFilter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PreflightProcessFilter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPreflightProcessFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AcceptLanguage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAcceptLanguage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpTargetClusters") - .equals(reader.getName())) { - - object.setTpTargetClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpTargetClusterQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpTargetClusterQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpTargetClusterQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpTargetClusterQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ShowDetails */ + protected boolean localShowDetails = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowDetailsTracker = false; + + public boolean isShowDetailsSpecified() { + return localShowDetailsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getShowDetails() { + return localShowDetails; + } + + /** + * Auto generated setter method + * + * @param param ShowDetails + */ + public void setShowDetails(boolean param) { + + // setting primitive attribute tracker to true + localShowDetailsTracker = true; + + this.localShowDetails = param; + } + + /** field for MemThreshold */ + protected int localMemThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemThresholdTracker = false; + + public boolean isMemThresholdSpecified() { + return localMemThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMemThreshold() { + return localMemThreshold; + } + + /** + * Auto generated setter method + * + * @param param MemThreshold + */ + public void setMemThreshold(int param) { + + // setting primitive attribute tracker to true + localMemThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMemThreshold = param; + } + + /** field for DiskThreshold */ + protected int localDiskThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDiskThresholdTracker = false; + + public boolean isDiskThresholdSpecified() { + return localDiskThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDiskThreshold() { + return localDiskThreshold; + } + + /** + * Auto generated setter method + * + * @param param DiskThreshold + */ + public void setDiskThreshold(int param) { + + // setting primitive attribute tracker to true + localDiskThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDiskThreshold = param; + } + + /** field for CpuThreshold */ + protected int localCpuThreshold; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCpuThresholdTracker = false; + + public boolean isCpuThresholdSpecified() { + return localCpuThresholdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCpuThreshold() { + return localCpuThreshold; + } + + /** + * Auto generated setter method + * + * @param param CpuThreshold + */ + public void setCpuThreshold(int param) { + + // setting primitive attribute tracker to true + localCpuThresholdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCpuThreshold = param; + } + + /** field for MemThresholdType */ + protected java.lang.String localMemThresholdType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemThresholdTypeTracker = false; + + public boolean isMemThresholdTypeSpecified() { + return localMemThresholdTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemThresholdType() { + return localMemThresholdType; + } + + /** + * Auto generated setter method + * + * @param param MemThresholdType + */ + public void setMemThresholdType(java.lang.String param) { + localMemThresholdTypeTracker = param != null; + + this.localMemThresholdType = param; + } + + /** field for DiskThresholdType */ + protected java.lang.String localDiskThresholdType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDiskThresholdTypeTracker = false; + + public boolean isDiskThresholdTypeSpecified() { + return localDiskThresholdTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDiskThresholdType() { + return localDiskThresholdType; + } + + /** + * Auto generated setter method + * + * @param param DiskThresholdType + */ + public void setDiskThresholdType(java.lang.String param) { + localDiskThresholdTypeTracker = param != null; + + this.localDiskThresholdType = param; + } + + /** field for PreflightProcessFilter */ + protected java.lang.String localPreflightProcessFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPreflightProcessFilterTracker = false; + + public boolean isPreflightProcessFilterSpecified() { + return localPreflightProcessFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPreflightProcessFilter() { + return localPreflightProcessFilter; + } + + /** + * Auto generated setter method + * + * @param param PreflightProcessFilter + */ + public void setPreflightProcessFilter(java.lang.String param) { + localPreflightProcessFilterTracker = param != null; + + this.localPreflightProcessFilter = param; + } + + /** field for AcceptLanguage */ + protected java.lang.String localAcceptLanguage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAcceptLanguageTracker = false; + + public boolean isAcceptLanguageSpecified() { + return localAcceptLanguageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAcceptLanguage() { + return localAcceptLanguage; + } + + /** + * Auto generated setter method + * + * @param param AcceptLanguage + */ + public void setAcceptLanguage(java.lang.String param) { + localAcceptLanguageTracker = param != null; + + this.localAcceptLanguage = param; + } + + /** field for TpTargetClusters */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster + localTpTargetClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTpTargetClustersTracker = false; + + public boolean isTpTargetClustersSpecified() { + return localTpTargetClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster + getTpTargetClusters() { + return localTpTargetClusters; + } + + /** + * Auto generated setter method + * + * @param param TpTargetClusters + */ + public void setTpTargetClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster param) { + localTpTargetClustersTracker = param != null; + + this.localTpTargetClusters = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpTargetClusterQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpTargetClusterQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localShowDetailsTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ShowDetails", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ShowDetails cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowDetails)); + } + + xmlWriter.writeEndElement(); + } + if (localMemThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "MemThreshold", xmlWriter); + + if (localMemThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MemThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localDiskThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "DiskThreshold", xmlWriter); + + if (localDiskThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("DiskThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDiskThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localCpuThresholdTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "CpuThreshold", xmlWriter); + + if (localCpuThreshold == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CpuThreshold cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCpuThreshold)); + } + + xmlWriter.writeEndElement(); + } + if (localMemThresholdTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "MemThresholdType", xmlWriter); + + if (localMemThresholdType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MemThresholdType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemThresholdType); + } + + xmlWriter.writeEndElement(); + } + if (localDiskThresholdTypeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "DiskThresholdType", xmlWriter); + + if (localDiskThresholdType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DiskThresholdType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDiskThresholdType); + } + + xmlWriter.writeEndElement(); + } + if (localPreflightProcessFilterTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "PreflightProcessFilter", xmlWriter); + + if (localPreflightProcessFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "PreflightProcessFilter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPreflightProcessFilter); + } + + xmlWriter.writeEndElement(); + } + if (localAcceptLanguageTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "AcceptLanguage", xmlWriter); + + if (localAcceptLanguage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AcceptLanguage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAcceptLanguage); + } + + xmlWriter.writeEndElement(); + } + if (localTpTargetClustersTracker) { + if (localTpTargetClusters == null) { + throw new org.apache.axis2.databinding.ADBException("TpTargetClusters cannot be null!!"); + } + localTpTargetClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpTargetClusters"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpTargetClusterQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpTargetClusterQueryResponse object = new TpTargetClusterQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpTargetClusterQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpTargetClusterQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ShowDetails") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowDetails" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowDetails( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "MemThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "DiskThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DiskThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDiskThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "CpuThreshold") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CpuThreshold" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCpuThreshold( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "MemThresholdType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemThresholdType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemThresholdType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "DiskThresholdType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DiskThresholdType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDiskThresholdType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "PreflightProcessFilter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PreflightProcessFilter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPreflightProcessFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AcceptLanguage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AcceptLanguage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAcceptLanguage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpTargetClusters") + .equals(reader.getName())) { + + object.setTpTargetClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfTpTargetCluster + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpThorStatusRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpThorStatusRequest.java index f5d9f3d33..5c8affe44 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpThorStatusRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpThorStatusRequest.java @@ -1,396 +1,396 @@ -/** - * TpThorStatusRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpThorStatusRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpThorStatusRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpThorStatusRequest", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpThorStatusRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpThorStatusRequest", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - if (localName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpThorStatusRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpThorStatusRequest object = new TpThorStatusRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpThorStatusRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpThorStatusRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpThorStatusRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpThorStatusRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpThorStatusRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpThorStatusRequest", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpThorStatusRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpThorStatusRequest", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + if (localName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpThorStatusRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpThorStatusRequest object = new TpThorStatusRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpThorStatusRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpThorStatusRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpThorStatusResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpThorStatusResponse.java index 5e5daae08..2653819bb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpThorStatusResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpThorStatusResponse.java @@ -1,1204 +1,1204 @@ -/** - * TpThorStatusResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpThorStatusResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpThorStatusResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpThorStatusResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for Group */ - protected java.lang.String localGroup; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGroupTracker = false; - - public boolean isGroupSpecified() { - return localGroupTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGroup() { - return localGroup; - } - - /** - * Auto generated setter method - * - * @param param Group - */ - public void setGroup(java.lang.String param) { - localGroupTracker = param != null; - - this.localGroup = param; - } - - /** field for ThorMasterIPAddress */ - protected java.lang.String localThorMasterIPAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorMasterIPAddressTracker = false; - - public boolean isThorMasterIPAddressSpecified() { - return localThorMasterIPAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorMasterIPAddress() { - return localThorMasterIPAddress; - } - - /** - * Auto generated setter method - * - * @param param ThorMasterIPAddress - */ - public void setThorMasterIPAddress(java.lang.String param) { - localThorMasterIPAddressTracker = param != null; - - this.localThorMasterIPAddress = param; - } - - /** field for Port */ - protected int localPort; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPortTracker = false; - - public boolean isPortSpecified() { - return localPortTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPort() { - return localPort; - } - - /** - * Auto generated setter method - * - * @param param Port - */ - public void setPort(int param) { - - // setting primitive attribute tracker to true - localPortTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPort = param; - } - - /** field for StartTime */ - protected java.lang.String localStartTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartTimeTracker = false; - - public boolean isStartTimeSpecified() { - return localStartTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartTime() { - return localStartTime; - } - - /** - * Auto generated setter method - * - * @param param StartTime - */ - public void setStartTime(java.lang.String param) { - localStartTimeTracker = param != null; - - this.localStartTime = param; - } - - /** field for LogFile */ - protected java.lang.String localLogFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogFileTracker = false; - - public boolean isLogFileSpecified() { - return localLogFileTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogFile() { - return localLogFile; - } - - /** - * Auto generated setter method - * - * @param param LogFile - */ - public void setLogFile(java.lang.String param) { - localLogFileTracker = param != null; - - this.localLogFile = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Graph */ - protected java.lang.String localGraph; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphTracker = false; - - public boolean isGraphSpecified() { - return localGraphTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraph() { - return localGraph; - } - - /** - * Auto generated setter method - * - * @param param Graph - */ - public void setGraph(java.lang.String param) { - localGraphTracker = param != null; - - this.localGraph = param; - } - - /** field for SubGraph */ - protected int localSubGraph; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphTracker = false; - - public boolean isSubGraphSpecified() { - return localSubGraphTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSubGraph() { - return localSubGraph; - } - - /** - * Auto generated setter method - * - * @param param SubGraph - */ - public void setSubGraph(int param) { - - // setting primitive attribute tracker to true - localSubGraphTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSubGraph = param; - } - - /** field for SubGraphDuration */ - protected int localSubGraphDuration; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphDurationTracker = false; - - public boolean isSubGraphDurationSpecified() { - return localSubGraphDurationTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSubGraphDuration() { - return localSubGraphDuration; - } - - /** - * Auto generated setter method - * - * @param param SubGraphDuration - */ - public void setSubGraphDuration(int param) { - - // setting primitive attribute tracker to true - localSubGraphDurationTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSubGraphDuration = param; - } - - /** field for AutoRefresh */ - protected int localAutoRefresh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAutoRefreshTracker = false; - - public boolean isAutoRefreshSpecified() { - return localAutoRefreshTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAutoRefresh() { - return localAutoRefresh; - } - - /** - * Auto generated setter method - * - * @param param AutoRefresh - */ - public void setAutoRefresh(int param) { - - // setting primitive attribute tracker to true - localAutoRefreshTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAutoRefresh = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpThorStatusResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpThorStatusResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localGroupTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Group", xmlWriter); - - if (localGroup == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Group cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGroup); - } - - xmlWriter.writeEndElement(); - } - if (localThorMasterIPAddressTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "ThorMasterIPAddress", xmlWriter); - - if (localThorMasterIPAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorMasterIPAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorMasterIPAddress); - } - - xmlWriter.writeEndElement(); - } - if (localPortTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Port", xmlWriter); - - if (localPort == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); - } - - xmlWriter.writeEndElement(); - } - if (localStartTimeTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "StartTime", xmlWriter); - - if (localStartTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartTime); - } - - xmlWriter.writeEndElement(); - } - if (localLogFileTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "LogFile", xmlWriter); - - if (localLogFile == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogFile cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogFile); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localGraphTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Graph", xmlWriter); - - if (localGraph == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Graph cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraph); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SubGraph", xmlWriter); - - if (localSubGraph == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SubGraph cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraph)); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphDurationTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "SubGraphDuration", xmlWriter); - - if (localSubGraphDuration == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SubGraphDuration cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSubGraphDuration)); - } - - xmlWriter.writeEndElement(); - } - if (localAutoRefreshTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "AutoRefresh", xmlWriter); - - if (localAutoRefresh == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("AutoRefresh cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAutoRefresh)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpThorStatusResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpThorStatusResponse object = new TpThorStatusResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpThorStatusResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpThorStatusResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Group") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Group" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGroup( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "ThorMasterIPAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorMasterIPAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorMasterIPAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Port") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Port" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPort( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "StartTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Graph") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Graph" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraph( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SubGraph") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraph" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraph( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "SubGraphDuration") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphDuration" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphDuration( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AutoRefresh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AutoRefresh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAutoRefresh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpThorStatusResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpThorStatusResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpThorStatusResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpThorStatusResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for Group */ + protected java.lang.String localGroup; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGroupTracker = false; + + public boolean isGroupSpecified() { + return localGroupTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGroup() { + return localGroup; + } + + /** + * Auto generated setter method + * + * @param param Group + */ + public void setGroup(java.lang.String param) { + localGroupTracker = param != null; + + this.localGroup = param; + } + + /** field for ThorMasterIPAddress */ + protected java.lang.String localThorMasterIPAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorMasterIPAddressTracker = false; + + public boolean isThorMasterIPAddressSpecified() { + return localThorMasterIPAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorMasterIPAddress() { + return localThorMasterIPAddress; + } + + /** + * Auto generated setter method + * + * @param param ThorMasterIPAddress + */ + public void setThorMasterIPAddress(java.lang.String param) { + localThorMasterIPAddressTracker = param != null; + + this.localThorMasterIPAddress = param; + } + + /** field for Port */ + protected int localPort; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPortTracker = false; + + public boolean isPortSpecified() { + return localPortTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPort() { + return localPort; + } + + /** + * Auto generated setter method + * + * @param param Port + */ + public void setPort(int param) { + + // setting primitive attribute tracker to true + localPortTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPort = param; + } + + /** field for StartTime */ + protected java.lang.String localStartTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartTimeTracker = false; + + public boolean isStartTimeSpecified() { + return localStartTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartTime() { + return localStartTime; + } + + /** + * Auto generated setter method + * + * @param param StartTime + */ + public void setStartTime(java.lang.String param) { + localStartTimeTracker = param != null; + + this.localStartTime = param; + } + + /** field for LogFile */ + protected java.lang.String localLogFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogFileTracker = false; + + public boolean isLogFileSpecified() { + return localLogFileTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogFile() { + return localLogFile; + } + + /** + * Auto generated setter method + * + * @param param LogFile + */ + public void setLogFile(java.lang.String param) { + localLogFileTracker = param != null; + + this.localLogFile = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Graph */ + protected java.lang.String localGraph; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphTracker = false; + + public boolean isGraphSpecified() { + return localGraphTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraph() { + return localGraph; + } + + /** + * Auto generated setter method + * + * @param param Graph + */ + public void setGraph(java.lang.String param) { + localGraphTracker = param != null; + + this.localGraph = param; + } + + /** field for SubGraph */ + protected int localSubGraph; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphTracker = false; + + public boolean isSubGraphSpecified() { + return localSubGraphTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSubGraph() { + return localSubGraph; + } + + /** + * Auto generated setter method + * + * @param param SubGraph + */ + public void setSubGraph(int param) { + + // setting primitive attribute tracker to true + localSubGraphTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSubGraph = param; + } + + /** field for SubGraphDuration */ + protected int localSubGraphDuration; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphDurationTracker = false; + + public boolean isSubGraphDurationSpecified() { + return localSubGraphDurationTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSubGraphDuration() { + return localSubGraphDuration; + } + + /** + * Auto generated setter method + * + * @param param SubGraphDuration + */ + public void setSubGraphDuration(int param) { + + // setting primitive attribute tracker to true + localSubGraphDurationTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSubGraphDuration = param; + } + + /** field for AutoRefresh */ + protected int localAutoRefresh; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAutoRefreshTracker = false; + + public boolean isAutoRefreshSpecified() { + return localAutoRefreshTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAutoRefresh() { + return localAutoRefresh; + } + + /** + * Auto generated setter method + * + * @param param AutoRefresh + */ + public void setAutoRefresh(int param) { + + // setting primitive attribute tracker to true + localAutoRefreshTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAutoRefresh = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpThorStatusResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpThorStatusResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localGroupTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Group", xmlWriter); + + if (localGroup == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Group cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGroup); + } + + xmlWriter.writeEndElement(); + } + if (localThorMasterIPAddressTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "ThorMasterIPAddress", xmlWriter); + + if (localThorMasterIPAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorMasterIPAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorMasterIPAddress); + } + + xmlWriter.writeEndElement(); + } + if (localPortTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Port", xmlWriter); + + if (localPort == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Port cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPort)); + } + + xmlWriter.writeEndElement(); + } + if (localStartTimeTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "StartTime", xmlWriter); + + if (localStartTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartTime); + } + + xmlWriter.writeEndElement(); + } + if (localLogFileTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "LogFile", xmlWriter); + + if (localLogFile == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogFile cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogFile); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localGraphTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Graph", xmlWriter); + + if (localGraph == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Graph cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraph); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SubGraph", xmlWriter); + + if (localSubGraph == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SubGraph cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraph)); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphDurationTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "SubGraphDuration", xmlWriter); + + if (localSubGraphDuration == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SubGraphDuration cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSubGraphDuration)); + } + + xmlWriter.writeEndElement(); + } + if (localAutoRefreshTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "AutoRefresh", xmlWriter); + + if (localAutoRefresh == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("AutoRefresh cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAutoRefresh)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpThorStatusResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpThorStatusResponse object = new TpThorStatusResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpThorStatusResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpThorStatusResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Group") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Group" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGroup( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "ThorMasterIPAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorMasterIPAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorMasterIPAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Port") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Port" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPort( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "StartTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "LogFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Graph") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Graph" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraph( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SubGraph") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraph" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraph( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "SubGraphDuration") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphDuration" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphDuration( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "AutoRefresh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AutoRefresh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAutoRefresh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpXMLFileRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpXMLFileRequest.java index eb2c98333..205af5023 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpXMLFileRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpXMLFileRequest.java @@ -1,396 +1,396 @@ -/** - * TpXMLFileRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpXMLFileRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpXMLFileRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpXMLFileRequest", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpXMLFileRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpXMLFileRequest", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "Name", xmlWriter); - - if (localName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpXMLFileRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpXMLFileRequest object = new TpXMLFileRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpXMLFileRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpXMLFileRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpXMLFileRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpXMLFileRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpXMLFileRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpXMLFileRequest", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpXMLFileRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpXMLFileRequest", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "Name", xmlWriter); + + if (localName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpXMLFileRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpXMLFileRequest object = new TpXMLFileRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpXMLFileRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpXMLFileRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpXMLFileResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpXMLFileResponse.java index 7e4934a9c..3fd0aba49 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpXMLFileResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/TpXMLFileResponse.java @@ -1,443 +1,443 @@ -/** - * TpXMLFileResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** TpXMLFileResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TpXMLFileResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpXMLFileResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Thefile */ - protected javax.activation.DataHandler localThefile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThefileTracker = false; - - public boolean isThefileSpecified() { - return localThefileTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getThefile() { - return localThefile; - } - - /** - * Auto generated setter method - * - * @param param Thefile - */ - public void setThefile(javax.activation.DataHandler param) { - localThefileTracker = param != null; - - this.localThefile = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TpXMLFileResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TpXMLFileResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); - } - if (localThefileTracker) { - namespace = "urn:hpccsystems:ws:wstopology"; - writeStartElement(null, namespace, "thefile", xmlWriter); - - if (localThefile != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localThefile, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for thefile", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TpXMLFileResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TpXMLFileResponse object = new TpXMLFileResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TpXMLFileResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TpXMLFileResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "thefile") - .equals(reader.getName())) { - - object.setThefile( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TpXMLFileResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** TpXMLFileResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TpXMLFileResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpXMLFileResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Thefile */ + protected javax.activation.DataHandler localThefile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThefileTracker = false; + + public boolean isThefileSpecified() { + return localThefileTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getThefile() { + return localThefile; + } + + /** + * Auto generated setter method + * + * @param param Thefile + */ + public void setThefile(javax.activation.DataHandler param) { + localThefileTracker = param != null; + + this.localThefile = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TpXMLFileResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TpXMLFileResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), xmlWriter); + } + if (localThefileTracker) { + namespace = "urn:hpccsystems:ws:wstopology"; + writeStartElement(null, namespace, "thefile", xmlWriter); + + if (localThefile != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localThefile, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for thefile", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TpXMLFileResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TpXMLFileResponse object = new TpXMLFileResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TpXMLFileResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TpXMLFileResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "thefile") + .equals(reader.getName())) { + + object.setThefile( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopology.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopology.java index 9b4d0aab8..96484316d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopology.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopology.java @@ -1,259 +1,272 @@ -/** - * WsTopology.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/* - * WsTopology java interface - */ - -public interface WsTopology { - - /** - * Auto generated method signature - * - * @param tpServiceQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse - tpServiceQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest - tpServiceQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpGetServicePluginsRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse - tpGetServicePlugins( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest - tpGetServicePluginsRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpClusterQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse - tpClusterQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest - tpClusterQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpLogicalClusterQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse - tpLogicalClusterQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest - tpLogicalClusterQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpListTargetClustersRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse - tpListTargetClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest - tpListTargetClustersRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpThorStatusRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse tpThorStatus( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest tpThorStatusRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpGetComponentFileRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse - tpGetComponentFile( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest - tpGetComponentFileRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpClusterInfoRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse tpClusterInfo( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest - tpClusterInfoRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpGroupQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse tpGroupQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest tpGroupQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpDropZoneQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse - tpDropZoneQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest - tpDropZoneQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpSetMachineStatusRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse - tpSetMachineStatus( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest - tpSetMachineStatusRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wsTopologyPingRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest - wsTopologyPingRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpSwapNodeRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse tpSwapNode( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest tpSwapNodeRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param systemLogRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse systemLog( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest systemLogRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpLogFileRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse tpLogFileDisplay( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest tpLogFileRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpLogFileRequest0 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse tpLogFile( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest tpLogFileRequest0) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpMachineQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse - tpMachineQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest - tpMachineQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpTargetClusterQueryRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse - tpTargetClusterQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest - tpTargetClusterQueryRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpMachineInfoRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse tpMachineInfo( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest - tpMachineInfoRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param tpXMLFileRequest - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse tpXMLFile( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest tpXMLFileRequest) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; - - // -} +/** + * WsTopology.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/* + * WsTopology java interface + */ + +public interface WsTopology { + + /** + * Auto generated method signature + * + * @param tpServiceQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse + tpServiceQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest + tpServiceQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpGetServicePluginsRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse + tpGetServicePlugins( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest + tpGetServicePluginsRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpClusterQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse + tpClusterQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest + tpClusterQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpLogicalClusterQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse + tpLogicalClusterQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest + tpLogicalClusterQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpListTargetClustersRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse + tpListTargetClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest + tpListTargetClustersRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpThorStatusRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse tpThorStatus( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest tpThorStatusRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpGetComponentFileRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse + tpGetComponentFile( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest + tpGetComponentFileRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpClusterInfoRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse tpClusterInfo( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest + tpClusterInfoRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpListLogFilesRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesResponse + tpListLogFiles( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesRequest + tpListLogFilesRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpGroupQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse tpGroupQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest tpGroupQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpDropZoneQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse + tpDropZoneQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest + tpDropZoneQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpSetMachineStatusRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse + tpSetMachineStatus( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest + tpSetMachineStatusRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wsTopologyPingRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest + wsTopologyPingRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpSwapNodeRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse tpSwapNode( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest tpSwapNodeRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param systemLogRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse systemLog( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest systemLogRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpLogFileRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse tpLogFileDisplay( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest tpLogFileRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpLogFileRequest0 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse tpLogFile( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest tpLogFileRequest0) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpMachineQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse + tpMachineQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest + tpMachineQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpTargetClusterQueryRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse + tpTargetClusterQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest + tpTargetClusterQueryRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpMachineInfoRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse tpMachineInfo( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest + tpMachineInfoRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param tpXMLFileRequest + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse tpXMLFile( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest tpXMLFileRequest) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault; + + // +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyPingRequest.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyPingRequest.java index 9c0d441a7..46bdfdee9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyPingRequest.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyPingRequest.java @@ -1,315 +1,315 @@ -/** - * WsTopologyPingRequest.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** WsTopologyPingRequest bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsTopologyPingRequest implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "WsTopologyPingRequest", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsTopologyPingRequest", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsTopologyPingRequest", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsTopologyPingRequest parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsTopologyPingRequest object = new WsTopologyPingRequest(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsTopologyPingRequest".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsTopologyPingRequest) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsTopologyPingRequest.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** WsTopologyPingRequest bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsTopologyPingRequest implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "WsTopologyPingRequest", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsTopologyPingRequest", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsTopologyPingRequest", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsTopologyPingRequest parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsTopologyPingRequest object = new WsTopologyPingRequest(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsTopologyPingRequest".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsTopologyPingRequest) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyPingResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyPingResponse.java index 513dccfb4..9775e8aba 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyPingResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyPingResponse.java @@ -1,315 +1,315 @@ -/** - * WsTopologyPingResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/** WsTopologyPingResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsTopologyPingResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "WsTopologyPingResponse", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsTopologyPingResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsTopologyPingResponse", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wstopology")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsTopologyPingResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsTopologyPingResponse object = new WsTopologyPingResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsTopologyPingResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsTopologyPingResponse) - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsTopologyPingResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/** WsTopologyPingResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsTopologyPingResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "WsTopologyPingResponse", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wstopology"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsTopologyPingResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsTopologyPingResponse", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wstopology")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsTopologyPingResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsTopologyPingResponse object = new WsTopologyPingResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsTopologyPingResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsTopologyPingResponse) + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyStub.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyStub.java index 37cda3a97..d3fe9900e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyStub.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wstopology/latest/WsTopologyStub.java @@ -1,4571 +1,4795 @@ -/** - * WsTopologyStub.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; - -/* - * WsTopologyStub java implementation - */ - -public class WsTopologyStub extends org.apache.axis2.client.Stub implements WsTopology { - protected org.apache.axis2.description.AxisOperation[] _operations; - - // hashmaps to keep the fault mapping - private java.util.Map - faultExceptionNameMap = - new java.util.HashMap(); - private java.util.Map - faultExceptionClassNameMap = - new java.util.HashMap(); - private java.util.Map faultMessageMap = - new java.util.HashMap(); - - private static int counter = 0; - - private static synchronized java.lang.String getUniqueSuffix() { - // reset the counter if it is greater than 99999 - if (counter > 99999) { - counter = 0; - } - counter = counter + 1; - return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; - } - - private void populateAxisService() throws org.apache.axis2.AxisFault { - - // creating the Service with a unique name - _service = new org.apache.axis2.description.AxisService("WsTopology" + getUniqueSuffix()); - addAnonymousOperations(); - - // creating the operations - org.apache.axis2.description.AxisOperation __operation; - - _operations = new org.apache.axis2.description.AxisOperation[20]; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpServiceQuery")); - _service.addOperation(__operation); - - _operations[0] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpGetServicePlugins")); - _service.addOperation(__operation); - - _operations[1] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpClusterQuery")); - _service.addOperation(__operation); - - _operations[2] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpLogicalClusterQuery")); - _service.addOperation(__operation); - - _operations[3] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpListTargetClusters")); - _service.addOperation(__operation); - - _operations[4] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpThorStatus")); - _service.addOperation(__operation); - - _operations[5] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpGetComponentFile")); - _service.addOperation(__operation); - - _operations[6] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpClusterInfo")); - _service.addOperation(__operation); - - _operations[7] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpGroupQuery")); - _service.addOperation(__operation); - - _operations[8] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpDropZoneQuery")); - _service.addOperation(__operation); - - _operations[9] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpSetMachineStatus")); - _service.addOperation(__operation); - - _operations[10] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ping")); - _service.addOperation(__operation); - - _operations[11] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpSwapNode")); - _service.addOperation(__operation); - - _operations[12] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "systemLog")); - _service.addOperation(__operation); - - _operations[13] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpLogFileDisplay")); - _service.addOperation(__operation); - - _operations[14] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpLogFile")); - _service.addOperation(__operation); - - _operations[15] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpMachineQuery")); - _service.addOperation(__operation); - - _operations[16] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpTargetClusterQuery")); - _service.addOperation(__operation); - - _operations[17] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpMachineInfo")); - _service.addOperation(__operation); - - _operations[18] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpXMLFile")); - _service.addOperation(__operation); - - _operations[19] = __operation; - } - - // populates the faults - private void populateFaults() { - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpServiceQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpServiceQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpServiceQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGetServicePlugins"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGetServicePlugins"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGetServicePlugins"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogicalClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogicalClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogicalClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpListTargetClusters"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpListTargetClusters"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpListTargetClusters"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpThorStatus"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpThorStatus"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpThorStatus"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGetComponentFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGetComponentFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGetComponentFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpClusterInfo"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpClusterInfo"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpClusterInfo"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGroupQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGroupQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpGroupQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpDropZoneQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpDropZoneQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpDropZoneQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpSetMachineStatus"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpSetMachineStatus"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpSetMachineStatus"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpSwapNode"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpSwapNode"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpSwapNode"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "SystemLog"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "SystemLog"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "SystemLog"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogFileDisplay"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogFileDisplay"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogFileDisplay"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpLogFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpMachineQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpMachineQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpMachineQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpTargetClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpTargetClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpTargetClusterQuery"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpMachineInfo"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpMachineInfo"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpMachineInfo"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpXMLFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpXMLFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), - "TpXMLFile"), - "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); - } - - /** Constructor that takes in a configContext */ - public WsTopologyStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint) - throws org.apache.axis2.AxisFault { - this(configurationContext, targetEndpoint, false); - } - - /** Constructor that takes in a configContext and useseperate listner */ - public WsTopologyStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint, - boolean useSeparateListener) - throws org.apache.axis2.AxisFault { - // To populate AxisService - populateAxisService(); - populateFaults(); - - _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); - - _serviceClient - .getOptions() - .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); - _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); - } - - /** Default Constructor */ - public WsTopologyStub(org.apache.axis2.context.ConfigurationContext configurationContext) - throws org.apache.axis2.AxisFault { - - this(configurationContext, "http://10.1.1.180:8888/WsTopology?ver_=1.31"); - } - - /** Default Constructor */ - public WsTopologyStub() throws org.apache.axis2.AxisFault { - - this("http://10.1.1.180:8888/WsTopology?ver_=1.31"); - } - - /** Constructor taking the target endpoint */ - public WsTopologyStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { - this(null, targetEndpoint); - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpServiceQuery - * @param tpServiceQueryRequest2 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse - tpServiceQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest - tpServiceQueryRequest2) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[0].getName()); - _operationClient.getOptions().setAction("WsTopology/TpServiceQuery?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpServiceQueryRequest2, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpServiceQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpServiceQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpServiceQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpServiceQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpServiceQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpGetServicePlugins - * @param tpGetServicePluginsRequest4 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse - tpGetServicePlugins( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest - tpGetServicePluginsRequest4) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[1].getName()); - _operationClient.getOptions().setAction("WsTopology/TpGetServicePlugins?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpGetServicePluginsRequest4, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "tpGetServicePlugins")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpGetServicePluginsRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGetServicePlugins"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpGetServicePlugins")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpGetServicePlugins")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpClusterQuery - * @param tpClusterQueryRequest6 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse - tpClusterQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest - tpClusterQueryRequest6) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[2].getName()); - _operationClient.getOptions().setAction("WsTopology/TpClusterQuery?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpClusterQueryRequest6, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpClusterQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpClusterQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpLogicalClusterQuery - * @param tpLogicalClusterQueryRequest8 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse - tpLogicalClusterQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest - tpLogicalClusterQueryRequest8) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[3].getName()); - _operationClient.getOptions().setAction("WsTopology/TpLogicalClusterQuery?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpLogicalClusterQueryRequest8, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "tpLogicalClusterQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpLogicalClusterQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpLogicalClusterQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpLogicalClusterQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpLogicalClusterQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpListTargetClusters - * @param tpListTargetClustersRequest10 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse - tpListTargetClusters( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest - tpListTargetClustersRequest10) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[4].getName()); - _operationClient.getOptions().setAction("WsTopology/TpListTargetClusters?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpListTargetClustersRequest10, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "tpListTargetClusters")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpListTargetClustersRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpListTargetClusters"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpListTargetClusters")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpListTargetClusters")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpThorStatus - * @param tpThorStatusRequest12 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse tpThorStatus( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest - tpThorStatusRequest12) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[5].getName()); - _operationClient.getOptions().setAction("WsTopology/TpThorStatus?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpThorStatusRequest12, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpThorStatus")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpThorStatusRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpThorStatus"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpThorStatus")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpThorStatus")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpGetComponentFile - * @param tpGetComponentFileRequest14 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse - tpGetComponentFile( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest - tpGetComponentFileRequest14) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[6].getName()); - _operationClient.getOptions().setAction("WsTopology/TpGetComponentFile?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpGetComponentFileRequest14, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "tpGetComponentFile")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpGetComponentFileRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGetComponentFile"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpGetComponentFile")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpGetComponentFile")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpClusterInfo - * @param tpClusterInfoRequest16 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse tpClusterInfo( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest - tpClusterInfoRequest16) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[7].getName()); - _operationClient.getOptions().setAction("WsTopology/TpClusterInfo?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpClusterInfoRequest16, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpClusterInfo")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpClusterInfoRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpGroupQuery - * @param tpGroupQueryRequest18 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse tpGroupQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest - tpGroupQueryRequest18) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[8].getName()); - _operationClient.getOptions().setAction("WsTopology/TpGroupQuery?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpGroupQueryRequest18, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpGroupQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpGroupQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGroupQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGroupQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGroupQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpDropZoneQuery - * @param tpDropZoneQueryRequest20 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse - tpDropZoneQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest - tpDropZoneQueryRequest20) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[9].getName()); - _operationClient.getOptions().setAction("WsTopology/TpDropZoneQuery?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpDropZoneQueryRequest20, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "tpDropZoneQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpDropZoneQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpDropZoneQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpDropZoneQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpDropZoneQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpSetMachineStatus - * @param tpSetMachineStatusRequest22 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse - tpSetMachineStatus( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest - tpSetMachineStatusRequest22) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[10].getName()); - _operationClient.getOptions().setAction("WsTopology/TpSetMachineStatus?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpSetMachineStatusRequest22, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "tpSetMachineStatus")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpSetMachineStatusRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpSetMachineStatus"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpSetMachineStatus")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpSetMachineStatus")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#ping - * @param wsTopologyPingRequest24 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest - wsTopologyPingRequest24) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[11].getName()); - _operationClient.getOptions().setAction("WsTopology/Ping?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wsTopologyPingRequest24, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ping")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "WsTopologyPingRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpSwapNode - * @param tpSwapNodeRequest26 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse tpSwapNode( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest tpSwapNodeRequest26) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[12].getName()); - _operationClient.getOptions().setAction("WsTopology/TpSwapNode?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpSwapNodeRequest26, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpSwapNode")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSwapNodeRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpSwapNode"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpSwapNode")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpSwapNode")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#systemLog - * @param systemLogRequest28 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse systemLog( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest systemLogRequest28) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[13].getName()); - _operationClient.getOptions().setAction("WsTopology/SystemLog?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - systemLogRequest28, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "systemLog")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SystemLogRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SystemLog"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SystemLog")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SystemLog")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpLogFileDisplay - * @param tpLogFileRequest30 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse tpLogFileDisplay( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest tpLogFileRequest30) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[14].getName()); - _operationClient.getOptions().setAction("WsTopology/TpLogFileDisplay?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpLogFileRequest30, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "tpLogFileDisplay")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogFileRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpLogFileDisplay"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpLogFileDisplay")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpLogFileDisplay")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpLogFile - * @param tpLogFileRequest32 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse tpLogFile( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest tpLogFileRequest32) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[15].getName()); - _operationClient.getOptions().setAction("WsTopology/TpLogFile?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpLogFileRequest32, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpLogFile")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogFileRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpLogFile"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpLogFile")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpLogFile")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpMachineQuery - * @param tpMachineQueryRequest34 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse - tpMachineQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest - tpMachineQueryRequest34) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[16].getName()); - _operationClient.getOptions().setAction("WsTopology/TpMachineQuery?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpMachineQueryRequest34, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpMachineQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpMachineQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpTargetClusterQuery - * @param tpTargetClusterQueryRequest36 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse - tpTargetClusterQuery( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest - tpTargetClusterQueryRequest36) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[17].getName()); - _operationClient.getOptions().setAction("WsTopology/TpTargetClusterQuery?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpTargetClusterQueryRequest36, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "tpTargetClusterQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpTargetClusterQueryRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpTargetClusterQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpTargetClusterQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "TpTargetClusterQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpMachineInfo - * @param tpMachineInfoRequest38 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse tpMachineInfo( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest - tpMachineInfoRequest38) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[18].getName()); - _operationClient.getOptions().setAction("WsTopology/TpMachineInfo?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpMachineInfoRequest38, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpMachineInfo")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wstopology", "TpMachineInfoRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpXMLFile - * @param tpXMLFileRequest40 - * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse tpXMLFile( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest tpXMLFileRequest40) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[19].getName()); - _operationClient.getOptions().setAction("WsTopology/TpXMLFile?ver_=1.31"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - tpXMLFileRequest40, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpXMLFile")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpXMLFileRequest")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpXMLFile"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpXMLFile")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpXMLFile")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - private javax.xml.namespace.QName[] opNameArray = null; - - private boolean optimizeContent(javax.xml.namespace.QName opName) { - - if (opNameArray == null) { - return false; - } - for (int i = 0; i < opNameArray.length; i++) { - if (opName.equals(opNameArray[i])) { - return true; - } - } - return false; - } - // http://10.1.1.180:8888/WsTopology?ver_=1.31 - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - /** get the default envelope */ - private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { - return factory.getDefaultEnvelope(); - } - - private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) - throws org.apache.axis2.AxisFault { - - try { - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - } catch (java.lang.Exception e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - return null; - } -} +/** + * WsTopologyStub.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wstopology.latest; + +/* + * WsTopologyStub java implementation + */ + +public class WsTopologyStub extends org.apache.axis2.client.Stub implements WsTopology { + protected org.apache.axis2.description.AxisOperation[] _operations; + + // hashmaps to keep the fault mapping + private java.util.Map + faultExceptionNameMap = + new java.util.HashMap(); + private java.util.Map + faultExceptionClassNameMap = + new java.util.HashMap(); + private java.util.Map faultMessageMap = + new java.util.HashMap(); + + private static int counter = 0; + + private static synchronized java.lang.String getUniqueSuffix() { + // reset the counter if it is greater than 99999 + if (counter > 99999) { + counter = 0; + } + counter = counter + 1; + return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; + } + + private void populateAxisService() throws org.apache.axis2.AxisFault { + + // creating the Service with a unique name + _service = new org.apache.axis2.description.AxisService("WsTopology" + getUniqueSuffix()); + addAnonymousOperations(); + + // creating the operations + org.apache.axis2.description.AxisOperation __operation; + + _operations = new org.apache.axis2.description.AxisOperation[21]; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpServiceQuery")); + _service.addOperation(__operation); + + _operations[0] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpGetServicePlugins")); + _service.addOperation(__operation); + + _operations[1] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpClusterQuery")); + _service.addOperation(__operation); + + _operations[2] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpLogicalClusterQuery")); + _service.addOperation(__operation); + + _operations[3] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpListTargetClusters")); + _service.addOperation(__operation); + + _operations[4] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpThorStatus")); + _service.addOperation(__operation); + + _operations[5] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpGetComponentFile")); + _service.addOperation(__operation); + + _operations[6] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpClusterInfo")); + _service.addOperation(__operation); + + _operations[7] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpListLogFiles")); + _service.addOperation(__operation); + + _operations[8] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpGroupQuery")); + _service.addOperation(__operation); + + _operations[9] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpDropZoneQuery")); + _service.addOperation(__operation); + + _operations[10] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpSetMachineStatus")); + _service.addOperation(__operation); + + _operations[11] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ping")); + _service.addOperation(__operation); + + _operations[12] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpSwapNode")); + _service.addOperation(__operation); + + _operations[13] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "systemLog")); + _service.addOperation(__operation); + + _operations[14] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpLogFileDisplay")); + _service.addOperation(__operation); + + _operations[15] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpLogFile")); + _service.addOperation(__operation); + + _operations[16] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpMachineQuery")); + _service.addOperation(__operation); + + _operations[17] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpTargetClusterQuery")); + _service.addOperation(__operation); + + _operations[18] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpMachineInfo")); + _service.addOperation(__operation); + + _operations[19] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpXMLFile")); + _service.addOperation(__operation); + + _operations[20] = __operation; + } + + // populates the faults + private void populateFaults() { + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpServiceQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpServiceQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpServiceQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGetServicePlugins"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGetServicePlugins"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGetServicePlugins"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogicalClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogicalClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogicalClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpListTargetClusters"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpListTargetClusters"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpListTargetClusters"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpThorStatus"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpThorStatus"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpThorStatus"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGetComponentFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGetComponentFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGetComponentFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpClusterInfo"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpClusterInfo"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpClusterInfo"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpListLogFiles"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpListLogFiles"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpListLogFiles"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGroupQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGroupQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpGroupQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpDropZoneQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpDropZoneQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpDropZoneQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpSetMachineStatus"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpSetMachineStatus"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpSetMachineStatus"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpSwapNode"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpSwapNode"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpSwapNode"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "SystemLog"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "SystemLog"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "SystemLog"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogFileDisplay"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogFileDisplay"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogFileDisplay"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpLogFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpMachineQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpMachineQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpMachineQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpTargetClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpTargetClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpTargetClusterQuery"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpMachineInfo"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpMachineInfo"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpMachineInfo"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpXMLFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpXMLFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "Exceptions"), + "TpXMLFile"), + "org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions"); + } + + /** Constructor that takes in a configContext */ + public WsTopologyStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint) + throws org.apache.axis2.AxisFault { + this(configurationContext, targetEndpoint, false); + } + + /** Constructor that takes in a configContext and useseperate listner */ + public WsTopologyStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint, + boolean useSeparateListener) + throws org.apache.axis2.AxisFault { + // To populate AxisService + populateAxisService(); + populateFaults(); + + _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); + + _serviceClient + .getOptions() + .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); + _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); + } + + /** Default Constructor */ + public WsTopologyStub(org.apache.axis2.context.ConfigurationContext configurationContext) + throws org.apache.axis2.AxisFault { + + this(configurationContext, "http://eclwatch-65768756c6-9sm8c:8888/WsTopology?ver_=1.32"); + } + + /** Default Constructor */ + public WsTopologyStub() throws org.apache.axis2.AxisFault { + + this("http://eclwatch-65768756c6-9sm8c:8888/WsTopology?ver_=1.32"); + } + + /** Constructor taking the target endpoint */ + public WsTopologyStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { + this(null, targetEndpoint); + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpServiceQuery + * @param tpServiceQueryRequest2 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse + tpServiceQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest + tpServiceQueryRequest2) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[0].getName()); + _operationClient.getOptions().setAction("WsTopology/TpServiceQuery?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpServiceQueryRequest2, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpServiceQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpServiceQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpServiceQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpServiceQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpServiceQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpGetServicePlugins + * @param tpGetServicePluginsRequest4 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse + tpGetServicePlugins( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest + tpGetServicePluginsRequest4) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[1].getName()); + _operationClient.getOptions().setAction("WsTopology/TpGetServicePlugins?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpGetServicePluginsRequest4, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "tpGetServicePlugins")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpGetServicePluginsRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGetServicePlugins"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpGetServicePlugins")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpGetServicePlugins")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpClusterQuery + * @param tpClusterQueryRequest6 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse + tpClusterQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest + tpClusterQueryRequest6) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[2].getName()); + _operationClient.getOptions().setAction("WsTopology/TpClusterQuery?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpClusterQueryRequest6, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpClusterQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpClusterQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpLogicalClusterQuery + * @param tpLogicalClusterQueryRequest8 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse + tpLogicalClusterQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest + tpLogicalClusterQueryRequest8) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[3].getName()); + _operationClient.getOptions().setAction("WsTopology/TpLogicalClusterQuery?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpLogicalClusterQueryRequest8, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "tpLogicalClusterQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpLogicalClusterQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpLogicalClusterQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpLogicalClusterQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpLogicalClusterQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpListTargetClusters + * @param tpListTargetClustersRequest10 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse + tpListTargetClusters( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest + tpListTargetClustersRequest10) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[4].getName()); + _operationClient.getOptions().setAction("WsTopology/TpListTargetClusters?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpListTargetClustersRequest10, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "tpListTargetClusters")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpListTargetClustersRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpListTargetClusters"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpListTargetClusters")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpListTargetClusters")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpThorStatus + * @param tpThorStatusRequest12 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse tpThorStatus( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest + tpThorStatusRequest12) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[5].getName()); + _operationClient.getOptions().setAction("WsTopology/TpThorStatus?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpThorStatusRequest12, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpThorStatus")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpThorStatusRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpThorStatus"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpThorStatus")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpThorStatus")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpGetComponentFile + * @param tpGetComponentFileRequest14 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse + tpGetComponentFile( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest + tpGetComponentFileRequest14) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[6].getName()); + _operationClient.getOptions().setAction("WsTopology/TpGetComponentFile?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpGetComponentFileRequest14, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "tpGetComponentFile")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpGetComponentFileRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGetComponentFile"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpGetComponentFile")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpGetComponentFile")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpClusterInfo + * @param tpClusterInfoRequest16 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse tpClusterInfo( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest + tpClusterInfoRequest16) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[7].getName()); + _operationClient.getOptions().setAction("WsTopology/TpClusterInfo?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpClusterInfoRequest16, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpClusterInfo")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpClusterInfoRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpClusterInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpListLogFiles + * @param tpListLogFilesRequest18 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesResponse + tpListLogFiles( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesRequest + tpListLogFilesRequest18) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[8].getName()); + _operationClient.getOptions().setAction("WsTopology/TpListLogFiles?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpListLogFilesRequest18, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpListLogFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpListLogFilesRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpListLogFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpListLogFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpListLogFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpGroupQuery + * @param tpGroupQueryRequest20 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse tpGroupQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest + tpGroupQueryRequest20) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[9].getName()); + _operationClient.getOptions().setAction("WsTopology/TpGroupQuery?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpGroupQueryRequest20, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpGroupQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpGroupQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGroupQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGroupQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpGroupQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpDropZoneQuery + * @param tpDropZoneQueryRequest22 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse + tpDropZoneQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest + tpDropZoneQueryRequest22) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[10].getName()); + _operationClient.getOptions().setAction("WsTopology/TpDropZoneQuery?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpDropZoneQueryRequest22, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "tpDropZoneQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpDropZoneQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpDropZoneQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpDropZoneQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpDropZoneQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpSetMachineStatus + * @param tpSetMachineStatusRequest24 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse + tpSetMachineStatus( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest + tpSetMachineStatusRequest24) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[11].getName()); + _operationClient.getOptions().setAction("WsTopology/TpSetMachineStatus?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpSetMachineStatusRequest24, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "tpSetMachineStatus")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpSetMachineStatusRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpSetMachineStatus"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpSetMachineStatus")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpSetMachineStatus")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#ping + * @param wsTopologyPingRequest26 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest + wsTopologyPingRequest26) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[12].getName()); + _operationClient.getOptions().setAction("WsTopology/Ping?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wsTopologyPingRequest26, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "ping")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "WsTopologyPingRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpSwapNode + * @param tpSwapNodeRequest28 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse tpSwapNode( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest tpSwapNodeRequest28) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[13].getName()); + _operationClient.getOptions().setAction("WsTopology/TpSwapNode?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpSwapNodeRequest28, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpSwapNode")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpSwapNodeRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpSwapNode"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpSwapNode")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpSwapNode")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#systemLog + * @param systemLogRequest30 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse systemLog( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest systemLogRequest30) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[14].getName()); + _operationClient.getOptions().setAction("WsTopology/SystemLog?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + systemLogRequest30, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "systemLog")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "SystemLogRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SystemLog"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SystemLog")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "SystemLog")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpLogFileDisplay + * @param tpLogFileRequest32 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse tpLogFileDisplay( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest tpLogFileRequest32) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[15].getName()); + _operationClient.getOptions().setAction("WsTopology/TpLogFileDisplay?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpLogFileRequest32, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "tpLogFileDisplay")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogFileRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpLogFileDisplay"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpLogFileDisplay")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpLogFileDisplay")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpLogFile + * @param tpLogFileRequest34 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse tpLogFile( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest tpLogFileRequest34) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[16].getName()); + _operationClient.getOptions().setAction("WsTopology/TpLogFile?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpLogFileRequest34, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpLogFile")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpLogFileRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpLogFile"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpLogFile")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpLogFile")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpMachineQuery + * @param tpMachineQueryRequest36 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse + tpMachineQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest + tpMachineQueryRequest36) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[17].getName()); + _operationClient.getOptions().setAction("WsTopology/TpMachineQuery?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpMachineQueryRequest36, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpMachineQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpMachineQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpTargetClusterQuery + * @param tpTargetClusterQueryRequest38 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse + tpTargetClusterQuery( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest + tpTargetClusterQueryRequest38) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[18].getName()); + _operationClient.getOptions().setAction("WsTopology/TpTargetClusterQuery?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpTargetClusterQueryRequest38, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "tpTargetClusterQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpTargetClusterQueryRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpTargetClusterQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpTargetClusterQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "TpTargetClusterQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpMachineInfo + * @param tpMachineInfoRequest40 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse tpMachineInfo( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest + tpMachineInfoRequest40) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[19].getName()); + _operationClient.getOptions().setAction("WsTopology/TpMachineInfo?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpMachineInfoRequest40, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpMachineInfo")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wstopology", "TpMachineInfoRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpMachineInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopology#tpXMLFile + * @param tpXMLFileRequest42 + * @throws org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse tpXMLFile( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest tpXMLFileRequest42) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[20].getName()); + _operationClient.getOptions().setAction("WsTopology/TpXMLFile?ver_=1.32"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + tpXMLFileRequest42, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "tpXMLFile")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wstopology", "TpXMLFileRequest")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpXMLFile"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpXMLFile")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "TpXMLFile")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + private javax.xml.namespace.QName[] opNameArray = null; + + private boolean optimizeContent(javax.xml.namespace.QName opName) { + + if (opNameArray == null) { + return false; + } + for (int i = 0; i < opNameArray.length; i++) { + if (opName.equals(opNameArray[i])) { + return true; + } + } + return false; + } + // http://eclwatch-65768756c6-9sm8c:8888/WsTopology?ver_=1.32 + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + /** get the default envelope */ + private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { + return factory.getDefaultEnvelope(); + } + + private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) + throws org.apache.axis2.AxisFault { + + try { + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.Exceptions.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.SystemLogResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterInfoResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpClusterQueryResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpDropZoneQueryResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetComponentFileResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGetServicePluginsResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpGroupQueryResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListLogFilesResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersRequest + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpListTargetClustersResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogFileResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryRequest + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpLogicalClusterQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineInfoResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpMachineQueryResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpServiceQueryResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSetMachineStatusResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpSwapNodeResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryRequest + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpTargetClusterQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpThorStatusResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileRequest.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.TpXMLFileResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingRequest.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wstopology.latest.WsTopologyPingResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + } catch (java.lang.Exception e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + return null; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wscloud/WrapperReport.txt b/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wscloud/WrapperReport.txt index a60217d38..2008cab5b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wscloud/WrapperReport.txt +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wscloud/WrapperReport.txt @@ -5,13 +5,13 @@ Generated Axis2 ADB stub class wrapper package report: Wrapped package: org.hpccsystems.ws.client.gen.axis2.wscloud.latest Wrapped service version: 1.01 Wrapped Classes: - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException org.hpccsystems.ws.client.gen.axis2.wscloud.latest.ArrayOfEspException - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspException org.hpccsystems.ws.client.gen.axis2.wscloud.latest.EspSoapFault + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsRequest org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetPODsResponse - org.hpccsystems.ws.client.gen.axis2.wscloud.latest.Exceptions + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesRequest + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.GetServicesResponse + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingRequest + org.hpccsystems.ws.client.gen.axis2.wscloud.latest.WsCloudPingResponse diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/BrowseResourcesResponseWrapper.java b/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/BrowseResourcesResponseWrapper.java index a1852ac05..a849cf063 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/BrowseResourcesResponseWrapper.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/BrowseResourcesResponseWrapper.java @@ -19,11 +19,11 @@ /** * Generated Axis2 ADB stub class wrapper * Class name: BrowseResourcesResponseWrapper - * Wraps class: org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse + * Wraps class: + * org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse * Output package : org.hpccsystems.ws.client.wrappers.gen.wssmc */ -public class BrowseResourcesResponseWrapper -{ +public class BrowseResourcesResponseWrapper { protected ArrayOfEspExceptionWrapper local_exceptions; protected String local_portalURL; protected String local_netAddress; @@ -31,14 +31,16 @@ public class BrowseResourcesResponseWrapper protected boolean local_useResource; protected ArrayOfHPCCResourceRepositoryWrapper local_hPCCResourceRepositories; - public BrowseResourcesResponseWrapper() {} + public BrowseResourcesResponseWrapper() { + } - public BrowseResourcesResponseWrapper( org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse browseresourcesresponse) - { - copy( browseresourcesresponse ); + public BrowseResourcesResponseWrapper( + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse browseresourcesresponse) { + copy(browseresourcesresponse); } - public BrowseResourcesResponseWrapper( ArrayOfEspExceptionWrapper _exceptions, String _portalURL, String _netAddress, int _oS, boolean _useResource, ArrayOfHPCCResourceRepositoryWrapper _hPCCResourceRepositories ) - { + + public BrowseResourcesResponseWrapper(ArrayOfEspExceptionWrapper _exceptions, String _portalURL, String _netAddress, + int _oS, boolean _useResource, ArrayOfHPCCResourceRepositoryWrapper _hPCCResourceRepositories) { this.local_exceptions = _exceptions; this.local_portalURL = _portalURL; this.local_netAddress = _netAddress; @@ -48,88 +50,88 @@ public BrowseResourcesResponseWrapper( ArrayOfEspExceptionWrapper _exceptions, S } - private void copy( org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse raw ) - { + private void copy(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse raw) { if (raw == null) return; if (raw.getExceptions() != null) - this.local_exceptions = new ArrayOfEspExceptionWrapper( raw.getExceptions()); + this.local_exceptions = new ArrayOfEspExceptionWrapper(raw.getExceptions()); this.local_portalURL = raw.getPortalURL(); - this.local_netAddress = raw.getNetAddress(); + // this.local_netAddress = raw.getNetAddress(); this.local_oS = raw.getOS(); this.local_useResource = raw.getUseResource(); if (raw.getHPCCResourceRepositories() != null) - this.local_hPCCResourceRepositories = new ArrayOfHPCCResourceRepositoryWrapper( raw.getHPCCResourceRepositories()); + this.local_hPCCResourceRepositories = new ArrayOfHPCCResourceRepositoryWrapper( + raw.getHPCCResourceRepositories()); } @Override - public String toString() - { - return "BrowseResourcesResponseWrapper [" + "exceptions = " + local_exceptions + ", " + "portalURL = " + local_portalURL + ", " + "netAddress = " + local_netAddress + ", " + "oS = " + local_oS + ", " + "useResource = " + local_useResource + ", " + "hPCCResourceRepositories = " + local_hPCCResourceRepositories + "]"; + public String toString() { + return "BrowseResourcesResponseWrapper [" + "exceptions = " + local_exceptions + ", " + "portalURL = " + + local_portalURL + ", " + "netAddress = " + local_netAddress + ", " + "oS = " + + local_oS + ", " + "useResource = " + local_useResource + ", " + "hPCCResourceRepositories = " + + local_hPCCResourceRepositories + "]"; } - public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse getRaw() - { + + public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse getRaw() { org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse raw = new org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse(); if (local_exceptions != null) - raw.setExceptions( local_exceptions.getRaw()); - raw.setPortalURL( local_portalURL); - raw.setNetAddress( local_netAddress); - raw.setOS( local_oS); - raw.setUseResource( local_useResource); + raw.setExceptions(local_exceptions.getRaw()); + raw.setPortalURL(local_portalURL); + // raw.setNetAddress( local_netAddress); + raw.setOS(local_oS); + raw.setUseResource(local_useResource); if (local_hPCCResourceRepositories != null) - raw.setHPCCResourceRepositories( local_hPCCResourceRepositories.getRaw()); + raw.setHPCCResourceRepositories(local_hPCCResourceRepositories.getRaw()); return raw; } - - public void setExceptions( ArrayOfEspExceptionWrapper _exceptions ) - { + public void setExceptions(ArrayOfEspExceptionWrapper _exceptions) { this.local_exceptions = _exceptions; } - public ArrayOfEspExceptionWrapper getExceptions( ) - { + + public ArrayOfEspExceptionWrapper getExceptions() { return this.local_exceptions; } - public void setPortalURL( String _portalURL ) - { + + public void setPortalURL(String _portalURL) { this.local_portalURL = _portalURL; } - public String getPortalURL( ) - { + + public String getPortalURL() { return this.local_portalURL; } - public void setNetAddress( String _netAddress ) - { + + public void setNetAddress(String _netAddress) { this.local_netAddress = _netAddress; } - public String getNetAddress( ) - { + + public String getNetAddress() { return this.local_netAddress; } - public void setOS( int _oS ) - { + + public void setOS(int _oS) { this.local_oS = _oS; } - public int getOS( ) - { + + public int getOS() { return this.local_oS; } - public void setUseResource( boolean _useResource ) - { + + public void setUseResource(boolean _useResource) { this.local_useResource = _useResource; } - public boolean getUseResource( ) - { + + public boolean getUseResource() { return this.local_useResource; } - public void setHPCCResourceRepositories( ArrayOfHPCCResourceRepositoryWrapper _hPCCResourceRepositories ) - { + + public void setHPCCResourceRepositories(ArrayOfHPCCResourceRepositoryWrapper _hPCCResourceRepositories) { this.local_hPCCResourceRepositories = _hPCCResourceRepositories; } - public ArrayOfHPCCResourceRepositoryWrapper getHPCCResourceRepositories( ) - { + + public ArrayOfHPCCResourceRepositoryWrapper getHPCCResourceRepositories() { return this.local_hPCCResourceRepositories; } } \ No newline at end of file diff --git a/wsclient/src/main/resources/WSDLs/WsCloud-101.wsdl b/wsclient/src/main/resources/WSDLs/WsCloud-101.wsdl index 7a3f49c97..7bf56cef0 100644 --- a/wsclient/src/main/resources/WSDLs/WsCloud-101.wsdl +++ b/wsclient/src/main/resources/WSDLs/WsCloud-101.wsdl @@ -1,173 +1,413 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/WsCloud.wsdl b/wsclient/src/main/resources/WSDLs/WsCloud.wsdl index 12adc6c19..7bf56cef0 100644 --- a/wsclient/src/main/resources/WSDLs/WsCloud.wsdl +++ b/wsclient/src/main/resources/WSDLs/WsCloud.wsdl @@ -1,173 +1,413 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/WsSMC-127.wsdl b/wsclient/src/main/resources/WSDLs/WsSMC-127.wsdl new file mode 100644 index 000000000..2c35806c8 --- /dev/null +++ b/wsclient/src/main/resources/WSDLs/WsSMC-127.wsdl @@ -0,0 +1,3293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/WsSMC.wsdl b/wsclient/src/main/resources/WSDLs/WsSMC.wsdl index b2ca60409..2c35806c8 100644 --- a/wsclient/src/main/resources/WSDLs/WsSMC.wsdl +++ b/wsclient/src/main/resources/WSDLs/WsSMC.wsdl @@ -1,1877 +1,3293 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/WsTopology-132.wsdl b/wsclient/src/main/resources/WSDLs/WsTopology-132.wsdl new file mode 100644 index 000000000..63c21aca4 --- /dev/null +++ b/wsclient/src/main/resources/WSDLs/WsTopology-132.wsdl @@ -0,0 +1,3962 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/WsTopology.wsdl b/wsclient/src/main/resources/WSDLs/WsTopology.wsdl index 17420acb7..63c21aca4 100644 --- a/wsclient/src/main/resources/WSDLs/WsTopology.wsdl +++ b/wsclient/src/main/resources/WSDLs/WsTopology.wsdl @@ -1,2470 +1,3962 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 113ac345bc9ff712178dd758910231f1726fe8f7 Mon Sep 17 00:00:00 2001 From: Rodrigo Pastrana Date: Thu, 14 Mar 2024 17:06:59 -0400 Subject: [PATCH 3/4] HPCC4J-583 Update filespray and dfuxref clients to 9.6.x - Updates wsworkunits, includes manual wsdl changes Signed-off-by: Rodrigo Pastrana --- .../wsworkunits/latest/Activities_type0.java | 918 +- .../wsworkunits/latest/Activities_type1.java | 924 +- .../wsworkunits/latest/Aliases_type0.java | 916 +- .../latest/AllowedClusters_type0.java | 910 +- .../wsworkunits/latest/ApplicationValue.java | 1072 +- .../latest/ArchiveModules_type0.java | 924 +- .../latest/ArchiveModules_type1.java | 924 +- .../latest/ArrayOfApplicationValue.java | 926 +- .../latest/ArrayOfClusterQueryState.java | 930 +- .../wsworkunits/latest/ArrayOfDebugValue.java | 914 +- .../latest/ArrayOfECLException.java | 920 +- .../wsworkunits/latest/ArrayOfECLGraph.java | 910 +- .../wsworkunits/latest/ArrayOfECLGraphEx.java | 914 +- .../latest/ArrayOfECLHelpFile.java | 918 +- .../wsworkunits/latest/ArrayOfECLJob.java | 898 +- .../wsworkunits/latest/ArrayOfECLResult.java | 912 +- .../latest/ArrayOfECLSchemaItem.java | 922 +- .../latest/ArrayOfECLSourceFile.java | 922 +- .../wsworkunits/latest/ArrayOfECLTimer.java | 910 +- .../latest/ArrayOfECLTimingData.java | 922 +- .../latest/ArrayOfECLWUProcess.java | 460 + .../latest/ArrayOfECLWorkflow.java | 918 +- .../latest/ArrayOfECLWorkunit.java | 918 +- .../latest/ArrayOfECLWorkunitLW.java | 922 +- .../latest/ArrayOfEndpointQueryStats.java | 930 +- .../latest/ArrayOfEspException.java | 1064 +- .../latest/ArrayOfLogicalFileUpload.java | 930 +- .../wsworkunits/latest/ArrayOfNamedValue.java | 914 +- .../wsworkunits/latest/ArrayOfQuerySet.java | 910 +- .../latest/ArrayOfQuerySetAlias.java | 922 +- .../latest/ArrayOfQuerySetQuery.java | 922 +- .../wsworkunits/latest/ArrayOfQueryStats.java | 914 +- .../latest/ArrayOfQueryStatsRecord.java | 926 +- .../latest/ArrayOfQuerySummaryStats.java | 930 +- .../latest/ArrayOfQueryUsingFile.java | 924 +- .../latest/ArrayOfScheduledWU.java | 918 +- .../wsworkunits/latest/ArrayOfServerInfo.java | 914 +- .../latest/ArrayOfTargetQueriesUsingFile.java | 934 +- .../latest/ArrayOfThorLogInfo.java | 918 +- .../wsworkunits/latest/ArrayOfThorQueue.java | 912 +- .../latest/ArrayOfWUActionResult.java | 924 +- .../ArrayOfWUEclDefinitionActionResult.java | 936 +- .../latest/ArrayOfWUEclPluginsInFolder.java | 934 +- .../latest/ArrayOfWULogicalFileCopyInfo.java | 934 +- .../latest/ArrayOfWUQuerySetDetail.java | 926 +- .../latest/ArrayOfWUStatisticItem.java | 924 +- .../wsworkunits/latest/ClusterEndpoint.java | 1078 +- .../latest/ClusterFiles_type0.java | 942 +- .../latest/ClusterFiles_type1.java | 942 +- .../wsworkunits/latest/ClusterQueryState.java | 1212 +- .../latest/CopiedQueries_type0.java | 904 +- .../axis2/wsworkunits/latest/DebugValue.java | 928 +- .../latest/Dependencies_type0.java | 920 +- .../latest/Dependencies_type1.java | 922 +- .../latest/DeploymentFeatures.java | 802 +- .../wsworkunits/latest/ECLException.java | 2026 +- .../axis2/wsworkunits/latest/ECLGraph.java | 1888 +- .../axis2/wsworkunits/latest/ECLGraphEx.java | 1752 +- .../axis2/wsworkunits/latest/ECLHelpFile.java | 1895 +- .../gen/axis2/wsworkunits/latest/ECLJob.java | 2016 +- .../axis2/wsworkunits/latest/ECLQuery.java | 1474 +- .../axis2/wsworkunits/latest/ECLResult.java | 2000 +- .../wsworkunits/latest/ECLSchemaItem.java | 1206 +- .../wsworkunits/latest/ECLSourceFile.java | 1452 +- .../axis2/wsworkunits/latest/ECLTimer.java | 1614 +- .../wsworkunits/latest/ECLTimingData.java | 1476 +- .../wsworkunits/latest/ECLWUActions.java | 910 +- .../wsworkunits/latest/ECLWUProcess.java | 874 + .../axis2/wsworkunits/latest/ECLWorkflow.java | 1346 +- .../axis2/wsworkunits/latest/ECLWorkunit.java | 10692 ++--- .../wsworkunits/latest/ECLWorkunitLW.java | 2970 +- .../latest/EclDefinitionActions.java | 834 +- .../latest/EndpointQueryStats.java | 1046 +- .../wsworkunits/latest/Endpoints_type0.java | 918 +- .../latest/ErrorMessageFormat.java | 830 +- .../wsworkunits/latest/EspException.java | 1200 +- .../wsworkunits/latest/EspSoapFault.java | 78 +- .../wsworkunits/latest/EspStringArray.java | 904 +- .../axis2/wsworkunits/latest/Exceptions.java | 634 +- .../latest/ExistingQueries_type0.java | 904 +- .../latest/ExistingQueries_type1.java | 904 +- .../wsworkunits/latest/ExtensionMapper.java | 2447 +- .../latest/ExtraProperties_type0.java | 920 +- .../wsworkunits/latest/FileErrors_type0.java | 914 +- .../wsworkunits/latest/FileErrors_type1.java | 914 +- .../wsworkunits/latest/FileErrors_type2.java | 914 +- .../wsworkunits/latest/FileErrors_type3.java | 914 +- .../wsworkunits/latest/FileErrors_type4.java | 914 +- .../wsworkunits/latest/FileUsedByQuery.java | 1076 +- .../axis2/wsworkunits/latest/Files_type0.java | 904 +- .../axis2/wsworkunits/latest/Files_type1.java | 904 +- .../axis2/wsworkunits/latest/Files_type2.java | 906 +- .../axis2/wsworkunits/latest/Files_type3.java | 906 +- .../wsworkunits/latest/GVCAjaxGraph.java | 1198 +- .../latest/GVCAjaxGraphResponse.java | 1344 +- .../latest/GraphNameAndTypes_type0.java | 926 +- .../axis2/wsworkunits/latest/Ids_type0.java | 896 +- .../latest/ImportedQueries_type0.java | 904 +- .../wsworkunits/latest/LogAccessFilter.java | 993 + .../latest/LogAccessLogFormat.java | 834 +- .../wsworkunits/latest/LogEventClass.java | 435 + .../latest/LogSelectColumnMode.java | 844 +- .../wsworkunits/latest/LogicalFileError.java | 936 +- .../wsworkunits/latest/LogicalFileUpload.java | 1210 +- .../wsworkunits/latest/Measures_type0.java | 904 +- .../latest/MissingWuids_type0.java | 904 +- .../axis2/wsworkunits/latest/NameAndType.java | 928 +- .../axis2/wsworkunits/latest/NamedValue.java | 928 +- .../axis2/wsworkunits/latest/Notes_type0.java | 904 +- .../gen/axis2/wsworkunits/latest/Ping.java | 620 +- .../wsworkunits/latest/Plugins_type0.java | 896 +- .../wsworkunits/latest/Properties_type0.java | 906 +- .../wsworkunits/latest/Properties_type1.java | 906 +- .../wsworkunits/latest/Properties_type2.java | 922 +- .../wsworkunits/latest/Properties_type3.java | 924 +- .../latest/PropertyFilters_type0.java | 924 +- .../wsworkunits/latest/Queries_type0.java | 908 +- .../wsworkunits/latest/Queries_type1.java | 916 +- .../wsworkunits/latest/QueryFilesUsed.java | 1006 +- .../axis2/wsworkunits/latest/QuerySet.java | 792 +- .../wsworkunits/latest/QuerySetAlias.java | 928 +- .../latest/QuerySetAliasActionItem.java | 800 +- .../latest/QuerySetAliasActionResult.java | 1212 +- .../latest/QuerySetAliasActionTypes.java | 816 +- .../wsworkunits/latest/QuerySetQuery.java | 2956 +- .../latest/QuerySetQueryActionItem.java | 1190 +- .../latest/QuerySetQueryActionResult.java | 1486 +- .../latest/QuerySetQueryActionTypes.java | 898 +- .../latest/QuerySetQueryClientState.java | 800 +- .../axis2/wsworkunits/latest/QueryStats.java | 1022 +- .../wsworkunits/latest/QueryStatsRecord.java | 1490 +- .../wsworkunits/latest/QuerySummaryStats.java | 2624 +- .../wsworkunits/latest/QuerySuperFile.java | 1008 +- .../wsworkunits/latest/QueryUsingFile.java | 936 +- .../latest/QuerysetImportActivation.java | 826 +- .../latest/ResourceURLs_type0.java | 904 +- .../wsworkunits/latest/ResubmittedWU.java | 928 +- .../wsworkunits/latest/ResultViews_type0.java | 904 +- .../wsworkunits/latest/Results_type0.java | 916 +- .../wsworkunits/latest/Results_type1.java | 916 +- .../wsworkunits/latest/Results_type2.java | 914 +- .../axis2/wsworkunits/latest/ScheduledWU.java | 1758 +- .../wsworkunits/latest/ScopeTypes_type0.java | 908 +- .../wsworkunits/latest/ScopeTypes_type1.java | 908 +- .../wsworkunits/latest/ScopeTypes_type2.java | 908 +- .../wsworkunits/latest/Scopes_type0.java | 896 +- .../wsworkunits/latest/Scopes_type1.java | 908 +- .../axis2/wsworkunits/latest/ServerInfo.java | 932 +- .../wsworkunits/latest/SortDirection.java | 404 + .../gen/axis2/wsworkunits/latest/String.java | 722 +- .../wsworkunits/latest/SubFiles_type0.java | 904 +- .../wsworkunits/latest/SuperFiles_type0.java | 918 +- .../wsworkunits/latest/SuperFiles_type1.java | 918 +- .../wsworkunits/latest/SuperFiles_type2.java | 918 +- .../wsworkunits/latest/SuperFiles_type3.java | 918 +- .../latest/TargetQueriesUsingFile.java | 1042 +- .../axis2/wsworkunits/latest/ThorLogInfo.java | 1202 +- .../axis2/wsworkunits/latest/ThorQueue.java | 1744 +- .../axis2/wsworkunits/latest/TimeRange.java | 466 + .../gen/axis2/wsworkunits/latest/WUAbort.java | 899 +- .../wsworkunits/latest/WUAbortResponse.java | 876 +- .../axis2/wsworkunits/latest/WUAction.java | 3059 +- .../wsworkunits/latest/WUActionResponse.java | 876 +- .../wsworkunits/latest/WUActionResult.java | 1072 +- .../latest/WUAddLocalFileToWorkunit.java | 1480 +- .../WUAddLocalFileToWorkunitResponse.java | 1176 +- .../wsworkunits/latest/WUAnalyseHotspot.java | 1758 +- .../latest/WUAnalyseHotspotResponse.java | 1256 +- .../wsworkunits/latest/WUArchiveFile.java | 1200 +- .../wsworkunits/latest/WUArchiveModule.java | 1966 +- .../axis2/wsworkunits/latest/WUCDebug.java | 922 +- .../wsworkunits/latest/WUCheckFeatures.java | 716 +- .../latest/WUCheckFeaturesResponse.java | 1649 +- .../latest/WUClusterJobQueueLOG.java | 1068 +- .../latest/WUClusterJobQueueLOGResponse.java | 892 +- .../latest/WUClusterJobQueueXLS.java | 1204 +- .../latest/WUClusterJobQueueXLSResponse.java | 892 +- .../latest/WUClusterJobSummaryXLS.java | 1482 +- .../WUClusterJobSummaryXLSResponse.java | 892 +- .../wsworkunits/latest/WUClusterJobXLS.java | 1480 +- .../latest/WUClusterJobXLSResponse.java | 892 +- .../wsworkunits/latest/WUCompileECL.java | 1892 +- .../latest/WUCompileECLResponse.java | 1118 +- .../WUCopyLogicalClusterFileSections.java | 1234 +- .../latest/WUCopyLogicalFiles.java | 1068 +- .../latest/WUCopyLogicalFilesResponse.java | 1014 +- .../wsworkunits/latest/WUCopyQuerySet.java | 3599 +- .../latest/WUCopyQuerySetResponse.java | 1370 +- .../axis2/wsworkunits/latest/WUCreate.java | 622 +- .../wsworkunits/latest/WUCreateAndUpdate.java | 3898 +- .../wsworkunits/latest/WUCreateResponse.java | 870 +- .../wsworkunits/latest/WUCreateZAPInfo.java | 2770 +- .../latest/WUCreateZAPInfoResponse.java | 1028 +- .../wsworkunits/latest/WUDebugResponse.java | 902 +- .../axis2/wsworkunits/latest/WUDelete.java | 899 +- .../wsworkunits/latest/WUDeleteResponse.java | 876 +- .../wsworkunits/latest/WUDeployWorkunit.java | 2124 +- .../latest/WUDeployWorkunitResponse.java | 872 +- .../axis2/wsworkunits/latest/WUDetails.java | 1464 +- .../latest/WUDetailsActivityInfo.java | 1214 +- .../latest/WUDetailsAttrValueType.java | 834 +- .../wsworkunits/latest/WUDetailsMeta.java | 622 +- .../latest/WUDetailsMetaProperty.java | 976 +- .../latest/WUDetailsMetaResponse.java | 1184 +- .../wsworkunits/latest/WUDetailsResponse.java | 1140 +- .../wsworkunits/latest/WUECLAttribute.java | 1488 +- .../latest/WUEclDefinitionAction.java | 4359 +- .../latest/WUEclDefinitionActionResponse.java | 1160 +- .../latest/WUEclDefinitionActionResult.java | 1344 +- .../latest/WUEclPluginsInFolder.java | 904 +- .../latest/WUExceptionSeverity.java | 840 +- .../axis2/wsworkunits/latest/WUExport.java | 1466 +- .../wsworkunits/latest/WUExportResponse.java | 890 +- .../wsworkunits/latest/WUExtraProperties.java | 904 +- .../gen/axis2/wsworkunits/latest/WUFile.java | 3413 +- .../wsworkunits/latest/WUFullResult.java | 1038 +- .../latest/WUFullResultResponse.java | 1040 +- .../wsworkunits/latest/WUGVCGraphInfo.java | 1342 +- .../latest/WUGVCGraphInfoResponse.java | 1588 +- .../wsworkunits/latest/WUGetArchiveFile.java | 1202 +- .../latest/WUGetArchiveFileResponse.java | 1040 +- .../latest/WUGetDependancyTrees.java | 1342 +- .../latest/WUGetDependancyTreesResponse.java | 998 +- .../axis2/wsworkunits/latest/WUGetGraph.java | 1058 +- .../latest/WUGetGraphNameAndTypes.java | 932 +- .../WUGetGraphNameAndTypesResponse.java | 880 +- .../latest/WUGetGraphResponse.java | 870 +- .../latest/WUGetNumFileToCopy.java | 1622 +- .../latest/WUGetNumFileToCopyResponse.java | 1148 +- .../wsworkunits/latest/WUGetPlugins.java | 622 +- .../latest/WUGetPluginsResponse.java | 876 +- .../axis2/wsworkunits/latest/WUGetStats.java | 2570 +- .../latest/WUGetStatsResponse.java | 1010 +- .../wsworkunits/latest/WUGetThorJobList.java | 1207 +- .../latest/WUGetThorJobListResponse.java | 1120 +- .../wsworkunits/latest/WUGetThorJobQueue.java | 1211 +- .../latest/WUGetThorJobQueueResponse.java | 1288 +- .../wsworkunits/latest/WUGetZAPInfo.java | 786 +- .../latest/WUGetZAPInfoResponse.java | 1856 +- .../axis2/wsworkunits/latest/WUGraphInfo.java | 1196 +- .../latest/WUGraphInfoResponse.java | 1450 +- .../wsworkunits/latest/WUGraphTiming.java | 786 +- .../latest/WUGraphTimingResponse.java | 872 +- .../gen/axis2/wsworkunits/latest/WUInfo.java | 3854 +- .../wsworkunits/latest/WUInfoDetails.java | 3856 +- .../wsworkunits/latest/WUInfoResponse.java | 1527 +- .../axis2/wsworkunits/latest/WUJobList.java | 1614 +- .../wsworkunits/latest/WUJobListResponse.java | 1140 +- .../latest/WULightWeightQuery.java | 2820 +- .../latest/WULightWeightQueryResponse.java | 1152 +- .../latest/WUListArchiveFiles.java | 794 +- .../latest/WUListArchiveFilesResponse.java | 1116 +- .../latest/WUListLocalFileRequired.java | 796 +- .../WUListLocalFileRequiredResponse.java | 880 +- .../wsworkunits/latest/WUListQueries.java | 3950 +- .../latest/WUListQueriesResponse.java | 1158 +- .../latest/WUListQueriesUsingFile.java | 1068 +- .../WUListQueriesUsingFileResponse.java | 1148 +- .../wsworkunits/latest/WULogFileResponse.java | 1706 +- .../latest/WULogicalFileCopyInfo.java | 1314 +- .../WUMultiQuerySetDetailsResponse.java | 1012 +- .../latest/WUMultiQuerysetDetails.java | 1316 +- .../wsworkunits/latest/WUNestedFilter.java | 908 +- .../wsworkunits/latest/WUProcessGraph.java | 930 +- .../latest/WUProcessGraphResponse.java | 904 +- .../latest/WUPropertiesToReturn.java | 1992 +- .../wsworkunits/latest/WUPropertyFilter.java | 1208 +- .../wsworkunits/latest/WUPropertyOptions.java | 1514 +- .../axis2/wsworkunits/latest/WUProtect.java | 894 +- .../wsworkunits/latest/WUProtectFilter.java | 828 +- .../wsworkunits/latest/WUProtectResponse.java | 876 +- .../wsworkunits/latest/WUPublishWorkunit.java | 4975 +-- .../latest/WUPublishWorkunitResponse.java | 2350 +- .../axis2/wsworkunits/latest/WUPushEvent.java | 926 +- .../latest/WUPushEventResponse.java | 766 +- .../gen/axis2/wsworkunits/latest/WUQuery.java | 3891 +- .../latest/WUQueryActivationMode.java | 846 +- .../wsworkunits/latest/WUQueryConfig.java | 1890 +- .../latest/WUQueryConfigResponse.java | 1010 +- .../latest/WUQueryConfigResult.java | 800 +- .../wsworkunits/latest/WUQueryDetails.java | 1794 +- .../latest/WUQueryDetailsLightWeight.java | 1796 +- .../latest/WUQueryDetailsResponse.java | 3840 +- .../wsworkunits/latest/WUQueryFiles.java | 922 +- .../latest/WUQueryFilesResponse.java | 1078 +- .../latest/WUQueryFilterSuspendedType.java | 876 +- .../wsworkunits/latest/WUQueryGetGraph.java | 1202 +- .../latest/WUQueryGetGraphResponse.java | 872 +- .../latest/WUQueryGetSummaryStats.java | 1346 +- .../WUQueryGetSummaryStatsResponse.java | 986 +- .../wsworkunits/latest/WUQueryResponse.java | 4583 +- .../latest/WUQuerySetAliasActionResponse.java | 1116 +- .../latest/WUQuerySetCopyQueryResponse.java | 1284 +- .../wsworkunits/latest/WUQuerySetDetail.java | 1012 +- .../latest/WUQuerySetDetailsResponse.java | 1614 +- .../latest/WUQuerySetFilterType.java | 852 +- .../latest/WUQuerySetQueryActionResponse.java | 1116 +- .../latest/WUQuerysetAliasAction.java | 1008 +- .../latest/WUQuerysetCopyQuery.java | 4693 +- .../wsworkunits/latest/WUQuerysetDetails.java | 1314 +- .../wsworkunits/latest/WUQuerysetExport.java | 1214 +- .../latest/WUQuerysetExportResponse.java | 1164 +- .../wsworkunits/latest/WUQuerysetImport.java | 3825 +- .../latest/WUQuerysetImportResponse.java | 1900 +- .../latest/WUQuerysetQueryAction.java | 1008 +- .../axis2/wsworkunits/latest/WUQuerysets.java | 788 +- .../latest/WUQuerysetsResponse.java | 870 +- .../wsworkunits/latest/WURecreateQuery.java | 4635 +- .../latest/WURecreateQueryResponse.java | 2792 +- .../wsworkunits/latest/WUResponseNote.java | 1352 +- .../latest/WUResponseProperty.java | 1480 +- .../wsworkunits/latest/WUResponseScope.java | 1414 +- .../axis2/wsworkunits/latest/WUResubmit.java | 1175 +- .../latest/WUResubmitResponse.java | 868 +- .../axis2/wsworkunits/latest/WUResult.java | 2000 +- .../axis2/wsworkunits/latest/WUResultBin.java | 1850 +- .../latest/WUResultBinResponse.java | 1988 +- .../wsworkunits/latest/WUResultResponse.java | 2136 +- .../wsworkunits/latest/WUResultSummary.java | 932 +- .../latest/WUResultSummaryResponse.java | 1282 +- .../wsworkunits/latest/WUResultView.java | 1196 +- .../latest/WUResultViewResponse.java | 1176 +- .../gen/axis2/wsworkunits/latest/WURun.java | 2180 +- .../wsworkunits/latest/WURunResponse.java | 1166 +- .../axis2/wsworkunits/latest/WUSchedule.java | 1470 +- .../latest/WUScheduleResponse.java | 766 +- .../wsworkunits/latest/WUScopeFilter.java | 1216 +- .../wsworkunits/latest/WUScopeOptions.java | 1234 +- .../wsworkunits/latest/WUShowScheduled.java | 1762 +- .../latest/WUShowScheduledResponse.java | 1671 +- .../wsworkunits/latest/WUStatisticItem.java | 2438 +- .../axis2/wsworkunits/latest/WUSubmit.java | 1895 +- .../wsworkunits/latest/WUSubmitResponse.java | 766 +- .../wsworkunits/latest/WUSyntaxCheckECL.java | 1864 +- .../latest/WUSyntaxCheckResponse.java | 1008 +- .../axis2/wsworkunits/latest/WUUpdate.java | 3890 +- .../latest/WUUpdateQueryEntry.java | 1066 +- .../latest/WUUpdateQueryEntryResponse.java | 768 +- .../wsworkunits/latest/WUUpdateResponse.java | 870 +- .../wsworkunits/latest/WUWaitCompiled.java | 1072 +- .../wsworkunits/latest/WUWaitComplete.java | 1072 +- .../wsworkunits/latest/WUWaitResponse.java | 904 +- .../axis2/wsworkunits/latest/WUs_type0.java | 902 +- .../latest/WsEclAddresses_type0.java | 904 +- .../axis2/wsworkunits/latest/WsWorkunits.java | 1942 +- .../latest/WsWorkunitsPingResponse.java | 632 +- .../wsworkunits/latest/WsWorkunitsStub.java | 36254 ++++++++-------- .../main/resources/WSDLs/WsWorkunits-199.wsdl | 15866 +++++++ .../src/main/resources/WSDLs/WsWorkunits.wsdl | 25650 ++++++----- 349 files changed, 276683 insertions(+), 249604 deletions(-) create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWUProcess.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWUProcess.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogAccessFilter.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogEventClass.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SortDirection.java create mode 100644 wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/TimeRange.java create mode 100644 wsclient/src/main/resources/WSDLs/WsWorkunits-199.wsdl diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Activities_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Activities_type0.java index b2b1b60c4..8a90d2264 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Activities_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Activities_type0.java @@ -1,459 +1,459 @@ -/** - * Activities_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Activities_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Activities_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Activities_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Activity This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] localActivity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivityTracker = false; - - public boolean isActivitySpecified() { - return localActivityTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] getActivity() { - return localActivity; - } - - /** validate the array for Activity */ - protected void validateActivity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) {} - - /** - * Auto generated setter method - * - * @param param Activity - */ - public void setActivity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) { - - validateActivity(param); - - localActivityTracker = param != null; - - this.localActivity = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope - */ - public void addActivity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope param) { - if (localActivity == null) { - localActivity = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] {}; - } - - // update the setting tracker - localActivityTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localActivity); - list.add(param); - this.localActivity = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Activities_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Activities_type0", - xmlWriter); - } - } - if (localActivityTracker) { - if (localActivity != null) { - for (int i = 0; i < localActivity.length; i++) { - if (localActivity[i] != null) { - localActivity[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Activity cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Activities_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Activities_type0 object = new Activities_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Activities_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Activities_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setActivity( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Activities_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Activities_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Activities_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Activities_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Activity This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] localActivity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivityTracker = false; + + public boolean isActivitySpecified() { + return localActivityTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] getActivity() { + return localActivity; + } + + /** validate the array for Activity */ + protected void validateActivity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) {} + + /** + * Auto generated setter method + * + * @param param Activity + */ + public void setActivity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) { + + validateActivity(param); + + localActivityTracker = param != null; + + this.localActivity = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope + */ + public void addActivity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope param) { + if (localActivity == null) { + localActivity = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] {}; + } + + // update the setting tracker + localActivityTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localActivity); + list.add(param); + this.localActivity = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Activities_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Activities_type0", + xmlWriter); + } + } + if (localActivityTracker) { + if (localActivity != null) { + for (int i = 0; i < localActivity.length; i++) { + if (localActivity[i] != null) { + localActivity[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Activity cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Activities_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Activities_type0 object = new Activities_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Activities_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Activities_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setActivity( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Activities_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Activities_type1.java index 7ecbfa6f7..242c7d6aa 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Activities_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Activities_type1.java @@ -1,462 +1,462 @@ -/** - * Activities_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Activities_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Activities_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Activities_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Activity This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] - localActivity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivityTracker = false; - - public boolean isActivitySpecified() { - return localActivityTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] - getActivity() { - return localActivity; - } - - /** validate the array for Activity */ - protected void validateActivity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] param) {} - - /** - * Auto generated setter method - * - * @param param Activity - */ - public void setActivity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] param) { - - validateActivity(param); - - localActivityTracker = param != null; - - this.localActivity = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo - */ - public void addActivity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo param) { - if (localActivity == null) { - localActivity = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] {}; - } - - // update the setting tracker - localActivityTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localActivity); - list.add(param); - this.localActivity = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Activities_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Activities_type1", - xmlWriter); - } - } - if (localActivityTracker) { - if (localActivity != null) { - for (int i = 0; i < localActivity.length; i++) { - if (localActivity[i] != null) { - localActivity[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Activity cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Activities_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Activities_type1 object = new Activities_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Activities_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Activities_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setActivity( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Activities_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Activities_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Activities_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Activities_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Activity This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] + localActivity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivityTracker = false; + + public boolean isActivitySpecified() { + return localActivityTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] + getActivity() { + return localActivity; + } + + /** validate the array for Activity */ + protected void validateActivity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] param) {} + + /** + * Auto generated setter method + * + * @param param Activity + */ + public void setActivity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] param) { + + validateActivity(param); + + localActivityTracker = param != null; + + this.localActivity = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo + */ + public void addActivity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo param) { + if (localActivity == null) { + localActivity = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[] {}; + } + + // update the setting tracker + localActivityTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localActivity); + list.add(param); + this.localActivity = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Activities_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Activities_type1", + xmlWriter); + } + } + if (localActivityTracker) { + if (localActivity != null) { + for (int i = 0; i < localActivity.length; i++) { + if (localActivity[i] != null) { + localActivity[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Activity cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Activities_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Activities_type1 object = new Activities_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Activities_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Activities_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setActivity( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Aliases_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Aliases_type0.java index d2d8ef636..d27a572db 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Aliases_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Aliases_type0.java @@ -1,458 +1,458 @@ -/** - * Aliases_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Aliases_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Aliases_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Aliases_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Alias This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] - localAlias; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAliasTracker = false; - - public boolean isAliasSpecified() { - return localAliasTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] - getAlias() { - return localAlias; - } - - /** validate the array for Alias */ - protected void validateAlias( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] param) {} - - /** - * Auto generated setter method - * - * @param param Alias - */ - public void setAlias( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] param) { - - validateAlias(param); - - localAliasTracker = param != null; - - this.localAlias = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem - */ - public void addAlias( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem param) { - if (localAlias == null) { - localAlias = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] {}; - } - - // update the setting tracker - localAliasTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localAlias); - list.add(param); - this.localAlias = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Aliases_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Aliases_type0", xmlWriter); - } - } - if (localAliasTracker) { - if (localAlias != null) { - for (int i = 0; i < localAlias.length; i++) { - if (localAlias[i] != null) { - localAlias[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Alias"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Alias cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Aliases_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Aliases_type0 object = new Aliases_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Aliases_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Aliases_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Alias") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Alias") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setAlias( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Aliases_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Aliases_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Aliases_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Aliases_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Alias This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] + localAlias; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAliasTracker = false; + + public boolean isAliasSpecified() { + return localAliasTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] + getAlias() { + return localAlias; + } + + /** validate the array for Alias */ + protected void validateAlias( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] param) {} + + /** + * Auto generated setter method + * + * @param param Alias + */ + public void setAlias( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] param) { + + validateAlias(param); + + localAliasTracker = param != null; + + this.localAlias = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem + */ + public void addAlias( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem param) { + if (localAlias == null) { + localAlias = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[] {}; + } + + // update the setting tracker + localAliasTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localAlias); + list.add(param); + this.localAlias = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Aliases_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Aliases_type0", xmlWriter); + } + } + if (localAliasTracker) { + if (localAlias != null) { + for (int i = 0; i < localAlias.length; i++) { + if (localAlias[i] != null) { + localAlias[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Alias"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Alias cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Aliases_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Aliases_type0 object = new Aliases_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Aliases_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Aliases_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Alias") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Alias") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setAlias( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/AllowedClusters_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/AllowedClusters_type0.java index aaa6be3a8..795a354e8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/AllowedClusters_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/AllowedClusters_type0.java @@ -1,455 +1,455 @@ -/** - * AllowedClusters_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** AllowedClusters_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class AllowedClusters_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = AllowedClusters_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for AllowedCluster This was an Array! */ - protected java.lang.String[] localAllowedCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllowedClusterTracker = false; - - public boolean isAllowedClusterSpecified() { - return localAllowedClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getAllowedCluster() { - return localAllowedCluster; - } - - /** validate the array for AllowedCluster */ - protected void validateAllowedCluster(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param AllowedCluster - */ - public void setAllowedCluster(java.lang.String[] param) { - - validateAllowedCluster(param); - - localAllowedClusterTracker = param != null; - - this.localAllowedCluster = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addAllowedCluster(java.lang.String param) { - if (localAllowedCluster == null) { - localAllowedCluster = new java.lang.String[] {}; - } - - // update the setting tracker - localAllowedClusterTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localAllowedCluster); - list.add(param); - this.localAllowedCluster = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":AllowedClusters_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "AllowedClusters_type0", - xmlWriter); - } - } - if (localAllowedClusterTracker) { - if (localAllowedCluster != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localAllowedCluster.length; i++) { - - if (localAllowedCluster[i] != null) { - - writeStartElement(null, namespace, "AllowedCluster", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAllowedCluster[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("AllowedCluster cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static AllowedClusters_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - AllowedClusters_type0 object = new AllowedClusters_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"AllowedClusters_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (AllowedClusters_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllowedCluster") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllowedCluster") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setAllowedCluster( - (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * AllowedClusters_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** AllowedClusters_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class AllowedClusters_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = AllowedClusters_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for AllowedCluster This was an Array! */ + protected java.lang.String[] localAllowedCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowedClusterTracker = false; + + public boolean isAllowedClusterSpecified() { + return localAllowedClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getAllowedCluster() { + return localAllowedCluster; + } + + /** validate the array for AllowedCluster */ + protected void validateAllowedCluster(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param AllowedCluster + */ + public void setAllowedCluster(java.lang.String[] param) { + + validateAllowedCluster(param); + + localAllowedClusterTracker = param != null; + + this.localAllowedCluster = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addAllowedCluster(java.lang.String param) { + if (localAllowedCluster == null) { + localAllowedCluster = new java.lang.String[] {}; + } + + // update the setting tracker + localAllowedClusterTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localAllowedCluster); + list.add(param); + this.localAllowedCluster = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":AllowedClusters_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "AllowedClusters_type0", + xmlWriter); + } + } + if (localAllowedClusterTracker) { + if (localAllowedCluster != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localAllowedCluster.length; i++) { + + if (localAllowedCluster[i] != null) { + + writeStartElement(null, namespace, "AllowedCluster", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAllowedCluster[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("AllowedCluster cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static AllowedClusters_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + AllowedClusters_type0 object = new AllowedClusters_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"AllowedClusters_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (AllowedClusters_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllowedCluster") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllowedCluster") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setAllowedCluster( + (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ApplicationValue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ApplicationValue.java index 729809a5a..39b3ed766 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ApplicationValue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ApplicationValue.java @@ -1,536 +1,536 @@ -/** - * ApplicationValue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ApplicationValue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ApplicationValue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ApplicationValue - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Application */ - protected java.lang.String localApplication; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationTracker = false; - - public boolean isApplicationSpecified() { - return localApplicationTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getApplication() { - return localApplication; - } - - /** - * Auto generated setter method - * - * @param param Application - */ - public void setApplication(java.lang.String param) { - localApplicationTracker = param != null; - - this.localApplication = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Value */ - protected java.lang.String localValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValueTracker = false; - - public boolean isValueSpecified() { - return localValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getValue() { - return localValue; - } - - /** - * Auto generated setter method - * - * @param param Value - */ - public void setValue(java.lang.String param) { - localValueTracker = param != null; - - this.localValue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ApplicationValue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ApplicationValue", - xmlWriter); - } - } - if (localApplicationTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Application", xmlWriter); - - if (localApplication == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Application cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localApplication); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Value", xmlWriter); - - if (localValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localValue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ApplicationValue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ApplicationValue object = new ApplicationValue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ApplicationValue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ApplicationValue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Application") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Application" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setApplication( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Value" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ApplicationValue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ApplicationValue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ApplicationValue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ApplicationValue + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Application */ + protected java.lang.String localApplication; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationTracker = false; + + public boolean isApplicationSpecified() { + return localApplicationTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getApplication() { + return localApplication; + } + + /** + * Auto generated setter method + * + * @param param Application + */ + public void setApplication(java.lang.String param) { + localApplicationTracker = param != null; + + this.localApplication = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Value */ + protected java.lang.String localValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValueTracker = false; + + public boolean isValueSpecified() { + return localValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getValue() { + return localValue; + } + + /** + * Auto generated setter method + * + * @param param Value + */ + public void setValue(java.lang.String param) { + localValueTracker = param != null; + + this.localValue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ApplicationValue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ApplicationValue", + xmlWriter); + } + } + if (localApplicationTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Application", xmlWriter); + + if (localApplication == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Application cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localApplication); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Value", xmlWriter); + + if (localValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localValue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ApplicationValue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ApplicationValue object = new ApplicationValue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ApplicationValue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ApplicationValue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Application") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Application" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setApplication( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Value" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArchiveModules_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArchiveModules_type0.java index cc03a950c..f04eddca6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArchiveModules_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArchiveModules_type0.java @@ -1,462 +1,462 @@ -/** - * ArchiveModules_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArchiveModules_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArchiveModules_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArchiveModules_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ArchiveModule This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] - localArchiveModule; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localArchiveModuleTracker = false; - - public boolean isArchiveModuleSpecified() { - return localArchiveModuleTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] - getArchiveModule() { - return localArchiveModule; - } - - /** validate the array for ArchiveModule */ - protected void validateArchiveModule( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] param) {} - - /** - * Auto generated setter method - * - * @param param ArchiveModule - */ - public void setArchiveModule( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] param) { - - validateArchiveModule(param); - - localArchiveModuleTracker = param != null; - - this.localArchiveModule = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule - */ - public void addArchiveModule( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule param) { - if (localArchiveModule == null) { - localArchiveModule = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] {}; - } - - // update the setting tracker - localArchiveModuleTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localArchiveModule); - list.add(param); - this.localArchiveModule = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArchiveModules_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArchiveModules_type0", - xmlWriter); - } - } - if (localArchiveModuleTracker) { - if (localArchiveModule != null) { - for (int i = 0; i < localArchiveModule.length; i++) { - if (localArchiveModule[i] != null) { - localArchiveModule[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ArchiveModule cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArchiveModules_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArchiveModules_type0 object = new ArchiveModules_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArchiveModules_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArchiveModules_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setArchiveModule( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArchiveModules_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArchiveModules_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArchiveModules_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArchiveModules_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ArchiveModule This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] + localArchiveModule; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localArchiveModuleTracker = false; + + public boolean isArchiveModuleSpecified() { + return localArchiveModuleTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] + getArchiveModule() { + return localArchiveModule; + } + + /** validate the array for ArchiveModule */ + protected void validateArchiveModule( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] param) {} + + /** + * Auto generated setter method + * + * @param param ArchiveModule + */ + public void setArchiveModule( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] param) { + + validateArchiveModule(param); + + localArchiveModuleTracker = param != null; + + this.localArchiveModule = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule + */ + public void addArchiveModule( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule param) { + if (localArchiveModule == null) { + localArchiveModule = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] {}; + } + + // update the setting tracker + localArchiveModuleTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localArchiveModule); + list.add(param); + this.localArchiveModule = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArchiveModules_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArchiveModules_type0", + xmlWriter); + } + } + if (localArchiveModuleTracker) { + if (localArchiveModule != null) { + for (int i = 0; i < localArchiveModule.length; i++) { + if (localArchiveModule[i] != null) { + localArchiveModule[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ArchiveModule cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArchiveModules_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArchiveModules_type0 object = new ArchiveModules_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArchiveModules_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArchiveModules_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setArchiveModule( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArchiveModules_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArchiveModules_type1.java index 359fc3351..50ecc6efa 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArchiveModules_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArchiveModules_type1.java @@ -1,462 +1,462 @@ -/** - * ArchiveModules_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArchiveModules_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArchiveModules_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArchiveModules_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ArchiveModule This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] - localArchiveModule; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localArchiveModuleTracker = false; - - public boolean isArchiveModuleSpecified() { - return localArchiveModuleTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] - getArchiveModule() { - return localArchiveModule; - } - - /** validate the array for ArchiveModule */ - protected void validateArchiveModule( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] param) {} - - /** - * Auto generated setter method - * - * @param param ArchiveModule - */ - public void setArchiveModule( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] param) { - - validateArchiveModule(param); - - localArchiveModuleTracker = param != null; - - this.localArchiveModule = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule - */ - public void addArchiveModule( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule param) { - if (localArchiveModule == null) { - localArchiveModule = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] {}; - } - - // update the setting tracker - localArchiveModuleTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localArchiveModule); - list.add(param); - this.localArchiveModule = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArchiveModules_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArchiveModules_type1", - xmlWriter); - } - } - if (localArchiveModuleTracker) { - if (localArchiveModule != null) { - for (int i = 0; i < localArchiveModule.length; i++) { - if (localArchiveModule[i] != null) { - localArchiveModule[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ArchiveModule cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArchiveModules_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArchiveModules_type1 object = new ArchiveModules_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArchiveModules_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArchiveModules_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setArchiveModule( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArchiveModules_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArchiveModules_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArchiveModules_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArchiveModules_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ArchiveModule This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] + localArchiveModule; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localArchiveModuleTracker = false; + + public boolean isArchiveModuleSpecified() { + return localArchiveModuleTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] + getArchiveModule() { + return localArchiveModule; + } + + /** validate the array for ArchiveModule */ + protected void validateArchiveModule( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] param) {} + + /** + * Auto generated setter method + * + * @param param ArchiveModule + */ + public void setArchiveModule( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] param) { + + validateArchiveModule(param); + + localArchiveModuleTracker = param != null; + + this.localArchiveModule = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule + */ + public void addArchiveModule( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule param) { + if (localArchiveModule == null) { + localArchiveModule = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[] {}; + } + + // update the setting tracker + localArchiveModuleTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localArchiveModule); + list.add(param); + this.localArchiveModule = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArchiveModules_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArchiveModules_type1", + xmlWriter); + } + } + if (localArchiveModuleTracker) { + if (localArchiveModule != null) { + for (int i = 0; i < localArchiveModule.length; i++) { + if (localArchiveModule[i] != null) { + localArchiveModule[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ArchiveModule cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArchiveModules_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArchiveModules_type1 object = new ArchiveModules_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArchiveModules_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArchiveModules_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModule") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setArchiveModule( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfApplicationValue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfApplicationValue.java index d48707b33..a280be944 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfApplicationValue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfApplicationValue.java @@ -1,463 +1,463 @@ -/** - * ArrayOfApplicationValue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfApplicationValue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfApplicationValue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfApplicationValue - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ApplicationValue This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] - localApplicationValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValueTracker = false; - - public boolean isApplicationValueSpecified() { - return localApplicationValueTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] - getApplicationValue() { - return localApplicationValue; - } - - /** validate the array for ApplicationValue */ - protected void validateApplicationValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] param) {} - - /** - * Auto generated setter method - * - * @param param ApplicationValue - */ - public void setApplicationValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] param) { - - validateApplicationValue(param); - - localApplicationValueTracker = param != null; - - this.localApplicationValue = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue - */ - public void addApplicationValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue param) { - if (localApplicationValue == null) { - localApplicationValue = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] {}; - } - - // update the setting tracker - localApplicationValueTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localApplicationValue); - list.add(param); - this.localApplicationValue = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfApplicationValue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfApplicationValue", - xmlWriter); - } - } - if (localApplicationValueTracker) { - if (localApplicationValue != null) { - for (int i = 0; i < localApplicationValue.length; i++) { - if (localApplicationValue[i] != null) { - localApplicationValue[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValue"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ApplicationValue cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfApplicationValue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfApplicationValue object = new ArrayOfApplicationValue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfApplicationValue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfApplicationValue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValue") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValue") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setApplicationValue( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfApplicationValue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfApplicationValue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfApplicationValue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfApplicationValue + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ApplicationValue This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] + localApplicationValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValueTracker = false; + + public boolean isApplicationValueSpecified() { + return localApplicationValueTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] + getApplicationValue() { + return localApplicationValue; + } + + /** validate the array for ApplicationValue */ + protected void validateApplicationValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] param) {} + + /** + * Auto generated setter method + * + * @param param ApplicationValue + */ + public void setApplicationValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] param) { + + validateApplicationValue(param); + + localApplicationValueTracker = param != null; + + this.localApplicationValue = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue + */ + public void addApplicationValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue param) { + if (localApplicationValue == null) { + localApplicationValue = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[] {}; + } + + // update the setting tracker + localApplicationValueTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localApplicationValue); + list.add(param); + this.localApplicationValue = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfApplicationValue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfApplicationValue", + xmlWriter); + } + } + if (localApplicationValueTracker) { + if (localApplicationValue != null) { + for (int i = 0; i < localApplicationValue.length; i++) { + if (localApplicationValue[i] != null) { + localApplicationValue[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValue"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ApplicationValue cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfApplicationValue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfApplicationValue object = new ArrayOfApplicationValue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfApplicationValue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfApplicationValue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValue") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValue") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setApplicationValue( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfClusterQueryState.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfClusterQueryState.java index 0d1626934..83de8b9a2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfClusterQueryState.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfClusterQueryState.java @@ -1,465 +1,465 @@ -/** - * ArrayOfClusterQueryState.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfClusterQueryState bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfClusterQueryState implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfClusterQueryState - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ClusterQueryState This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] - localClusterQueryState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterQueryStateTracker = false; - - public boolean isClusterQueryStateSpecified() { - return localClusterQueryStateTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] - getClusterQueryState() { - return localClusterQueryState; - } - - /** validate the array for ClusterQueryState */ - protected void validateClusterQueryState( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] param) {} - - /** - * Auto generated setter method - * - * @param param ClusterQueryState - */ - public void setClusterQueryState( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] param) { - - validateClusterQueryState(param); - - localClusterQueryStateTracker = param != null; - - this.localClusterQueryState = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState - */ - public void addClusterQueryState( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState param) { - if (localClusterQueryState == null) { - localClusterQueryState = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] {}; - } - - // update the setting tracker - localClusterQueryStateTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localClusterQueryState); - list.add(param); - this.localClusterQueryState = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfClusterQueryState", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfClusterQueryState", - xmlWriter); - } - } - if (localClusterQueryStateTracker) { - if (localClusterQueryState != null) { - for (int i = 0; i < localClusterQueryState.length; i++) { - if (localClusterQueryState[i] != null) { - localClusterQueryState[i].serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ClusterQueryState"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ClusterQueryState cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfClusterQueryState parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfClusterQueryState object = new ArrayOfClusterQueryState(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfClusterQueryState".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfClusterQueryState) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterQueryState") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ClusterQueryState") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setClusterQueryState( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfClusterQueryState.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfClusterQueryState bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfClusterQueryState implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfClusterQueryState + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ClusterQueryState This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] + localClusterQueryState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterQueryStateTracker = false; + + public boolean isClusterQueryStateSpecified() { + return localClusterQueryStateTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] + getClusterQueryState() { + return localClusterQueryState; + } + + /** validate the array for ClusterQueryState */ + protected void validateClusterQueryState( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] param) {} + + /** + * Auto generated setter method + * + * @param param ClusterQueryState + */ + public void setClusterQueryState( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] param) { + + validateClusterQueryState(param); + + localClusterQueryStateTracker = param != null; + + this.localClusterQueryState = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState + */ + public void addClusterQueryState( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState param) { + if (localClusterQueryState == null) { + localClusterQueryState = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[] {}; + } + + // update the setting tracker + localClusterQueryStateTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localClusterQueryState); + list.add(param); + this.localClusterQueryState = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfClusterQueryState", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfClusterQueryState", + xmlWriter); + } + } + if (localClusterQueryStateTracker) { + if (localClusterQueryState != null) { + for (int i = 0; i < localClusterQueryState.length; i++) { + if (localClusterQueryState[i] != null) { + localClusterQueryState[i].serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ClusterQueryState"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ClusterQueryState cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfClusterQueryState parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfClusterQueryState object = new ArrayOfClusterQueryState(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfClusterQueryState".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfClusterQueryState) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterQueryState") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ClusterQueryState") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setClusterQueryState( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfDebugValue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfDebugValue.java index 5486db957..b0c4611d4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfDebugValue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfDebugValue.java @@ -1,457 +1,457 @@ -/** - * ArrayOfDebugValue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfDebugValue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfDebugValue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfDebugValue - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for DebugValue This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] localDebugValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValueTracker = false; - - public boolean isDebugValueSpecified() { - return localDebugValueTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] getDebugValue() { - return localDebugValue; - } - - /** validate the array for DebugValue */ - protected void validateDebugValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] param) {} - - /** - * Auto generated setter method - * - * @param param DebugValue - */ - public void setDebugValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] param) { - - validateDebugValue(param); - - localDebugValueTracker = param != null; - - this.localDebugValue = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue - */ - public void addDebugValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue param) { - if (localDebugValue == null) { - localDebugValue = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] {}; - } - - // update the setting tracker - localDebugValueTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDebugValue); - list.add(param); - this.localDebugValue = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfDebugValue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfDebugValue", - xmlWriter); - } - } - if (localDebugValueTracker) { - if (localDebugValue != null) { - for (int i = 0; i < localDebugValue.length; i++) { - if (localDebugValue[i] != null) { - localDebugValue[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValue"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("DebugValue cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfDebugValue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfDebugValue object = new ArrayOfDebugValue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfDebugValue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfDebugValue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValue") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValue") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setDebugValue( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfDebugValue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfDebugValue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfDebugValue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfDebugValue + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for DebugValue This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] localDebugValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValueTracker = false; + + public boolean isDebugValueSpecified() { + return localDebugValueTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] getDebugValue() { + return localDebugValue; + } + + /** validate the array for DebugValue */ + protected void validateDebugValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] param) {} + + /** + * Auto generated setter method + * + * @param param DebugValue + */ + public void setDebugValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] param) { + + validateDebugValue(param); + + localDebugValueTracker = param != null; + + this.localDebugValue = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue + */ + public void addDebugValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue param) { + if (localDebugValue == null) { + localDebugValue = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[] {}; + } + + // update the setting tracker + localDebugValueTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDebugValue); + list.add(param); + this.localDebugValue = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfDebugValue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfDebugValue", + xmlWriter); + } + } + if (localDebugValueTracker) { + if (localDebugValue != null) { + for (int i = 0; i < localDebugValue.length; i++) { + if (localDebugValue[i] != null) { + localDebugValue[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValue"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("DebugValue cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfDebugValue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfDebugValue object = new ArrayOfDebugValue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfDebugValue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfDebugValue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValue") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValue") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setDebugValue( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLException.java index 4aa0e01a3..0d3d8c382 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLException.java @@ -1,460 +1,460 @@ -/** - * ArrayOfECLException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLException - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLException This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] localECLException; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLExceptionTracker = false; - - public boolean isECLExceptionSpecified() { - return localECLExceptionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] getECLException() { - return localECLException; - } - - /** validate the array for ECLException */ - protected void validateECLException( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLException - */ - public void setECLException( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] param) { - - validateECLException(param); - - localECLExceptionTracker = param != null; - - this.localECLException = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException - */ - public void addECLException( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException param) { - if (localECLException == null) { - localECLException = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] {}; - } - - // update the setting tracker - localECLExceptionTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLException); - list.add(param); - this.localECLException = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLException", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLException", - xmlWriter); - } - } - if (localECLExceptionTracker) { - if (localECLException != null) { - for (int i = 0; i < localECLException.length; i++) { - if (localECLException[i] != null) { - localECLException[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLException"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLException cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLException object = new ArrayOfECLException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLException) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLException") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLException") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLException( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLException + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLException This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] localECLException; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLExceptionTracker = false; + + public boolean isECLExceptionSpecified() { + return localECLExceptionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] getECLException() { + return localECLException; + } + + /** validate the array for ECLException */ + protected void validateECLException( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLException + */ + public void setECLException( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] param) { + + validateECLException(param); + + localECLExceptionTracker = param != null; + + this.localECLException = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException + */ + public void addECLException( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException param) { + if (localECLException == null) { + localECLException = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[] {}; + } + + // update the setting tracker + localECLExceptionTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLException); + list.add(param); + this.localECLException = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLException", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLException", + xmlWriter); + } + } + if (localECLExceptionTracker) { + if (localECLException != null) { + for (int i = 0; i < localECLException.length; i++) { + if (localECLException[i] != null) { + localECLException[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLException"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLException cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLException object = new ArrayOfECLException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLException) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLException") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLException") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLException( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLGraph.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLGraph.java index 567765659..70d1c6e83 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLGraph.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLGraph.java @@ -1,455 +1,455 @@ -/** - * ArrayOfECLGraph.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLGraph bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLGraph implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLGraph - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLGraph This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] localECLGraph; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLGraphTracker = false; - - public boolean isECLGraphSpecified() { - return localECLGraphTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] getECLGraph() { - return localECLGraph; - } - - /** validate the array for ECLGraph */ - protected void validateECLGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLGraph - */ - public void setECLGraph(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] param) { - - validateECLGraph(param); - - localECLGraphTracker = param != null; - - this.localECLGraph = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph - */ - public void addECLGraph(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph param) { - if (localECLGraph == null) { - localECLGraph = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] {}; - } - - // update the setting tracker - localECLGraphTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLGraph); - list.add(param); - this.localECLGraph = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLGraph", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLGraph", - xmlWriter); - } - } - if (localECLGraphTracker) { - if (localECLGraph != null) { - for (int i = 0; i < localECLGraph.length; i++) { - if (localECLGraph[i] != null) { - localECLGraph[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraph"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLGraph cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLGraph parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLGraph object = new ArrayOfECLGraph(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLGraph".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLGraph) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraph") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraph") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLGraph( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLGraph.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLGraph bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLGraph implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLGraph + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLGraph This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] localECLGraph; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLGraphTracker = false; + + public boolean isECLGraphSpecified() { + return localECLGraphTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] getECLGraph() { + return localECLGraph; + } + + /** validate the array for ECLGraph */ + protected void validateECLGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLGraph + */ + public void setECLGraph(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] param) { + + validateECLGraph(param); + + localECLGraphTracker = param != null; + + this.localECLGraph = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph + */ + public void addECLGraph(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph param) { + if (localECLGraph == null) { + localECLGraph = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[] {}; + } + + // update the setting tracker + localECLGraphTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLGraph); + list.add(param); + this.localECLGraph = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLGraph", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLGraph", + xmlWriter); + } + } + if (localECLGraphTracker) { + if (localECLGraph != null) { + for (int i = 0; i < localECLGraph.length; i++) { + if (localECLGraph[i] != null) { + localECLGraph[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraph"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLGraph cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLGraph parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLGraph object = new ArrayOfECLGraph(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLGraph".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLGraph) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraph") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraph") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLGraph( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLGraphEx.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLGraphEx.java index 85e543970..4ffde70e7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLGraphEx.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLGraphEx.java @@ -1,457 +1,457 @@ -/** - * ArrayOfECLGraphEx.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLGraphEx bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLGraphEx implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLGraphEx - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLGraphEx This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] localECLGraphEx; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLGraphExTracker = false; - - public boolean isECLGraphExSpecified() { - return localECLGraphExTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] getECLGraphEx() { - return localECLGraphEx; - } - - /** validate the array for ECLGraphEx */ - protected void validateECLGraphEx( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLGraphEx - */ - public void setECLGraphEx( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] param) { - - validateECLGraphEx(param); - - localECLGraphExTracker = param != null; - - this.localECLGraphEx = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx - */ - public void addECLGraphEx( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx param) { - if (localECLGraphEx == null) { - localECLGraphEx = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] {}; - } - - // update the setting tracker - localECLGraphExTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLGraphEx); - list.add(param); - this.localECLGraphEx = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLGraphEx", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLGraphEx", - xmlWriter); - } - } - if (localECLGraphExTracker) { - if (localECLGraphEx != null) { - for (int i = 0; i < localECLGraphEx.length; i++) { - if (localECLGraphEx[i] != null) { - localECLGraphEx[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraphEx"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLGraphEx cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLGraphEx parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLGraphEx object = new ArrayOfECLGraphEx(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLGraphEx".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLGraphEx) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraphEx") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraphEx") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLGraphEx( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLGraphEx.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLGraphEx bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLGraphEx implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLGraphEx + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLGraphEx This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] localECLGraphEx; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLGraphExTracker = false; + + public boolean isECLGraphExSpecified() { + return localECLGraphExTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] getECLGraphEx() { + return localECLGraphEx; + } + + /** validate the array for ECLGraphEx */ + protected void validateECLGraphEx( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLGraphEx + */ + public void setECLGraphEx( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] param) { + + validateECLGraphEx(param); + + localECLGraphExTracker = param != null; + + this.localECLGraphEx = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx + */ + public void addECLGraphEx( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx param) { + if (localECLGraphEx == null) { + localECLGraphEx = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[] {}; + } + + // update the setting tracker + localECLGraphExTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLGraphEx); + list.add(param); + this.localECLGraphEx = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLGraphEx", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLGraphEx", + xmlWriter); + } + } + if (localECLGraphExTracker) { + if (localECLGraphEx != null) { + for (int i = 0; i < localECLGraphEx.length; i++) { + if (localECLGraphEx[i] != null) { + localECLGraphEx[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraphEx"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLGraphEx cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLGraphEx parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLGraphEx object = new ArrayOfECLGraphEx(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLGraphEx".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLGraphEx) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraphEx") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLGraphEx") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLGraphEx( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLHelpFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLHelpFile.java index 066a0809e..07e8293fc 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLHelpFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLHelpFile.java @@ -1,459 +1,459 @@ -/** - * ArrayOfECLHelpFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLHelpFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLHelpFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLHelpFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLHelpFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] localECLHelpFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLHelpFileTracker = false; - - public boolean isECLHelpFileSpecified() { - return localECLHelpFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] getECLHelpFile() { - return localECLHelpFile; - } - - /** validate the array for ECLHelpFile */ - protected void validateECLHelpFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLHelpFile - */ - public void setECLHelpFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] param) { - - validateECLHelpFile(param); - - localECLHelpFileTracker = param != null; - - this.localECLHelpFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile - */ - public void addECLHelpFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile param) { - if (localECLHelpFile == null) { - localECLHelpFile = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] {}; - } - - // update the setting tracker - localECLHelpFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLHelpFile); - list.add(param); - this.localECLHelpFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLHelpFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLHelpFile", - xmlWriter); - } - } - if (localECLHelpFileTracker) { - if (localECLHelpFile != null) { - for (int i = 0; i < localECLHelpFile.length; i++) { - if (localECLHelpFile[i] != null) { - localECLHelpFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLHelpFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLHelpFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLHelpFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLHelpFile object = new ArrayOfECLHelpFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLHelpFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLHelpFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLHelpFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLHelpFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLHelpFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLHelpFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLHelpFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLHelpFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLHelpFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLHelpFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] localECLHelpFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLHelpFileTracker = false; + + public boolean isECLHelpFileSpecified() { + return localECLHelpFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] getECLHelpFile() { + return localECLHelpFile; + } + + /** validate the array for ECLHelpFile */ + protected void validateECLHelpFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLHelpFile + */ + public void setECLHelpFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] param) { + + validateECLHelpFile(param); + + localECLHelpFileTracker = param != null; + + this.localECLHelpFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile + */ + public void addECLHelpFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile param) { + if (localECLHelpFile == null) { + localECLHelpFile = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[] {}; + } + + // update the setting tracker + localECLHelpFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLHelpFile); + list.add(param); + this.localECLHelpFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLHelpFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLHelpFile", + xmlWriter); + } + } + if (localECLHelpFileTracker) { + if (localECLHelpFile != null) { + for (int i = 0; i < localECLHelpFile.length; i++) { + if (localECLHelpFile[i] != null) { + localECLHelpFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLHelpFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLHelpFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLHelpFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLHelpFile object = new ArrayOfECLHelpFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLHelpFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLHelpFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLHelpFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLHelpFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLHelpFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLJob.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLJob.java index 5dcf09413..bb02dd546 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLJob.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLJob.java @@ -1,449 +1,449 @@ -/** - * ArrayOfECLJob.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLJob bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLJob implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLJob - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLJob This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] localECLJob; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLJobTracker = false; - - public boolean isECLJobSpecified() { - return localECLJobTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] getECLJob() { - return localECLJob; - } - - /** validate the array for ECLJob */ - protected void validateECLJob( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLJob - */ - public void setECLJob(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] param) { - - validateECLJob(param); - - localECLJobTracker = param != null; - - this.localECLJob = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob - */ - public void addECLJob(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob param) { - if (localECLJob == null) { - localECLJob = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] {}; - } - - // update the setting tracker - localECLJobTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLJob); - list.add(param); - this.localECLJob = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLJob", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfECLJob", xmlWriter); - } - } - if (localECLJobTracker) { - if (localECLJob != null) { - for (int i = 0; i < localECLJob.length; i++) { - if (localECLJob[i] != null) { - localECLJob[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLJob"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLJob cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLJob parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLJob object = new ArrayOfECLJob(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLJob".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLJob) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLJob") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLJob") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLJob( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob.class, list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLJob.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLJob bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLJob implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLJob + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLJob This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] localECLJob; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLJobTracker = false; + + public boolean isECLJobSpecified() { + return localECLJobTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] getECLJob() { + return localECLJob; + } + + /** validate the array for ECLJob */ + protected void validateECLJob( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLJob + */ + public void setECLJob(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] param) { + + validateECLJob(param); + + localECLJobTracker = param != null; + + this.localECLJob = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob + */ + public void addECLJob(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob param) { + if (localECLJob == null) { + localECLJob = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[] {}; + } + + // update the setting tracker + localECLJobTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLJob); + list.add(param); + this.localECLJob = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLJob", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ArrayOfECLJob", xmlWriter); + } + } + if (localECLJobTracker) { + if (localECLJob != null) { + for (int i = 0; i < localECLJob.length; i++) { + if (localECLJob[i] != null) { + localECLJob[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLJob"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLJob cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLJob parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLJob object = new ArrayOfECLJob(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLJob".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLJob) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLJob") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLJob") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLJob( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob.class, list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLResult.java index dd344b069..20d8e3aeb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLResult.java @@ -1,456 +1,456 @@ -/** - * ArrayOfECLResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLResult This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] localECLResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLResultTracker = false; - - public boolean isECLResultSpecified() { - return localECLResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] getECLResult() { - return localECLResult; - } - - /** validate the array for ECLResult */ - protected void validateECLResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLResult - */ - public void setECLResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] param) { - - validateECLResult(param); - - localECLResultTracker = param != null; - - this.localECLResult = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult - */ - public void addECLResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult param) { - if (localECLResult == null) { - localECLResult = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] {}; - } - - // update the setting tracker - localECLResultTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLResult); - list.add(param); - this.localECLResult = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLResult", - xmlWriter); - } - } - if (localECLResultTracker) { - if (localECLResult != null) { - for (int i = 0; i < localECLResult.length; i++) { - if (localECLResult[i] != null) { - localECLResult[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLResult"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLResult cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLResult object = new ArrayOfECLResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLResult") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLResult") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLResult( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLResult This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] localECLResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLResultTracker = false; + + public boolean isECLResultSpecified() { + return localECLResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] getECLResult() { + return localECLResult; + } + + /** validate the array for ECLResult */ + protected void validateECLResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLResult + */ + public void setECLResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] param) { + + validateECLResult(param); + + localECLResultTracker = param != null; + + this.localECLResult = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult + */ + public void addECLResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult param) { + if (localECLResult == null) { + localECLResult = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[] {}; + } + + // update the setting tracker + localECLResultTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLResult); + list.add(param); + this.localECLResult = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLResult", + xmlWriter); + } + } + if (localECLResultTracker) { + if (localECLResult != null) { + for (int i = 0; i < localECLResult.length; i++) { + if (localECLResult[i] != null) { + localECLResult[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLResult"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLResult cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLResult object = new ArrayOfECLResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLResult") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLResult") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLResult( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLSchemaItem.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLSchemaItem.java index db7bc5a74..56733f195 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLSchemaItem.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLSchemaItem.java @@ -1,461 +1,461 @@ -/** - * ArrayOfECLSchemaItem.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLSchemaItem bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLSchemaItem implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLSchemaItem - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLSchemaItem This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] - localECLSchemaItem; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLSchemaItemTracker = false; - - public boolean isECLSchemaItemSpecified() { - return localECLSchemaItemTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] getECLSchemaItem() { - return localECLSchemaItem; - } - - /** validate the array for ECLSchemaItem */ - protected void validateECLSchemaItem( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLSchemaItem - */ - public void setECLSchemaItem( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] param) { - - validateECLSchemaItem(param); - - localECLSchemaItemTracker = param != null; - - this.localECLSchemaItem = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem - */ - public void addECLSchemaItem( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem param) { - if (localECLSchemaItem == null) { - localECLSchemaItem = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] {}; - } - - // update the setting tracker - localECLSchemaItemTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLSchemaItem); - list.add(param); - this.localECLSchemaItem = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLSchemaItem", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLSchemaItem", - xmlWriter); - } - } - if (localECLSchemaItemTracker) { - if (localECLSchemaItem != null) { - for (int i = 0; i < localECLSchemaItem.length; i++) { - if (localECLSchemaItem[i] != null) { - localECLSchemaItem[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemaItem"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLSchemaItem cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLSchemaItem parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLSchemaItem object = new ArrayOfECLSchemaItem(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLSchemaItem".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLSchemaItem) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemaItem") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemaItem") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLSchemaItem( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLSchemaItem.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLSchemaItem bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLSchemaItem implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLSchemaItem + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLSchemaItem This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] + localECLSchemaItem; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLSchemaItemTracker = false; + + public boolean isECLSchemaItemSpecified() { + return localECLSchemaItemTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] getECLSchemaItem() { + return localECLSchemaItem; + } + + /** validate the array for ECLSchemaItem */ + protected void validateECLSchemaItem( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLSchemaItem + */ + public void setECLSchemaItem( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] param) { + + validateECLSchemaItem(param); + + localECLSchemaItemTracker = param != null; + + this.localECLSchemaItem = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem + */ + public void addECLSchemaItem( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem param) { + if (localECLSchemaItem == null) { + localECLSchemaItem = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[] {}; + } + + // update the setting tracker + localECLSchemaItemTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLSchemaItem); + list.add(param); + this.localECLSchemaItem = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLSchemaItem", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLSchemaItem", + xmlWriter); + } + } + if (localECLSchemaItemTracker) { + if (localECLSchemaItem != null) { + for (int i = 0; i < localECLSchemaItem.length; i++) { + if (localECLSchemaItem[i] != null) { + localECLSchemaItem[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemaItem"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLSchemaItem cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLSchemaItem parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLSchemaItem object = new ArrayOfECLSchemaItem(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLSchemaItem".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLSchemaItem) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemaItem") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemaItem") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLSchemaItem( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLSourceFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLSourceFile.java index 5180bbd03..2c80f2222 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLSourceFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLSourceFile.java @@ -1,461 +1,461 @@ -/** - * ArrayOfECLSourceFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLSourceFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLSourceFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLSourceFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLSourceFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] - localECLSourceFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLSourceFileTracker = false; - - public boolean isECLSourceFileSpecified() { - return localECLSourceFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] getECLSourceFile() { - return localECLSourceFile; - } - - /** validate the array for ECLSourceFile */ - protected void validateECLSourceFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLSourceFile - */ - public void setECLSourceFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] param) { - - validateECLSourceFile(param); - - localECLSourceFileTracker = param != null; - - this.localECLSourceFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile - */ - public void addECLSourceFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile param) { - if (localECLSourceFile == null) { - localECLSourceFile = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] {}; - } - - // update the setting tracker - localECLSourceFileTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLSourceFile); - list.add(param); - this.localECLSourceFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLSourceFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLSourceFile", - xmlWriter); - } - } - if (localECLSourceFileTracker) { - if (localECLSourceFile != null) { - for (int i = 0; i < localECLSourceFile.length; i++) { - if (localECLSourceFile[i] != null) { - localECLSourceFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLSourceFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLSourceFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLSourceFile object = new ArrayOfECLSourceFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLSourceFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLSourceFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLSourceFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLSourceFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLSourceFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLSourceFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLSourceFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLSourceFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] + localECLSourceFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLSourceFileTracker = false; + + public boolean isECLSourceFileSpecified() { + return localECLSourceFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] getECLSourceFile() { + return localECLSourceFile; + } + + /** validate the array for ECLSourceFile */ + protected void validateECLSourceFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLSourceFile + */ + public void setECLSourceFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] param) { + + validateECLSourceFile(param); + + localECLSourceFileTracker = param != null; + + this.localECLSourceFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile + */ + public void addECLSourceFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile param) { + if (localECLSourceFile == null) { + localECLSourceFile = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[] {}; + } + + // update the setting tracker + localECLSourceFileTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLSourceFile); + list.add(param); + this.localECLSourceFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLSourceFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLSourceFile", + xmlWriter); + } + } + if (localECLSourceFileTracker) { + if (localECLSourceFile != null) { + for (int i = 0; i < localECLSourceFile.length; i++) { + if (localECLSourceFile[i] != null) { + localECLSourceFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLSourceFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLSourceFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLSourceFile object = new ArrayOfECLSourceFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLSourceFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLSourceFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLSourceFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLTimer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLTimer.java index 9901ecbaa..e7e55a6d0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLTimer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLTimer.java @@ -1,455 +1,455 @@ -/** - * ArrayOfECLTimer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLTimer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLTimer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLTimer - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLTimer This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] localECLTimer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLTimerTracker = false; - - public boolean isECLTimerSpecified() { - return localECLTimerTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] getECLTimer() { - return localECLTimer; - } - - /** validate the array for ECLTimer */ - protected void validateECLTimer( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLTimer - */ - public void setECLTimer(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] param) { - - validateECLTimer(param); - - localECLTimerTracker = param != null; - - this.localECLTimer = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer - */ - public void addECLTimer(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer param) { - if (localECLTimer == null) { - localECLTimer = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] {}; - } - - // update the setting tracker - localECLTimerTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLTimer); - list.add(param); - this.localECLTimer = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLTimer", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLTimer", - xmlWriter); - } - } - if (localECLTimerTracker) { - if (localECLTimer != null) { - for (int i = 0; i < localECLTimer.length; i++) { - if (localECLTimer[i] != null) { - localECLTimer[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimer"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLTimer cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLTimer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLTimer object = new ArrayOfECLTimer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLTimer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLTimer) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimer") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimer") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLTimer( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLTimer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLTimer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLTimer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLTimer + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLTimer This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] localECLTimer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLTimerTracker = false; + + public boolean isECLTimerSpecified() { + return localECLTimerTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] getECLTimer() { + return localECLTimer; + } + + /** validate the array for ECLTimer */ + protected void validateECLTimer( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLTimer + */ + public void setECLTimer(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] param) { + + validateECLTimer(param); + + localECLTimerTracker = param != null; + + this.localECLTimer = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer + */ + public void addECLTimer(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer param) { + if (localECLTimer == null) { + localECLTimer = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[] {}; + } + + // update the setting tracker + localECLTimerTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLTimer); + list.add(param); + this.localECLTimer = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLTimer", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLTimer", + xmlWriter); + } + } + if (localECLTimerTracker) { + if (localECLTimer != null) { + for (int i = 0; i < localECLTimer.length; i++) { + if (localECLTimer[i] != null) { + localECLTimer[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimer"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLTimer cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLTimer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLTimer object = new ArrayOfECLTimer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLTimer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLTimer) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimer") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimer") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLTimer( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLTimingData.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLTimingData.java index 38a50756e..b174e315a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLTimingData.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLTimingData.java @@ -1,461 +1,461 @@ -/** - * ArrayOfECLTimingData.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLTimingData bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLTimingData implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLTimingData - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLTimingData This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] - localECLTimingData; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLTimingDataTracker = false; - - public boolean isECLTimingDataSpecified() { - return localECLTimingDataTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] getECLTimingData() { - return localECLTimingData; - } - - /** validate the array for ECLTimingData */ - protected void validateECLTimingData( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLTimingData - */ - public void setECLTimingData( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] param) { - - validateECLTimingData(param); - - localECLTimingDataTracker = param != null; - - this.localECLTimingData = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData - */ - public void addECLTimingData( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData param) { - if (localECLTimingData == null) { - localECLTimingData = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] {}; - } - - // update the setting tracker - localECLTimingDataTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLTimingData); - list.add(param); - this.localECLTimingData = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLTimingData", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLTimingData", - xmlWriter); - } - } - if (localECLTimingDataTracker) { - if (localECLTimingData != null) { - for (int i = 0; i < localECLTimingData.length; i++) { - if (localECLTimingData[i] != null) { - localECLTimingData[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimingData"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLTimingData cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLTimingData parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLTimingData object = new ArrayOfECLTimingData(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLTimingData".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLTimingData) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimingData") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimingData") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLTimingData( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLTimingData.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLTimingData bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLTimingData implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLTimingData + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLTimingData This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] + localECLTimingData; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLTimingDataTracker = false; + + public boolean isECLTimingDataSpecified() { + return localECLTimingDataTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] getECLTimingData() { + return localECLTimingData; + } + + /** validate the array for ECLTimingData */ + protected void validateECLTimingData( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLTimingData + */ + public void setECLTimingData( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] param) { + + validateECLTimingData(param); + + localECLTimingDataTracker = param != null; + + this.localECLTimingData = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData + */ + public void addECLTimingData( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData param) { + if (localECLTimingData == null) { + localECLTimingData = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[] {}; + } + + // update the setting tracker + localECLTimingDataTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLTimingData); + list.add(param); + this.localECLTimingData = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLTimingData", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLTimingData", + xmlWriter); + } + } + if (localECLTimingDataTracker) { + if (localECLTimingData != null) { + for (int i = 0; i < localECLTimingData.length; i++) { + if (localECLTimingData[i] != null) { + localECLTimingData[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimingData"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLTimingData cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLTimingData parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLTimingData object = new ArrayOfECLTimingData(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLTimingData".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLTimingData) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimingData") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLTimingData") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLTimingData( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWUProcess.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWUProcess.java new file mode 100644 index 000000000..598a5bde0 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWUProcess.java @@ -0,0 +1,460 @@ +/** + * ArrayOfECLWUProcess.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLWUProcess bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLWUProcess implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLWUProcess + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLWUProcess This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess[] localECLWUProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWUProcessTracker = false; + + public boolean isECLWUProcessSpecified() { + return localECLWUProcessTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess[] getECLWUProcess() { + return localECLWUProcess; + } + + /** validate the array for ECLWUProcess */ + protected void validateECLWUProcess( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLWUProcess + */ + public void setECLWUProcess( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess[] param) { + + validateECLWUProcess(param); + + localECLWUProcessTracker = param != null; + + this.localECLWUProcess = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess + */ + public void addECLWUProcess( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess param) { + if (localECLWUProcess == null) { + localECLWUProcess = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess[] {}; + } + + // update the setting tracker + localECLWUProcessTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLWUProcess); + list.add(param); + this.localECLWUProcess = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLWUProcess", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLWUProcess", + xmlWriter); + } + } + if (localECLWUProcessTracker) { + if (localECLWUProcess != null) { + for (int i = 0; i < localECLWUProcess.length; i++) { + if (localECLWUProcess[i] != null) { + localECLWUProcess[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWUProcess"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLWUProcess cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLWUProcess parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLWUProcess object = new ArrayOfECLWUProcess(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLWUProcess".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLWUProcess) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWUProcess") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWUProcess") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLWUProcess( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkflow.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkflow.java index 5c7013f51..67734df55 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkflow.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkflow.java @@ -1,459 +1,459 @@ -/** - * ArrayOfECLWorkflow.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLWorkflow bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLWorkflow implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLWorkflow - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLWorkflow This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] localECLWorkflow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLWorkflowTracker = false; - - public boolean isECLWorkflowSpecified() { - return localECLWorkflowTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] getECLWorkflow() { - return localECLWorkflow; - } - - /** validate the array for ECLWorkflow */ - protected void validateECLWorkflow( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLWorkflow - */ - public void setECLWorkflow( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] param) { - - validateECLWorkflow(param); - - localECLWorkflowTracker = param != null; - - this.localECLWorkflow = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow - */ - public void addECLWorkflow( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow param) { - if (localECLWorkflow == null) { - localECLWorkflow = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] {}; - } - - // update the setting tracker - localECLWorkflowTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLWorkflow); - list.add(param); - this.localECLWorkflow = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLWorkflow", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLWorkflow", - xmlWriter); - } - } - if (localECLWorkflowTracker) { - if (localECLWorkflow != null) { - for (int i = 0; i < localECLWorkflow.length; i++) { - if (localECLWorkflow[i] != null) { - localECLWorkflow[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkflow"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLWorkflow cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLWorkflow parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLWorkflow object = new ArrayOfECLWorkflow(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLWorkflow".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLWorkflow) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkflow") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkflow") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLWorkflow( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLWorkflow.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLWorkflow bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLWorkflow implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLWorkflow + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLWorkflow This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] localECLWorkflow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWorkflowTracker = false; + + public boolean isECLWorkflowSpecified() { + return localECLWorkflowTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] getECLWorkflow() { + return localECLWorkflow; + } + + /** validate the array for ECLWorkflow */ + protected void validateECLWorkflow( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLWorkflow + */ + public void setECLWorkflow( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] param) { + + validateECLWorkflow(param); + + localECLWorkflowTracker = param != null; + + this.localECLWorkflow = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow + */ + public void addECLWorkflow( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow param) { + if (localECLWorkflow == null) { + localECLWorkflow = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[] {}; + } + + // update the setting tracker + localECLWorkflowTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLWorkflow); + list.add(param); + this.localECLWorkflow = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLWorkflow", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLWorkflow", + xmlWriter); + } + } + if (localECLWorkflowTracker) { + if (localECLWorkflow != null) { + for (int i = 0; i < localECLWorkflow.length; i++) { + if (localECLWorkflow[i] != null) { + localECLWorkflow[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkflow"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLWorkflow cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLWorkflow parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLWorkflow object = new ArrayOfECLWorkflow(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLWorkflow".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLWorkflow) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkflow") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkflow") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLWorkflow( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkunit.java index ce57e4574..395e9b9a5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkunit.java @@ -1,459 +1,459 @@ -/** - * ArrayOfECLWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLWorkunit implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLWorkunit - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLWorkunit This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] localECLWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLWorkunitTracker = false; - - public boolean isECLWorkunitSpecified() { - return localECLWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] getECLWorkunit() { - return localECLWorkunit; - } - - /** validate the array for ECLWorkunit */ - protected void validateECLWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLWorkunit - */ - public void setECLWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] param) { - - validateECLWorkunit(param); - - localECLWorkunitTracker = param != null; - - this.localECLWorkunit = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit - */ - public void addECLWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { - if (localECLWorkunit == null) { - localECLWorkunit = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] {}; - } - - // update the setting tracker - localECLWorkunitTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLWorkunit); - list.add(param); - this.localECLWorkunit = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLWorkunit", - xmlWriter); - } - } - if (localECLWorkunitTracker) { - if (localECLWorkunit != null) { - for (int i = 0; i < localECLWorkunit.length; i++) { - if (localECLWorkunit[i] != null) { - localECLWorkunit[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunit"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLWorkunit cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLWorkunit object = new ArrayOfECLWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLWorkunit) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunit") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunit") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLWorkunit( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLWorkunit implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLWorkunit + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLWorkunit This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] localECLWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWorkunitTracker = false; + + public boolean isECLWorkunitSpecified() { + return localECLWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] getECLWorkunit() { + return localECLWorkunit; + } + + /** validate the array for ECLWorkunit */ + protected void validateECLWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLWorkunit + */ + public void setECLWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] param) { + + validateECLWorkunit(param); + + localECLWorkunitTracker = param != null; + + this.localECLWorkunit = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit + */ + public void addECLWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { + if (localECLWorkunit == null) { + localECLWorkunit = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[] {}; + } + + // update the setting tracker + localECLWorkunitTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLWorkunit); + list.add(param); + this.localECLWorkunit = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLWorkunit", + xmlWriter); + } + } + if (localECLWorkunitTracker) { + if (localECLWorkunit != null) { + for (int i = 0; i < localECLWorkunit.length; i++) { + if (localECLWorkunit[i] != null) { + localECLWorkunit[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunit"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLWorkunit cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLWorkunit object = new ArrayOfECLWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLWorkunit) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunit") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunit") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLWorkunit( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkunitLW.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkunitLW.java index 3e972037e..7dd9041d6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkunitLW.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfECLWorkunitLW.java @@ -1,461 +1,461 @@ -/** - * ArrayOfECLWorkunitLW.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfECLWorkunitLW bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfECLWorkunitLW implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfECLWorkunitLW - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLWorkunitLW This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] - localECLWorkunitLW; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLWorkunitLWTracker = false; - - public boolean isECLWorkunitLWSpecified() { - return localECLWorkunitLWTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] getECLWorkunitLW() { - return localECLWorkunitLW; - } - - /** validate the array for ECLWorkunitLW */ - protected void validateECLWorkunitLW( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLWorkunitLW - */ - public void setECLWorkunitLW( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] param) { - - validateECLWorkunitLW(param); - - localECLWorkunitLWTracker = param != null; - - this.localECLWorkunitLW = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW - */ - public void addECLWorkunitLW( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW param) { - if (localECLWorkunitLW == null) { - localECLWorkunitLW = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] {}; - } - - // update the setting tracker - localECLWorkunitLWTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLWorkunitLW); - list.add(param); - this.localECLWorkunitLW = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfECLWorkunitLW", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfECLWorkunitLW", - xmlWriter); - } - } - if (localECLWorkunitLWTracker) { - if (localECLWorkunitLW != null) { - for (int i = 0; i < localECLWorkunitLW.length; i++) { - if (localECLWorkunitLW[i] != null) { - localECLWorkunitLW[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunitLW"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLWorkunitLW cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfECLWorkunitLW parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfECLWorkunitLW object = new ArrayOfECLWorkunitLW(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfECLWorkunitLW".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfECLWorkunitLW) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunitLW") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunitLW") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLWorkunitLW( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfECLWorkunitLW.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfECLWorkunitLW bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfECLWorkunitLW implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfECLWorkunitLW + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLWorkunitLW This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] + localECLWorkunitLW; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWorkunitLWTracker = false; + + public boolean isECLWorkunitLWSpecified() { + return localECLWorkunitLWTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] getECLWorkunitLW() { + return localECLWorkunitLW; + } + + /** validate the array for ECLWorkunitLW */ + protected void validateECLWorkunitLW( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLWorkunitLW + */ + public void setECLWorkunitLW( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] param) { + + validateECLWorkunitLW(param); + + localECLWorkunitLWTracker = param != null; + + this.localECLWorkunitLW = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW + */ + public void addECLWorkunitLW( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW param) { + if (localECLWorkunitLW == null) { + localECLWorkunitLW = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[] {}; + } + + // update the setting tracker + localECLWorkunitLWTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLWorkunitLW); + list.add(param); + this.localECLWorkunitLW = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfECLWorkunitLW", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfECLWorkunitLW", + xmlWriter); + } + } + if (localECLWorkunitLWTracker) { + if (localECLWorkunitLW != null) { + for (int i = 0; i < localECLWorkunitLW.length; i++) { + if (localECLWorkunitLW[i] != null) { + localECLWorkunitLW[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunitLW"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLWorkunitLW cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfECLWorkunitLW parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfECLWorkunitLW object = new ArrayOfECLWorkunitLW(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfECLWorkunitLW".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfECLWorkunitLW) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunitLW") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWorkunitLW") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLWorkunitLW( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfEndpointQueryStats.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfEndpointQueryStats.java index 41fda1285..125023fb5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfEndpointQueryStats.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfEndpointQueryStats.java @@ -1,465 +1,465 @@ -/** - * ArrayOfEndpointQueryStats.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfEndpointQueryStats bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfEndpointQueryStats implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfEndpointQueryStats - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for EndpointQueryStats This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] - localEndpointQueryStats; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndpointQueryStatsTracker = false; - - public boolean isEndpointQueryStatsSpecified() { - return localEndpointQueryStatsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] - getEndpointQueryStats() { - return localEndpointQueryStats; - } - - /** validate the array for EndpointQueryStats */ - protected void validateEndpointQueryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] param) {} - - /** - * Auto generated setter method - * - * @param param EndpointQueryStats - */ - public void setEndpointQueryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] param) { - - validateEndpointQueryStats(param); - - localEndpointQueryStatsTracker = param != null; - - this.localEndpointQueryStats = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats - */ - public void addEndpointQueryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats param) { - if (localEndpointQueryStats == null) { - localEndpointQueryStats = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] {}; - } - - // update the setting tracker - localEndpointQueryStatsTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localEndpointQueryStats); - list.add(param); - this.localEndpointQueryStats = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfEndpointQueryStats", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfEndpointQueryStats", - xmlWriter); - } - } - if (localEndpointQueryStatsTracker) { - if (localEndpointQueryStats != null) { - for (int i = 0; i < localEndpointQueryStats.length; i++) { - if (localEndpointQueryStats[i] != null) { - localEndpointQueryStats[i].serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "EndpointQueryStats"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("EndpointQueryStats cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfEndpointQueryStats parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfEndpointQueryStats object = new ArrayOfEndpointQueryStats(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfEndpointQueryStats".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfEndpointQueryStats) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndpointQueryStats") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "EndpointQueryStats") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setEndpointQueryStats( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfEndpointQueryStats.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfEndpointQueryStats bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfEndpointQueryStats implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfEndpointQueryStats + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for EndpointQueryStats This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] + localEndpointQueryStats; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndpointQueryStatsTracker = false; + + public boolean isEndpointQueryStatsSpecified() { + return localEndpointQueryStatsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] + getEndpointQueryStats() { + return localEndpointQueryStats; + } + + /** validate the array for EndpointQueryStats */ + protected void validateEndpointQueryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] param) {} + + /** + * Auto generated setter method + * + * @param param EndpointQueryStats + */ + public void setEndpointQueryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] param) { + + validateEndpointQueryStats(param); + + localEndpointQueryStatsTracker = param != null; + + this.localEndpointQueryStats = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats + */ + public void addEndpointQueryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats param) { + if (localEndpointQueryStats == null) { + localEndpointQueryStats = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[] {}; + } + + // update the setting tracker + localEndpointQueryStatsTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localEndpointQueryStats); + list.add(param); + this.localEndpointQueryStats = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfEndpointQueryStats", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfEndpointQueryStats", + xmlWriter); + } + } + if (localEndpointQueryStatsTracker) { + if (localEndpointQueryStats != null) { + for (int i = 0; i < localEndpointQueryStats.length; i++) { + if (localEndpointQueryStats[i] != null) { + localEndpointQueryStats[i].serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "EndpointQueryStats"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("EndpointQueryStats cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfEndpointQueryStats parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfEndpointQueryStats object = new ArrayOfEndpointQueryStats(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfEndpointQueryStats".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfEndpointQueryStats) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndpointQueryStats") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "EndpointQueryStats") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setEndpointQueryStats( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfEspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfEspException.java index 386729b2c..e3343b04c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfEspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfEspException.java @@ -1,532 +1,532 @@ -/** - * ArrayOfEspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfEspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfEspException - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Exception This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] localException; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionTracker = false; - - public boolean isExceptionSpecified() { - return localExceptionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] getException() { - return localException; - } - - /** validate the array for Exception */ - protected void validateException( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] param) {} - - /** - * Auto generated setter method - * - * @param param Exception - */ - public void setException( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] param) { - - validateException(param); - - localExceptionTracker = param != null; - - this.localException = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException - */ - public void addException( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException param) { - if (localException == null) { - localException = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] {}; - } - - // update the setting tracker - localExceptionTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); - list.add(param); - this.localException = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfEspException", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfEspException", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localExceptionTracker) { - if (localException != null) { - for (int i = 0; i < localException.length; i++) { - if (localException[i] != null) { - localException[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exception"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfEspException object = new ArrayOfEspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfEspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfEspException) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list2 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exception") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list2.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone2 = false; - while (!loopDone2) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone2 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exception") - .equals(reader.getName())) { - list2.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException.Factory - .parse(reader)); - - } else { - loopDone2 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setException( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException.class, - list2)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfEspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfEspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfEspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfEspException + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Exception This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] localException; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionTracker = false; + + public boolean isExceptionSpecified() { + return localExceptionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] getException() { + return localException; + } + + /** validate the array for Exception */ + protected void validateException( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] param) {} + + /** + * Auto generated setter method + * + * @param param Exception + */ + public void setException( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] param) { + + validateException(param); + + localExceptionTracker = param != null; + + this.localException = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException + */ + public void addException( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException param) { + if (localException == null) { + localException = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[] {}; + } + + // update the setting tracker + localExceptionTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localException); + list.add(param); + this.localException = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfEspException", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfEspException", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localExceptionTracker) { + if (localException != null) { + for (int i = 0; i < localException.length; i++) { + if (localException[i] != null) { + localException[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exception"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Exception cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfEspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfEspException object = new ArrayOfEspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfEspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfEspException) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list2 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exception") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list2.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone2 = false; + while (!loopDone2) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone2 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exception") + .equals(reader.getName())) { + list2.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException.Factory + .parse(reader)); + + } else { + loopDone2 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setException( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException.class, + list2)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfLogicalFileUpload.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfLogicalFileUpload.java index cb00428ca..0c805de39 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfLogicalFileUpload.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfLogicalFileUpload.java @@ -1,465 +1,465 @@ -/** - * ArrayOfLogicalFileUpload.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfLogicalFileUpload bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfLogicalFileUpload implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfLogicalFileUpload - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for LogicalFileUpload This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] - localLogicalFileUpload; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalFileUploadTracker = false; - - public boolean isLogicalFileUploadSpecified() { - return localLogicalFileUploadTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] - getLogicalFileUpload() { - return localLogicalFileUpload; - } - - /** validate the array for LogicalFileUpload */ - protected void validateLogicalFileUpload( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] param) {} - - /** - * Auto generated setter method - * - * @param param LogicalFileUpload - */ - public void setLogicalFileUpload( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] param) { - - validateLogicalFileUpload(param); - - localLogicalFileUploadTracker = param != null; - - this.localLogicalFileUpload = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload - */ - public void addLogicalFileUpload( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload param) { - if (localLogicalFileUpload == null) { - localLogicalFileUpload = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] {}; - } - - // update the setting tracker - localLogicalFileUploadTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localLogicalFileUpload); - list.add(param); - this.localLogicalFileUpload = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfLogicalFileUpload", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfLogicalFileUpload", - xmlWriter); - } - } - if (localLogicalFileUploadTracker) { - if (localLogicalFileUpload != null) { - for (int i = 0; i < localLogicalFileUpload.length; i++) { - if (localLogicalFileUpload[i] != null) { - localLogicalFileUpload[i].serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "LogicalFileUpload"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("LogicalFileUpload cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfLogicalFileUpload parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfLogicalFileUpload object = new ArrayOfLogicalFileUpload(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfLogicalFileUpload".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfLogicalFileUpload) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFileUpload") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "LogicalFileUpload") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setLogicalFileUpload( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfLogicalFileUpload.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfLogicalFileUpload bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfLogicalFileUpload implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfLogicalFileUpload + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for LogicalFileUpload This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] + localLogicalFileUpload; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalFileUploadTracker = false; + + public boolean isLogicalFileUploadSpecified() { + return localLogicalFileUploadTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] + getLogicalFileUpload() { + return localLogicalFileUpload; + } + + /** validate the array for LogicalFileUpload */ + protected void validateLogicalFileUpload( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] param) {} + + /** + * Auto generated setter method + * + * @param param LogicalFileUpload + */ + public void setLogicalFileUpload( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] param) { + + validateLogicalFileUpload(param); + + localLogicalFileUploadTracker = param != null; + + this.localLogicalFileUpload = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload + */ + public void addLogicalFileUpload( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload param) { + if (localLogicalFileUpload == null) { + localLogicalFileUpload = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[] {}; + } + + // update the setting tracker + localLogicalFileUploadTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localLogicalFileUpload); + list.add(param); + this.localLogicalFileUpload = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfLogicalFileUpload", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfLogicalFileUpload", + xmlWriter); + } + } + if (localLogicalFileUploadTracker) { + if (localLogicalFileUpload != null) { + for (int i = 0; i < localLogicalFileUpload.length; i++) { + if (localLogicalFileUpload[i] != null) { + localLogicalFileUpload[i].serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "LogicalFileUpload"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("LogicalFileUpload cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfLogicalFileUpload parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfLogicalFileUpload object = new ArrayOfLogicalFileUpload(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfLogicalFileUpload".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfLogicalFileUpload) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFileUpload") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "LogicalFileUpload") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setLogicalFileUpload( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfNamedValue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfNamedValue.java index fe4de768e..931c3c0b9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfNamedValue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfNamedValue.java @@ -1,457 +1,457 @@ -/** - * ArrayOfNamedValue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfNamedValue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfNamedValue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfNamedValue - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for NamedValue This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] localNamedValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNamedValueTracker = false; - - public boolean isNamedValueSpecified() { - return localNamedValueTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] getNamedValue() { - return localNamedValue; - } - - /** validate the array for NamedValue */ - protected void validateNamedValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] param) {} - - /** - * Auto generated setter method - * - * @param param NamedValue - */ - public void setNamedValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] param) { - - validateNamedValue(param); - - localNamedValueTracker = param != null; - - this.localNamedValue = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue - */ - public void addNamedValue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue param) { - if (localNamedValue == null) { - localNamedValue = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] {}; - } - - // update the setting tracker - localNamedValueTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localNamedValue); - list.add(param); - this.localNamedValue = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfNamedValue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfNamedValue", - xmlWriter); - } - } - if (localNamedValueTracker) { - if (localNamedValue != null) { - for (int i = 0; i < localNamedValue.length; i++) { - if (localNamedValue[i] != null) { - localNamedValue[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NamedValue"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("NamedValue cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfNamedValue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfNamedValue object = new ArrayOfNamedValue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfNamedValue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfNamedValue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NamedValue") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NamedValue") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setNamedValue( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfNamedValue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfNamedValue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfNamedValue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfNamedValue + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for NamedValue This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] localNamedValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNamedValueTracker = false; + + public boolean isNamedValueSpecified() { + return localNamedValueTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] getNamedValue() { + return localNamedValue; + } + + /** validate the array for NamedValue */ + protected void validateNamedValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] param) {} + + /** + * Auto generated setter method + * + * @param param NamedValue + */ + public void setNamedValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] param) { + + validateNamedValue(param); + + localNamedValueTracker = param != null; + + this.localNamedValue = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue + */ + public void addNamedValue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue param) { + if (localNamedValue == null) { + localNamedValue = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[] {}; + } + + // update the setting tracker + localNamedValueTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localNamedValue); + list.add(param); + this.localNamedValue = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfNamedValue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfNamedValue", + xmlWriter); + } + } + if (localNamedValueTracker) { + if (localNamedValue != null) { + for (int i = 0; i < localNamedValue.length; i++) { + if (localNamedValue[i] != null) { + localNamedValue[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NamedValue"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("NamedValue cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfNamedValue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfNamedValue object = new ArrayOfNamedValue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfNamedValue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfNamedValue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NamedValue") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NamedValue") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setNamedValue( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySet.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySet.java index 8ddd0ae4e..10f796c0b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySet.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySet.java @@ -1,455 +1,455 @@ -/** - * ArrayOfQuerySet.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfQuerySet bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfQuerySet implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfQuerySet - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QuerySet This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] getQuerySet() { - return localQuerySet; - } - - /** validate the array for QuerySet */ - protected void validateQuerySet( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] param) {} - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] param) { - - validateQuerySet(param); - - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet - */ - public void addQuerySet(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet param) { - if (localQuerySet == null) { - localQuerySet = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] {}; - } - - // update the setting tracker - localQuerySetTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuerySet); - list.add(param); - this.localQuerySet = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfQuerySet", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfQuerySet", - xmlWriter); - } - } - if (localQuerySetTracker) { - if (localQuerySet != null) { - for (int i = 0; i < localQuerySet.length; i++) { - if (localQuerySet[i] != null) { - localQuerySet[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfQuerySet parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfQuerySet object = new ArrayOfQuerySet(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfQuerySet".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfQuerySet) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQuerySet( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfQuerySet.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfQuerySet bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfQuerySet implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfQuerySet + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QuerySet This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] getQuerySet() { + return localQuerySet; + } + + /** validate the array for QuerySet */ + protected void validateQuerySet( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] param) {} + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] param) { + + validateQuerySet(param); + + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet + */ + public void addQuerySet(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet param) { + if (localQuerySet == null) { + localQuerySet = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[] {}; + } + + // update the setting tracker + localQuerySetTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuerySet); + list.add(param); + this.localQuerySet = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfQuerySet", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfQuerySet", + xmlWriter); + } + } + if (localQuerySetTracker) { + if (localQuerySet != null) { + for (int i = 0; i < localQuerySet.length; i++) { + if (localQuerySet[i] != null) { + localQuerySet[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfQuerySet parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfQuerySet object = new ArrayOfQuerySet(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfQuerySet".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfQuerySet) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQuerySet( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySetAlias.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySetAlias.java index 742becbdd..68872063c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySetAlias.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySetAlias.java @@ -1,461 +1,461 @@ -/** - * ArrayOfQuerySetAlias.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfQuerySetAlias bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfQuerySetAlias implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfQuerySetAlias - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QuerySetAlias This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] - localQuerySetAlias; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetAliasTracker = false; - - public boolean isQuerySetAliasSpecified() { - return localQuerySetAliasTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] getQuerySetAlias() { - return localQuerySetAlias; - } - - /** validate the array for QuerySetAlias */ - protected void validateQuerySetAlias( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] param) {} - - /** - * Auto generated setter method - * - * @param param QuerySetAlias - */ - public void setQuerySetAlias( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] param) { - - validateQuerySetAlias(param); - - localQuerySetAliasTracker = param != null; - - this.localQuerySetAlias = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias - */ - public void addQuerySetAlias( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias param) { - if (localQuerySetAlias == null) { - localQuerySetAlias = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] {}; - } - - // update the setting tracker - localQuerySetAliasTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuerySetAlias); - list.add(param); - this.localQuerySetAlias = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfQuerySetAlias", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfQuerySetAlias", - xmlWriter); - } - } - if (localQuerySetAliasTracker) { - if (localQuerySetAlias != null) { - for (int i = 0; i < localQuerySetAlias.length; i++) { - if (localQuerySetAlias[i] != null) { - localQuerySetAlias[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetAlias"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QuerySetAlias cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfQuerySetAlias parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfQuerySetAlias object = new ArrayOfQuerySetAlias(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfQuerySetAlias".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfQuerySetAlias) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetAlias") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetAlias") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQuerySetAlias( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfQuerySetAlias.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfQuerySetAlias bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfQuerySetAlias implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfQuerySetAlias + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QuerySetAlias This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] + localQuerySetAlias; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetAliasTracker = false; + + public boolean isQuerySetAliasSpecified() { + return localQuerySetAliasTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] getQuerySetAlias() { + return localQuerySetAlias; + } + + /** validate the array for QuerySetAlias */ + protected void validateQuerySetAlias( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] param) {} + + /** + * Auto generated setter method + * + * @param param QuerySetAlias + */ + public void setQuerySetAlias( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] param) { + + validateQuerySetAlias(param); + + localQuerySetAliasTracker = param != null; + + this.localQuerySetAlias = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias + */ + public void addQuerySetAlias( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias param) { + if (localQuerySetAlias == null) { + localQuerySetAlias = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[] {}; + } + + // update the setting tracker + localQuerySetAliasTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuerySetAlias); + list.add(param); + this.localQuerySetAlias = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfQuerySetAlias", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfQuerySetAlias", + xmlWriter); + } + } + if (localQuerySetAliasTracker) { + if (localQuerySetAlias != null) { + for (int i = 0; i < localQuerySetAlias.length; i++) { + if (localQuerySetAlias[i] != null) { + localQuerySetAlias[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetAlias"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QuerySetAlias cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfQuerySetAlias parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfQuerySetAlias object = new ArrayOfQuerySetAlias(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfQuerySetAlias".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfQuerySetAlias) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetAlias") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetAlias") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQuerySetAlias( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySetQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySetQuery.java index 546173bd1..d417bc282 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySetQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySetQuery.java @@ -1,461 +1,461 @@ -/** - * ArrayOfQuerySetQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfQuerySetQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfQuerySetQuery implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfQuerySetQuery - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QuerySetQuery This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] - localQuerySetQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetQueryTracker = false; - - public boolean isQuerySetQuerySpecified() { - return localQuerySetQueryTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] getQuerySetQuery() { - return localQuerySetQuery; - } - - /** validate the array for QuerySetQuery */ - protected void validateQuerySetQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] param) {} - - /** - * Auto generated setter method - * - * @param param QuerySetQuery - */ - public void setQuerySetQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] param) { - - validateQuerySetQuery(param); - - localQuerySetQueryTracker = param != null; - - this.localQuerySetQuery = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery - */ - public void addQuerySetQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery param) { - if (localQuerySetQuery == null) { - localQuerySetQuery = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] {}; - } - - // update the setting tracker - localQuerySetQueryTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuerySetQuery); - list.add(param); - this.localQuerySetQuery = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfQuerySetQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfQuerySetQuery", - xmlWriter); - } - } - if (localQuerySetQueryTracker) { - if (localQuerySetQuery != null) { - for (int i = 0; i < localQuerySetQuery.length; i++) { - if (localQuerySetQuery[i] != null) { - localQuerySetQuery[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetQuery"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QuerySetQuery cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfQuerySetQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfQuerySetQuery object = new ArrayOfQuerySetQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfQuerySetQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfQuerySetQuery) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetQuery") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetQuery") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQuerySetQuery( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfQuerySetQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfQuerySetQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfQuerySetQuery implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfQuerySetQuery + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QuerySetQuery This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] + localQuerySetQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetQueryTracker = false; + + public boolean isQuerySetQuerySpecified() { + return localQuerySetQueryTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] getQuerySetQuery() { + return localQuerySetQuery; + } + + /** validate the array for QuerySetQuery */ + protected void validateQuerySetQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] param) {} + + /** + * Auto generated setter method + * + * @param param QuerySetQuery + */ + public void setQuerySetQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] param) { + + validateQuerySetQuery(param); + + localQuerySetQueryTracker = param != null; + + this.localQuerySetQuery = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery + */ + public void addQuerySetQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery param) { + if (localQuerySetQuery == null) { + localQuerySetQuery = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[] {}; + } + + // update the setting tracker + localQuerySetQueryTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuerySetQuery); + list.add(param); + this.localQuerySetQuery = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfQuerySetQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfQuerySetQuery", + xmlWriter); + } + } + if (localQuerySetQueryTracker) { + if (localQuerySetQuery != null) { + for (int i = 0; i < localQuerySetQuery.length; i++) { + if (localQuerySetQuery[i] != null) { + localQuerySetQuery[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetQuery"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QuerySetQuery cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfQuerySetQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfQuerySetQuery object = new ArrayOfQuerySetQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfQuerySetQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfQuerySetQuery) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetQuery") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetQuery") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQuerySetQuery( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryStats.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryStats.java index 8aed553a9..06bb7bfc4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryStats.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryStats.java @@ -1,457 +1,457 @@ -/** - * ArrayOfQueryStats.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfQueryStats bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfQueryStats implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfQueryStats - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryStats This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] localQueryStats; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryStatsTracker = false; - - public boolean isQueryStatsSpecified() { - return localQueryStatsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] getQueryStats() { - return localQueryStats; - } - - /** validate the array for QueryStats */ - protected void validateQueryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] param) {} - - /** - * Auto generated setter method - * - * @param param QueryStats - */ - public void setQueryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] param) { - - validateQueryStats(param); - - localQueryStatsTracker = param != null; - - this.localQueryStats = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats - */ - public void addQueryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats param) { - if (localQueryStats == null) { - localQueryStats = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] {}; - } - - // update the setting tracker - localQueryStatsTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryStats); - list.add(param); - this.localQueryStats = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfQueryStats", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfQueryStats", - xmlWriter); - } - } - if (localQueryStatsTracker) { - if (localQueryStats != null) { - for (int i = 0; i < localQueryStats.length; i++) { - if (localQueryStats[i] != null) { - localQueryStats[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStats"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QueryStats cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfQueryStats parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfQueryStats object = new ArrayOfQueryStats(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfQueryStats".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfQueryStats) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStats") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStats") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQueryStats( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfQueryStats.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfQueryStats bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfQueryStats implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfQueryStats + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryStats This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] localQueryStats; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryStatsTracker = false; + + public boolean isQueryStatsSpecified() { + return localQueryStatsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] getQueryStats() { + return localQueryStats; + } + + /** validate the array for QueryStats */ + protected void validateQueryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] param) {} + + /** + * Auto generated setter method + * + * @param param QueryStats + */ + public void setQueryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] param) { + + validateQueryStats(param); + + localQueryStatsTracker = param != null; + + this.localQueryStats = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats + */ + public void addQueryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats param) { + if (localQueryStats == null) { + localQueryStats = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[] {}; + } + + // update the setting tracker + localQueryStatsTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryStats); + list.add(param); + this.localQueryStats = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfQueryStats", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfQueryStats", + xmlWriter); + } + } + if (localQueryStatsTracker) { + if (localQueryStats != null) { + for (int i = 0; i < localQueryStats.length; i++) { + if (localQueryStats[i] != null) { + localQueryStats[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStats"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QueryStats cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfQueryStats parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfQueryStats object = new ArrayOfQueryStats(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfQueryStats".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfQueryStats) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStats") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStats") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQueryStats( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryStatsRecord.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryStatsRecord.java index a6a7106ee..330ed20d4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryStatsRecord.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryStatsRecord.java @@ -1,463 +1,463 @@ -/** - * ArrayOfQueryStatsRecord.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfQueryStatsRecord bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfQueryStatsRecord implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfQueryStatsRecord - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryStatsRecord This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] - localQueryStatsRecord; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryStatsRecordTracker = false; - - public boolean isQueryStatsRecordSpecified() { - return localQueryStatsRecordTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] - getQueryStatsRecord() { - return localQueryStatsRecord; - } - - /** validate the array for QueryStatsRecord */ - protected void validateQueryStatsRecord( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] param) {} - - /** - * Auto generated setter method - * - * @param param QueryStatsRecord - */ - public void setQueryStatsRecord( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] param) { - - validateQueryStatsRecord(param); - - localQueryStatsRecordTracker = param != null; - - this.localQueryStatsRecord = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord - */ - public void addQueryStatsRecord( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord param) { - if (localQueryStatsRecord == null) { - localQueryStatsRecord = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] {}; - } - - // update the setting tracker - localQueryStatsRecordTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryStatsRecord); - list.add(param); - this.localQueryStatsRecord = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfQueryStatsRecord", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfQueryStatsRecord", - xmlWriter); - } - } - if (localQueryStatsRecordTracker) { - if (localQueryStatsRecord != null) { - for (int i = 0; i < localQueryStatsRecord.length; i++) { - if (localQueryStatsRecord[i] != null) { - localQueryStatsRecord[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsRecord"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QueryStatsRecord cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfQueryStatsRecord parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfQueryStatsRecord object = new ArrayOfQueryStatsRecord(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfQueryStatsRecord".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfQueryStatsRecord) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsRecord") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QueryStatsRecord") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQueryStatsRecord( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfQueryStatsRecord.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfQueryStatsRecord bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfQueryStatsRecord implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfQueryStatsRecord + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryStatsRecord This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] + localQueryStatsRecord; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryStatsRecordTracker = false; + + public boolean isQueryStatsRecordSpecified() { + return localQueryStatsRecordTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] + getQueryStatsRecord() { + return localQueryStatsRecord; + } + + /** validate the array for QueryStatsRecord */ + protected void validateQueryStatsRecord( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] param) {} + + /** + * Auto generated setter method + * + * @param param QueryStatsRecord + */ + public void setQueryStatsRecord( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] param) { + + validateQueryStatsRecord(param); + + localQueryStatsRecordTracker = param != null; + + this.localQueryStatsRecord = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord + */ + public void addQueryStatsRecord( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord param) { + if (localQueryStatsRecord == null) { + localQueryStatsRecord = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[] {}; + } + + // update the setting tracker + localQueryStatsRecordTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryStatsRecord); + list.add(param); + this.localQueryStatsRecord = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfQueryStatsRecord", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfQueryStatsRecord", + xmlWriter); + } + } + if (localQueryStatsRecordTracker) { + if (localQueryStatsRecord != null) { + for (int i = 0; i < localQueryStatsRecord.length; i++) { + if (localQueryStatsRecord[i] != null) { + localQueryStatsRecord[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsRecord"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QueryStatsRecord cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfQueryStatsRecord parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfQueryStatsRecord object = new ArrayOfQueryStatsRecord(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfQueryStatsRecord".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfQueryStatsRecord) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsRecord") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QueryStatsRecord") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQueryStatsRecord( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySummaryStats.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySummaryStats.java index fb32fd57b..e1874348a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySummaryStats.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQuerySummaryStats.java @@ -1,465 +1,465 @@ -/** - * ArrayOfQuerySummaryStats.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfQuerySummaryStats bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfQuerySummaryStats implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfQuerySummaryStats - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QuerySummaryStats This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] - localQuerySummaryStats; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySummaryStatsTracker = false; - - public boolean isQuerySummaryStatsSpecified() { - return localQuerySummaryStatsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] - getQuerySummaryStats() { - return localQuerySummaryStats; - } - - /** validate the array for QuerySummaryStats */ - protected void validateQuerySummaryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] param) {} - - /** - * Auto generated setter method - * - * @param param QuerySummaryStats - */ - public void setQuerySummaryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] param) { - - validateQuerySummaryStats(param); - - localQuerySummaryStatsTracker = param != null; - - this.localQuerySummaryStats = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats - */ - public void addQuerySummaryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats param) { - if (localQuerySummaryStats == null) { - localQuerySummaryStats = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] {}; - } - - // update the setting tracker - localQuerySummaryStatsTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuerySummaryStats); - list.add(param); - this.localQuerySummaryStats = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfQuerySummaryStats", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfQuerySummaryStats", - xmlWriter); - } - } - if (localQuerySummaryStatsTracker) { - if (localQuerySummaryStats != null) { - for (int i = 0; i < localQuerySummaryStats.length; i++) { - if (localQuerySummaryStats[i] != null) { - localQuerySummaryStats[i].serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QuerySummaryStats"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QuerySummaryStats cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfQuerySummaryStats parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfQuerySummaryStats object = new ArrayOfQuerySummaryStats(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfQuerySummaryStats".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfQuerySummaryStats) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySummaryStats") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QuerySummaryStats") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQuerySummaryStats( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfQuerySummaryStats.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfQuerySummaryStats bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfQuerySummaryStats implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfQuerySummaryStats + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QuerySummaryStats This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] + localQuerySummaryStats; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySummaryStatsTracker = false; + + public boolean isQuerySummaryStatsSpecified() { + return localQuerySummaryStatsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] + getQuerySummaryStats() { + return localQuerySummaryStats; + } + + /** validate the array for QuerySummaryStats */ + protected void validateQuerySummaryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] param) {} + + /** + * Auto generated setter method + * + * @param param QuerySummaryStats + */ + public void setQuerySummaryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] param) { + + validateQuerySummaryStats(param); + + localQuerySummaryStatsTracker = param != null; + + this.localQuerySummaryStats = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats + */ + public void addQuerySummaryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats param) { + if (localQuerySummaryStats == null) { + localQuerySummaryStats = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[] {}; + } + + // update the setting tracker + localQuerySummaryStatsTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuerySummaryStats); + list.add(param); + this.localQuerySummaryStats = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfQuerySummaryStats", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfQuerySummaryStats", + xmlWriter); + } + } + if (localQuerySummaryStatsTracker) { + if (localQuerySummaryStats != null) { + for (int i = 0; i < localQuerySummaryStats.length; i++) { + if (localQuerySummaryStats[i] != null) { + localQuerySummaryStats[i].serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QuerySummaryStats"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QuerySummaryStats cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfQuerySummaryStats parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfQuerySummaryStats object = new ArrayOfQuerySummaryStats(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfQuerySummaryStats".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfQuerySummaryStats) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySummaryStats") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QuerySummaryStats") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQuerySummaryStats( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryUsingFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryUsingFile.java index 47d97d035..9d7dd84dd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryUsingFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfQueryUsingFile.java @@ -1,462 +1,462 @@ -/** - * ArrayOfQueryUsingFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfQueryUsingFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfQueryUsingFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfQueryUsingFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryUsingFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] - localQueryUsingFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryUsingFileTracker = false; - - public boolean isQueryUsingFileSpecified() { - return localQueryUsingFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] - getQueryUsingFile() { - return localQueryUsingFile; - } - - /** validate the array for QueryUsingFile */ - protected void validateQueryUsingFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] param) {} - - /** - * Auto generated setter method - * - * @param param QueryUsingFile - */ - public void setQueryUsingFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] param) { - - validateQueryUsingFile(param); - - localQueryUsingFileTracker = param != null; - - this.localQueryUsingFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile - */ - public void addQueryUsingFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile param) { - if (localQueryUsingFile == null) { - localQueryUsingFile = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] {}; - } - - // update the setting tracker - localQueryUsingFileTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryUsingFile); - list.add(param); - this.localQueryUsingFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfQueryUsingFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfQueryUsingFile", - xmlWriter); - } - } - if (localQueryUsingFileTracker) { - if (localQueryUsingFile != null) { - for (int i = 0; i < localQueryUsingFile.length; i++) { - if (localQueryUsingFile[i] != null) { - localQueryUsingFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryUsingFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QueryUsingFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfQueryUsingFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfQueryUsingFile object = new ArrayOfQueryUsingFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfQueryUsingFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfQueryUsingFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryUsingFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryUsingFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQueryUsingFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfQueryUsingFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfQueryUsingFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfQueryUsingFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfQueryUsingFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryUsingFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] + localQueryUsingFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryUsingFileTracker = false; + + public boolean isQueryUsingFileSpecified() { + return localQueryUsingFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] + getQueryUsingFile() { + return localQueryUsingFile; + } + + /** validate the array for QueryUsingFile */ + protected void validateQueryUsingFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] param) {} + + /** + * Auto generated setter method + * + * @param param QueryUsingFile + */ + public void setQueryUsingFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] param) { + + validateQueryUsingFile(param); + + localQueryUsingFileTracker = param != null; + + this.localQueryUsingFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile + */ + public void addQueryUsingFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile param) { + if (localQueryUsingFile == null) { + localQueryUsingFile = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[] {}; + } + + // update the setting tracker + localQueryUsingFileTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryUsingFile); + list.add(param); + this.localQueryUsingFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfQueryUsingFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfQueryUsingFile", + xmlWriter); + } + } + if (localQueryUsingFileTracker) { + if (localQueryUsingFile != null) { + for (int i = 0; i < localQueryUsingFile.length; i++) { + if (localQueryUsingFile[i] != null) { + localQueryUsingFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryUsingFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QueryUsingFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfQueryUsingFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfQueryUsingFile object = new ArrayOfQueryUsingFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfQueryUsingFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfQueryUsingFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryUsingFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryUsingFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQueryUsingFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfScheduledWU.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfScheduledWU.java index a3fb39f09..10c582de1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfScheduledWU.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfScheduledWU.java @@ -1,459 +1,459 @@ -/** - * ArrayOfScheduledWU.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfScheduledWU bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfScheduledWU implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfScheduledWU - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ScheduledWU This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] localScheduledWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScheduledWUTracker = false; - - public boolean isScheduledWUSpecified() { - return localScheduledWUTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] getScheduledWU() { - return localScheduledWU; - } - - /** validate the array for ScheduledWU */ - protected void validateScheduledWU( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] param) {} - - /** - * Auto generated setter method - * - * @param param ScheduledWU - */ - public void setScheduledWU( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] param) { - - validateScheduledWU(param); - - localScheduledWUTracker = param != null; - - this.localScheduledWU = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU - */ - public void addScheduledWU( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU param) { - if (localScheduledWU == null) { - localScheduledWU = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] {}; - } - - // update the setting tracker - localScheduledWUTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScheduledWU); - list.add(param); - this.localScheduledWU = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfScheduledWU", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfScheduledWU", - xmlWriter); - } - } - if (localScheduledWUTracker) { - if (localScheduledWU != null) { - for (int i = 0; i < localScheduledWU.length; i++) { - if (localScheduledWU[i] != null) { - localScheduledWU[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScheduledWU"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ScheduledWU cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfScheduledWU parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfScheduledWU object = new ArrayOfScheduledWU(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfScheduledWU".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfScheduledWU) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScheduledWU") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScheduledWU") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setScheduledWU( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfScheduledWU.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfScheduledWU bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfScheduledWU implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfScheduledWU + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ScheduledWU This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] localScheduledWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScheduledWUTracker = false; + + public boolean isScheduledWUSpecified() { + return localScheduledWUTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] getScheduledWU() { + return localScheduledWU; + } + + /** validate the array for ScheduledWU */ + protected void validateScheduledWU( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] param) {} + + /** + * Auto generated setter method + * + * @param param ScheduledWU + */ + public void setScheduledWU( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] param) { + + validateScheduledWU(param); + + localScheduledWUTracker = param != null; + + this.localScheduledWU = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU + */ + public void addScheduledWU( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU param) { + if (localScheduledWU == null) { + localScheduledWU = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[] {}; + } + + // update the setting tracker + localScheduledWUTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScheduledWU); + list.add(param); + this.localScheduledWU = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfScheduledWU", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfScheduledWU", + xmlWriter); + } + } + if (localScheduledWUTracker) { + if (localScheduledWU != null) { + for (int i = 0; i < localScheduledWU.length; i++) { + if (localScheduledWU[i] != null) { + localScheduledWU[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScheduledWU"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ScheduledWU cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfScheduledWU parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfScheduledWU object = new ArrayOfScheduledWU(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfScheduledWU".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfScheduledWU) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScheduledWU") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScheduledWU") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setScheduledWU( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfServerInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfServerInfo.java index a044eba0a..d4ff931ec 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfServerInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfServerInfo.java @@ -1,457 +1,457 @@ -/** - * ArrayOfServerInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfServerInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfServerInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfServerInfo - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ServerInfo This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] localServerInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServerInfoTracker = false; - - public boolean isServerInfoSpecified() { - return localServerInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] getServerInfo() { - return localServerInfo; - } - - /** validate the array for ServerInfo */ - protected void validateServerInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] param) {} - - /** - * Auto generated setter method - * - * @param param ServerInfo - */ - public void setServerInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] param) { - - validateServerInfo(param); - - localServerInfoTracker = param != null; - - this.localServerInfo = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo - */ - public void addServerInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo param) { - if (localServerInfo == null) { - localServerInfo = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] {}; - } - - // update the setting tracker - localServerInfoTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localServerInfo); - list.add(param); - this.localServerInfo = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfServerInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfServerInfo", - xmlWriter); - } - } - if (localServerInfoTracker) { - if (localServerInfo != null) { - for (int i = 0; i < localServerInfo.length; i++) { - if (localServerInfo[i] != null) { - localServerInfo[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServerInfo"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ServerInfo cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfServerInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfServerInfo object = new ArrayOfServerInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfServerInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfServerInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServerInfo") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServerInfo") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setServerInfo( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfServerInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfServerInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfServerInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfServerInfo + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ServerInfo This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] localServerInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServerInfoTracker = false; + + public boolean isServerInfoSpecified() { + return localServerInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] getServerInfo() { + return localServerInfo; + } + + /** validate the array for ServerInfo */ + protected void validateServerInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] param) {} + + /** + * Auto generated setter method + * + * @param param ServerInfo + */ + public void setServerInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] param) { + + validateServerInfo(param); + + localServerInfoTracker = param != null; + + this.localServerInfo = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo + */ + public void addServerInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo param) { + if (localServerInfo == null) { + localServerInfo = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[] {}; + } + + // update the setting tracker + localServerInfoTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localServerInfo); + list.add(param); + this.localServerInfo = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfServerInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfServerInfo", + xmlWriter); + } + } + if (localServerInfoTracker) { + if (localServerInfo != null) { + for (int i = 0; i < localServerInfo.length; i++) { + if (localServerInfo[i] != null) { + localServerInfo[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServerInfo"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ServerInfo cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfServerInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfServerInfo object = new ArrayOfServerInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfServerInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfServerInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServerInfo") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServerInfo") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setServerInfo( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfTargetQueriesUsingFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfTargetQueriesUsingFile.java index 5834af50d..62896a241 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfTargetQueriesUsingFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfTargetQueriesUsingFile.java @@ -1,467 +1,467 @@ -/** - * ArrayOfTargetQueriesUsingFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfTargetQueriesUsingFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfTargetQueriesUsingFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfTargetQueriesUsingFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for TargetQueriesUsingFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] - localTargetQueriesUsingFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetQueriesUsingFileTracker = false; - - public boolean isTargetQueriesUsingFileSpecified() { - return localTargetQueriesUsingFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] - getTargetQueriesUsingFile() { - return localTargetQueriesUsingFile; - } - - /** validate the array for TargetQueriesUsingFile */ - protected void validateTargetQueriesUsingFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] param) {} - - /** - * Auto generated setter method - * - * @param param TargetQueriesUsingFile - */ - public void setTargetQueriesUsingFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] param) { - - validateTargetQueriesUsingFile(param); - - localTargetQueriesUsingFileTracker = param != null; - - this.localTargetQueriesUsingFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile - */ - public void addTargetQueriesUsingFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile param) { - if (localTargetQueriesUsingFile == null) { - localTargetQueriesUsingFile = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] {}; - } - - // update the setting tracker - localTargetQueriesUsingFileTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localTargetQueriesUsingFile); - list.add(param); - this.localTargetQueriesUsingFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfTargetQueriesUsingFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfTargetQueriesUsingFile", - xmlWriter); - } - } - if (localTargetQueriesUsingFileTracker) { - if (localTargetQueriesUsingFile != null) { - for (int i = 0; i < localTargetQueriesUsingFile.length; i++) { - if (localTargetQueriesUsingFile[i] != null) { - localTargetQueriesUsingFile[i].serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TargetQueriesUsingFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException( - "TargetQueriesUsingFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfTargetQueriesUsingFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfTargetQueriesUsingFile object = new ArrayOfTargetQueriesUsingFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfTargetQueriesUsingFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfTargetQueriesUsingFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TargetQueriesUsingFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TargetQueriesUsingFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setTargetQueriesUsingFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfTargetQueriesUsingFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfTargetQueriesUsingFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfTargetQueriesUsingFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfTargetQueriesUsingFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for TargetQueriesUsingFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] + localTargetQueriesUsingFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetQueriesUsingFileTracker = false; + + public boolean isTargetQueriesUsingFileSpecified() { + return localTargetQueriesUsingFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] + getTargetQueriesUsingFile() { + return localTargetQueriesUsingFile; + } + + /** validate the array for TargetQueriesUsingFile */ + protected void validateTargetQueriesUsingFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] param) {} + + /** + * Auto generated setter method + * + * @param param TargetQueriesUsingFile + */ + public void setTargetQueriesUsingFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] param) { + + validateTargetQueriesUsingFile(param); + + localTargetQueriesUsingFileTracker = param != null; + + this.localTargetQueriesUsingFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile + */ + public void addTargetQueriesUsingFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile param) { + if (localTargetQueriesUsingFile == null) { + localTargetQueriesUsingFile = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[] {}; + } + + // update the setting tracker + localTargetQueriesUsingFileTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localTargetQueriesUsingFile); + list.add(param); + this.localTargetQueriesUsingFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfTargetQueriesUsingFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfTargetQueriesUsingFile", + xmlWriter); + } + } + if (localTargetQueriesUsingFileTracker) { + if (localTargetQueriesUsingFile != null) { + for (int i = 0; i < localTargetQueriesUsingFile.length; i++) { + if (localTargetQueriesUsingFile[i] != null) { + localTargetQueriesUsingFile[i].serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TargetQueriesUsingFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException( + "TargetQueriesUsingFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfTargetQueriesUsingFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfTargetQueriesUsingFile object = new ArrayOfTargetQueriesUsingFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfTargetQueriesUsingFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfTargetQueriesUsingFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TargetQueriesUsingFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TargetQueriesUsingFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setTargetQueriesUsingFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfThorLogInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfThorLogInfo.java index c329191a8..1524ce792 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfThorLogInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfThorLogInfo.java @@ -1,459 +1,459 @@ -/** - * ArrayOfThorLogInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfThorLogInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfThorLogInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfThorLogInfo - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ThorLogInfo This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] localThorLogInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorLogInfoTracker = false; - - public boolean isThorLogInfoSpecified() { - return localThorLogInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] getThorLogInfo() { - return localThorLogInfo; - } - - /** validate the array for ThorLogInfo */ - protected void validateThorLogInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] param) {} - - /** - * Auto generated setter method - * - * @param param ThorLogInfo - */ - public void setThorLogInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] param) { - - validateThorLogInfo(param); - - localThorLogInfoTracker = param != null; - - this.localThorLogInfo = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo - */ - public void addThorLogInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo param) { - if (localThorLogInfo == null) { - localThorLogInfo = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] {}; - } - - // update the setting tracker - localThorLogInfoTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localThorLogInfo); - list.add(param); - this.localThorLogInfo = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfThorLogInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfThorLogInfo", - xmlWriter); - } - } - if (localThorLogInfoTracker) { - if (localThorLogInfo != null) { - for (int i = 0; i < localThorLogInfo.length; i++) { - if (localThorLogInfo[i] != null) { - localThorLogInfo[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogInfo"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ThorLogInfo cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfThorLogInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfThorLogInfo object = new ArrayOfThorLogInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfThorLogInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfThorLogInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogInfo") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogInfo") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setThorLogInfo( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfThorLogInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfThorLogInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfThorLogInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfThorLogInfo + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ThorLogInfo This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] localThorLogInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorLogInfoTracker = false; + + public boolean isThorLogInfoSpecified() { + return localThorLogInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] getThorLogInfo() { + return localThorLogInfo; + } + + /** validate the array for ThorLogInfo */ + protected void validateThorLogInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] param) {} + + /** + * Auto generated setter method + * + * @param param ThorLogInfo + */ + public void setThorLogInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] param) { + + validateThorLogInfo(param); + + localThorLogInfoTracker = param != null; + + this.localThorLogInfo = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo + */ + public void addThorLogInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo param) { + if (localThorLogInfo == null) { + localThorLogInfo = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[] {}; + } + + // update the setting tracker + localThorLogInfoTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localThorLogInfo); + list.add(param); + this.localThorLogInfo = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfThorLogInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfThorLogInfo", + xmlWriter); + } + } + if (localThorLogInfoTracker) { + if (localThorLogInfo != null) { + for (int i = 0; i < localThorLogInfo.length; i++) { + if (localThorLogInfo[i] != null) { + localThorLogInfo[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogInfo"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ThorLogInfo cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfThorLogInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfThorLogInfo object = new ArrayOfThorLogInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfThorLogInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfThorLogInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogInfo") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogInfo") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setThorLogInfo( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfThorQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfThorQueue.java index bf75a7cb2..6c71902ec 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfThorQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfThorQueue.java @@ -1,456 +1,456 @@ -/** - * ArrayOfThorQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfThorQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfThorQueue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfThorQueue - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ThorQueue This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] localThorQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorQueueTracker = false; - - public boolean isThorQueueSpecified() { - return localThorQueueTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] getThorQueue() { - return localThorQueue; - } - - /** validate the array for ThorQueue */ - protected void validateThorQueue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] param) {} - - /** - * Auto generated setter method - * - * @param param ThorQueue - */ - public void setThorQueue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] param) { - - validateThorQueue(param); - - localThorQueueTracker = param != null; - - this.localThorQueue = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue - */ - public void addThorQueue(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue param) { - if (localThorQueue == null) { - localThorQueue = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] {}; - } - - // update the setting tracker - localThorQueueTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localThorQueue); - list.add(param); - this.localThorQueue = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfThorQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfThorQueue", - xmlWriter); - } - } - if (localThorQueueTracker) { - if (localThorQueue != null) { - for (int i = 0; i < localThorQueue.length; i++) { - if (localThorQueue[i] != null) { - localThorQueue[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorQueue"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ThorQueue cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfThorQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfThorQueue object = new ArrayOfThorQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfThorQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfThorQueue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorQueue") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorQueue") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue.Factory.parse( - reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setThorQueue( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfThorQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfThorQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfThorQueue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfThorQueue + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ThorQueue This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] localThorQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorQueueTracker = false; + + public boolean isThorQueueSpecified() { + return localThorQueueTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] getThorQueue() { + return localThorQueue; + } + + /** validate the array for ThorQueue */ + protected void validateThorQueue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] param) {} + + /** + * Auto generated setter method + * + * @param param ThorQueue + */ + public void setThorQueue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] param) { + + validateThorQueue(param); + + localThorQueueTracker = param != null; + + this.localThorQueue = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue + */ + public void addThorQueue(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue param) { + if (localThorQueue == null) { + localThorQueue = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[] {}; + } + + // update the setting tracker + localThorQueueTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localThorQueue); + list.add(param); + this.localThorQueue = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfThorQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfThorQueue", + xmlWriter); + } + } + if (localThorQueueTracker) { + if (localThorQueue != null) { + for (int i = 0; i < localThorQueue.length; i++) { + if (localThorQueue[i] != null) { + localThorQueue[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorQueue"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ThorQueue cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfThorQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfThorQueue object = new ArrayOfThorQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfThorQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfThorQueue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorQueue") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorQueue") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue.Factory.parse( + reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setThorQueue( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUActionResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUActionResult.java index 5410d6ea5..4b164fe74 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUActionResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUActionResult.java @@ -1,462 +1,462 @@ -/** - * ArrayOfWUActionResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfWUActionResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfWUActionResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfWUActionResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WUActionResult This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] - localWUActionResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUActionResultTracker = false; - - public boolean isWUActionResultSpecified() { - return localWUActionResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] - getWUActionResult() { - return localWUActionResult; - } - - /** validate the array for WUActionResult */ - protected void validateWUActionResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] param) {} - - /** - * Auto generated setter method - * - * @param param WUActionResult - */ - public void setWUActionResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] param) { - - validateWUActionResult(param); - - localWUActionResultTracker = param != null; - - this.localWUActionResult = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult - */ - public void addWUActionResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult param) { - if (localWUActionResult == null) { - localWUActionResult = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] {}; - } - - // update the setting tracker - localWUActionResultTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUActionResult); - list.add(param); - this.localWUActionResult = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfWUActionResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfWUActionResult", - xmlWriter); - } - } - if (localWUActionResultTracker) { - if (localWUActionResult != null) { - for (int i = 0; i < localWUActionResult.length; i++) { - if (localWUActionResult[i] != null) { - localWUActionResult[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionResult"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("WUActionResult cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfWUActionResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfWUActionResult object = new ArrayOfWUActionResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfWUActionResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfWUActionResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionResult") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionResult") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setWUActionResult( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfWUActionResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfWUActionResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfWUActionResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfWUActionResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WUActionResult This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] + localWUActionResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUActionResultTracker = false; + + public boolean isWUActionResultSpecified() { + return localWUActionResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] + getWUActionResult() { + return localWUActionResult; + } + + /** validate the array for WUActionResult */ + protected void validateWUActionResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] param) {} + + /** + * Auto generated setter method + * + * @param param WUActionResult + */ + public void setWUActionResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] param) { + + validateWUActionResult(param); + + localWUActionResultTracker = param != null; + + this.localWUActionResult = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult + */ + public void addWUActionResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult param) { + if (localWUActionResult == null) { + localWUActionResult = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[] {}; + } + + // update the setting tracker + localWUActionResultTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUActionResult); + list.add(param); + this.localWUActionResult = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfWUActionResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfWUActionResult", + xmlWriter); + } + } + if (localWUActionResultTracker) { + if (localWUActionResult != null) { + for (int i = 0; i < localWUActionResult.length; i++) { + if (localWUActionResult[i] != null) { + localWUActionResult[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionResult"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("WUActionResult cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfWUActionResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfWUActionResult object = new ArrayOfWUActionResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfWUActionResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfWUActionResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionResult") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionResult") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setWUActionResult( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUEclDefinitionActionResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUEclDefinitionActionResult.java index 35d48bed8..aa7f13052 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUEclDefinitionActionResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUEclDefinitionActionResult.java @@ -1,468 +1,468 @@ -/** - * ArrayOfWUEclDefinitionActionResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfWUEclDefinitionActionResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfWUEclDefinitionActionResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfWUEclDefinitionActionResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WUEclDefinitionActionResult This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] - localWUEclDefinitionActionResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUEclDefinitionActionResultTracker = false; - - public boolean isWUEclDefinitionActionResultSpecified() { - return localWUEclDefinitionActionResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] - getWUEclDefinitionActionResult() { - return localWUEclDefinitionActionResult; - } - - /** validate the array for WUEclDefinitionActionResult */ - protected void validateWUEclDefinitionActionResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] param) {} - - /** - * Auto generated setter method - * - * @param param WUEclDefinitionActionResult - */ - public void setWUEclDefinitionActionResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] param) { - - validateWUEclDefinitionActionResult(param); - - localWUEclDefinitionActionResultTracker = param != null; - - this.localWUEclDefinitionActionResult = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult - */ - public void addWUEclDefinitionActionResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult param) { - if (localWUEclDefinitionActionResult == null) { - localWUEclDefinitionActionResult = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult - [] {}; - } - - // update the setting tracker - localWUEclDefinitionActionResultTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUEclDefinitionActionResult); - list.add(param); - this.localWUEclDefinitionActionResult = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUEclDefinitionActionResult[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfWUEclDefinitionActionResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfWUEclDefinitionActionResult", - xmlWriter); - } - } - if (localWUEclDefinitionActionResultTracker) { - if (localWUEclDefinitionActionResult != null) { - for (int i = 0; i < localWUEclDefinitionActionResult.length; i++) { - if (localWUEclDefinitionActionResult[i] != null) { - localWUEclDefinitionActionResult[i].serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionActionResult"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException( - "WUEclDefinitionActionResult cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfWUEclDefinitionActionResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfWUEclDefinitionActionResult object = new ArrayOfWUEclDefinitionActionResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfWUEclDefinitionActionResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfWUEclDefinitionActionResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionActionResult") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult - .Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionActionResult") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUEclDefinitionActionResult.Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setWUEclDefinitionActionResult( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUEclDefinitionActionResult.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfWUEclDefinitionActionResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfWUEclDefinitionActionResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfWUEclDefinitionActionResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfWUEclDefinitionActionResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WUEclDefinitionActionResult This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] + localWUEclDefinitionActionResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUEclDefinitionActionResultTracker = false; + + public boolean isWUEclDefinitionActionResultSpecified() { + return localWUEclDefinitionActionResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] + getWUEclDefinitionActionResult() { + return localWUEclDefinitionActionResult; + } + + /** validate the array for WUEclDefinitionActionResult */ + protected void validateWUEclDefinitionActionResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] param) {} + + /** + * Auto generated setter method + * + * @param param WUEclDefinitionActionResult + */ + public void setWUEclDefinitionActionResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[] param) { + + validateWUEclDefinitionActionResult(param); + + localWUEclDefinitionActionResultTracker = param != null; + + this.localWUEclDefinitionActionResult = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult + */ + public void addWUEclDefinitionActionResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult param) { + if (localWUEclDefinitionActionResult == null) { + localWUEclDefinitionActionResult = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult + [] {}; + } + + // update the setting tracker + localWUEclDefinitionActionResultTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUEclDefinitionActionResult); + list.add(param); + this.localWUEclDefinitionActionResult = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUEclDefinitionActionResult[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfWUEclDefinitionActionResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfWUEclDefinitionActionResult", + xmlWriter); + } + } + if (localWUEclDefinitionActionResultTracker) { + if (localWUEclDefinitionActionResult != null) { + for (int i = 0; i < localWUEclDefinitionActionResult.length; i++) { + if (localWUEclDefinitionActionResult[i] != null) { + localWUEclDefinitionActionResult[i].serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionActionResult"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException( + "WUEclDefinitionActionResult cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfWUEclDefinitionActionResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfWUEclDefinitionActionResult object = new ArrayOfWUEclDefinitionActionResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfWUEclDefinitionActionResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfWUEclDefinitionActionResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionActionResult") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult + .Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionActionResult") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUEclDefinitionActionResult.Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setWUEclDefinitionActionResult( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUEclDefinitionActionResult.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUEclPluginsInFolder.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUEclPluginsInFolder.java index cfea2f552..5a16b29eb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUEclPluginsInFolder.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUEclPluginsInFolder.java @@ -1,467 +1,467 @@ -/** - * ArrayOfWUEclPluginsInFolder.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfWUEclPluginsInFolder bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfWUEclPluginsInFolder implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfWUEclPluginsInFolder - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WUEclPluginsInFolder This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] - localWUEclPluginsInFolder; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUEclPluginsInFolderTracker = false; - - public boolean isWUEclPluginsInFolderSpecified() { - return localWUEclPluginsInFolderTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] - getWUEclPluginsInFolder() { - return localWUEclPluginsInFolder; - } - - /** validate the array for WUEclPluginsInFolder */ - protected void validateWUEclPluginsInFolder( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] param) {} - - /** - * Auto generated setter method - * - * @param param WUEclPluginsInFolder - */ - public void setWUEclPluginsInFolder( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] param) { - - validateWUEclPluginsInFolder(param); - - localWUEclPluginsInFolderTracker = param != null; - - this.localWUEclPluginsInFolder = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder - */ - public void addWUEclPluginsInFolder( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder param) { - if (localWUEclPluginsInFolder == null) { - localWUEclPluginsInFolder = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] {}; - } - - // update the setting tracker - localWUEclPluginsInFolderTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUEclPluginsInFolder); - list.add(param); - this.localWUEclPluginsInFolder = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfWUEclPluginsInFolder", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfWUEclPluginsInFolder", - xmlWriter); - } - } - if (localWUEclPluginsInFolderTracker) { - if (localWUEclPluginsInFolder != null) { - for (int i = 0; i < localWUEclPluginsInFolder.length; i++) { - if (localWUEclPluginsInFolder[i] != null) { - localWUEclPluginsInFolder[i].serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclPluginsInFolder"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException( - "WUEclPluginsInFolder cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfWUEclPluginsInFolder parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfWUEclPluginsInFolder object = new ArrayOfWUEclPluginsInFolder(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfWUEclPluginsInFolder".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfWUEclPluginsInFolder) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclPluginsInFolder") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclPluginsInFolder") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setWUEclPluginsInFolder( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfWUEclPluginsInFolder.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfWUEclPluginsInFolder bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfWUEclPluginsInFolder implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfWUEclPluginsInFolder + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WUEclPluginsInFolder This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] + localWUEclPluginsInFolder; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUEclPluginsInFolderTracker = false; + + public boolean isWUEclPluginsInFolderSpecified() { + return localWUEclPluginsInFolderTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] + getWUEclPluginsInFolder() { + return localWUEclPluginsInFolder; + } + + /** validate the array for WUEclPluginsInFolder */ + protected void validateWUEclPluginsInFolder( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] param) {} + + /** + * Auto generated setter method + * + * @param param WUEclPluginsInFolder + */ + public void setWUEclPluginsInFolder( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] param) { + + validateWUEclPluginsInFolder(param); + + localWUEclPluginsInFolderTracker = param != null; + + this.localWUEclPluginsInFolder = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder + */ + public void addWUEclPluginsInFolder( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder param) { + if (localWUEclPluginsInFolder == null) { + localWUEclPluginsInFolder = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[] {}; + } + + // update the setting tracker + localWUEclPluginsInFolderTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUEclPluginsInFolder); + list.add(param); + this.localWUEclPluginsInFolder = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfWUEclPluginsInFolder", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfWUEclPluginsInFolder", + xmlWriter); + } + } + if (localWUEclPluginsInFolderTracker) { + if (localWUEclPluginsInFolder != null) { + for (int i = 0; i < localWUEclPluginsInFolder.length; i++) { + if (localWUEclPluginsInFolder[i] != null) { + localWUEclPluginsInFolder[i].serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclPluginsInFolder"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException( + "WUEclPluginsInFolder cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfWUEclPluginsInFolder parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfWUEclPluginsInFolder object = new ArrayOfWUEclPluginsInFolder(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfWUEclPluginsInFolder".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfWUEclPluginsInFolder) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclPluginsInFolder") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclPluginsInFolder") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setWUEclPluginsInFolder( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWULogicalFileCopyInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWULogicalFileCopyInfo.java index 2900f60bb..dc82f41b1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWULogicalFileCopyInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWULogicalFileCopyInfo.java @@ -1,467 +1,467 @@ -/** - * ArrayOfWULogicalFileCopyInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfWULogicalFileCopyInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfWULogicalFileCopyInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfWULogicalFileCopyInfo - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WULogicalFileCopyInfo This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] - localWULogicalFileCopyInfo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWULogicalFileCopyInfoTracker = false; - - public boolean isWULogicalFileCopyInfoSpecified() { - return localWULogicalFileCopyInfoTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] - getWULogicalFileCopyInfo() { - return localWULogicalFileCopyInfo; - } - - /** validate the array for WULogicalFileCopyInfo */ - protected void validateWULogicalFileCopyInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] param) {} - - /** - * Auto generated setter method - * - * @param param WULogicalFileCopyInfo - */ - public void setWULogicalFileCopyInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] param) { - - validateWULogicalFileCopyInfo(param); - - localWULogicalFileCopyInfoTracker = param != null; - - this.localWULogicalFileCopyInfo = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo - */ - public void addWULogicalFileCopyInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo param) { - if (localWULogicalFileCopyInfo == null) { - localWULogicalFileCopyInfo = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] {}; - } - - // update the setting tracker - localWULogicalFileCopyInfoTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localWULogicalFileCopyInfo); - list.add(param); - this.localWULogicalFileCopyInfo = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfWULogicalFileCopyInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfWULogicalFileCopyInfo", - xmlWriter); - } - } - if (localWULogicalFileCopyInfoTracker) { - if (localWULogicalFileCopyInfo != null) { - for (int i = 0; i < localWULogicalFileCopyInfo.length; i++) { - if (localWULogicalFileCopyInfo[i] != null) { - localWULogicalFileCopyInfo[i].serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WULogicalFileCopyInfo"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException( - "WULogicalFileCopyInfo cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfWULogicalFileCopyInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfWULogicalFileCopyInfo object = new ArrayOfWULogicalFileCopyInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfWULogicalFileCopyInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfWULogicalFileCopyInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WULogicalFileCopyInfo") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WULogicalFileCopyInfo") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setWULogicalFileCopyInfo( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfWULogicalFileCopyInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfWULogicalFileCopyInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfWULogicalFileCopyInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfWULogicalFileCopyInfo + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WULogicalFileCopyInfo This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] + localWULogicalFileCopyInfo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWULogicalFileCopyInfoTracker = false; + + public boolean isWULogicalFileCopyInfoSpecified() { + return localWULogicalFileCopyInfoTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] + getWULogicalFileCopyInfo() { + return localWULogicalFileCopyInfo; + } + + /** validate the array for WULogicalFileCopyInfo */ + protected void validateWULogicalFileCopyInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] param) {} + + /** + * Auto generated setter method + * + * @param param WULogicalFileCopyInfo + */ + public void setWULogicalFileCopyInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] param) { + + validateWULogicalFileCopyInfo(param); + + localWULogicalFileCopyInfoTracker = param != null; + + this.localWULogicalFileCopyInfo = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo + */ + public void addWULogicalFileCopyInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo param) { + if (localWULogicalFileCopyInfo == null) { + localWULogicalFileCopyInfo = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[] {}; + } + + // update the setting tracker + localWULogicalFileCopyInfoTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localWULogicalFileCopyInfo); + list.add(param); + this.localWULogicalFileCopyInfo = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfWULogicalFileCopyInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfWULogicalFileCopyInfo", + xmlWriter); + } + } + if (localWULogicalFileCopyInfoTracker) { + if (localWULogicalFileCopyInfo != null) { + for (int i = 0; i < localWULogicalFileCopyInfo.length; i++) { + if (localWULogicalFileCopyInfo[i] != null) { + localWULogicalFileCopyInfo[i].serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WULogicalFileCopyInfo"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException( + "WULogicalFileCopyInfo cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfWULogicalFileCopyInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfWULogicalFileCopyInfo object = new ArrayOfWULogicalFileCopyInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfWULogicalFileCopyInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfWULogicalFileCopyInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WULogicalFileCopyInfo") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WULogicalFileCopyInfo") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setWULogicalFileCopyInfo( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUQuerySetDetail.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUQuerySetDetail.java index 504d6f34b..9a4b3ab77 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUQuerySetDetail.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUQuerySetDetail.java @@ -1,463 +1,463 @@ -/** - * ArrayOfWUQuerySetDetail.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfWUQuerySetDetail bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfWUQuerySetDetail implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfWUQuerySetDetail - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WUQuerySetDetail This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] - localWUQuerySetDetail; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUQuerySetDetailTracker = false; - - public boolean isWUQuerySetDetailSpecified() { - return localWUQuerySetDetailTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] - getWUQuerySetDetail() { - return localWUQuerySetDetail; - } - - /** validate the array for WUQuerySetDetail */ - protected void validateWUQuerySetDetail( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] param) {} - - /** - * Auto generated setter method - * - * @param param WUQuerySetDetail - */ - public void setWUQuerySetDetail( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] param) { - - validateWUQuerySetDetail(param); - - localWUQuerySetDetailTracker = param != null; - - this.localWUQuerySetDetail = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail - */ - public void addWUQuerySetDetail( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail param) { - if (localWUQuerySetDetail == null) { - localWUQuerySetDetail = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] {}; - } - - // update the setting tracker - localWUQuerySetDetailTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUQuerySetDetail); - list.add(param); - this.localWUQuerySetDetail = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfWUQuerySetDetail", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfWUQuerySetDetail", - xmlWriter); - } - } - if (localWUQuerySetDetailTracker) { - if (localWUQuerySetDetail != null) { - for (int i = 0; i < localWUQuerySetDetail.length; i++) { - if (localWUQuerySetDetail[i] != null) { - localWUQuerySetDetail[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerySetDetail"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("WUQuerySetDetail cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfWUQuerySetDetail parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfWUQuerySetDetail object = new ArrayOfWUQuerySetDetail(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfWUQuerySetDetail".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfWUQuerySetDetail) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerySetDetail") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerySetDetail") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setWUQuerySetDetail( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfWUQuerySetDetail.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfWUQuerySetDetail bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfWUQuerySetDetail implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfWUQuerySetDetail + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WUQuerySetDetail This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] + localWUQuerySetDetail; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUQuerySetDetailTracker = false; + + public boolean isWUQuerySetDetailSpecified() { + return localWUQuerySetDetailTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] + getWUQuerySetDetail() { + return localWUQuerySetDetail; + } + + /** validate the array for WUQuerySetDetail */ + protected void validateWUQuerySetDetail( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] param) {} + + /** + * Auto generated setter method + * + * @param param WUQuerySetDetail + */ + public void setWUQuerySetDetail( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] param) { + + validateWUQuerySetDetail(param); + + localWUQuerySetDetailTracker = param != null; + + this.localWUQuerySetDetail = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail + */ + public void addWUQuerySetDetail( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail param) { + if (localWUQuerySetDetail == null) { + localWUQuerySetDetail = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[] {}; + } + + // update the setting tracker + localWUQuerySetDetailTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUQuerySetDetail); + list.add(param); + this.localWUQuerySetDetail = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfWUQuerySetDetail", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfWUQuerySetDetail", + xmlWriter); + } + } + if (localWUQuerySetDetailTracker) { + if (localWUQuerySetDetail != null) { + for (int i = 0; i < localWUQuerySetDetail.length; i++) { + if (localWUQuerySetDetail[i] != null) { + localWUQuerySetDetail[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerySetDetail"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("WUQuerySetDetail cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfWUQuerySetDetail parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfWUQuerySetDetail object = new ArrayOfWUQuerySetDetail(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfWUQuerySetDetail".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfWUQuerySetDetail) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerySetDetail") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerySetDetail") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setWUQuerySetDetail( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUStatisticItem.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUStatisticItem.java index 0401db425..c42a68919 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUStatisticItem.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ArrayOfWUStatisticItem.java @@ -1,462 +1,462 @@ -/** - * ArrayOfWUStatisticItem.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ArrayOfWUStatisticItem bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ArrayOfWUStatisticItem implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ArrayOfWUStatisticItem - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WUStatisticItem This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] - localWUStatisticItem; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUStatisticItemTracker = false; - - public boolean isWUStatisticItemSpecified() { - return localWUStatisticItemTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] - getWUStatisticItem() { - return localWUStatisticItem; - } - - /** validate the array for WUStatisticItem */ - protected void validateWUStatisticItem( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] param) {} - - /** - * Auto generated setter method - * - * @param param WUStatisticItem - */ - public void setWUStatisticItem( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] param) { - - validateWUStatisticItem(param); - - localWUStatisticItemTracker = param != null; - - this.localWUStatisticItem = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem - */ - public void addWUStatisticItem( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem param) { - if (localWUStatisticItem == null) { - localWUStatisticItem = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] {}; - } - - // update the setting tracker - localWUStatisticItemTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUStatisticItem); - list.add(param); - this.localWUStatisticItem = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ArrayOfWUStatisticItem", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ArrayOfWUStatisticItem", - xmlWriter); - } - } - if (localWUStatisticItemTracker) { - if (localWUStatisticItem != null) { - for (int i = 0; i < localWUStatisticItem.length; i++) { - if (localWUStatisticItem[i] != null) { - localWUStatisticItem[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUStatisticItem"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("WUStatisticItem cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ArrayOfWUStatisticItem parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ArrayOfWUStatisticItem object = new ArrayOfWUStatisticItem(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ArrayOfWUStatisticItem".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ArrayOfWUStatisticItem) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUStatisticItem") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUStatisticItem") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setWUStatisticItem( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ArrayOfWUStatisticItem.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ArrayOfWUStatisticItem bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ArrayOfWUStatisticItem implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ArrayOfWUStatisticItem + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WUStatisticItem This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] + localWUStatisticItem; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUStatisticItemTracker = false; + + public boolean isWUStatisticItemSpecified() { + return localWUStatisticItemTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] + getWUStatisticItem() { + return localWUStatisticItem; + } + + /** validate the array for WUStatisticItem */ + protected void validateWUStatisticItem( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] param) {} + + /** + * Auto generated setter method + * + * @param param WUStatisticItem + */ + public void setWUStatisticItem( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] param) { + + validateWUStatisticItem(param); + + localWUStatisticItemTracker = param != null; + + this.localWUStatisticItem = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem + */ + public void addWUStatisticItem( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem param) { + if (localWUStatisticItem == null) { + localWUStatisticItem = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[] {}; + } + + // update the setting tracker + localWUStatisticItemTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localWUStatisticItem); + list.add(param); + this.localWUStatisticItem = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ArrayOfWUStatisticItem", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ArrayOfWUStatisticItem", + xmlWriter); + } + } + if (localWUStatisticItemTracker) { + if (localWUStatisticItem != null) { + for (int i = 0; i < localWUStatisticItem.length; i++) { + if (localWUStatisticItem[i] != null) { + localWUStatisticItem[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUStatisticItem"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("WUStatisticItem cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ArrayOfWUStatisticItem parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ArrayOfWUStatisticItem object = new ArrayOfWUStatisticItem(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ArrayOfWUStatisticItem".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ArrayOfWUStatisticItem) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUStatisticItem") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUStatisticItem") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setWUStatisticItem( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterEndpoint.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterEndpoint.java index 144f7a46a..e4fc9e972 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterEndpoint.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterEndpoint.java @@ -1,539 +1,539 @@ -/** - * ClusterEndpoint.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ClusterEndpoint bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ClusterEndpoint implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ClusterEndpoint - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for URL */ - protected java.lang.String localURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localURLTracker = false; - - public boolean isURLSpecified() { - return localURLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getURL() { - return localURL; - } - - /** - * Auto generated setter method - * - * @param param URL - */ - public void setURL(java.lang.String param) { - localURLTracker = param != null; - - this.localURL = param; - } - - /** field for Status */ - protected java.lang.String localStatus; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusTracker = false; - - public boolean isStatusSpecified() { - return localStatusTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStatus() { - return localStatus; - } - - /** - * Auto generated setter method - * - * @param param Status - */ - public void setStatus(java.lang.String param) { - localStatusTracker = param != null; - - this.localStatus = param; - } - - /** field for NumQueryFileToCopy */ - protected int localNumQueryFileToCopy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumQueryFileToCopyTracker = false; - - public boolean isNumQueryFileToCopySpecified() { - return localNumQueryFileToCopyTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getNumQueryFileToCopy() { - return localNumQueryFileToCopy; - } - - /** - * Auto generated setter method - * - * @param param NumQueryFileToCopy - */ - public void setNumQueryFileToCopy(int param) { - - // setting primitive attribute tracker to true - localNumQueryFileToCopyTracker = param != java.lang.Integer.MIN_VALUE; - - this.localNumQueryFileToCopy = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ClusterEndpoint", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ClusterEndpoint", - xmlWriter); - } - } - if (localURLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "URL", xmlWriter); - - if (localURL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("URL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localURL); - } - - xmlWriter.writeEndElement(); - } - if (localStatusTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Status", xmlWriter); - - if (localStatus == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Status cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStatus); - } - - xmlWriter.writeEndElement(); - } - if (localNumQueryFileToCopyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NumQueryFileToCopy", xmlWriter); - - if (localNumQueryFileToCopy == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NumQueryFileToCopy cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localNumQueryFileToCopy)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ClusterEndpoint parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ClusterEndpoint object = new ClusterEndpoint(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ClusterEndpoint".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ClusterEndpoint) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "URL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "URL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setURL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Status") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Status" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStatus( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "NumQueryFileToCopy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumQueryFileToCopy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumQueryFileToCopy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ClusterEndpoint.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ClusterEndpoint bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ClusterEndpoint implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ClusterEndpoint + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for URL */ + protected java.lang.String localURL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localURLTracker = false; + + public boolean isURLSpecified() { + return localURLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getURL() { + return localURL; + } + + /** + * Auto generated setter method + * + * @param param URL + */ + public void setURL(java.lang.String param) { + localURLTracker = param != null; + + this.localURL = param; + } + + /** field for Status */ + protected java.lang.String localStatus; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusTracker = false; + + public boolean isStatusSpecified() { + return localStatusTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStatus() { + return localStatus; + } + + /** + * Auto generated setter method + * + * @param param Status + */ + public void setStatus(java.lang.String param) { + localStatusTracker = param != null; + + this.localStatus = param; + } + + /** field for NumQueryFileToCopy */ + protected int localNumQueryFileToCopy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumQueryFileToCopyTracker = false; + + public boolean isNumQueryFileToCopySpecified() { + return localNumQueryFileToCopyTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getNumQueryFileToCopy() { + return localNumQueryFileToCopy; + } + + /** + * Auto generated setter method + * + * @param param NumQueryFileToCopy + */ + public void setNumQueryFileToCopy(int param) { + + // setting primitive attribute tracker to true + localNumQueryFileToCopyTracker = param != java.lang.Integer.MIN_VALUE; + + this.localNumQueryFileToCopy = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ClusterEndpoint", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ClusterEndpoint", + xmlWriter); + } + } + if (localURLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "URL", xmlWriter); + + if (localURL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("URL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localURL); + } + + xmlWriter.writeEndElement(); + } + if (localStatusTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Status", xmlWriter); + + if (localStatus == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Status cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStatus); + } + + xmlWriter.writeEndElement(); + } + if (localNumQueryFileToCopyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NumQueryFileToCopy", xmlWriter); + + if (localNumQueryFileToCopy == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NumQueryFileToCopy cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localNumQueryFileToCopy)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ClusterEndpoint parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ClusterEndpoint object = new ClusterEndpoint(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ClusterEndpoint".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ClusterEndpoint) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "URL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "URL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setURL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Status") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Status" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStatus( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "NumQueryFileToCopy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumQueryFileToCopy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumQueryFileToCopy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterFiles_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterFiles_type0.java index 173ab5a2d..92ae86875 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterFiles_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterFiles_type0.java @@ -1,471 +1,471 @@ -/** - * ClusterFiles_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ClusterFiles_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ClusterFiles_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ClusterFiles_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Cluster This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections - [] - localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return - * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] - getCluster() { - return localCluster; - } - - /** validate the array for Cluster */ - protected void validateCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] - param) {} - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] - param) { - - validateCluster(param); - - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param - * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections - */ - public void addCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections - param) { - if (localCluster == null) { - localCluster = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections[] {}; - } - - // update the setting tracker - localClusterTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localCluster); - list.add(param); - this.localCluster = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ClusterFiles_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ClusterFiles_type0", - xmlWriter); - } - } - if (localClusterTracker) { - if (localCluster != null) { - for (int i = 0; i < localCluster.length; i++) { - if (localCluster[i] != null) { - localCluster[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ClusterFiles_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ClusterFiles_type0 object = new ClusterFiles_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ClusterFiles_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ClusterFiles_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections.Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setCluster( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections - []) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ClusterFiles_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ClusterFiles_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ClusterFiles_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ClusterFiles_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Cluster This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections + [] + localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return + * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] + getCluster() { + return localCluster; + } + + /** validate the array for Cluster */ + protected void validateCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] + param) {} + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] + param) { + + validateCluster(param); + + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param + * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections + */ + public void addCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections + param) { + if (localCluster == null) { + localCluster = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections[] {}; + } + + // update the setting tracker + localClusterTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localCluster); + list.add(param); + this.localCluster = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ClusterFiles_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ClusterFiles_type0", + xmlWriter); + } + } + if (localClusterTracker) { + if (localCluster != null) { + for (int i = 0; i < localCluster.length; i++) { + if (localCluster[i] != null) { + localCluster[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ClusterFiles_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ClusterFiles_type0 object = new ClusterFiles_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ClusterFiles_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ClusterFiles_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections.Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setCluster( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections + []) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterFiles_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterFiles_type1.java index b65da83c4..eeb77dc72 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterFiles_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterFiles_type1.java @@ -1,471 +1,471 @@ -/** - * ClusterFiles_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ClusterFiles_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ClusterFiles_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ClusterFiles_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Cluster This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections - [] - localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return - * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] - getCluster() { - return localCluster; - } - - /** validate the array for Cluster */ - protected void validateCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] - param) {} - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] - param) { - - validateCluster(param); - - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param - * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections - */ - public void addCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections - param) { - if (localCluster == null) { - localCluster = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections[] {}; - } - - // update the setting tracker - localClusterTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localCluster); - list.add(param); - this.localCluster = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ClusterFiles_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ClusterFiles_type1", - xmlWriter); - } - } - if (localClusterTracker) { - if (localCluster != null) { - for (int i = 0; i < localCluster.length; i++) { - if (localCluster[i] != null) { - localCluster[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ClusterFiles_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ClusterFiles_type1 object = new ClusterFiles_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ClusterFiles_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ClusterFiles_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections.Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections.Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setCluster( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections - []) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUCopyLogicalClusterFileSections.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ClusterFiles_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ClusterFiles_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ClusterFiles_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ClusterFiles_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Cluster This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections + [] + localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return + * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] + getCluster() { + return localCluster; + } + + /** validate the array for Cluster */ + protected void validateCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] + param) {} + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[] + param) { + + validateCluster(param); + + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param + * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections + */ + public void addCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections + param) { + if (localCluster == null) { + localCluster = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections[] {}; + } + + // update the setting tracker + localClusterTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localCluster); + list.add(param); + this.localCluster = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ClusterFiles_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ClusterFiles_type1", + xmlWriter); + } + } + if (localClusterTracker) { + if (localCluster != null) { + for (int i = 0; i < localCluster.length; i++) { + if (localCluster[i] != null) { + localCluster[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ClusterFiles_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ClusterFiles_type1 object = new ClusterFiles_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ClusterFiles_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ClusterFiles_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections.Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections.Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setCluster( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections + []) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUCopyLogicalClusterFileSections.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterQueryState.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterQueryState.java index 5dce89add..7ea5e2553 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterQueryState.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ClusterQueryState.java @@ -1,606 +1,606 @@ -/** - * ClusterQueryState.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ClusterQueryState bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ClusterQueryState implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ClusterQueryState - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for Errors */ - protected java.lang.String localErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorsTracker = false; - - public boolean isErrorsSpecified() { - return localErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getErrors() { - return localErrors; - } - - /** - * Auto generated setter method - * - * @param param Errors - */ - public void setErrors(java.lang.String param) { - localErrorsTracker = param != null; - - this.localErrors = param; - } - - /** field for MixedNodeStates */ - protected boolean localMixedNodeStates; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMixedNodeStatesTracker = false; - - public boolean isMixedNodeStatesSpecified() { - return localMixedNodeStatesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getMixedNodeStates() { - return localMixedNodeStates; - } - - /** - * Auto generated setter method - * - * @param param MixedNodeStates - */ - public void setMixedNodeStates(boolean param) { - - // setting primitive attribute tracker to true - localMixedNodeStatesTracker = true; - - this.localMixedNodeStates = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ClusterQueryState", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ClusterQueryState", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localErrorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Errors", xmlWriter); - - if (localErrors == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Errors cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localErrors); - } - - xmlWriter.writeEndElement(); - } - if (localMixedNodeStatesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MixedNodeStates", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("MixedNodeStates cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMixedNodeStates)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ClusterQueryState parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ClusterQueryState object = new ClusterQueryState(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ClusterQueryState".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ClusterQueryState) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Errors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setErrors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "MixedNodeStates") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MixedNodeStates" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMixedNodeStates( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ClusterQueryState.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ClusterQueryState bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ClusterQueryState implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ClusterQueryState + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for Errors */ + protected java.lang.String localErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorsTracker = false; + + public boolean isErrorsSpecified() { + return localErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getErrors() { + return localErrors; + } + + /** + * Auto generated setter method + * + * @param param Errors + */ + public void setErrors(java.lang.String param) { + localErrorsTracker = param != null; + + this.localErrors = param; + } + + /** field for MixedNodeStates */ + protected boolean localMixedNodeStates; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMixedNodeStatesTracker = false; + + public boolean isMixedNodeStatesSpecified() { + return localMixedNodeStatesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getMixedNodeStates() { + return localMixedNodeStates; + } + + /** + * Auto generated setter method + * + * @param param MixedNodeStates + */ + public void setMixedNodeStates(boolean param) { + + // setting primitive attribute tracker to true + localMixedNodeStatesTracker = true; + + this.localMixedNodeStates = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ClusterQueryState", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ClusterQueryState", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localErrorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Errors", xmlWriter); + + if (localErrors == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Errors cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localErrors); + } + + xmlWriter.writeEndElement(); + } + if (localMixedNodeStatesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MixedNodeStates", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("MixedNodeStates cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMixedNodeStates)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ClusterQueryState parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ClusterQueryState object = new ClusterQueryState(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ClusterQueryState".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ClusterQueryState) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Errors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setErrors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "MixedNodeStates") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MixedNodeStates" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMixedNodeStates( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/CopiedQueries_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/CopiedQueries_type0.java index fd7abf379..39aa72435 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/CopiedQueries_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/CopiedQueries_type0.java @@ -1,452 +1,452 @@ -/** - * CopiedQueries_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** CopiedQueries_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class CopiedQueries_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = CopiedQueries_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId This was an Array! */ - protected java.lang.String[] localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getQueryId() { - return localQueryId; - } - - /** validate the array for QueryId */ - protected void validateQueryId(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String[] param) { - - validateQueryId(param); - - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addQueryId(java.lang.String param) { - if (localQueryId == null) { - localQueryId = new java.lang.String[] {}; - } - - // update the setting tracker - localQueryIdTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); - list.add(param); - this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":CopiedQueries_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "CopiedQueries_type0", - xmlWriter); - } - } - if (localQueryIdTracker) { - if (localQueryId != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localQueryId.length; i++) { - - if (localQueryId[i] != null) { - - writeStartElement(null, namespace, "QueryId", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static CopiedQueries_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - CopiedQueries_type0 object = new CopiedQueries_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"CopiedQueries_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (CopiedQueries_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * CopiedQueries_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** CopiedQueries_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class CopiedQueries_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = CopiedQueries_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId This was an Array! */ + protected java.lang.String[] localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getQueryId() { + return localQueryId; + } + + /** validate the array for QueryId */ + protected void validateQueryId(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String[] param) { + + validateQueryId(param); + + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addQueryId(java.lang.String param) { + if (localQueryId == null) { + localQueryId = new java.lang.String[] {}; + } + + // update the setting tracker + localQueryIdTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); + list.add(param); + this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":CopiedQueries_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "CopiedQueries_type0", + xmlWriter); + } + } + if (localQueryIdTracker) { + if (localQueryId != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localQueryId.length; i++) { + + if (localQueryId[i] != null) { + + writeStartElement(null, namespace, "QueryId", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static CopiedQueries_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + CopiedQueries_type0 object = new CopiedQueries_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"CopiedQueries_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (CopiedQueries_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/DebugValue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/DebugValue.java index c8c717412..76521cef9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/DebugValue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/DebugValue.java @@ -1,464 +1,464 @@ -/** - * DebugValue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** DebugValue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DebugValue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = DebugValue - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Value */ - protected java.lang.String localValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValueTracker = false; - - public boolean isValueSpecified() { - return localValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getValue() { - return localValue; - } - - /** - * Auto generated setter method - * - * @param param Value - */ - public void setValue(java.lang.String param) { - localValueTracker = param != null; - - this.localValue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DebugValue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DebugValue", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Value", xmlWriter); - - if (localValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localValue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DebugValue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DebugValue object = new DebugValue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DebugValue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DebugValue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Value" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DebugValue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** DebugValue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DebugValue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = DebugValue + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Value */ + protected java.lang.String localValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValueTracker = false; + + public boolean isValueSpecified() { + return localValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getValue() { + return localValue; + } + + /** + * Auto generated setter method + * + * @param param Value + */ + public void setValue(java.lang.String param) { + localValueTracker = param != null; + + this.localValue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DebugValue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "DebugValue", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Value", xmlWriter); + + if (localValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localValue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DebugValue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DebugValue object = new DebugValue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DebugValue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DebugValue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Value" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Dependencies_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Dependencies_type0.java index 1827ecef5..6fa0a46fd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Dependencies_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Dependencies_type0.java @@ -1,460 +1,460 @@ -/** - * Dependencies_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Dependencies_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Dependencies_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Dependencies_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Dependency This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] - localDependency; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDependencyTracker = false; - - public boolean isDependencySpecified() { - return localDependencyTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] getDependency() { - return localDependency; - } - - /** validate the array for Dependency */ - protected void validateDependency( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) {} - - /** - * Auto generated setter method - * - * @param param Dependency - */ - public void setDependency( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) { - - validateDependency(param); - - localDependencyTracker = param != null; - - this.localDependency = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope - */ - public void addDependency( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope param) { - if (localDependency == null) { - localDependency = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] {}; - } - - // update the setting tracker - localDependencyTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDependency); - list.add(param); - this.localDependency = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Dependencies_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Dependencies_type0", - xmlWriter); - } - } - if (localDependencyTracker) { - if (localDependency != null) { - for (int i = 0; i < localDependency.length; i++) { - if (localDependency[i] != null) { - localDependency[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependency"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Dependency cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Dependencies_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Dependencies_type0 object = new Dependencies_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Dependencies_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Dependencies_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependency") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependency") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setDependency( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Dependencies_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Dependencies_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Dependencies_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Dependencies_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Dependency This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] + localDependency; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDependencyTracker = false; + + public boolean isDependencySpecified() { + return localDependencyTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] getDependency() { + return localDependency; + } + + /** validate the array for Dependency */ + protected void validateDependency( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) {} + + /** + * Auto generated setter method + * + * @param param Dependency + */ + public void setDependency( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) { + + validateDependency(param); + + localDependencyTracker = param != null; + + this.localDependency = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope + */ + public void addDependency( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope param) { + if (localDependency == null) { + localDependency = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] {}; + } + + // update the setting tracker + localDependencyTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localDependency); + list.add(param); + this.localDependency = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Dependencies_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Dependencies_type0", + xmlWriter); + } + } + if (localDependencyTracker) { + if (localDependency != null) { + for (int i = 0; i < localDependency.length; i++) { + if (localDependency[i] != null) { + localDependency[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependency"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Dependency cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Dependencies_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Dependencies_type0 object = new Dependencies_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Dependencies_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Dependencies_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependency") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependency") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setDependency( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Dependencies_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Dependencies_type1.java index 547c48ee7..b207d6f21 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Dependencies_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Dependencies_type1.java @@ -1,461 +1,461 @@ -/** - * Dependencies_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Dependencies_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Dependencies_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Dependencies_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ECLAttribute This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] - localECLAttribute; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLAttributeTracker = false; - - public boolean isECLAttributeSpecified() { - return localECLAttributeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] getECLAttribute() { - return localECLAttribute; - } - - /** validate the array for ECLAttribute */ - protected void validateECLAttribute( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] param) {} - - /** - * Auto generated setter method - * - * @param param ECLAttribute - */ - public void setECLAttribute( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] param) { - - validateECLAttribute(param); - - localECLAttributeTracker = param != null; - - this.localECLAttribute = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute - */ - public void addECLAttribute( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute param) { - if (localECLAttribute == null) { - localECLAttribute = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] {}; - } - - // update the setting tracker - localECLAttributeTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLAttribute); - list.add(param); - this.localECLAttribute = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Dependencies_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Dependencies_type1", - xmlWriter); - } - } - if (localECLAttributeTracker) { - if (localECLAttribute != null) { - for (int i = 0; i < localECLAttribute.length; i++) { - if (localECLAttribute[i] != null) { - localECLAttribute[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLAttribute"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ECLAttribute cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Dependencies_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Dependencies_type1 object = new Dependencies_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Dependencies_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Dependencies_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLAttribute") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLAttribute") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setECLAttribute( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Dependencies_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Dependencies_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Dependencies_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Dependencies_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ECLAttribute This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] + localECLAttribute; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLAttributeTracker = false; + + public boolean isECLAttributeSpecified() { + return localECLAttributeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] getECLAttribute() { + return localECLAttribute; + } + + /** validate the array for ECLAttribute */ + protected void validateECLAttribute( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] param) {} + + /** + * Auto generated setter method + * + * @param param ECLAttribute + */ + public void setECLAttribute( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] param) { + + validateECLAttribute(param); + + localECLAttributeTracker = param != null; + + this.localECLAttribute = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute + */ + public void addECLAttribute( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute param) { + if (localECLAttribute == null) { + localECLAttribute = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[] {}; + } + + // update the setting tracker + localECLAttributeTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localECLAttribute); + list.add(param); + this.localECLAttribute = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Dependencies_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Dependencies_type1", + xmlWriter); + } + } + if (localECLAttributeTracker) { + if (localECLAttribute != null) { + for (int i = 0; i < localECLAttribute.length; i++) { + if (localECLAttribute[i] != null) { + localECLAttribute[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLAttribute"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ECLAttribute cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Dependencies_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Dependencies_type1 object = new Dependencies_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Dependencies_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Dependencies_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLAttribute") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLAttribute") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setECLAttribute( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/DeploymentFeatures.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/DeploymentFeatures.java index 2dcd12998..6457baaee 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/DeploymentFeatures.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/DeploymentFeatures.java @@ -1,401 +1,401 @@ -/** - * DeploymentFeatures.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** DeploymentFeatures bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class DeploymentFeatures implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = DeploymentFeatures - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for UseCompression */ - protected boolean localUseCompression; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUseCompressionTracker = false; - - public boolean isUseCompressionSpecified() { - return localUseCompressionTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUseCompression() { - return localUseCompression; - } - - /** - * Auto generated setter method - * - * @param param UseCompression - */ - public void setUseCompression(boolean param) { - - // setting primitive attribute tracker to true - localUseCompressionTracker = true; - - this.localUseCompression = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":DeploymentFeatures", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "DeploymentFeatures", - xmlWriter); - } - } - if (localUseCompressionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UseCompression", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UseCompression cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUseCompression)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static DeploymentFeatures parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - DeploymentFeatures object = new DeploymentFeatures(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"DeploymentFeatures".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (DeploymentFeatures) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "UseCompression") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UseCompression" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUseCompression( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * DeploymentFeatures.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** DeploymentFeatures bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class DeploymentFeatures implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = DeploymentFeatures + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for UseCompression */ + protected boolean localUseCompression; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUseCompressionTracker = false; + + public boolean isUseCompressionSpecified() { + return localUseCompressionTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUseCompression() { + return localUseCompression; + } + + /** + * Auto generated setter method + * + * @param param UseCompression + */ + public void setUseCompression(boolean param) { + + // setting primitive attribute tracker to true + localUseCompressionTracker = true; + + this.localUseCompression = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":DeploymentFeatures", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "DeploymentFeatures", + xmlWriter); + } + } + if (localUseCompressionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UseCompression", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UseCompression cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUseCompression)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static DeploymentFeatures parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + DeploymentFeatures object = new DeploymentFeatures(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"DeploymentFeatures".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (DeploymentFeatures) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "UseCompression") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UseCompression" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUseCompression( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLException.java index 00068aedb..8f8efef2f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLException.java @@ -1,1013 +1,1013 @@ -/** - * ECLException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLException - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Severity */ - protected java.lang.String localSeverity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSeverityTracker = false; - - public boolean isSeveritySpecified() { - return localSeverityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSeverity() { - return localSeverity; - } - - /** - * Auto generated setter method - * - * @param param Severity - */ - public void setSeverity(java.lang.String param) { - localSeverityTracker = param != null; - - this.localSeverity = param; - } - - /** field for Code */ - protected int localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(int param) { - - // setting primitive attribute tracker to true - localCodeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCode = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for LineNo */ - protected int localLineNo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLineNoTracker = false; - - public boolean isLineNoSpecified() { - return localLineNoTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getLineNo() { - return localLineNo; - } - - /** - * Auto generated setter method - * - * @param param LineNo - */ - public void setLineNo(int param) { - - // setting primitive attribute tracker to true - localLineNoTracker = param != java.lang.Integer.MIN_VALUE; - - this.localLineNo = param; - } - - /** field for Column */ - protected int localColumn; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localColumnTracker = false; - - public boolean isColumnSpecified() { - return localColumnTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getColumn() { - return localColumn; - } - - /** - * Auto generated setter method - * - * @param param Column - */ - public void setColumn(int param) { - - // setting primitive attribute tracker to true - localColumnTracker = param != java.lang.Integer.MIN_VALUE; - - this.localColumn = param; - } - - /** field for Activity */ - protected int localActivity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivityTracker = false; - - public boolean isActivitySpecified() { - return localActivityTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getActivity() { - return localActivity; - } - - /** - * Auto generated setter method - * - * @param param Activity - */ - public void setActivity(int param) { - - // setting primitive attribute tracker to true - localActivityTracker = param != java.lang.Integer.MIN_VALUE; - - this.localActivity = param; - } - - /** field for Scope */ - protected java.lang.String localScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTracker = false; - - public boolean isScopeSpecified() { - return localScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScope() { - return localScope; - } - - /** - * Auto generated setter method - * - * @param param Scope - */ - public void setScope(java.lang.String param) { - localScopeTracker = param != null; - - this.localScope = param; - } - - /** field for Priority */ - protected int localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(int param) { - - // setting primitive attribute tracker to true - localPriorityTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriority = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLException", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLException", xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localSeverityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Severity", xmlWriter); - - if (localSeverity == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Severity cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSeverity); - } - - xmlWriter.writeEndElement(); - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Code", xmlWriter); - - 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 (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - if (localMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Message cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMessage); - } - - xmlWriter.writeEndElement(); - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localLineNoTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LineNo", xmlWriter); - - if (localLineNo == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("LineNo cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLineNo)); - } - - xmlWriter.writeEndElement(); - } - if (localColumnTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Column", xmlWriter); - - if (localColumn == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Column cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localColumn)); - } - - xmlWriter.writeEndElement(); - } - if (localActivityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Activity", xmlWriter); - - if (localActivity == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Activity cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivity)); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Scope", xmlWriter); - - if (localScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScope); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriority)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLException object = new ECLException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLException) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Severity") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Severity" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSeverity( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LineNo") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LineNo" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLineNo( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Column") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Column" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setColumn( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Activity" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActivity( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Scope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLException + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Severity */ + protected java.lang.String localSeverity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSeverityTracker = false; + + public boolean isSeveritySpecified() { + return localSeverityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSeverity() { + return localSeverity; + } + + /** + * Auto generated setter method + * + * @param param Severity + */ + public void setSeverity(java.lang.String param) { + localSeverityTracker = param != null; + + this.localSeverity = param; + } + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Code */ + protected int localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(int param) { + + // setting primitive attribute tracker to true + localCodeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCode = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** field for Column */ + protected int localColumn; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localColumnTracker = false; + + public boolean isColumnSpecified() { + return localColumnTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getColumn() { + return localColumn; + } + + /** + * Auto generated setter method + * + * @param param Column + */ + public void setColumn(int param) { + + // setting primitive attribute tracker to true + localColumnTracker = param != java.lang.Integer.MIN_VALUE; + + this.localColumn = param; + } + + /** field for LineNo */ + protected int localLineNo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLineNoTracker = false; + + public boolean isLineNoSpecified() { + return localLineNoTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getLineNo() { + return localLineNo; + } + + /** + * Auto generated setter method + * + * @param param LineNo + */ + public void setLineNo(int param) { + + // setting primitive attribute tracker to true + localLineNoTracker = param != java.lang.Integer.MIN_VALUE; + + this.localLineNo = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for Activity */ + protected int localActivity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivityTracker = false; + + public boolean isActivitySpecified() { + return localActivityTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getActivity() { + return localActivity; + } + + /** + * Auto generated setter method + * + * @param param Activity + */ + public void setActivity(int param) { + + // setting primitive attribute tracker to true + localActivityTracker = param != java.lang.Integer.MIN_VALUE; + + this.localActivity = param; + } + + /** field for Scope */ + protected java.lang.String localScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTracker = false; + + public boolean isScopeSpecified() { + return localScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScope() { + return localScope; + } + + /** + * Auto generated setter method + * + * @param param Scope + */ + public void setScope(java.lang.String param) { + localScopeTracker = param != null; + + this.localScope = param; + } + + /** field for Priority */ + protected int localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(int param) { + + // setting primitive attribute tracker to true + localPriorityTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriority = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLException", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLException", xmlWriter); + } + } + if (localSeverityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Severity", xmlWriter); + + if (localSeverity == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Severity cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSeverity); + } + + xmlWriter.writeEndElement(); + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Code", xmlWriter); + + 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 (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + if (localMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Message cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMessage); + } + + xmlWriter.writeEndElement(); + } + if (localColumnTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Column", xmlWriter); + + if (localColumn == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Column cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localColumn)); + } + + xmlWriter.writeEndElement(); + } + if (localLineNoTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LineNo", xmlWriter); + + if (localLineNo == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LineNo cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLineNo)); + } + + xmlWriter.writeEndElement(); + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localActivityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Activity", xmlWriter); + + if (localActivity == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Activity cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivity)); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Scope", xmlWriter); + + if (localScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScope); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriority)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLException object = new ECLException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLException) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Severity") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Severity" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSeverity( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Column") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Column" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setColumn( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LineNo") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LineNo" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLineNo( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activity") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Activity" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActivity( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Scope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLGraph.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLGraph.java index 3c6cd682f..c9ca9f153 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLGraph.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLGraph.java @@ -1,944 +1,944 @@ -/** - * ECLGraph.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLGraph bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLGraph implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLGraph - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Label */ - protected java.lang.String localLabel; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLabelTracker = false; - - public boolean isLabelSpecified() { - return localLabelTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLabel() { - return localLabel; - } - - /** - * Auto generated setter method - * - * @param param Label - */ - public void setLabel(java.lang.String param) { - localLabelTracker = param != null; - - this.localLabel = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Running */ - protected boolean localRunning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningTracker = false; - - public boolean isRunningSpecified() { - return localRunningTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRunning() { - return localRunning; - } - - /** - * Auto generated setter method - * - * @param param Running - */ - public void setRunning(boolean param) { - - // setting primitive attribute tracker to true - localRunningTracker = true; - - this.localRunning = param; - } - - /** field for Complete */ - protected boolean localComplete; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompleteTracker = false; - - public boolean isCompleteSpecified() { - return localCompleteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getComplete() { - return localComplete; - } - - /** - * Auto generated setter method - * - * @param param Complete - */ - public void setComplete(boolean param) { - - // setting primitive attribute tracker to true - localCompleteTracker = true; - - this.localComplete = param; - } - - /** field for Failed */ - protected boolean localFailed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFailedTracker = false; - - public boolean isFailedSpecified() { - return localFailedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFailed() { - return localFailed; - } - - /** - * Auto generated setter method - * - * @param param Failed - */ - public void setFailed(boolean param) { - - // setting primitive attribute tracker to true - localFailedTracker = true; - - this.localFailed = param; - } - - /** field for RunningId */ - protected long localRunningId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningIdTracker = false; - - public boolean isRunningIdSpecified() { - return localRunningIdTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getRunningId() { - return localRunningId; - } - - /** - * Auto generated setter method - * - * @param param RunningId - */ - public void setRunningId(long param) { - - // setting primitive attribute tracker to true - localRunningIdTracker = param != java.lang.Long.MIN_VALUE; - - this.localRunningId = param; - } - - /** field for WhenStarted */ - protected java.lang.String localWhenStarted; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWhenStartedTracker = false; - - public boolean isWhenStartedSpecified() { - return localWhenStartedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWhenStarted() { - return localWhenStarted; - } - - /** - * Auto generated setter method - * - * @param param WhenStarted - */ - public void setWhenStarted(java.lang.String param) { - localWhenStartedTracker = param != null; - - this.localWhenStarted = param; - } - - /** field for WhenFinished */ - protected java.lang.String localWhenFinished; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWhenFinishedTracker = false; - - public boolean isWhenFinishedSpecified() { - return localWhenFinishedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWhenFinished() { - return localWhenFinished; - } - - /** - * Auto generated setter method - * - * @param param WhenFinished - */ - public void setWhenFinished(java.lang.String param) { - localWhenFinishedTracker = param != null; - - this.localWhenFinished = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLGraph", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLGraph", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localLabelTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Label", xmlWriter); - - if (localLabel == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Label cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLabel); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localRunningTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Running", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunning)); - } - - xmlWriter.writeEndElement(); - } - if (localCompleteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Complete", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Complete cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localComplete)); - } - - xmlWriter.writeEndElement(); - } - if (localFailedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Failed", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Failed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFailed)); - } - - xmlWriter.writeEndElement(); - } - if (localRunningIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RunningId", xmlWriter); - - if (localRunningId == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("RunningId cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunningId)); - } - - xmlWriter.writeEndElement(); - } - if (localWhenStartedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WhenStarted", xmlWriter); - - if (localWhenStarted == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WhenStarted cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWhenStarted); - } - - xmlWriter.writeEndElement(); - } - if (localWhenFinishedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WhenFinished", xmlWriter); - - if (localWhenFinished == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WhenFinished cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWhenFinished); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLGraph parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLGraph object = new ECLGraph(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLGraph".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLGraph) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Label") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Label" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLabel( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Running") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Running" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Complete") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Complete" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComplete( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Failed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Failed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFailed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RunningId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunningId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WhenStarted") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WhenStarted" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWhenStarted( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WhenFinished") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WhenFinished" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWhenFinished( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLGraph.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLGraph bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLGraph implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLGraph + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Label */ + protected java.lang.String localLabel; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLabelTracker = false; + + public boolean isLabelSpecified() { + return localLabelTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLabel() { + return localLabel; + } + + /** + * Auto generated setter method + * + * @param param Label + */ + public void setLabel(java.lang.String param) { + localLabelTracker = param != null; + + this.localLabel = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Running */ + protected boolean localRunning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningTracker = false; + + public boolean isRunningSpecified() { + return localRunningTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRunning() { + return localRunning; + } + + /** + * Auto generated setter method + * + * @param param Running + */ + public void setRunning(boolean param) { + + // setting primitive attribute tracker to true + localRunningTracker = true; + + this.localRunning = param; + } + + /** field for Complete */ + protected boolean localComplete; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompleteTracker = false; + + public boolean isCompleteSpecified() { + return localCompleteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getComplete() { + return localComplete; + } + + /** + * Auto generated setter method + * + * @param param Complete + */ + public void setComplete(boolean param) { + + // setting primitive attribute tracker to true + localCompleteTracker = true; + + this.localComplete = param; + } + + /** field for Failed */ + protected boolean localFailed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFailedTracker = false; + + public boolean isFailedSpecified() { + return localFailedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFailed() { + return localFailed; + } + + /** + * Auto generated setter method + * + * @param param Failed + */ + public void setFailed(boolean param) { + + // setting primitive attribute tracker to true + localFailedTracker = true; + + this.localFailed = param; + } + + /** field for RunningId */ + protected long localRunningId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningIdTracker = false; + + public boolean isRunningIdSpecified() { + return localRunningIdTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getRunningId() { + return localRunningId; + } + + /** + * Auto generated setter method + * + * @param param RunningId + */ + public void setRunningId(long param) { + + // setting primitive attribute tracker to true + localRunningIdTracker = param != java.lang.Long.MIN_VALUE; + + this.localRunningId = param; + } + + /** field for WhenStarted */ + protected java.lang.String localWhenStarted; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWhenStartedTracker = false; + + public boolean isWhenStartedSpecified() { + return localWhenStartedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWhenStarted() { + return localWhenStarted; + } + + /** + * Auto generated setter method + * + * @param param WhenStarted + */ + public void setWhenStarted(java.lang.String param) { + localWhenStartedTracker = param != null; + + this.localWhenStarted = param; + } + + /** field for WhenFinished */ + protected java.lang.String localWhenFinished; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWhenFinishedTracker = false; + + public boolean isWhenFinishedSpecified() { + return localWhenFinishedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWhenFinished() { + return localWhenFinished; + } + + /** + * Auto generated setter method + * + * @param param WhenFinished + */ + public void setWhenFinished(java.lang.String param) { + localWhenFinishedTracker = param != null; + + this.localWhenFinished = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLGraph", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLGraph", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localLabelTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Label", xmlWriter); + + if (localLabel == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Label cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLabel); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localRunningTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Running", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunning)); + } + + xmlWriter.writeEndElement(); + } + if (localCompleteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Complete", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Complete cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localComplete)); + } + + xmlWriter.writeEndElement(); + } + if (localFailedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Failed", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Failed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFailed)); + } + + xmlWriter.writeEndElement(); + } + if (localRunningIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RunningId", xmlWriter); + + if (localRunningId == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("RunningId cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunningId)); + } + + xmlWriter.writeEndElement(); + } + if (localWhenStartedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WhenStarted", xmlWriter); + + if (localWhenStarted == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WhenStarted cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWhenStarted); + } + + xmlWriter.writeEndElement(); + } + if (localWhenFinishedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WhenFinished", xmlWriter); + + if (localWhenFinished == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WhenFinished cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWhenFinished); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLGraph parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLGraph object = new ECLGraph(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLGraph".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLGraph) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Label") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Label" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLabel( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Running") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Running" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Complete") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Complete" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComplete( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Failed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Failed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFailed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RunningId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunningId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WhenStarted") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WhenStarted" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWhenStarted( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WhenFinished") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WhenFinished" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWhenFinished( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLGraphEx.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLGraphEx.java index 2aacac066..f1c0ca47a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLGraphEx.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLGraphEx.java @@ -1,876 +1,876 @@ -/** - * ECLGraphEx.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLGraphEx bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLGraphEx implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLGraphEx - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Label */ - protected java.lang.String localLabel; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLabelTracker = false; - - public boolean isLabelSpecified() { - return localLabelTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLabel() { - return localLabel; - } - - /** - * Auto generated setter method - * - * @param param Label - */ - public void setLabel(java.lang.String param) { - localLabelTracker = param != null; - - this.localLabel = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Graph */ - protected java.lang.String localGraph; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphTracker = false; - - public boolean isGraphSpecified() { - return localGraphTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraph() { - return localGraph; - } - - /** - * Auto generated setter method - * - * @param param Graph - */ - public void setGraph(java.lang.String param) { - localGraphTracker = param != null; - - this.localGraph = param; - } - - /** field for Running */ - protected boolean localRunning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningTracker = false; - - public boolean isRunningSpecified() { - return localRunningTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRunning() { - return localRunning; - } - - /** - * Auto generated setter method - * - * @param param Running - */ - public void setRunning(boolean param) { - - // setting primitive attribute tracker to true - localRunningTracker = true; - - this.localRunning = param; - } - - /** field for RunningId */ - protected long localRunningId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningIdTracker = false; - - public boolean isRunningIdSpecified() { - return localRunningIdTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getRunningId() { - return localRunningId; - } - - /** - * Auto generated setter method - * - * @param param RunningId - */ - public void setRunningId(long param) { - - // setting primitive attribute tracker to true - localRunningIdTracker = param != java.lang.Long.MIN_VALUE; - - this.localRunningId = param; - } - - /** field for Complete */ - protected boolean localComplete; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompleteTracker = false; - - public boolean isCompleteSpecified() { - return localCompleteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getComplete() { - return localComplete; - } - - /** - * Auto generated setter method - * - * @param param Complete - */ - public void setComplete(boolean param) { - - // setting primitive attribute tracker to true - localCompleteTracker = true; - - this.localComplete = param; - } - - /** field for Failed */ - protected boolean localFailed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFailedTracker = false; - - public boolean isFailedSpecified() { - return localFailedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFailed() { - return localFailed; - } - - /** - * Auto generated setter method - * - * @param param Failed - */ - public void setFailed(boolean param) { - - // setting primitive attribute tracker to true - localFailedTracker = true; - - this.localFailed = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLGraphEx", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLGraphEx", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localLabelTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Label", xmlWriter); - - if (localLabel == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Label cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLabel); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localGraphTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Graph", xmlWriter); - - if (localGraph == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Graph cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraph); - } - - xmlWriter.writeEndElement(); - } - if (localRunningTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Running", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunning)); - } - - xmlWriter.writeEndElement(); - } - if (localRunningIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RunningId", xmlWriter); - - if (localRunningId == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("RunningId cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunningId)); - } - - xmlWriter.writeEndElement(); - } - if (localCompleteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Complete", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Complete cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localComplete)); - } - - xmlWriter.writeEndElement(); - } - if (localFailedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Failed", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Failed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFailed)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLGraphEx parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLGraphEx object = new ECLGraphEx(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLGraphEx".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLGraphEx) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Label") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Label" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLabel( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graph") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Graph" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraph( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Running") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Running" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RunningId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunningId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Complete") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Complete" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComplete( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Failed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Failed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFailed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLGraphEx.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLGraphEx bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLGraphEx implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLGraphEx + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Label */ + protected java.lang.String localLabel; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLabelTracker = false; + + public boolean isLabelSpecified() { + return localLabelTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLabel() { + return localLabel; + } + + /** + * Auto generated setter method + * + * @param param Label + */ + public void setLabel(java.lang.String param) { + localLabelTracker = param != null; + + this.localLabel = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Graph */ + protected java.lang.String localGraph; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphTracker = false; + + public boolean isGraphSpecified() { + return localGraphTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraph() { + return localGraph; + } + + /** + * Auto generated setter method + * + * @param param Graph + */ + public void setGraph(java.lang.String param) { + localGraphTracker = param != null; + + this.localGraph = param; + } + + /** field for Running */ + protected boolean localRunning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningTracker = false; + + public boolean isRunningSpecified() { + return localRunningTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRunning() { + return localRunning; + } + + /** + * Auto generated setter method + * + * @param param Running + */ + public void setRunning(boolean param) { + + // setting primitive attribute tracker to true + localRunningTracker = true; + + this.localRunning = param; + } + + /** field for RunningId */ + protected long localRunningId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningIdTracker = false; + + public boolean isRunningIdSpecified() { + return localRunningIdTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getRunningId() { + return localRunningId; + } + + /** + * Auto generated setter method + * + * @param param RunningId + */ + public void setRunningId(long param) { + + // setting primitive attribute tracker to true + localRunningIdTracker = param != java.lang.Long.MIN_VALUE; + + this.localRunningId = param; + } + + /** field for Complete */ + protected boolean localComplete; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompleteTracker = false; + + public boolean isCompleteSpecified() { + return localCompleteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getComplete() { + return localComplete; + } + + /** + * Auto generated setter method + * + * @param param Complete + */ + public void setComplete(boolean param) { + + // setting primitive attribute tracker to true + localCompleteTracker = true; + + this.localComplete = param; + } + + /** field for Failed */ + protected boolean localFailed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFailedTracker = false; + + public boolean isFailedSpecified() { + return localFailedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFailed() { + return localFailed; + } + + /** + * Auto generated setter method + * + * @param param Failed + */ + public void setFailed(boolean param) { + + // setting primitive attribute tracker to true + localFailedTracker = true; + + this.localFailed = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLGraphEx", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLGraphEx", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localLabelTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Label", xmlWriter); + + if (localLabel == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Label cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLabel); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localGraphTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Graph", xmlWriter); + + if (localGraph == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Graph cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraph); + } + + xmlWriter.writeEndElement(); + } + if (localRunningTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Running", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunning)); + } + + xmlWriter.writeEndElement(); + } + if (localRunningIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RunningId", xmlWriter); + + if (localRunningId == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("RunningId cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunningId)); + } + + xmlWriter.writeEndElement(); + } + if (localCompleteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Complete", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Complete cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localComplete)); + } + + xmlWriter.writeEndElement(); + } + if (localFailedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Failed", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Failed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFailed)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLGraphEx parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLGraphEx object = new ECLGraphEx(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLGraphEx".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLGraphEx) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Label") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Label" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLabel( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graph") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Graph" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraph( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Running") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Running" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RunningId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunningId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Complete") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Complete" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComplete( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Failed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Failed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFailed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLHelpFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLHelpFile.java index f68147863..83c2cef11 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLHelpFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLHelpFile.java @@ -1,946 +1,949 @@ -/** - * ECLHelpFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLHelpFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLHelpFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLHelpFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for IPAddress */ - protected java.lang.String localIPAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIPAddressTracker = false; - - public boolean isIPAddressSpecified() { - return localIPAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getIPAddress() { - return localIPAddress; - } - - /** - * Auto generated setter method - * - * @param param IPAddress - */ - public void setIPAddress(java.lang.String param) { - localIPAddressTracker = param != null; - - this.localIPAddress = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for FileSize */ - protected long localFileSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileSizeTracker = false; - - public boolean isFileSizeSpecified() { - return localFileSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getFileSize() { - return localFileSize; - } - - /** - * Auto generated setter method - * - * @param param FileSize - */ - public void setFileSize(long param) { - - // setting primitive attribute tracker to true - localFileSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localFileSize = param; - } - - /** field for PID */ - protected org.apache.axis2.databinding.types.UnsignedInt localPID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPIDTracker = false; - - public boolean isPIDSpecified() { - return localPIDTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getPID() { - return localPID; - } - - /** - * Auto generated setter method - * - * @param param PID - */ - public void setPID(org.apache.axis2.databinding.types.UnsignedInt param) { - localPIDTracker = param != null; - - this.localPID = param; - } - - /** field for MinActivityId */ - protected org.apache.axis2.databinding.types.UnsignedInt localMinActivityId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMinActivityIdTracker = false; - - public boolean isMinActivityIdSpecified() { - return localMinActivityIdTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getMinActivityId() { - return localMinActivityId; - } - - /** - * Auto generated setter method - * - * @param param MinActivityId - */ - public void setMinActivityId(org.apache.axis2.databinding.types.UnsignedInt param) { - localMinActivityIdTracker = param != null; - - this.localMinActivityId = param; - } - - /** field for MaxActivityId */ - protected org.apache.axis2.databinding.types.UnsignedInt localMaxActivityId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxActivityIdTracker = false; - - public boolean isMaxActivityIdSpecified() { - return localMaxActivityIdTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getMaxActivityId() { - return localMaxActivityId; - } - - /** - * Auto generated setter method - * - * @param param MaxActivityId - */ - public void setMaxActivityId(org.apache.axis2.databinding.types.UnsignedInt param) { - localMaxActivityIdTracker = param != null; - - this.localMaxActivityId = param; - } - - /** field for IsAvailable */ - protected boolean localIsAvailable = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsAvailableTracker = false; - - public boolean isIsAvailableSpecified() { - return localIsAvailableTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsAvailable() { - return localIsAvailable; - } - - /** - * Auto generated setter method - * - * @param param IsAvailable - */ - public void setIsAvailable(boolean param) { - - // setting primitive attribute tracker to true - localIsAvailableTracker = true; - - this.localIsAvailable = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLHelpFile", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLHelpFile", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localIPAddressTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IPAddress", xmlWriter); - - if (localIPAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("IPAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localIPAddress); - } - - xmlWriter.writeEndElement(); - } - if (localDescriptionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localFileSizeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileSize", xmlWriter); - - if (localFileSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("FileSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PID", xmlWriter); - - if (localPID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPID)); - } - - xmlWriter.writeEndElement(); - } - if (localMinActivityIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "minActivityId", xmlWriter); - - if (localMinActivityId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("minActivityId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMinActivityId)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxActivityIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "maxActivityId", xmlWriter); - - if (localMaxActivityId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("maxActivityId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxActivityId)); - } - - xmlWriter.writeEndElement(); - } - if (localIsAvailableTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsAvailable", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsAvailable cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsAvailable)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLHelpFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLHelpFile object = new ECLHelpFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLHelpFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLHelpFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IPAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IPAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIPAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "minActivityId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "minActivityId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMinActivityId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "maxActivityId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "maxActivityId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxActivityId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsAvailable") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsAvailable" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsAvailable( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLHelpFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLHelpFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLHelpFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLHelpFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for IPAddress */ + protected java.lang.String localIPAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIPAddressTracker = false; + + public boolean isIPAddressSpecified() { + return localIPAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getIPAddress() { + return localIPAddress; + } + + /** + * Auto generated setter method + * + * @param param IPAddress + */ + public void setIPAddress(java.lang.String param) { + localIPAddressTracker = param != null; + + this.localIPAddress = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for FileSize */ + protected long localFileSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileSizeTracker = false; + + public boolean isFileSizeSpecified() { + return localFileSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getFileSize() { + return localFileSize; + } + + /** + * Auto generated setter method + * + * @param param FileSize + */ + public void setFileSize(long param) { + + // setting primitive attribute tracker to true + localFileSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localFileSize = param; + } + + /** field for PID */ + protected org.apache.axis2.databinding.types.UnsignedInt localPID = + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPIDTracker = false; + + public boolean isPIDSpecified() { + return localPIDTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getPID() { + return localPID; + } + + /** + * Auto generated setter method + * + * @param param PID + */ + public void setPID(org.apache.axis2.databinding.types.UnsignedInt param) { + localPIDTracker = param != null; + + this.localPID = param; + } + + /** field for MinActivityId */ + protected org.apache.axis2.databinding.types.UnsignedInt localMinActivityId = + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMinActivityIdTracker = false; + + public boolean isMinActivityIdSpecified() { + return localMinActivityIdTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getMinActivityId() { + return localMinActivityId; + } + + /** + * Auto generated setter method + * + * @param param MinActivityId + */ + public void setMinActivityId(org.apache.axis2.databinding.types.UnsignedInt param) { + localMinActivityIdTracker = param != null; + + this.localMinActivityId = param; + } + + /** field for MaxActivityId */ + protected org.apache.axis2.databinding.types.UnsignedInt localMaxActivityId = + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxActivityIdTracker = false; + + public boolean isMaxActivityIdSpecified() { + return localMaxActivityIdTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getMaxActivityId() { + return localMaxActivityId; + } + + /** + * Auto generated setter method + * + * @param param MaxActivityId + */ + public void setMaxActivityId(org.apache.axis2.databinding.types.UnsignedInt param) { + localMaxActivityIdTracker = param != null; + + this.localMaxActivityId = param; + } + + /** field for IsAvailable */ + protected boolean localIsAvailable = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsAvailableTracker = false; + + public boolean isIsAvailableSpecified() { + return localIsAvailableTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsAvailable() { + return localIsAvailable; + } + + /** + * Auto generated setter method + * + * @param param IsAvailable + */ + public void setIsAvailable(boolean param) { + + // setting primitive attribute tracker to true + localIsAvailableTracker = true; + + this.localIsAvailable = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLHelpFile", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLHelpFile", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localIPAddressTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IPAddress", xmlWriter); + + if (localIPAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("IPAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localIPAddress); + } + + xmlWriter.writeEndElement(); + } + if (localDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localFileSizeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileSize", xmlWriter); + + if (localFileSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("FileSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PID", xmlWriter); + + if (localPID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPID)); + } + + xmlWriter.writeEndElement(); + } + if (localMinActivityIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "minActivityId", xmlWriter); + + if (localMinActivityId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("minActivityId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMinActivityId)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxActivityIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "maxActivityId", xmlWriter); + + if (localMaxActivityId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("maxActivityId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxActivityId)); + } + + xmlWriter.writeEndElement(); + } + if (localIsAvailableTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsAvailable", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsAvailable cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsAvailable)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLHelpFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLHelpFile object = new ECLHelpFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLHelpFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLHelpFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IPAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IPAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIPAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "minActivityId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "minActivityId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMinActivityId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "maxActivityId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "maxActivityId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxActivityId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsAvailable") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsAvailable" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsAvailable( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLJob.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLJob.java index c0ecfad33..b1f8a1af6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLJob.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLJob.java @@ -1,1008 +1,1008 @@ -/** - * ECLJob.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLJob bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLJob implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLJob - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Graph */ - protected java.lang.String localGraph; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphTracker = false; - - public boolean isGraphSpecified() { - return localGraphTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraph() { - return localGraph; - } - - /** - * Auto generated setter method - * - * @param param Graph - */ - public void setGraph(java.lang.String param) { - localGraphTracker = param != null; - - this.localGraph = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for StartedDate */ - protected java.lang.String localStartedDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartedDateTracker = false; - - public boolean isStartedDateSpecified() { - return localStartedDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartedDate() { - return localStartedDate; - } - - /** - * Auto generated setter method - * - * @param param StartedDate - */ - public void setStartedDate(java.lang.String param) { - localStartedDateTracker = param != null; - - this.localStartedDate = param; - } - - /** field for FinishedDate */ - protected java.lang.String localFinishedDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFinishedDateTracker = false; - - public boolean isFinishedDateSpecified() { - return localFinishedDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFinishedDate() { - return localFinishedDate; - } - - /** - * Auto generated setter method - * - * @param param FinishedDate - */ - public void setFinishedDate(java.lang.String param) { - localFinishedDateTracker = param != null; - - this.localFinishedDate = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for GraphNum */ - protected java.lang.String localGraphNum; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNumTracker = false; - - public boolean isGraphNumSpecified() { - return localGraphNumTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphNum() { - return localGraphNum; - } - - /** - * Auto generated setter method - * - * @param param GraphNum - */ - public void setGraphNum(java.lang.String param) { - localGraphNumTracker = param != null; - - this.localGraphNum = param; - } - - /** field for SubGraphNum */ - protected java.lang.String localSubGraphNum; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphNumTracker = false; - - public boolean isSubGraphNumSpecified() { - return localSubGraphNumTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSubGraphNum() { - return localSubGraphNum; - } - - /** - * Auto generated setter method - * - * @param param SubGraphNum - */ - public void setSubGraphNum(java.lang.String param) { - localSubGraphNumTracker = param != null; - - this.localSubGraphNum = param; - } - - /** field for NumOfRuns */ - protected java.lang.String localNumOfRuns; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumOfRunsTracker = false; - - public boolean isNumOfRunsSpecified() { - return localNumOfRunsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNumOfRuns() { - return localNumOfRuns; - } - - /** - * Auto generated setter method - * - * @param param NumOfRuns - */ - public void setNumOfRuns(java.lang.String param) { - localNumOfRunsTracker = param != null; - - this.localNumOfRuns = param; - } - - /** field for Duration */ - protected int localDuration; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDurationTracker = false; - - public boolean isDurationSpecified() { - return localDurationTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDuration() { - return localDuration; - } - - /** - * Auto generated setter method - * - * @param param Duration - */ - public void setDuration(int param) { - - // setting primitive attribute tracker to true - localDurationTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDuration = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLJob", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLJob", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localGraphTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Graph", xmlWriter); - - if (localGraph == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Graph cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraph); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localStartedDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartedDate", xmlWriter); - - if (localStartedDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartedDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartedDate); - } - - xmlWriter.writeEndElement(); - } - if (localFinishedDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FinishedDate", xmlWriter); - - if (localFinishedDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FinishedDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFinishedDate); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localGraphNumTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphNum", xmlWriter); - - if (localGraphNum == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphNum cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphNum); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphNumTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphNum", xmlWriter); - - if (localSubGraphNum == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SubGraphNum cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSubGraphNum); - } - - xmlWriter.writeEndElement(); - } - if (localNumOfRunsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NumOfRuns", xmlWriter); - - if (localNumOfRuns == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NumOfRuns cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNumOfRuns); - } - - xmlWriter.writeEndElement(); - } - if (localDurationTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Duration", xmlWriter); - - if (localDuration == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Duration cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDuration)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLJob parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - ECLJob object = new ECLJob(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLJob".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLJob) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graph") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Graph" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraph( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartedDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartedDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartedDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FinishedDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FinishedDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFinishedDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNum") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphNum" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphNum( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphNum") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphNum" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphNum( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumOfRuns") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumOfRuns" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumOfRuns( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Duration") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Duration" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDuration( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLJob.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLJob bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLJob implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLJob + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Graph */ + protected java.lang.String localGraph; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphTracker = false; + + public boolean isGraphSpecified() { + return localGraphTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraph() { + return localGraph; + } + + /** + * Auto generated setter method + * + * @param param Graph + */ + public void setGraph(java.lang.String param) { + localGraphTracker = param != null; + + this.localGraph = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for StartedDate */ + protected java.lang.String localStartedDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartedDateTracker = false; + + public boolean isStartedDateSpecified() { + return localStartedDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartedDate() { + return localStartedDate; + } + + /** + * Auto generated setter method + * + * @param param StartedDate + */ + public void setStartedDate(java.lang.String param) { + localStartedDateTracker = param != null; + + this.localStartedDate = param; + } + + /** field for FinishedDate */ + protected java.lang.String localFinishedDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFinishedDateTracker = false; + + public boolean isFinishedDateSpecified() { + return localFinishedDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFinishedDate() { + return localFinishedDate; + } + + /** + * Auto generated setter method + * + * @param param FinishedDate + */ + public void setFinishedDate(java.lang.String param) { + localFinishedDateTracker = param != null; + + this.localFinishedDate = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for GraphNum */ + protected java.lang.String localGraphNum; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNumTracker = false; + + public boolean isGraphNumSpecified() { + return localGraphNumTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphNum() { + return localGraphNum; + } + + /** + * Auto generated setter method + * + * @param param GraphNum + */ + public void setGraphNum(java.lang.String param) { + localGraphNumTracker = param != null; + + this.localGraphNum = param; + } + + /** field for SubGraphNum */ + protected java.lang.String localSubGraphNum; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphNumTracker = false; + + public boolean isSubGraphNumSpecified() { + return localSubGraphNumTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSubGraphNum() { + return localSubGraphNum; + } + + /** + * Auto generated setter method + * + * @param param SubGraphNum + */ + public void setSubGraphNum(java.lang.String param) { + localSubGraphNumTracker = param != null; + + this.localSubGraphNum = param; + } + + /** field for NumOfRuns */ + protected java.lang.String localNumOfRuns; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumOfRunsTracker = false; + + public boolean isNumOfRunsSpecified() { + return localNumOfRunsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNumOfRuns() { + return localNumOfRuns; + } + + /** + * Auto generated setter method + * + * @param param NumOfRuns + */ + public void setNumOfRuns(java.lang.String param) { + localNumOfRunsTracker = param != null; + + this.localNumOfRuns = param; + } + + /** field for Duration */ + protected int localDuration; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDurationTracker = false; + + public boolean isDurationSpecified() { + return localDurationTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDuration() { + return localDuration; + } + + /** + * Auto generated setter method + * + * @param param Duration + */ + public void setDuration(int param) { + + // setting primitive attribute tracker to true + localDurationTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDuration = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLJob", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLJob", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localGraphTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Graph", xmlWriter); + + if (localGraph == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Graph cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraph); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localStartedDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartedDate", xmlWriter); + + if (localStartedDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartedDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartedDate); + } + + xmlWriter.writeEndElement(); + } + if (localFinishedDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FinishedDate", xmlWriter); + + if (localFinishedDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FinishedDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFinishedDate); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localGraphNumTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphNum", xmlWriter); + + if (localGraphNum == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphNum cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphNum); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphNumTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphNum", xmlWriter); + + if (localSubGraphNum == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SubGraphNum cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSubGraphNum); + } + + xmlWriter.writeEndElement(); + } + if (localNumOfRunsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NumOfRuns", xmlWriter); + + if (localNumOfRuns == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NumOfRuns cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNumOfRuns); + } + + xmlWriter.writeEndElement(); + } + if (localDurationTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Duration", xmlWriter); + + if (localDuration == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Duration cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDuration)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLJob parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + ECLJob object = new ECLJob(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLJob".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLJob) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graph") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Graph" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraph( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartedDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartedDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartedDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FinishedDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FinishedDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFinishedDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNum") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphNum" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphNum( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphNum") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphNum" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphNum( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumOfRuns") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumOfRuns" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumOfRuns( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Duration") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Duration" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDuration( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLQuery.java index a7d6dbcf7..5d6b8e9f3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLQuery.java @@ -1,737 +1,737 @@ -/** - * ECLQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLQuery implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLQuery - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Text */ - protected java.lang.String localText; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTextTracker = false; - - public boolean isTextSpecified() { - return localTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getText() { - return localText; - } - - /** - * Auto generated setter method - * - * @param param Text - */ - public void setText(java.lang.String param) { - localTextTracker = param != null; - - this.localText = param; - } - - /** field for Cpp */ - protected java.lang.String localCpp; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCppTracker = false; - - public boolean isCppSpecified() { - return localCppTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCpp() { - return localCpp; - } - - /** - * Auto generated setter method - * - * @param param Cpp - */ - public void setCpp(java.lang.String param) { - localCppTracker = param != null; - - this.localCpp = param; - } - - /** field for ResTxt */ - protected java.lang.String localResTxt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResTxtTracker = false; - - public boolean isResTxtSpecified() { - return localResTxtTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResTxt() { - return localResTxt; - } - - /** - * Auto generated setter method - * - * @param param ResTxt - */ - public void setResTxt(java.lang.String param) { - localResTxtTracker = param != null; - - this.localResTxt = param; - } - - /** field for Dll */ - protected java.lang.String localDll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDllTracker = false; - - public boolean isDllSpecified() { - return localDllTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDll() { - return localDll; - } - - /** - * Auto generated setter method - * - * @param param Dll - */ - public void setDll(java.lang.String param) { - localDllTracker = param != null; - - this.localDll = param; - } - - /** field for ThorLog */ - protected java.lang.String localThorLog; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorLogTracker = false; - - public boolean isThorLogSpecified() { - return localThorLogTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorLog() { - return localThorLog; - } - - /** - * Auto generated setter method - * - * @param param ThorLog - */ - public void setThorLog(java.lang.String param) { - localThorLogTracker = param != null; - - this.localThorLog = param; - } - - /** field for QueryMainDefinition */ - protected java.lang.String localQueryMainDefinition; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryMainDefinitionTracker = false; - - public boolean isQueryMainDefinitionSpecified() { - return localQueryMainDefinitionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryMainDefinition() { - return localQueryMainDefinition; - } - - /** - * Auto generated setter method - * - * @param param QueryMainDefinition - */ - public void setQueryMainDefinition(java.lang.String param) { - localQueryMainDefinitionTracker = param != null; - - this.localQueryMainDefinition = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLQuery", xmlWriter); - } - } - if (localTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Text", xmlWriter); - - if (localText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Text cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localText); - } - - xmlWriter.writeEndElement(); - } - if (localCppTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cpp", xmlWriter); - - if (localCpp == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cpp cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCpp); - } - - xmlWriter.writeEndElement(); - } - if (localResTxtTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResTxt", xmlWriter); - - if (localResTxt == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ResTxt cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResTxt); - } - - xmlWriter.writeEndElement(); - } - if (localDllTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Dll", xmlWriter); - - if (localDll == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Dll cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDll); - } - - xmlWriter.writeEndElement(); - } - if (localThorLogTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorLog", xmlWriter); - - if (localThorLog == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorLog cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorLog); - } - - xmlWriter.writeEndElement(); - } - if (localQueryMainDefinitionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryMainDefinition", xmlWriter); - - if (localQueryMainDefinition == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryMainDefinition cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryMainDefinition); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLQuery object = new ECLQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLQuery) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Text") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Text" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cpp") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cpp" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCpp( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResTxt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResTxt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResTxt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Dll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLog") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorLog" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorLog( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QueryMainDefinition") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryMainDefinition" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryMainDefinition( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLQuery implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLQuery + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Text */ + protected java.lang.String localText; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTextTracker = false; + + public boolean isTextSpecified() { + return localTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getText() { + return localText; + } + + /** + * Auto generated setter method + * + * @param param Text + */ + public void setText(java.lang.String param) { + localTextTracker = param != null; + + this.localText = param; + } + + /** field for Cpp */ + protected java.lang.String localCpp; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCppTracker = false; + + public boolean isCppSpecified() { + return localCppTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCpp() { + return localCpp; + } + + /** + * Auto generated setter method + * + * @param param Cpp + */ + public void setCpp(java.lang.String param) { + localCppTracker = param != null; + + this.localCpp = param; + } + + /** field for ResTxt */ + protected java.lang.String localResTxt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResTxtTracker = false; + + public boolean isResTxtSpecified() { + return localResTxtTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResTxt() { + return localResTxt; + } + + /** + * Auto generated setter method + * + * @param param ResTxt + */ + public void setResTxt(java.lang.String param) { + localResTxtTracker = param != null; + + this.localResTxt = param; + } + + /** field for Dll */ + protected java.lang.String localDll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDllTracker = false; + + public boolean isDllSpecified() { + return localDllTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDll() { + return localDll; + } + + /** + * Auto generated setter method + * + * @param param Dll + */ + public void setDll(java.lang.String param) { + localDllTracker = param != null; + + this.localDll = param; + } + + /** field for ThorLog */ + protected java.lang.String localThorLog; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorLogTracker = false; + + public boolean isThorLogSpecified() { + return localThorLogTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorLog() { + return localThorLog; + } + + /** + * Auto generated setter method + * + * @param param ThorLog + */ + public void setThorLog(java.lang.String param) { + localThorLogTracker = param != null; + + this.localThorLog = param; + } + + /** field for QueryMainDefinition */ + protected java.lang.String localQueryMainDefinition; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryMainDefinitionTracker = false; + + public boolean isQueryMainDefinitionSpecified() { + return localQueryMainDefinitionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryMainDefinition() { + return localQueryMainDefinition; + } + + /** + * Auto generated setter method + * + * @param param QueryMainDefinition + */ + public void setQueryMainDefinition(java.lang.String param) { + localQueryMainDefinitionTracker = param != null; + + this.localQueryMainDefinition = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLQuery", xmlWriter); + } + } + if (localTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Text", xmlWriter); + + if (localText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Text cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localText); + } + + xmlWriter.writeEndElement(); + } + if (localCppTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cpp", xmlWriter); + + if (localCpp == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cpp cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCpp); + } + + xmlWriter.writeEndElement(); + } + if (localResTxtTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResTxt", xmlWriter); + + if (localResTxt == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ResTxt cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResTxt); + } + + xmlWriter.writeEndElement(); + } + if (localDllTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Dll", xmlWriter); + + if (localDll == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Dll cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDll); + } + + xmlWriter.writeEndElement(); + } + if (localThorLogTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorLog", xmlWriter); + + if (localThorLog == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorLog cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorLog); + } + + xmlWriter.writeEndElement(); + } + if (localQueryMainDefinitionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryMainDefinition", xmlWriter); + + if (localQueryMainDefinition == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryMainDefinition cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryMainDefinition); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLQuery object = new ECLQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLQuery) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Text") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Text" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cpp") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cpp" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCpp( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResTxt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResTxt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResTxt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Dll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLog") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorLog" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorLog( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QueryMainDefinition") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryMainDefinition" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryMainDefinition( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLResult.java index b8d1b7d83..735887d4c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLResult.java @@ -1,1000 +1,1000 @@ -/** - * ECLResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Sequence */ - protected int localSequence; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSequenceTracker = false; - - public boolean isSequenceSpecified() { - return localSequenceTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSequence() { - return localSequence; - } - - /** - * Auto generated setter method - * - * @param param Sequence - */ - public void setSequence(int param) { - - // setting primitive attribute tracker to true - localSequenceTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSequence = param; - } - - /** field for Value */ - protected java.lang.String localValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValueTracker = false; - - public boolean isValueSpecified() { - return localValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getValue() { - return localValue; - } - - /** - * Auto generated setter method - * - * @param param Value - */ - public void setValue(java.lang.String param) { - localValueTracker = param != null; - - this.localValue = param; - } - - /** field for Link */ - protected java.lang.String localLink; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLinkTracker = false; - - public boolean isLinkSpecified() { - return localLinkTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLink() { - return localLink; - } - - /** - * Auto generated setter method - * - * @param param Link - */ - public void setLink(java.lang.String param) { - localLinkTracker = param != null; - - this.localLink = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for IsSupplied */ - protected boolean localIsSupplied; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsSuppliedTracker = false; - - public boolean isIsSuppliedSpecified() { - return localIsSuppliedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsSupplied() { - return localIsSupplied; - } - - /** - * Auto generated setter method - * - * @param param IsSupplied - */ - public void setIsSupplied(boolean param) { - - // setting primitive attribute tracker to true - localIsSuppliedTracker = true; - - this.localIsSupplied = param; - } - - /** field for ShowFileContent */ - protected boolean localShowFileContent = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowFileContentTracker = false; - - public boolean isShowFileContentSpecified() { - return localShowFileContentTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getShowFileContent() { - return localShowFileContent; - } - - /** - * Auto generated setter method - * - * @param param ShowFileContent - */ - public void setShowFileContent(boolean param) { - - // setting primitive attribute tracker to true - localShowFileContentTracker = true; - - this.localShowFileContent = param; - } - - /** field for Total */ - protected long localTotal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalTracker = false; - - public boolean isTotalSpecified() { - return localTotalTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getTotal() { - return localTotal; - } - - /** - * Auto generated setter method - * - * @param param Total - */ - public void setTotal(long param) { - - // setting primitive attribute tracker to true - localTotalTracker = param != java.lang.Long.MIN_VALUE; - - this.localTotal = param; - } - - /** field for ECLSchemas */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem - localECLSchemas; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLSchemasTracker = false; - - public boolean isECLSchemasSpecified() { - return localECLSchemasTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem - getECLSchemas() { - return localECLSchemas; - } - - /** - * Auto generated setter method - * - * @param param ECLSchemas - */ - public void setECLSchemas( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem param) { - localECLSchemasTracker = param != null; - - this.localECLSchemas = param; - } - - /** field for XmlSchema */ - protected java.lang.String localXmlSchema; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localXmlSchemaTracker = false; - - public boolean isXmlSchemaSpecified() { - return localXmlSchemaTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getXmlSchema() { - return localXmlSchema; - } - - /** - * Auto generated setter method - * - * @param param XmlSchema - */ - public void setXmlSchema(java.lang.String param) { - localXmlSchemaTracker = param != null; - - this.localXmlSchema = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLResult", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLResult", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localSequenceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sequence", xmlWriter); - - if (localSequence == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); - } - - xmlWriter.writeEndElement(); - } - if (localValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Value", xmlWriter); - - if (localValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localValue); - } - - xmlWriter.writeEndElement(); - } - if (localLinkTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Link", xmlWriter); - - if (localLink == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Link cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLink); - } - - xmlWriter.writeEndElement(); - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localIsSuppliedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsSupplied", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsSupplied cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSupplied)); - } - - xmlWriter.writeEndElement(); - } - if (localShowFileContentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ShowFileContent", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ShowFileContent cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowFileContent)); - } - - xmlWriter.writeEndElement(); - } - if (localTotalTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Total", xmlWriter); - - if (localTotal == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); - } - - xmlWriter.writeEndElement(); - } - if (localECLSchemasTracker) { - if (localECLSchemas == null) { - throw new org.apache.axis2.databinding.ADBException("ECLSchemas cannot be null!!"); - } - localECLSchemas.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemas"), xmlWriter); - } - if (localXmlSchemaTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "XmlSchema", xmlWriter); - - if (localXmlSchema == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("XmlSchema cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localXmlSchema); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLResult object = new ECLResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sequence" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSequence( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Value" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Link") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Link" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLink( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSupplied") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsSupplied" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsSupplied( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ShowFileContent") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowFileContent" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowFileContent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Total") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Total" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemas") - .equals(reader.getName())) { - - object.setECLSchemas( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "XmlSchema") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "XmlSchema" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setXmlSchema( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Sequence */ + protected int localSequence; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSequenceTracker = false; + + public boolean isSequenceSpecified() { + return localSequenceTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSequence() { + return localSequence; + } + + /** + * Auto generated setter method + * + * @param param Sequence + */ + public void setSequence(int param) { + + // setting primitive attribute tracker to true + localSequenceTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSequence = param; + } + + /** field for Value */ + protected java.lang.String localValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValueTracker = false; + + public boolean isValueSpecified() { + return localValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getValue() { + return localValue; + } + + /** + * Auto generated setter method + * + * @param param Value + */ + public void setValue(java.lang.String param) { + localValueTracker = param != null; + + this.localValue = param; + } + + /** field for Link */ + protected java.lang.String localLink; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLinkTracker = false; + + public boolean isLinkSpecified() { + return localLinkTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLink() { + return localLink; + } + + /** + * Auto generated setter method + * + * @param param Link + */ + public void setLink(java.lang.String param) { + localLinkTracker = param != null; + + this.localLink = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for IsSupplied */ + protected boolean localIsSupplied; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsSuppliedTracker = false; + + public boolean isIsSuppliedSpecified() { + return localIsSuppliedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsSupplied() { + return localIsSupplied; + } + + /** + * Auto generated setter method + * + * @param param IsSupplied + */ + public void setIsSupplied(boolean param) { + + // setting primitive attribute tracker to true + localIsSuppliedTracker = true; + + this.localIsSupplied = param; + } + + /** field for ShowFileContent */ + protected boolean localShowFileContent = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowFileContentTracker = false; + + public boolean isShowFileContentSpecified() { + return localShowFileContentTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getShowFileContent() { + return localShowFileContent; + } + + /** + * Auto generated setter method + * + * @param param ShowFileContent + */ + public void setShowFileContent(boolean param) { + + // setting primitive attribute tracker to true + localShowFileContentTracker = true; + + this.localShowFileContent = param; + } + + /** field for Total */ + protected long localTotal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalTracker = false; + + public boolean isTotalSpecified() { + return localTotalTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getTotal() { + return localTotal; + } + + /** + * Auto generated setter method + * + * @param param Total + */ + public void setTotal(long param) { + + // setting primitive attribute tracker to true + localTotalTracker = param != java.lang.Long.MIN_VALUE; + + this.localTotal = param; + } + + /** field for ECLSchemas */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem + localECLSchemas; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLSchemasTracker = false; + + public boolean isECLSchemasSpecified() { + return localECLSchemasTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem + getECLSchemas() { + return localECLSchemas; + } + + /** + * Auto generated setter method + * + * @param param ECLSchemas + */ + public void setECLSchemas( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem param) { + localECLSchemasTracker = param != null; + + this.localECLSchemas = param; + } + + /** field for XmlSchema */ + protected java.lang.String localXmlSchema; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localXmlSchemaTracker = false; + + public boolean isXmlSchemaSpecified() { + return localXmlSchemaTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getXmlSchema() { + return localXmlSchema; + } + + /** + * Auto generated setter method + * + * @param param XmlSchema + */ + public void setXmlSchema(java.lang.String param) { + localXmlSchemaTracker = param != null; + + this.localXmlSchema = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLResult", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLResult", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localSequenceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sequence", xmlWriter); + + if (localSequence == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); + } + + xmlWriter.writeEndElement(); + } + if (localValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Value", xmlWriter); + + if (localValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localValue); + } + + xmlWriter.writeEndElement(); + } + if (localLinkTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Link", xmlWriter); + + if (localLink == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Link cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLink); + } + + xmlWriter.writeEndElement(); + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localIsSuppliedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsSupplied", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsSupplied cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSupplied)); + } + + xmlWriter.writeEndElement(); + } + if (localShowFileContentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ShowFileContent", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ShowFileContent cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowFileContent)); + } + + xmlWriter.writeEndElement(); + } + if (localTotalTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Total", xmlWriter); + + if (localTotal == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); + } + + xmlWriter.writeEndElement(); + } + if (localECLSchemasTracker) { + if (localECLSchemas == null) { + throw new org.apache.axis2.databinding.ADBException("ECLSchemas cannot be null!!"); + } + localECLSchemas.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemas"), xmlWriter); + } + if (localXmlSchemaTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "XmlSchema", xmlWriter); + + if (localXmlSchema == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("XmlSchema cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localXmlSchema); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLResult object = new ECLResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sequence" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSequence( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Value" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Link") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Link" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLink( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSupplied") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsSupplied" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsSupplied( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ShowFileContent") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowFileContent" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowFileContent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Total") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Total" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSchemas") + .equals(reader.getName())) { + + object.setECLSchemas( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "XmlSchema") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "XmlSchema" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setXmlSchema( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLSchemaItem.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLSchemaItem.java index fa14dce10..09a8b5ba7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLSchemaItem.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLSchemaItem.java @@ -1,603 +1,603 @@ -/** - * ECLSchemaItem.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLSchemaItem bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLSchemaItem implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLSchemaItem - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ColumnName */ - protected java.lang.String localColumnName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localColumnNameTracker = false; - - public boolean isColumnNameSpecified() { - return localColumnNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getColumnName() { - return localColumnName; - } - - /** - * Auto generated setter method - * - * @param param ColumnName - */ - public void setColumnName(java.lang.String param) { - localColumnNameTracker = param != null; - - this.localColumnName = param; - } - - /** field for ColumnType */ - protected java.lang.String localColumnType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localColumnTypeTracker = false; - - public boolean isColumnTypeSpecified() { - return localColumnTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getColumnType() { - return localColumnType; - } - - /** - * Auto generated setter method - * - * @param param ColumnType - */ - public void setColumnType(java.lang.String param) { - localColumnTypeTracker = param != null; - - this.localColumnType = param; - } - - /** field for ColumnTypeCode */ - protected int localColumnTypeCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localColumnTypeCodeTracker = false; - - public boolean isColumnTypeCodeSpecified() { - return localColumnTypeCodeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getColumnTypeCode() { - return localColumnTypeCode; - } - - /** - * Auto generated setter method - * - * @param param ColumnTypeCode - */ - public void setColumnTypeCode(int param) { - - // setting primitive attribute tracker to true - localColumnTypeCodeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localColumnTypeCode = param; - } - - /** field for IsConditional */ - protected boolean localIsConditional = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsConditionalTracker = false; - - public boolean isIsConditionalSpecified() { - return localIsConditionalTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsConditional() { - return localIsConditional; - } - - /** - * Auto generated setter method - * - * @param param IsConditional - */ - public void setIsConditional(boolean param) { - - // setting primitive attribute tracker to true - localIsConditionalTracker = true; - - this.localIsConditional = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLSchemaItem", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLSchemaItem", xmlWriter); - } - } - if (localColumnNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ColumnName", xmlWriter); - - if (localColumnName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ColumnName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localColumnName); - } - - xmlWriter.writeEndElement(); - } - if (localColumnTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ColumnType", xmlWriter); - - if (localColumnType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ColumnType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localColumnType); - } - - xmlWriter.writeEndElement(); - } - if (localColumnTypeCodeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ColumnTypeCode", xmlWriter); - - if (localColumnTypeCode == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ColumnTypeCode cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localColumnTypeCode)); - } - - xmlWriter.writeEndElement(); - } - if (localIsConditionalTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "isConditional", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("isConditional cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsConditional)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLSchemaItem parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLSchemaItem object = new ECLSchemaItem(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLSchemaItem".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLSchemaItem) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ColumnName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ColumnName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setColumnName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ColumnType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ColumnType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setColumnType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ColumnTypeCode") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ColumnTypeCode" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setColumnTypeCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "isConditional") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "isConditional" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsConditional( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLSchemaItem.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLSchemaItem bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLSchemaItem implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLSchemaItem + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ColumnName */ + protected java.lang.String localColumnName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localColumnNameTracker = false; + + public boolean isColumnNameSpecified() { + return localColumnNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getColumnName() { + return localColumnName; + } + + /** + * Auto generated setter method + * + * @param param ColumnName + */ + public void setColumnName(java.lang.String param) { + localColumnNameTracker = param != null; + + this.localColumnName = param; + } + + /** field for ColumnType */ + protected java.lang.String localColumnType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localColumnTypeTracker = false; + + public boolean isColumnTypeSpecified() { + return localColumnTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getColumnType() { + return localColumnType; + } + + /** + * Auto generated setter method + * + * @param param ColumnType + */ + public void setColumnType(java.lang.String param) { + localColumnTypeTracker = param != null; + + this.localColumnType = param; + } + + /** field for ColumnTypeCode */ + protected int localColumnTypeCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localColumnTypeCodeTracker = false; + + public boolean isColumnTypeCodeSpecified() { + return localColumnTypeCodeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getColumnTypeCode() { + return localColumnTypeCode; + } + + /** + * Auto generated setter method + * + * @param param ColumnTypeCode + */ + public void setColumnTypeCode(int param) { + + // setting primitive attribute tracker to true + localColumnTypeCodeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localColumnTypeCode = param; + } + + /** field for IsConditional */ + protected boolean localIsConditional = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsConditionalTracker = false; + + public boolean isIsConditionalSpecified() { + return localIsConditionalTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsConditional() { + return localIsConditional; + } + + /** + * Auto generated setter method + * + * @param param IsConditional + */ + public void setIsConditional(boolean param) { + + // setting primitive attribute tracker to true + localIsConditionalTracker = true; + + this.localIsConditional = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLSchemaItem", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLSchemaItem", xmlWriter); + } + } + if (localColumnNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ColumnName", xmlWriter); + + if (localColumnName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ColumnName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localColumnName); + } + + xmlWriter.writeEndElement(); + } + if (localColumnTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ColumnType", xmlWriter); + + if (localColumnType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ColumnType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localColumnType); + } + + xmlWriter.writeEndElement(); + } + if (localColumnTypeCodeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ColumnTypeCode", xmlWriter); + + if (localColumnTypeCode == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ColumnTypeCode cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localColumnTypeCode)); + } + + xmlWriter.writeEndElement(); + } + if (localIsConditionalTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "isConditional", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("isConditional cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsConditional)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLSchemaItem parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLSchemaItem object = new ECLSchemaItem(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLSchemaItem".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLSchemaItem) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ColumnName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ColumnName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setColumnName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ColumnType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ColumnType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setColumnType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ColumnTypeCode") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ColumnTypeCode" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setColumnTypeCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "isConditional") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "isConditional" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsConditional( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLSourceFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLSourceFile.java index 16d862d39..b33028341 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLSourceFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLSourceFile.java @@ -1,726 +1,726 @@ -/** - * ECLSourceFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLSourceFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLSourceFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLSourceFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for FileCluster */ - protected java.lang.String localFileCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileClusterTracker = false; - - public boolean isFileClusterSpecified() { - return localFileClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileCluster() { - return localFileCluster; - } - - /** - * Auto generated setter method - * - * @param param FileCluster - */ - public void setFileCluster(java.lang.String param) { - localFileClusterTracker = param != null; - - this.localFileCluster = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for IsSuperFile */ - protected boolean localIsSuperFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsSuperFileTracker = false; - - public boolean isIsSuperFileSpecified() { - return localIsSuperFileTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsSuperFile() { - return localIsSuperFile; - } - - /** - * Auto generated setter method - * - * @param param IsSuperFile - */ - public void setIsSuperFile(boolean param) { - - // setting primitive attribute tracker to true - localIsSuperFileTracker = true; - - this.localIsSuperFile = param; - } - - /** field for Subs */ - protected int localSubs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubsTracker = false; - - public boolean isSubsSpecified() { - return localSubsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSubs() { - return localSubs; - } - - /** - * Auto generated setter method - * - * @param param Subs - */ - public void setSubs(int param) { - - // setting primitive attribute tracker to true - localSubsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSubs = param; - } - - /** field for Count */ - protected int localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** field for ECLSourceFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile - localECLSourceFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLSourceFilesTracker = false; - - public boolean isECLSourceFilesSpecified() { - return localECLSourceFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile - getECLSourceFiles() { - return localECLSourceFiles; - } - - /** - * Auto generated setter method - * - * @param param ECLSourceFiles - */ - public void setECLSourceFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile param) { - localECLSourceFilesTracker = param != null; - - this.localECLSourceFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLSourceFile", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLSourceFile", xmlWriter); - } - } - if (localFileClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileCluster", xmlWriter); - - if (localFileCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileCluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileCluster); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localIsSuperFileTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsSuperFile", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsSuperFile cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSuperFile)); - } - - xmlWriter.writeEndElement(); - } - if (localSubsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Subs", xmlWriter); - - if (localSubs == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Subs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubs)); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - if (localECLSourceFilesTracker) { - if (localECLSourceFiles == null) { - throw new org.apache.axis2.databinding.ADBException("ECLSourceFiles cannot be null!!"); - } - localECLSourceFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFiles"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLSourceFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLSourceFile object = new ECLSourceFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLSourceFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLSourceFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSuperFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsSuperFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsSuperFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Subs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Subs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFiles") - .equals(reader.getName())) { - - object.setECLSourceFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLSourceFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLSourceFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLSourceFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLSourceFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for FileCluster */ + protected java.lang.String localFileCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileClusterTracker = false; + + public boolean isFileClusterSpecified() { + return localFileClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileCluster() { + return localFileCluster; + } + + /** + * Auto generated setter method + * + * @param param FileCluster + */ + public void setFileCluster(java.lang.String param) { + localFileClusterTracker = param != null; + + this.localFileCluster = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for IsSuperFile */ + protected boolean localIsSuperFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsSuperFileTracker = false; + + public boolean isIsSuperFileSpecified() { + return localIsSuperFileTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsSuperFile() { + return localIsSuperFile; + } + + /** + * Auto generated setter method + * + * @param param IsSuperFile + */ + public void setIsSuperFile(boolean param) { + + // setting primitive attribute tracker to true + localIsSuperFileTracker = true; + + this.localIsSuperFile = param; + } + + /** field for Subs */ + protected int localSubs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubsTracker = false; + + public boolean isSubsSpecified() { + return localSubsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSubs() { + return localSubs; + } + + /** + * Auto generated setter method + * + * @param param Subs + */ + public void setSubs(int param) { + + // setting primitive attribute tracker to true + localSubsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSubs = param; + } + + /** field for Count */ + protected int localCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** field for ECLSourceFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile + localECLSourceFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLSourceFilesTracker = false; + + public boolean isECLSourceFilesSpecified() { + return localECLSourceFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile + getECLSourceFiles() { + return localECLSourceFiles; + } + + /** + * Auto generated setter method + * + * @param param ECLSourceFiles + */ + public void setECLSourceFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile param) { + localECLSourceFilesTracker = param != null; + + this.localECLSourceFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLSourceFile", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLSourceFile", xmlWriter); + } + } + if (localFileClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileCluster", xmlWriter); + + if (localFileCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileCluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileCluster); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localIsSuperFileTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsSuperFile", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsSuperFile cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSuperFile)); + } + + xmlWriter.writeEndElement(); + } + if (localSubsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Subs", xmlWriter); + + if (localSubs == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Subs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubs)); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + if (localECLSourceFilesTracker) { + if (localECLSourceFiles == null) { + throw new org.apache.axis2.databinding.ADBException("ECLSourceFiles cannot be null!!"); + } + localECLSourceFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFiles"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLSourceFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLSourceFile object = new ECLSourceFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLSourceFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLSourceFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSuperFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsSuperFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsSuperFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Subs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Subs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLSourceFiles") + .equals(reader.getName())) { + + object.setECLSourceFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLTimer.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLTimer.java index 313f726b3..32b333493 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLTimer.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLTimer.java @@ -1,807 +1,807 @@ -/** - * ECLTimer.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLTimer bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLTimer implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLTimer - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Value */ - protected java.lang.String localValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValueTracker = false; - - public boolean isValueSpecified() { - return localValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getValue() { - return localValue; - } - - /** - * Auto generated setter method - * - * @param param Value - */ - public void setValue(java.lang.String param) { - localValueTracker = param != null; - - this.localValue = param; - } - - /** field for Count */ - protected int localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** field for GraphName */ - protected java.lang.String localGraphName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNameTracker = false; - - public boolean isGraphNameSpecified() { - return localGraphNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphName() { - return localGraphName; - } - - /** - * Auto generated setter method - * - * @param param GraphName - */ - public void setGraphName(java.lang.String param) { - localGraphNameTracker = param != null; - - this.localGraphName = param; - } - - /** field for SubGraphId */ - protected int localSubGraphId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphIdTracker = false; - - public boolean isSubGraphIdSpecified() { - return localSubGraphIdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSubGraphId() { - return localSubGraphId; - } - - /** - * Auto generated setter method - * - * @param param SubGraphId - */ - public void setSubGraphId(int param) { - - // setting primitive attribute tracker to true - localSubGraphIdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSubGraphId = param; - } - - /** field for Timestamp */ - protected long localTimestamp; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimestampTracker = false; - - public boolean isTimestampSpecified() { - return localTimestampTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getTimestamp() { - return localTimestamp; - } - - /** - * Auto generated setter method - * - * @param param Timestamp - */ - public void setTimestamp(long param) { - - // setting primitive attribute tracker to true - localTimestampTracker = param != java.lang.Long.MIN_VALUE; - - this.localTimestamp = param; - } - - /** field for When */ - protected java.lang.String localWhen; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWhenTracker = false; - - public boolean isWhenSpecified() { - return localWhenTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWhen() { - return localWhen; - } - - /** - * Auto generated setter method - * - * @param param When - */ - public void setWhen(java.lang.String param) { - localWhenTracker = param != null; - - this.localWhen = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLTimer", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLTimer", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Value", xmlWriter); - - if (localValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localValue); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - if (localGraphNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphName", xmlWriter); - - if (localGraphName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphName); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphId", xmlWriter); - - if (localSubGraphId == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphId)); - } - - xmlWriter.writeEndElement(); - } - if (localTimestampTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Timestamp", xmlWriter); - - if (localTimestamp == java.lang.Long.MIN_VALUE) { - - 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 (localWhenTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "When", xmlWriter); - - if (localWhen == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("When cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWhen); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLTimer parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLTimer object = new ECLTimer(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLTimer".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLTimer) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Value" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Timestamp") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Timestamp" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimestamp( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "When") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "When" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWhen( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLTimer.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLTimer bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLTimer implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLTimer + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Value */ + protected java.lang.String localValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValueTracker = false; + + public boolean isValueSpecified() { + return localValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getValue() { + return localValue; + } + + /** + * Auto generated setter method + * + * @param param Value + */ + public void setValue(java.lang.String param) { + localValueTracker = param != null; + + this.localValue = param; + } + + /** field for Count */ + protected int localCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** field for GraphName */ + protected java.lang.String localGraphName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNameTracker = false; + + public boolean isGraphNameSpecified() { + return localGraphNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphName() { + return localGraphName; + } + + /** + * Auto generated setter method + * + * @param param GraphName + */ + public void setGraphName(java.lang.String param) { + localGraphNameTracker = param != null; + + this.localGraphName = param; + } + + /** field for SubGraphId */ + protected int localSubGraphId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphIdTracker = false; + + public boolean isSubGraphIdSpecified() { + return localSubGraphIdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSubGraphId() { + return localSubGraphId; + } + + /** + * Auto generated setter method + * + * @param param SubGraphId + */ + public void setSubGraphId(int param) { + + // setting primitive attribute tracker to true + localSubGraphIdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSubGraphId = param; + } + + /** field for Timestamp */ + protected long localTimestamp; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimestampTracker = false; + + public boolean isTimestampSpecified() { + return localTimestampTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getTimestamp() { + return localTimestamp; + } + + /** + * Auto generated setter method + * + * @param param Timestamp + */ + public void setTimestamp(long param) { + + // setting primitive attribute tracker to true + localTimestampTracker = param != java.lang.Long.MIN_VALUE; + + this.localTimestamp = param; + } + + /** field for When */ + protected java.lang.String localWhen; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWhenTracker = false; + + public boolean isWhenSpecified() { + return localWhenTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWhen() { + return localWhen; + } + + /** + * Auto generated setter method + * + * @param param When + */ + public void setWhen(java.lang.String param) { + localWhenTracker = param != null; + + this.localWhen = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLTimer", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLTimer", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Value", xmlWriter); + + if (localValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localValue); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + if (localGraphNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphName", xmlWriter); + + if (localGraphName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphName); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphId", xmlWriter); + + if (localSubGraphId == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphId)); + } + + xmlWriter.writeEndElement(); + } + if (localTimestampTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Timestamp", xmlWriter); + + if (localTimestamp == java.lang.Long.MIN_VALUE) { + + 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 (localWhenTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "When", xmlWriter); + + if (localWhen == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("When cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWhen); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLTimer parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLTimer object = new ECLTimer(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLTimer".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLTimer) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Value" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Timestamp") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Timestamp" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimestamp( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "When") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "When" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWhen( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLTimingData.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLTimingData.java index ccec592e0..7863d1684 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLTimingData.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLTimingData.java @@ -1,738 +1,738 @@ -/** - * ECLTimingData.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLTimingData bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLTimingData implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLTimingData - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for GraphNum */ - protected int localGraphNum; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNumTracker = false; - - public boolean isGraphNumSpecified() { - return localGraphNumTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getGraphNum() { - return localGraphNum; - } - - /** - * Auto generated setter method - * - * @param param GraphNum - */ - public void setGraphNum(int param) { - - // setting primitive attribute tracker to true - localGraphNumTracker = param != java.lang.Integer.MIN_VALUE; - - this.localGraphNum = param; - } - - /** field for SubGraphNum */ - protected int localSubGraphNum; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphNumTracker = false; - - public boolean isSubGraphNumSpecified() { - return localSubGraphNumTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSubGraphNum() { - return localSubGraphNum; - } - - /** - * Auto generated setter method - * - * @param param SubGraphNum - */ - public void setSubGraphNum(int param) { - - // setting primitive attribute tracker to true - localSubGraphNumTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSubGraphNum = param; - } - - /** field for GID */ - protected int localGID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGIDTracker = false; - - public boolean isGIDSpecified() { - return localGIDTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getGID() { - return localGID; - } - - /** - * Auto generated setter method - * - * @param param GID - */ - public void setGID(int param) { - - // setting primitive attribute tracker to true - localGIDTracker = param != java.lang.Integer.MIN_VALUE; - - this.localGID = param; - } - - /** field for Min */ - protected int localMin; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMinTracker = false; - - public boolean isMinSpecified() { - return localMinTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMin() { - return localMin; - } - - /** - * Auto generated setter method - * - * @param param Min - */ - public void setMin(int param) { - - // setting primitive attribute tracker to true - localMinTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMin = param; - } - - /** field for MS */ - protected int localMS; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMSTracker = false; - - public boolean isMSSpecified() { - return localMSTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMS() { - return localMS; - } - - /** - * Auto generated setter method - * - * @param param MS - */ - public void setMS(int param) { - - // setting primitive attribute tracker to true - localMSTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMS = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLTimingData", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLTimingData", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localGraphNumTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphNum", xmlWriter); - - if (localGraphNum == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("GraphNum cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGraphNum)); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphNumTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphNum", xmlWriter); - - if (localSubGraphNum == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SubGraphNum cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphNum)); - } - - xmlWriter.writeEndElement(); - } - if (localGIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GID", xmlWriter); - - if (localGID == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGID)); - } - - xmlWriter.writeEndElement(); - } - if (localMinTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Min", xmlWriter); - - if (localMin == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Min cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMin)); - } - - xmlWriter.writeEndElement(); - } - if (localMSTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MS", xmlWriter); - - if (localMS == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MS cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMS)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLTimingData parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLTimingData object = new ECLTimingData(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLTimingData".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLTimingData) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNum") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphNum" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphNum( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphNum") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphNum" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphNum( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGID(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Min") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Min" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MS") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MS" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLTimingData.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLTimingData bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLTimingData implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLTimingData + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for GraphNum */ + protected int localGraphNum; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNumTracker = false; + + public boolean isGraphNumSpecified() { + return localGraphNumTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getGraphNum() { + return localGraphNum; + } + + /** + * Auto generated setter method + * + * @param param GraphNum + */ + public void setGraphNum(int param) { + + // setting primitive attribute tracker to true + localGraphNumTracker = param != java.lang.Integer.MIN_VALUE; + + this.localGraphNum = param; + } + + /** field for SubGraphNum */ + protected int localSubGraphNum; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphNumTracker = false; + + public boolean isSubGraphNumSpecified() { + return localSubGraphNumTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSubGraphNum() { + return localSubGraphNum; + } + + /** + * Auto generated setter method + * + * @param param SubGraphNum + */ + public void setSubGraphNum(int param) { + + // setting primitive attribute tracker to true + localSubGraphNumTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSubGraphNum = param; + } + + /** field for GID */ + protected int localGID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGIDTracker = false; + + public boolean isGIDSpecified() { + return localGIDTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getGID() { + return localGID; + } + + /** + * Auto generated setter method + * + * @param param GID + */ + public void setGID(int param) { + + // setting primitive attribute tracker to true + localGIDTracker = param != java.lang.Integer.MIN_VALUE; + + this.localGID = param; + } + + /** field for Min */ + protected int localMin; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMinTracker = false; + + public boolean isMinSpecified() { + return localMinTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMin() { + return localMin; + } + + /** + * Auto generated setter method + * + * @param param Min + */ + public void setMin(int param) { + + // setting primitive attribute tracker to true + localMinTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMin = param; + } + + /** field for MS */ + protected int localMS; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMSTracker = false; + + public boolean isMSSpecified() { + return localMSTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMS() { + return localMS; + } + + /** + * Auto generated setter method + * + * @param param MS + */ + public void setMS(int param) { + + // setting primitive attribute tracker to true + localMSTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMS = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLTimingData", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLTimingData", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localGraphNumTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphNum", xmlWriter); + + if (localGraphNum == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("GraphNum cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGraphNum)); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphNumTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphNum", xmlWriter); + + if (localSubGraphNum == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SubGraphNum cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphNum)); + } + + xmlWriter.writeEndElement(); + } + if (localGIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GID", xmlWriter); + + if (localGID == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGID)); + } + + xmlWriter.writeEndElement(); + } + if (localMinTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Min", xmlWriter); + + if (localMin == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Min cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMin)); + } + + xmlWriter.writeEndElement(); + } + if (localMSTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MS", xmlWriter); + + if (localMS == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MS cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMS)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLTimingData parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLTimingData object = new ECLTimingData(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLTimingData".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLTimingData) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNum") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphNum" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphNum( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphNum") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphNum" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphNum( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGID(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Min") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Min" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMin(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MS") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MS" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMS(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWUActions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWUActions.java index 24575117c..23482df92 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWUActions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWUActions.java @@ -1,455 +1,455 @@ -/** - * ECLWUActions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLWUActions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLWUActions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWUActions", "ns1"); - - /** field for ECLWUActions */ - protected java.lang.String localECLWUActions; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected ECLWUActions(java.lang.String value, boolean isRegisterValue) { - localECLWUActions = value; - if (isRegisterValue) { - - _table_.put(localECLWUActions, this); - } - } - - public static final java.lang.String _Abort = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Abort"); - - public static final java.lang.String _Delete = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Delete"); - - public static final java.lang.String _Deschedule = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Deschedule"); - - public static final java.lang.String _Reschedule = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Reschedule"); - - public static final java.lang.String _Pause = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Pause"); - - public static final java.lang.String _PauseNow = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("PauseNow"); - - public static final java.lang.String _Protect = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Protect"); - - public static final java.lang.String _Unprotect = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Unprotect"); - - public static final java.lang.String _Restore = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Restore"); - - public static final java.lang.String _Resume = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Resume"); - - public static final java.lang.String _SetToFailed = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("SetToFailed"); - - public static final java.lang.String _Archive = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Archive"); - - public static final ECLWUActions Abort = new ECLWUActions(_Abort, true); - - public static final ECLWUActions Delete = new ECLWUActions(_Delete, true); - - public static final ECLWUActions Deschedule = new ECLWUActions(_Deschedule, true); - - public static final ECLWUActions Reschedule = new ECLWUActions(_Reschedule, true); - - public static final ECLWUActions Pause = new ECLWUActions(_Pause, true); - - public static final ECLWUActions PauseNow = new ECLWUActions(_PauseNow, true); - - public static final ECLWUActions Protect = new ECLWUActions(_Protect, true); - - public static final ECLWUActions Unprotect = new ECLWUActions(_Unprotect, true); - - public static final ECLWUActions Restore = new ECLWUActions(_Restore, true); - - public static final ECLWUActions Resume = new ECLWUActions(_Resume, true); - - public static final ECLWUActions SetToFailed = new ECLWUActions(_SetToFailed, true); - - public static final ECLWUActions Archive = new ECLWUActions(_Archive, true); - - public java.lang.String getValue() { - return localECLWUActions; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localECLWUActions.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLWUActions", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWUActions", xmlWriter); - } - } - - if (localECLWUActions == null) { - - throw new org.apache.axis2.databinding.ADBException("ECLWUActions cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localECLWUActions); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static ECLWUActions fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - ECLWUActions enumeration = (ECLWUActions) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static ECLWUActions fromString(java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static ECLWUActions fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return ECLWUActions.Factory.fromString(content, namespaceUri); - } else { - return ECLWUActions.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLWUActions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLWUActions object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECLWUActions" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = ECLWUActions.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = ECLWUActions.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLWUActions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLWUActions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLWUActions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWUActions", "ns1"); + + /** field for ECLWUActions */ + protected java.lang.String localECLWUActions; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected ECLWUActions(java.lang.String value, boolean isRegisterValue) { + localECLWUActions = value; + if (isRegisterValue) { + + _table_.put(localECLWUActions, this); + } + } + + public static final java.lang.String _Abort = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Abort"); + + public static final java.lang.String _Delete = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Delete"); + + public static final java.lang.String _Deschedule = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Deschedule"); + + public static final java.lang.String _Reschedule = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Reschedule"); + + public static final java.lang.String _Pause = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Pause"); + + public static final java.lang.String _PauseNow = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("PauseNow"); + + public static final java.lang.String _Protect = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Protect"); + + public static final java.lang.String _Unprotect = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Unprotect"); + + public static final java.lang.String _Restore = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Restore"); + + public static final java.lang.String _Resume = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Resume"); + + public static final java.lang.String _SetToFailed = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("SetToFailed"); + + public static final java.lang.String _Archive = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Archive"); + + public static final ECLWUActions Abort = new ECLWUActions(_Abort, true); + + public static final ECLWUActions Delete = new ECLWUActions(_Delete, true); + + public static final ECLWUActions Deschedule = new ECLWUActions(_Deschedule, true); + + public static final ECLWUActions Reschedule = new ECLWUActions(_Reschedule, true); + + public static final ECLWUActions Pause = new ECLWUActions(_Pause, true); + + public static final ECLWUActions PauseNow = new ECLWUActions(_PauseNow, true); + + public static final ECLWUActions Protect = new ECLWUActions(_Protect, true); + + public static final ECLWUActions Unprotect = new ECLWUActions(_Unprotect, true); + + public static final ECLWUActions Restore = new ECLWUActions(_Restore, true); + + public static final ECLWUActions Resume = new ECLWUActions(_Resume, true); + + public static final ECLWUActions SetToFailed = new ECLWUActions(_SetToFailed, true); + + public static final ECLWUActions Archive = new ECLWUActions(_Archive, true); + + public java.lang.String getValue() { + return localECLWUActions; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localECLWUActions.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLWUActions", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWUActions", xmlWriter); + } + } + + if (localECLWUActions == null) { + + throw new org.apache.axis2.databinding.ADBException("ECLWUActions cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localECLWUActions); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static ECLWUActions fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + ECLWUActions enumeration = (ECLWUActions) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static ECLWUActions fromString(java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static ECLWUActions fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return ECLWUActions.Factory.fromString(content, namespaceUri); + } else { + return ECLWUActions.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLWUActions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLWUActions object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECLWUActions" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = ECLWUActions.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = ECLWUActions.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWUProcess.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWUProcess.java new file mode 100644 index 000000000..8a0a14223 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWUProcess.java @@ -0,0 +1,874 @@ +/** + * ECLWUProcess.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLWUProcess bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLWUProcess implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLWUProcess + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for PodName */ + protected java.lang.String localPodName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPodNameTracker = false; + + public boolean isPodNameSpecified() { + return localPodNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPodName() { + return localPodName; + } + + /** + * Auto generated setter method + * + * @param param PodName + */ + public void setPodName(java.lang.String param) { + localPodNameTracker = param != null; + + this.localPodName = param; + } + + /** field for InstanceNumber */ + protected int localInstanceNumber = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localInstanceNumberTracker = false; + + public boolean isInstanceNumberSpecified() { + return localInstanceNumberTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getInstanceNumber() { + return localInstanceNumber; + } + + /** + * Auto generated setter method + * + * @param param InstanceNumber + */ + public void setInstanceNumber(int param) { + + // setting primitive attribute tracker to true + localInstanceNumberTracker = param != java.lang.Integer.MIN_VALUE; + + this.localInstanceNumber = param; + } + + /** field for Log */ + protected java.lang.String localLog; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogTracker = false; + + public boolean isLogSpecified() { + return localLogTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLog() { + return localLog; + } + + /** + * Auto generated setter method + * + * @param param Log + */ + public void setLog(java.lang.String param) { + localLogTracker = param != null; + + this.localLog = param; + } + + /** field for PID */ + protected java.lang.String localPID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPIDTracker = false; + + public boolean isPIDSpecified() { + return localPIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPID() { + return localPID; + } + + /** + * Auto generated setter method + * + * @param param PID + */ + public void setPID(java.lang.String param) { + localPIDTracker = param != null; + + this.localPID = param; + } + + /** field for Pattern */ + protected java.lang.String localPattern; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPatternTracker = false; + + public boolean isPatternSpecified() { + return localPatternTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPattern() { + return localPattern; + } + + /** + * Auto generated setter method + * + * @param param Pattern + */ + public void setPattern(java.lang.String param) { + localPatternTracker = param != null; + + this.localPattern = param; + } + + /** field for Max */ + protected int localMax = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxTracker = false; + + public boolean isMaxSpecified() { + return localMaxTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMax() { + return localMax; + } + + /** + * Auto generated setter method + * + * @param param Max + */ + public void setMax(int param) { + + // setting primitive attribute tracker to true + localMaxTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMax = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLWUProcess", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWUProcess", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localPodNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PodName", xmlWriter); + + if (localPodName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PodName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPodName); + } + + xmlWriter.writeEndElement(); + } + if (localInstanceNumberTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "InstanceNumber", xmlWriter); + + if (localInstanceNumber == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("InstanceNumber cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInstanceNumber)); + } + + xmlWriter.writeEndElement(); + } + if (localLogTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Log", xmlWriter); + + if (localLog == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Log cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLog); + } + + xmlWriter.writeEndElement(); + } + if (localPIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PID", xmlWriter); + + if (localPID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPID); + } + + xmlWriter.writeEndElement(); + } + if (localPatternTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Pattern", xmlWriter); + + if (localPattern == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Pattern cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPattern); + } + + xmlWriter.writeEndElement(); + } + if (localMaxTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Max", xmlWriter); + + if (localMax == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Max cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMax)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLWUProcess parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLWUProcess object = new ECLWUProcess(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLWUProcess".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLWUProcess) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PodName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PodName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPodName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "InstanceNumber") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "InstanceNumber" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setInstanceNumber( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Log") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Log" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLog( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Pattern") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Pattern" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPattern( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Max") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Max" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMax(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkflow.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkflow.java index c75cbd127..46a64dcad 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkflow.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkflow.java @@ -1,673 +1,673 @@ -/** - * ECLWorkflow.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLWorkflow bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLWorkflow implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLWorkflow - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WFID */ - protected java.lang.String localWFID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWFIDTracker = false; - - public boolean isWFIDSpecified() { - return localWFIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWFID() { - return localWFID; - } - - /** - * Auto generated setter method - * - * @param param WFID - */ - public void setWFID(java.lang.String param) { - localWFIDTracker = param != null; - - this.localWFID = param; - } - - /** field for EventName */ - protected java.lang.String localEventName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventNameTracker = false; - - public boolean isEventNameSpecified() { - return localEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventName() { - return localEventName; - } - - /** - * Auto generated setter method - * - * @param param EventName - */ - public void setEventName(java.lang.String param) { - localEventNameTracker = param != null; - - this.localEventName = param; - } - - /** field for EventText */ - protected java.lang.String localEventText = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventTextTracker = false; - - public boolean isEventTextSpecified() { - return localEventTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventText() { - return localEventText; - } - - /** - * Auto generated setter method - * - * @param param EventText - */ - public void setEventText(java.lang.String param) { - localEventTextTracker = param != null; - - this.localEventText = param; - } - - /** field for Count */ - protected int localCount = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** field for CountRemaining */ - protected int localCountRemaining = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountRemainingTracker = false; - - public boolean isCountRemainingSpecified() { - return localCountRemainingTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCountRemaining() { - return localCountRemaining; - } - - /** - * Auto generated setter method - * - * @param param CountRemaining - */ - public void setCountRemaining(int param) { - - // setting primitive attribute tracker to true - localCountRemainingTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCountRemaining = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLWorkflow", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWorkflow", xmlWriter); - } - } - if (localWFIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WFID", xmlWriter); - - if (localWFID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WFID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWFID); - } - - xmlWriter.writeEndElement(); - } - if (localEventNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventName", xmlWriter); - - if (localEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventName); - } - - xmlWriter.writeEndElement(); - } - if (localEventTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventText", xmlWriter); - - if (localEventText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventText); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - if (localCountRemainingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CountRemaining", xmlWriter); - - if (localCountRemaining == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CountRemaining cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCountRemaining)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLWorkflow parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLWorkflow object = new ECLWorkflow(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLWorkflow".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLWorkflow) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WFID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WFID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWFID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CountRemaining") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CountRemaining" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCountRemaining( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLWorkflow.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLWorkflow bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLWorkflow implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLWorkflow + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WFID */ + protected java.lang.String localWFID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWFIDTracker = false; + + public boolean isWFIDSpecified() { + return localWFIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWFID() { + return localWFID; + } + + /** + * Auto generated setter method + * + * @param param WFID + */ + public void setWFID(java.lang.String param) { + localWFIDTracker = param != null; + + this.localWFID = param; + } + + /** field for EventName */ + protected java.lang.String localEventName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventNameTracker = false; + + public boolean isEventNameSpecified() { + return localEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventName() { + return localEventName; + } + + /** + * Auto generated setter method + * + * @param param EventName + */ + public void setEventName(java.lang.String param) { + localEventNameTracker = param != null; + + this.localEventName = param; + } + + /** field for EventText */ + protected java.lang.String localEventText = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventTextTracker = false; + + public boolean isEventTextSpecified() { + return localEventTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventText() { + return localEventText; + } + + /** + * Auto generated setter method + * + * @param param EventText + */ + public void setEventText(java.lang.String param) { + localEventTextTracker = param != null; + + this.localEventText = param; + } + + /** field for Count */ + protected int localCount = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** field for CountRemaining */ + protected int localCountRemaining = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountRemainingTracker = false; + + public boolean isCountRemainingSpecified() { + return localCountRemainingTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCountRemaining() { + return localCountRemaining; + } + + /** + * Auto generated setter method + * + * @param param CountRemaining + */ + public void setCountRemaining(int param) { + + // setting primitive attribute tracker to true + localCountRemainingTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCountRemaining = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLWorkflow", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWorkflow", xmlWriter); + } + } + if (localWFIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WFID", xmlWriter); + + if (localWFID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WFID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWFID); + } + + xmlWriter.writeEndElement(); + } + if (localEventNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventName", xmlWriter); + + if (localEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventName); + } + + xmlWriter.writeEndElement(); + } + if (localEventTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventText", xmlWriter); + + if (localEventText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventText); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + if (localCountRemainingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CountRemaining", xmlWriter); + + if (localCountRemaining == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CountRemaining cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCountRemaining)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLWorkflow parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLWorkflow object = new ECLWorkflow(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLWorkflow".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLWorkflow) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WFID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WFID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWFID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CountRemaining") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CountRemaining" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCountRemaining( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkunit.java index e502f66a3..2d7fc5e87 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkunit.java @@ -1,5318 +1,5374 @@ -/** - * ECLWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLWorkunit implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLWorkunit - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for RoxieCluster */ - protected java.lang.String localRoxieCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRoxieClusterTracker = false; - - public boolean isRoxieClusterSpecified() { - return localRoxieClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRoxieCluster() { - return localRoxieCluster; - } - - /** - * Auto generated setter method - * - * @param param RoxieCluster - */ - public void setRoxieCluster(java.lang.String param) { - localRoxieClusterTracker = param != null; - - this.localRoxieCluster = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for StateID */ - protected int localStateID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateIDTracker = false; - - public boolean isStateIDSpecified() { - return localStateIDTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getStateID() { - return localStateID; - } - - /** - * Auto generated setter method - * - * @param param StateID - */ - public void setStateID(int param) { - - // setting primitive attribute tracker to true - localStateIDTracker = param != java.lang.Integer.MIN_VALUE; - - this.localStateID = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for StateEx */ - protected java.lang.String localStateEx; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateExTracker = false; - - public boolean isStateExSpecified() { - return localStateExTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStateEx() { - return localStateEx; - } - - /** - * Auto generated setter method - * - * @param param StateEx - */ - public void setStateEx(java.lang.String param) { - localStateExTracker = param != null; - - this.localStateEx = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for Protected */ - protected boolean localProtected; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectedTracker = false; - - public boolean isProtectedSpecified() { - return localProtectedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getProtected() { - return localProtected; - } - - /** - * Auto generated setter method - * - * @param param Protected - */ - public void setProtected(boolean param) { - - // setting primitive attribute tracker to true - localProtectedTracker = true; - - this.localProtected = param; - } - - /** field for Active */ - protected boolean localActive; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActiveTracker = false; - - public boolean isActiveSpecified() { - return localActiveTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getActive() { - return localActive; - } - - /** - * Auto generated setter method - * - * @param param Active - */ - public void setActive(boolean param) { - - // setting primitive attribute tracker to true - localActiveTracker = true; - - this.localActive = param; - } - - /** field for Action */ - protected int localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction(int param) { - - // setting primitive attribute tracker to true - localActionTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAction = param; - } - - /** field for ActionEx */ - protected java.lang.String localActionEx; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionExTracker = false; - - public boolean isActionExSpecified() { - return localActionExTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getActionEx() { - return localActionEx; - } - - /** - * Auto generated setter method - * - * @param param ActionEx - */ - public void setActionEx(java.lang.String param) { - localActionExTracker = param != null; - - this.localActionEx = param; - } - - /** field for DateTimeScheduled */ - protected java.util.Calendar localDateTimeScheduled; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDateTimeScheduledTracker = false; - - public boolean isDateTimeScheduledSpecified() { - return localDateTimeScheduledTracker; - } - - /** - * Auto generated getter method - * - * @return java.util.Calendar - */ - public java.util.Calendar getDateTimeScheduled() { - return localDateTimeScheduled; - } - - /** - * Auto generated setter method - * - * @param param DateTimeScheduled - */ - public void setDateTimeScheduled(java.util.Calendar param) { - localDateTimeScheduledTracker = param != null; - - this.localDateTimeScheduled = param; - } - - /** field for PriorityClass */ - protected int localPriorityClass; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityClassTracker = false; - - public boolean isPriorityClassSpecified() { - return localPriorityClassTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityClass() { - return localPriorityClass; - } - - /** - * Auto generated setter method - * - * @param param PriorityClass - */ - public void setPriorityClass(int param) { - - // setting primitive attribute tracker to true - localPriorityClassTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityClass = param; - } - - /** field for PriorityLevel */ - protected int localPriorityLevel; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityLevelTracker = false; - - public boolean isPriorityLevelSpecified() { - return localPriorityLevelTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityLevel() { - return localPriorityLevel; - } - - /** - * Auto generated setter method - * - * @param param PriorityLevel - */ - public void setPriorityLevel(int param) { - - // setting primitive attribute tracker to true - localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityLevel = param; - } - - /** field for Scope */ - protected java.lang.String localScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTracker = false; - - public boolean isScopeSpecified() { - return localScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScope() { - return localScope; - } - - /** - * Auto generated setter method - * - * @param param Scope - */ - public void setScope(java.lang.String param) { - localScopeTracker = param != null; - - this.localScope = param; - } - - /** field for Snapshot */ - protected java.lang.String localSnapshot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSnapshotTracker = false; - - public boolean isSnapshotSpecified() { - return localSnapshotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSnapshot() { - return localSnapshot; - } - - /** - * Auto generated setter method - * - * @param param Snapshot - */ - public void setSnapshot(java.lang.String param) { - localSnapshotTracker = param != null; - - this.localSnapshot = param; - } - - /** field for ResultLimit */ - protected int localResultLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultLimitTracker = false; - - public boolean isResultLimitSpecified() { - return localResultLimitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getResultLimit() { - return localResultLimit; - } - - /** - * Auto generated setter method - * - * @param param ResultLimit - */ - public void setResultLimit(int param) { - - // setting primitive attribute tracker to true - localResultLimitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localResultLimit = param; - } - - /** field for Archived */ - protected boolean localArchived; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localArchivedTracker = false; - - public boolean isArchivedSpecified() { - return localArchivedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getArchived() { - return localArchived; - } - - /** - * Auto generated setter method - * - * @param param Archived - */ - public void setArchived(boolean param) { - - // setting primitive attribute tracker to true - localArchivedTracker = true; - - this.localArchived = param; - } - - /** field for IsPausing */ - protected boolean localIsPausing = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsPausingTracker = false; - - public boolean isIsPausingSpecified() { - return localIsPausingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsPausing() { - return localIsPausing; - } - - /** - * Auto generated setter method - * - * @param param IsPausing - */ - public void setIsPausing(boolean param) { - - // setting primitive attribute tracker to true - localIsPausingTracker = true; - - this.localIsPausing = param; - } - - /** field for ThorLCR */ - protected boolean localThorLCR = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorLCRTracker = false; - - public boolean isThorLCRSpecified() { - return localThorLCRTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getThorLCR() { - return localThorLCR; - } - - /** - * Auto generated setter method - * - * @param param ThorLCR - */ - public void setThorLCR(boolean param) { - - // setting primitive attribute tracker to true - localThorLCRTracker = true; - - this.localThorLCR = param; - } - - /** field for EventSchedule */ - protected int localEventSchedule; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventScheduleTracker = false; - - public boolean isEventScheduleSpecified() { - return localEventScheduleTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getEventSchedule() { - return localEventSchedule; - } - - /** - * Auto generated setter method - * - * @param param EventSchedule - */ - public void setEventSchedule(int param) { - - // setting primitive attribute tracker to true - localEventScheduleTracker = param != java.lang.Integer.MIN_VALUE; - - this.localEventSchedule = param; - } - - /** field for TotalClusterTime */ - protected java.lang.String localTotalClusterTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalClusterTimeTracker = false; - - public boolean isTotalClusterTimeSpecified() { - return localTotalClusterTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTotalClusterTime() { - return localTotalClusterTime; - } - - /** - * Auto generated setter method - * - * @param param TotalClusterTime - */ - public void setTotalClusterTime(java.lang.String param) { - localTotalClusterTimeTracker = param != null; - - this.localTotalClusterTime = param; - } - - /** field for AbortBy */ - protected java.lang.String localAbortBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAbortByTracker = false; - - public boolean isAbortBySpecified() { - return localAbortByTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAbortBy() { - return localAbortBy; - } - - /** - * Auto generated setter method - * - * @param param AbortBy - */ - public void setAbortBy(java.lang.String param) { - localAbortByTracker = param != null; - - this.localAbortBy = param; - } - - /** field for AbortTime */ - protected java.lang.String localAbortTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAbortTimeTracker = false; - - public boolean isAbortTimeSpecified() { - return localAbortTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAbortTime() { - return localAbortTime; - } - - /** - * Auto generated setter method - * - * @param param AbortTime - */ - public void setAbortTime(java.lang.String param) { - localAbortTimeTracker = param != null; - - this.localAbortTime = param; - } - - /** field for Query */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery localQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryTracker = false; - - public boolean isQuerySpecified() { - return localQueryTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery getQuery() { - return localQuery; - } - - /** - * Auto generated setter method - * - * @param param Query - */ - public void setQuery(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery param) { - localQueryTracker = param != null; - - this.localQuery = param; - } - - /** field for Helpers */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile localHelpers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHelpersTracker = false; - - public boolean isHelpersSpecified() { - return localHelpersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile getHelpers() { - return localHelpers; - } - - /** - * Auto generated setter method - * - * @param param Helpers - */ - public void setHelpers( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile param) { - localHelpersTracker = param != null; - - this.localHelpers = param; - } - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Graphs */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph localGraphs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphsTracker = false; - - public boolean isGraphsSpecified() { - return localGraphsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph getGraphs() { - return localGraphs; - } - - /** - * Auto generated setter method - * - * @param param Graphs - */ - public void setGraphs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph param) { - localGraphsTracker = param != null; - - this.localGraphs = param; - } - - /** field for SourceFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile - localSourceFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceFilesTracker = false; - - public boolean isSourceFilesSpecified() { - return localSourceFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile - getSourceFiles() { - return localSourceFiles; - } - - /** - * Auto generated setter method - * - * @param param SourceFiles - */ - public void setSourceFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile param) { - localSourceFilesTracker = param != null; - - this.localSourceFiles = param; - } - - /** field for Results */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult localResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultsTracker = false; - - public boolean isResultsSpecified() { - return localResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult getResults() { - return localResults; - } - - /** - * Auto generated setter method - * - * @param param Results - */ - public void setResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult param) { - localResultsTracker = param != null; - - this.localResults = param; - } - - /** field for Variables */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult localVariables; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localVariablesTracker = false; - - public boolean isVariablesSpecified() { - return localVariablesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult getVariables() { - return localVariables; - } - - /** - * Auto generated setter method - * - * @param param Variables - */ - public void setVariables( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult param) { - localVariablesTracker = param != null; - - this.localVariables = param; - } - - /** field for Timers */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer localTimers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimersTracker = false; - - public boolean isTimersSpecified() { - return localTimersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer getTimers() { - return localTimers; - } - - /** - * Auto generated setter method - * - * @param param Timers - */ - public void setTimers( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer param) { - localTimersTracker = param != null; - - this.localTimers = param; - } - - /** field for DebugValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue - localDebugValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValuesTracker = false; - - public boolean isDebugValuesSpecified() { - return localDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue getDebugValues() { - return localDebugValues; - } - - /** - * Auto generated setter method - * - * @param param DebugValues - */ - public void setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue param) { - localDebugValuesTracker = param != null; - - this.localDebugValues = param; - } - - /** field for ApplicationValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - localApplicationValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValuesTracker = false; - - public boolean isApplicationValuesSpecified() { - return localApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - getApplicationValues() { - return localApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValues - */ - public void setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { - localApplicationValuesTracker = param != null; - - this.localApplicationValues = param; - } - - /** field for Workflows */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow - localWorkflows; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkflowsTracker = false; - - public boolean isWorkflowsSpecified() { - return localWorkflowsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow getWorkflows() { - return localWorkflows; - } - - /** - * Auto generated setter method - * - * @param param Workflows - */ - public void setWorkflows( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow param) { - localWorkflowsTracker = param != null; - - this.localWorkflows = param; - } - - /** field for TimingData */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData - localTimingData; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimingDataTracker = false; - - public boolean isTimingDataSpecified() { - return localTimingDataTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData - getTimingData() { - return localTimingData; - } - - /** - * Auto generated setter method - * - * @param param TimingData - */ - public void setTimingData( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData param) { - localTimingDataTracker = param != null; - - this.localTimingData = param; - } - - /** field for AllowedClusters */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 - localAllowedClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllowedClustersTracker = false; - - public boolean isAllowedClustersSpecified() { - return localAllowedClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 - getAllowedClusters() { - return localAllowedClusters; - } - - /** - * Auto generated setter method - * - * @param param AllowedClusters - */ - public void setAllowedClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 param) { - localAllowedClustersTracker = param != null; - - this.localAllowedClusters = param; - } - - /** field for ErrorCount */ - protected int localErrorCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorCountTracker = false; - - public boolean isErrorCountSpecified() { - return localErrorCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getErrorCount() { - return localErrorCount; - } - - /** - * Auto generated setter method - * - * @param param ErrorCount - */ - public void setErrorCount(int param) { - - // setting primitive attribute tracker to true - localErrorCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localErrorCount = param; - } - - /** field for WarningCount */ - protected int localWarningCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarningCountTracker = false; - - public boolean isWarningCountSpecified() { - return localWarningCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWarningCount() { - return localWarningCount; - } - - /** - * Auto generated setter method - * - * @param param WarningCount - */ - public void setWarningCount(int param) { - - // setting primitive attribute tracker to true - localWarningCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWarningCount = param; - } - - /** field for InfoCount */ - protected int localInfoCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localInfoCountTracker = false; - - public boolean isInfoCountSpecified() { - return localInfoCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getInfoCount() { - return localInfoCount; - } - - /** - * Auto generated setter method - * - * @param param InfoCount - */ - public void setInfoCount(int param) { - - // setting primitive attribute tracker to true - localInfoCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localInfoCount = param; - } - - /** field for AlertCount */ - protected int localAlertCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAlertCountTracker = false; - - public boolean isAlertCountSpecified() { - return localAlertCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAlertCount() { - return localAlertCount; - } - - /** - * Auto generated setter method - * - * @param param AlertCount - */ - public void setAlertCount(int param) { - - // setting primitive attribute tracker to true - localAlertCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAlertCount = param; - } - - /** field for GraphCount */ - protected int localGraphCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphCountTracker = false; - - public boolean isGraphCountSpecified() { - return localGraphCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getGraphCount() { - return localGraphCount; - } - - /** - * Auto generated setter method - * - * @param param GraphCount - */ - public void setGraphCount(int param) { - - // setting primitive attribute tracker to true - localGraphCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localGraphCount = param; - } - - /** field for SourceFileCount */ - protected int localSourceFileCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceFileCountTracker = false; - - public boolean isSourceFileCountSpecified() { - return localSourceFileCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSourceFileCount() { - return localSourceFileCount; - } - - /** - * Auto generated setter method - * - * @param param SourceFileCount - */ - public void setSourceFileCount(int param) { - - // setting primitive attribute tracker to true - localSourceFileCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSourceFileCount = param; - } - - /** field for ResultCount */ - protected int localResultCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultCountTracker = false; - - public boolean isResultCountSpecified() { - return localResultCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getResultCount() { - return localResultCount; - } - - /** - * Auto generated setter method - * - * @param param ResultCount - */ - public void setResultCount(int param) { - - // setting primitive attribute tracker to true - localResultCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localResultCount = param; - } - - /** field for VariableCount */ - protected int localVariableCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localVariableCountTracker = false; - - public boolean isVariableCountSpecified() { - return localVariableCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getVariableCount() { - return localVariableCount; - } - - /** - * Auto generated setter method - * - * @param param VariableCount - */ - public void setVariableCount(int param) { - - // setting primitive attribute tracker to true - localVariableCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localVariableCount = param; - } - - /** field for TimerCount */ - protected int localTimerCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimerCountTracker = false; - - public boolean isTimerCountSpecified() { - return localTimerCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTimerCount() { - return localTimerCount; - } - - /** - * Auto generated setter method - * - * @param param TimerCount - */ - public void setTimerCount(int param) { - - // setting primitive attribute tracker to true - localTimerCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTimerCount = param; - } - - /** field for HasDebugValue */ - protected boolean localHasDebugValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHasDebugValueTracker = false; - - public boolean isHasDebugValueSpecified() { - return localHasDebugValueTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getHasDebugValue() { - return localHasDebugValue; - } - - /** - * Auto generated setter method - * - * @param param HasDebugValue - */ - public void setHasDebugValue(boolean param) { - - // setting primitive attribute tracker to true - localHasDebugValueTracker = true; - - this.localHasDebugValue = param; - } - - /** field for ApplicationValueCount */ - protected int localApplicationValueCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValueCountTracker = false; - - public boolean isApplicationValueCountSpecified() { - return localApplicationValueCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getApplicationValueCount() { - return localApplicationValueCount; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValueCount - */ - public void setApplicationValueCount(int param) { - - // setting primitive attribute tracker to true - localApplicationValueCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localApplicationValueCount = param; - } - - /** field for XmlParams */ - protected java.lang.String localXmlParams; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localXmlParamsTracker = false; - - public boolean isXmlParamsSpecified() { - return localXmlParamsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getXmlParams() { - return localXmlParams; - } - - /** - * Auto generated setter method - * - * @param param XmlParams - */ - public void setXmlParams(java.lang.String param) { - localXmlParamsTracker = param != null; - - this.localXmlParams = param; - } - - /** field for AccessFlag */ - protected int localAccessFlag; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAccessFlagTracker = false; - - public boolean isAccessFlagSpecified() { - return localAccessFlagTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAccessFlag() { - return localAccessFlag; - } - - /** - * Auto generated setter method - * - * @param param AccessFlag - */ - public void setAccessFlag(int param) { - - // setting primitive attribute tracker to true - localAccessFlagTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAccessFlag = param; - } - - /** field for ClusterFlag */ - protected int localClusterFlag; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterFlagTracker = false; - - public boolean isClusterFlagSpecified() { - return localClusterFlagTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterFlag() { - return localClusterFlag; - } - - /** - * Auto generated setter method - * - * @param param ClusterFlag - */ - public void setClusterFlag(int param) { - - // setting primitive attribute tracker to true - localClusterFlagTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterFlag = param; - } - - /** field for HelpersDesc */ - protected java.lang.String localHelpersDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHelpersDescTracker = false; - - public boolean isHelpersDescSpecified() { - return localHelpersDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getHelpersDesc() { - return localHelpersDesc; - } - - /** - * Auto generated setter method - * - * @param param HelpersDesc - */ - public void setHelpersDesc(java.lang.String param) { - localHelpersDescTracker = param != null; - - this.localHelpersDesc = param; - } - - /** field for GraphsDesc */ - protected java.lang.String localGraphsDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphsDescTracker = false; - - public boolean isGraphsDescSpecified() { - return localGraphsDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphsDesc() { - return localGraphsDesc; - } - - /** - * Auto generated setter method - * - * @param param GraphsDesc - */ - public void setGraphsDesc(java.lang.String param) { - localGraphsDescTracker = param != null; - - this.localGraphsDesc = param; - } - - /** field for SourceFilesDesc */ - protected java.lang.String localSourceFilesDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceFilesDescTracker = false; - - public boolean isSourceFilesDescSpecified() { - return localSourceFilesDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceFilesDesc() { - return localSourceFilesDesc; - } - - /** - * Auto generated setter method - * - * @param param SourceFilesDesc - */ - public void setSourceFilesDesc(java.lang.String param) { - localSourceFilesDescTracker = param != null; - - this.localSourceFilesDesc = param; - } - - /** field for ResultsDesc */ - protected java.lang.String localResultsDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultsDescTracker = false; - - public boolean isResultsDescSpecified() { - return localResultsDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResultsDesc() { - return localResultsDesc; - } - - /** - * Auto generated setter method - * - * @param param ResultsDesc - */ - public void setResultsDesc(java.lang.String param) { - localResultsDescTracker = param != null; - - this.localResultsDesc = param; - } - - /** field for VariablesDesc */ - protected java.lang.String localVariablesDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localVariablesDescTracker = false; - - public boolean isVariablesDescSpecified() { - return localVariablesDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getVariablesDesc() { - return localVariablesDesc; - } - - /** - * Auto generated setter method - * - * @param param VariablesDesc - */ - public void setVariablesDesc(java.lang.String param) { - localVariablesDescTracker = param != null; - - this.localVariablesDesc = param; - } - - /** field for TimersDesc */ - protected java.lang.String localTimersDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimersDescTracker = false; - - public boolean isTimersDescSpecified() { - return localTimersDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimersDesc() { - return localTimersDesc; - } - - /** - * Auto generated setter method - * - * @param param TimersDesc - */ - public void setTimersDesc(java.lang.String param) { - localTimersDescTracker = param != null; - - this.localTimersDesc = param; - } - - /** field for DebugValuesDesc */ - protected java.lang.String localDebugValuesDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValuesDescTracker = false; - - public boolean isDebugValuesDescSpecified() { - return localDebugValuesDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDebugValuesDesc() { - return localDebugValuesDesc; - } - - /** - * Auto generated setter method - * - * @param param DebugValuesDesc - */ - public void setDebugValuesDesc(java.lang.String param) { - localDebugValuesDescTracker = param != null; - - this.localDebugValuesDesc = param; - } - - /** field for ApplicationValuesDesc */ - protected java.lang.String localApplicationValuesDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValuesDescTracker = false; - - public boolean isApplicationValuesDescSpecified() { - return localApplicationValuesDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getApplicationValuesDesc() { - return localApplicationValuesDesc; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValuesDesc - */ - public void setApplicationValuesDesc(java.lang.String param) { - localApplicationValuesDescTracker = param != null; - - this.localApplicationValuesDesc = param; - } - - /** field for WorkflowsDesc */ - protected java.lang.String localWorkflowsDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkflowsDescTracker = false; - - public boolean isWorkflowsDescSpecified() { - return localWorkflowsDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWorkflowsDesc() { - return localWorkflowsDesc; - } - - /** - * Auto generated setter method - * - * @param param WorkflowsDesc - */ - public void setWorkflowsDesc(java.lang.String param) { - localWorkflowsDescTracker = param != null; - - this.localWorkflowsDesc = param; - } - - /** field for HasArchiveQuery */ - protected boolean localHasArchiveQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHasArchiveQueryTracker = false; - - public boolean isHasArchiveQuerySpecified() { - return localHasArchiveQueryTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getHasArchiveQuery() { - return localHasArchiveQuery; - } - - /** - * Auto generated setter method - * - * @param param HasArchiveQuery - */ - public void setHasArchiveQuery(boolean param) { - - // setting primitive attribute tracker to true - localHasArchiveQueryTracker = true; - - this.localHasArchiveQuery = param; - } - - /** field for ThorLogList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo - localThorLogList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorLogListTracker = false; - - public boolean isThorLogListSpecified() { - return localThorLogListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo - getThorLogList() { - return localThorLogList; - } - - /** - * Auto generated setter method - * - * @param param ThorLogList - */ - public void setThorLogList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo param) { - localThorLogListTracker = param != null; - - this.localThorLogList = param; - } - - /** field for ResourceURLs */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0 - localResourceURLs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResourceURLsTracker = false; - - public boolean isResourceURLsSpecified() { - return localResourceURLsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0 - getResourceURLs() { - return localResourceURLs; - } - - /** - * Auto generated setter method - * - * @param param ResourceURLs - */ - public void setResourceURLs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0 param) { - localResourceURLsTracker = param != null; - - this.localResourceURLs = param; - } - - /** field for ResultViewCount */ - protected int localResultViewCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultViewCountTracker = false; - - public boolean isResultViewCountSpecified() { - return localResultViewCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getResultViewCount() { - return localResultViewCount; - } - - /** - * Auto generated setter method - * - * @param param ResultViewCount - */ - public void setResultViewCount(int param) { - - // setting primitive attribute tracker to true - localResultViewCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localResultViewCount = param; - } - - /** field for ResourceURLCount */ - protected int localResourceURLCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResourceURLCountTracker = false; - - public boolean isResourceURLCountSpecified() { - return localResourceURLCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getResourceURLCount() { - return localResourceURLCount; - } - - /** - * Auto generated setter method - * - * @param param ResourceURLCount - */ - public void setResourceURLCount(int param) { - - // setting primitive attribute tracker to true - localResourceURLCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localResourceURLCount = param; - } - - /** field for DebugValueCount */ - protected int localDebugValueCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValueCountTracker = false; - - public boolean isDebugValueCountSpecified() { - return localDebugValueCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getDebugValueCount() { - return localDebugValueCount; - } - - /** - * Auto generated setter method - * - * @param param DebugValueCount - */ - public void setDebugValueCount(int param) { - - // setting primitive attribute tracker to true - localDebugValueCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localDebugValueCount = param; - } - - /** field for WorkflowCount */ - protected int localWorkflowCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkflowCountTracker = false; - - public boolean isWorkflowCountSpecified() { - return localWorkflowCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWorkflowCount() { - return localWorkflowCount; - } - - /** - * Auto generated setter method - * - * @param param WorkflowCount - */ - public void setWorkflowCount(int param) { - - // setting primitive attribute tracker to true - localWorkflowCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWorkflowCount = param; - } - - /** field for HelpersCount */ - protected int localHelpersCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localHelpersCountTracker = false; - - public boolean isHelpersCountSpecified() { - return localHelpersCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getHelpersCount() { - return localHelpersCount; - } - - /** - * Auto generated setter method - * - * @param param HelpersCount - */ - public void setHelpersCount(int param) { - - // setting primitive attribute tracker to true - localHelpersCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localHelpersCount = param; - } - - /** field for ServiceNames */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localServiceNames; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localServiceNamesTracker = false; - - public boolean isServiceNamesSpecified() { - return localServiceNamesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getServiceNames() { - return localServiceNames; - } - - /** - * Auto generated setter method - * - * @param param ServiceNames - */ - public void setServiceNames( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localServiceNamesTracker = param != null; - - this.localServiceNames = param; - } - - /** field for ExecuteCost */ - protected double localExecuteCost; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExecuteCostTracker = false; - - public boolean isExecuteCostSpecified() { - return localExecuteCostTracker; - } - - /** - * Auto generated getter method - * - * @return double - */ - public double getExecuteCost() { - return localExecuteCost; - } - - /** - * Auto generated setter method - * - * @param param ExecuteCost - */ - public void setExecuteCost(double param) { - - // setting primitive attribute tracker to true - localExecuteCostTracker = !java.lang.Double.isNaN(param); - - this.localExecuteCost = param; - } - - /** field for FileAccessCost */ - protected double localFileAccessCost; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileAccessCostTracker = false; - - public boolean isFileAccessCostSpecified() { - return localFileAccessCostTracker; - } - - /** - * Auto generated getter method - * - * @return double - */ - public double getFileAccessCost() { - return localFileAccessCost; - } - - /** - * Auto generated setter method - * - * @param param FileAccessCost - */ - public void setFileAccessCost(double param) { - - // setting primitive attribute tracker to true - localFileAccessCostTracker = !java.lang.Double.isNaN(param); - - this.localFileAccessCost = param; - } - - /** field for CompileCost */ - protected double localCompileCost; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompileCostTracker = false; - - public boolean isCompileCostSpecified() { - return localCompileCostTracker; - } - - /** - * Auto generated getter method - * - * @return double - */ - public double getCompileCost() { - return localCompileCost; - } - - /** - * Auto generated setter method - * - * @param param CompileCost - */ - public void setCompileCost(double param) { - - // setting primitive attribute tracker to true - localCompileCostTracker = !java.lang.Double.isNaN(param); - - this.localCompileCost = param; - } - - /** field for NoAccess */ - protected boolean localNoAccess = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoAccessTracker = false; - - public boolean isNoAccessSpecified() { - return localNoAccessTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoAccess() { - return localNoAccess; - } - - /** - * Auto generated setter method - * - * @param param NoAccess - */ - public void setNoAccess(boolean param) { - - // setting primitive attribute tracker to true - localNoAccessTracker = true; - - this.localNoAccess = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWorkunit", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localRoxieClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RoxieCluster", xmlWriter); - - if (localRoxieCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RoxieCluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRoxieCluster); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - if (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localStateIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StateID", xmlWriter); - - if (localStateID == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("StateID cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateID)); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localStateExTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StateEx", xmlWriter); - - if (localStateEx == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StateEx cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStateEx); - } - - xmlWriter.writeEndElement(); - } - if (localDescriptionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localProtectedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Protected", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Protected cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtected)); - } - - xmlWriter.writeEndElement(); - } - if (localActiveTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Active", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Active cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActive)); - } - - xmlWriter.writeEndElement(); - } - if (localActionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Action", xmlWriter); - - if (localAction == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); - } - - xmlWriter.writeEndElement(); - } - if (localActionExTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ActionEx", xmlWriter); - - if (localActionEx == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ActionEx cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localActionEx); - } - - xmlWriter.writeEndElement(); - } - if (localDateTimeScheduledTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DateTimeScheduled", xmlWriter); - - if (localDateTimeScheduled == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DateTimeScheduled cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localDateTimeScheduled)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityClassTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityClass", xmlWriter); - - if (localPriorityClass == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityClass cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityClass)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityLevelTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityLevel", xmlWriter); - - if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Scope", xmlWriter); - - if (localScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScope); - } - - xmlWriter.writeEndElement(); - } - if (localSnapshotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Snapshot", xmlWriter); - - if (localSnapshot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSnapshot); - } - - xmlWriter.writeEndElement(); - } - if (localResultLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultLimit", xmlWriter); - - if (localResultLimit == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ResultLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localArchivedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Archived", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Archived cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArchived)); - } - - xmlWriter.writeEndElement(); - } - if (localIsPausingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsPausing", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsPausing cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsPausing)); - } - - xmlWriter.writeEndElement(); - } - if (localThorLCRTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorLCR", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ThorLCR cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThorLCR)); - } - - xmlWriter.writeEndElement(); - } - if (localEventScheduleTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventSchedule", xmlWriter); - - if (localEventSchedule == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("EventSchedule cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEventSchedule)); - } - - xmlWriter.writeEndElement(); - } - if (localTotalClusterTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TotalClusterTime", xmlWriter); - - if (localTotalClusterTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TotalClusterTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTotalClusterTime); - } - - xmlWriter.writeEndElement(); - } - if (localAbortByTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AbortBy", xmlWriter); - - if (localAbortBy == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AbortBy cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAbortBy); - } - - xmlWriter.writeEndElement(); - } - if (localAbortTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AbortTime", xmlWriter); - - if (localAbortTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AbortTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAbortTime); - } - - xmlWriter.writeEndElement(); - } - if (localQueryTracker) { - if (localQuery == null) { - throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); - } - localQuery.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query"), xmlWriter); - } - if (localHelpersTracker) { - if (localHelpers == null) { - throw new org.apache.axis2.databinding.ADBException("Helpers cannot be null!!"); - } - localHelpers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Helpers"), xmlWriter); - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localGraphsTracker) { - if (localGraphs == null) { - throw new org.apache.axis2.databinding.ADBException("Graphs cannot be null!!"); - } - localGraphs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs"), xmlWriter); - } - if (localSourceFilesTracker) { - if (localSourceFiles == null) { - throw new org.apache.axis2.databinding.ADBException("SourceFiles cannot be null!!"); - } - localSourceFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceFiles"), - xmlWriter); - } - if (localResultsTracker) { - if (localResults == null) { - throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); - } - localResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results"), xmlWriter); - } - if (localVariablesTracker) { - if (localVariables == null) { - throw new org.apache.axis2.databinding.ADBException("Variables cannot be null!!"); - } - localVariables.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Variables"), xmlWriter); - } - if (localTimersTracker) { - if (localTimers == null) { - throw new org.apache.axis2.databinding.ADBException("Timers cannot be null!!"); - } - localTimers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Timers"), xmlWriter); - } - if (localDebugValuesTracker) { - if (localDebugValues == null) { - throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); - } - localDebugValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), - xmlWriter); - } - if (localApplicationValuesTracker) { - if (localApplicationValues == null) { - throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); - } - localApplicationValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), - xmlWriter); - } - if (localWorkflowsTracker) { - if (localWorkflows == null) { - throw new org.apache.axis2.databinding.ADBException("Workflows cannot be null!!"); - } - localWorkflows.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workflows"), xmlWriter); - } - if (localTimingDataTracker) { - if (localTimingData == null) { - throw new org.apache.axis2.databinding.ADBException("TimingData cannot be null!!"); - } - localTimingData.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimingData"), xmlWriter); - } - if (localAllowedClustersTracker) { - if (localAllowedClusters == null) { - throw new org.apache.axis2.databinding.ADBException("AllowedClusters cannot be null!!"); - } - localAllowedClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllowedClusters"), - xmlWriter); - } - if (localErrorCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ErrorCount", xmlWriter); - - if (localErrorCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ErrorCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localErrorCount)); - } - - xmlWriter.writeEndElement(); - } - if (localWarningCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarningCount", xmlWriter); - - if (localWarningCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("WarningCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarningCount)); - } - - xmlWriter.writeEndElement(); - } - if (localInfoCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "InfoCount", xmlWriter); - - if (localInfoCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("InfoCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInfoCount)); - } - - xmlWriter.writeEndElement(); - } - if (localAlertCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AlertCount", xmlWriter); - - if (localAlertCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("AlertCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAlertCount)); - } - - xmlWriter.writeEndElement(); - } - if (localGraphCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphCount", xmlWriter); - - if (localGraphCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("GraphCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGraphCount)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceFileCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceFileCount", xmlWriter); - - if (localSourceFileCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SourceFileCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceFileCount)); - } - - xmlWriter.writeEndElement(); - } - if (localResultCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultCount", xmlWriter); - - if (localResultCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ResultCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultCount)); - } - - xmlWriter.writeEndElement(); - } - if (localVariableCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "VariableCount", xmlWriter); - - if (localVariableCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("VariableCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localVariableCount)); - } - - xmlWriter.writeEndElement(); - } - if (localTimerCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimerCount", xmlWriter); - - if (localTimerCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("TimerCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimerCount)); - } - - xmlWriter.writeEndElement(); - } - if (localHasDebugValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "HasDebugValue", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("HasDebugValue cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasDebugValue)); - } - - xmlWriter.writeEndElement(); - } - if (localApplicationValueCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ApplicationValueCount", xmlWriter); - - if (localApplicationValueCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "ApplicationValueCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localApplicationValueCount)); - } - - xmlWriter.writeEndElement(); - } - if (localXmlParamsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "XmlParams", xmlWriter); - - if (localXmlParams == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("XmlParams cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localXmlParams); - } - - xmlWriter.writeEndElement(); - } - if (localAccessFlagTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AccessFlag", xmlWriter); - - if (localAccessFlag == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("AccessFlag cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAccessFlag)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterFlagTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterFlag", xmlWriter); - - if (localClusterFlag == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterFlag cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterFlag)); - } - - xmlWriter.writeEndElement(); - } - if (localHelpersDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "HelpersDesc", xmlWriter); - - if (localHelpersDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("HelpersDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localHelpersDesc); - } - - xmlWriter.writeEndElement(); - } - if (localGraphsDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphsDesc", xmlWriter); - - if (localGraphsDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphsDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphsDesc); - } - - xmlWriter.writeEndElement(); - } - if (localSourceFilesDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceFilesDesc", xmlWriter); - - if (localSourceFilesDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceFilesDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceFilesDesc); - } - - xmlWriter.writeEndElement(); - } - if (localResultsDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultsDesc", xmlWriter); - - if (localResultsDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ResultsDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResultsDesc); - } - - xmlWriter.writeEndElement(); - } - if (localVariablesDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "VariablesDesc", xmlWriter); - - if (localVariablesDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("VariablesDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localVariablesDesc); - } - - xmlWriter.writeEndElement(); - } - if (localTimersDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimersDesc", xmlWriter); - - if (localTimersDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimersDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimersDesc); - } - - xmlWriter.writeEndElement(); - } - if (localDebugValuesDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DebugValuesDesc", xmlWriter); - - if (localDebugValuesDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DebugValuesDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDebugValuesDesc); - } - - xmlWriter.writeEndElement(); - } - if (localApplicationValuesDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ApplicationValuesDesc", xmlWriter); - - if (localApplicationValuesDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "ApplicationValuesDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localApplicationValuesDesc); - } - - xmlWriter.writeEndElement(); - } - if (localWorkflowsDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WorkflowsDesc", xmlWriter); - - if (localWorkflowsDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WorkflowsDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWorkflowsDesc); - } - - xmlWriter.writeEndElement(); - } - if (localHasArchiveQueryTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "HasArchiveQuery", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("HasArchiveQuery cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasArchiveQuery)); - } - - xmlWriter.writeEndElement(); - } - if (localThorLogListTracker) { - if (localThorLogList == null) { - throw new org.apache.axis2.databinding.ADBException("ThorLogList cannot be null!!"); - } - localThorLogList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogList"), - xmlWriter); - } - if (localResourceURLsTracker) { - if (localResourceURLs == null) { - throw new org.apache.axis2.databinding.ADBException("ResourceURLs cannot be null!!"); - } - localResourceURLs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResourceURLs"), - xmlWriter); - } - if (localResultViewCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultViewCount", xmlWriter); - - if (localResultViewCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ResultViewCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultViewCount)); - } - - xmlWriter.writeEndElement(); - } - if (localResourceURLCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResourceURLCount", xmlWriter); - - if (localResourceURLCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ResourceURLCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localResourceURLCount)); - } - - xmlWriter.writeEndElement(); - } - if (localDebugValueCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DebugValueCount", xmlWriter); - - if (localDebugValueCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("DebugValueCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDebugValueCount)); - } - - xmlWriter.writeEndElement(); - } - if (localWorkflowCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WorkflowCount", xmlWriter); - - if (localWorkflowCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("WorkflowCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWorkflowCount)); - } - - xmlWriter.writeEndElement(); - } - if (localHelpersCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "HelpersCount", xmlWriter); - - if (localHelpersCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("HelpersCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHelpersCount)); - } - - xmlWriter.writeEndElement(); - } - if (localServiceNamesTracker) { - if (localServiceNames == null) { - throw new org.apache.axis2.databinding.ADBException("ServiceNames cannot be null!!"); - } - localServiceNames.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServiceNames"), - xmlWriter); - } - if (localExecuteCostTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ExecuteCost", xmlWriter); - - if (java.lang.Double.isNaN(localExecuteCost)) { - - throw new org.apache.axis2.databinding.ADBException("ExecuteCost cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExecuteCost)); - } - - xmlWriter.writeEndElement(); - } - if (localFileAccessCostTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileAccessCost", xmlWriter); - - if (java.lang.Double.isNaN(localFileAccessCost)) { - - throw new org.apache.axis2.databinding.ADBException("FileAccessCost cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileAccessCost)); - } - - xmlWriter.writeEndElement(); - } - if (localCompileCostTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CompileCost", xmlWriter); - - if (java.lang.Double.isNaN(localCompileCost)) { - - throw new org.apache.axis2.databinding.ADBException("CompileCost cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompileCost)); - } - - xmlWriter.writeEndElement(); - } - if (localNoAccessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoAccess", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoAccess cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoAccess)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLWorkunit object = new ECLWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLWorkunit) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RoxieCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RoxieCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRoxieCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateEx") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateEx" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateEx( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Protected" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtected( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Active") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Active" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActive( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Action" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionEx") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ActionEx" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActionEx( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DateTimeScheduled") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DateTimeScheduled" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDateTimeScheduled( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityClass") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityClass" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityClass( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityLevel" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityLevel( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Scope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Snapshot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSnapshot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Archived") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Archived" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setArchived( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsPausing") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsPausing" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsPausing( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLCR") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorLCR" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorLCR( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventSchedule") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventSchedule" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventSchedule( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TotalClusterTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TotalClusterTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotalClusterTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AbortBy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AbortBy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAbortBy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AbortTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AbortTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAbortTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") - .equals(reader.getName())) { - - object.setQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Helpers") - .equals(reader.getName())) { - - object.setHelpers( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs") - .equals(reader.getName())) { - - object.setGraphs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceFiles") - .equals(reader.getName())) { - - object.setSourceFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") - .equals(reader.getName())) { - - object.setResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Variables") - .equals(reader.getName())) { - - object.setVariables( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Timers") - .equals(reader.getName())) { - - object.setTimers( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") - .equals(reader.getName())) { - - object.setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") - .equals(reader.getName())) { - - object.setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workflows") - .equals(reader.getName())) { - - object.setWorkflows( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimingData") - .equals(reader.getName())) { - - object.setTimingData( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AllowedClusters") - .equals(reader.getName())) { - - object.setAllowedClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ErrorCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setErrorCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarningCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarningCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarningCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "InfoCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "InfoCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setInfoCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AlertCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AlertCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAlertCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SourceFileCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceFileCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceFileCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "VariableCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "VariableCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setVariableCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimerCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimerCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimerCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "HasDebugValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "HasDebugValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setHasDebugValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValueCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ApplicationValueCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setApplicationValueCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "XmlParams") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "XmlParams" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setXmlParams( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AccessFlag") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AccessFlag" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAccessFlag( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFlag") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterFlag" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterFlag( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "HelpersDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "HelpersDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setHelpersDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphsDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphsDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphsDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SourceFilesDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceFilesDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceFilesDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultsDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultsDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultsDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "VariablesDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "VariablesDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setVariablesDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimersDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimersDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimersDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DebugValuesDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DebugValuesDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDebugValuesDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValuesDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ApplicationValuesDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setApplicationValuesDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WorkflowsDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WorkflowsDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWorkflowsDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "HasArchiveQuery") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "HasArchiveQuery" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setHasArchiveQuery( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogList") - .equals(reader.getName())) { - - object.setThorLogList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResourceURLs") - .equals(reader.getName())) { - - object.setResourceURLs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ResultViewCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultViewCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultViewCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ResourceURLCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResourceURLCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResourceURLCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DebugValueCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DebugValueCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDebugValueCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WorkflowCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WorkflowCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWorkflowCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "HelpersCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "HelpersCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setHelpersCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServiceNames") - .equals(reader.getName())) { - - object.setServiceNames( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExecuteCost") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ExecuteCost" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setExecuteCost( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileAccessCost") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileAccessCost" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileAccessCost( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CompileCost") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CompileCost" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompileCost( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoAccess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoAccess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoAccess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLWorkunit implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLWorkunit + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for RoxieCluster */ + protected java.lang.String localRoxieCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRoxieClusterTracker = false; + + public boolean isRoxieClusterSpecified() { + return localRoxieClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRoxieCluster() { + return localRoxieCluster; + } + + /** + * Auto generated setter method + * + * @param param RoxieCluster + */ + public void setRoxieCluster(java.lang.String param) { + localRoxieClusterTracker = param != null; + + this.localRoxieCluster = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for StateID */ + protected int localStateID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateIDTracker = false; + + public boolean isStateIDSpecified() { + return localStateIDTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getStateID() { + return localStateID; + } + + /** + * Auto generated setter method + * + * @param param StateID + */ + public void setStateID(int param) { + + // setting primitive attribute tracker to true + localStateIDTracker = param != java.lang.Integer.MIN_VALUE; + + this.localStateID = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for StateEx */ + protected java.lang.String localStateEx; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateExTracker = false; + + public boolean isStateExSpecified() { + return localStateExTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStateEx() { + return localStateEx; + } + + /** + * Auto generated setter method + * + * @param param StateEx + */ + public void setStateEx(java.lang.String param) { + localStateExTracker = param != null; + + this.localStateEx = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for Protected */ + protected boolean localProtected; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectedTracker = false; + + public boolean isProtectedSpecified() { + return localProtectedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getProtected() { + return localProtected; + } + + /** + * Auto generated setter method + * + * @param param Protected + */ + public void setProtected(boolean param) { + + // setting primitive attribute tracker to true + localProtectedTracker = true; + + this.localProtected = param; + } + + /** field for Active */ + protected boolean localActive; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActiveTracker = false; + + public boolean isActiveSpecified() { + return localActiveTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getActive() { + return localActive; + } + + /** + * Auto generated setter method + * + * @param param Active + */ + public void setActive(boolean param) { + + // setting primitive attribute tracker to true + localActiveTracker = true; + + this.localActive = param; + } + + /** field for Action */ + protected int localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction(int param) { + + // setting primitive attribute tracker to true + localActionTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAction = param; + } + + /** field for ActionEx */ + protected java.lang.String localActionEx; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionExTracker = false; + + public boolean isActionExSpecified() { + return localActionExTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getActionEx() { + return localActionEx; + } + + /** + * Auto generated setter method + * + * @param param ActionEx + */ + public void setActionEx(java.lang.String param) { + localActionExTracker = param != null; + + this.localActionEx = param; + } + + /** field for DateTimeScheduled */ + protected java.util.Calendar localDateTimeScheduled; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDateTimeScheduledTracker = false; + + public boolean isDateTimeScheduledSpecified() { + return localDateTimeScheduledTracker; + } + + /** + * Auto generated getter method + * + * @return java.util.Calendar + */ + public java.util.Calendar getDateTimeScheduled() { + return localDateTimeScheduled; + } + + /** + * Auto generated setter method + * + * @param param DateTimeScheduled + */ + public void setDateTimeScheduled(java.util.Calendar param) { + localDateTimeScheduledTracker = param != null; + + this.localDateTimeScheduled = param; + } + + /** field for PriorityClass */ + protected int localPriorityClass; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityClassTracker = false; + + public boolean isPriorityClassSpecified() { + return localPriorityClassTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityClass() { + return localPriorityClass; + } + + /** + * Auto generated setter method + * + * @param param PriorityClass + */ + public void setPriorityClass(int param) { + + // setting primitive attribute tracker to true + localPriorityClassTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityClass = param; + } + + /** field for PriorityLevel */ + protected int localPriorityLevel; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityLevelTracker = false; + + public boolean isPriorityLevelSpecified() { + return localPriorityLevelTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityLevel() { + return localPriorityLevel; + } + + /** + * Auto generated setter method + * + * @param param PriorityLevel + */ + public void setPriorityLevel(int param) { + + // setting primitive attribute tracker to true + localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityLevel = param; + } + + /** field for Scope */ + protected java.lang.String localScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTracker = false; + + public boolean isScopeSpecified() { + return localScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScope() { + return localScope; + } + + /** + * Auto generated setter method + * + * @param param Scope + */ + public void setScope(java.lang.String param) { + localScopeTracker = param != null; + + this.localScope = param; + } + + /** field for Snapshot */ + protected java.lang.String localSnapshot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSnapshotTracker = false; + + public boolean isSnapshotSpecified() { + return localSnapshotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSnapshot() { + return localSnapshot; + } + + /** + * Auto generated setter method + * + * @param param Snapshot + */ + public void setSnapshot(java.lang.String param) { + localSnapshotTracker = param != null; + + this.localSnapshot = param; + } + + /** field for ResultLimit */ + protected int localResultLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultLimitTracker = false; + + public boolean isResultLimitSpecified() { + return localResultLimitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getResultLimit() { + return localResultLimit; + } + + /** + * Auto generated setter method + * + * @param param ResultLimit + */ + public void setResultLimit(int param) { + + // setting primitive attribute tracker to true + localResultLimitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localResultLimit = param; + } + + /** field for Archived */ + protected boolean localArchived; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localArchivedTracker = false; + + public boolean isArchivedSpecified() { + return localArchivedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getArchived() { + return localArchived; + } + + /** + * Auto generated setter method + * + * @param param Archived + */ + public void setArchived(boolean param) { + + // setting primitive attribute tracker to true + localArchivedTracker = true; + + this.localArchived = param; + } + + /** field for IsPausing */ + protected boolean localIsPausing = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsPausingTracker = false; + + public boolean isIsPausingSpecified() { + return localIsPausingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsPausing() { + return localIsPausing; + } + + /** + * Auto generated setter method + * + * @param param IsPausing + */ + public void setIsPausing(boolean param) { + + // setting primitive attribute tracker to true + localIsPausingTracker = true; + + this.localIsPausing = param; + } + + /** field for ThorLCR */ + protected boolean localThorLCR = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorLCRTracker = false; + + public boolean isThorLCRSpecified() { + return localThorLCRTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getThorLCR() { + return localThorLCR; + } + + /** + * Auto generated setter method + * + * @param param ThorLCR + */ + public void setThorLCR(boolean param) { + + // setting primitive attribute tracker to true + localThorLCRTracker = true; + + this.localThorLCR = param; + } + + /** field for EventSchedule */ + protected int localEventSchedule; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventScheduleTracker = false; + + public boolean isEventScheduleSpecified() { + return localEventScheduleTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getEventSchedule() { + return localEventSchedule; + } + + /** + * Auto generated setter method + * + * @param param EventSchedule + */ + public void setEventSchedule(int param) { + + // setting primitive attribute tracker to true + localEventScheduleTracker = param != java.lang.Integer.MIN_VALUE; + + this.localEventSchedule = param; + } + + /** field for TotalClusterTime */ + protected java.lang.String localTotalClusterTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalClusterTimeTracker = false; + + public boolean isTotalClusterTimeSpecified() { + return localTotalClusterTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTotalClusterTime() { + return localTotalClusterTime; + } + + /** + * Auto generated setter method + * + * @param param TotalClusterTime + */ + public void setTotalClusterTime(java.lang.String param) { + localTotalClusterTimeTracker = param != null; + + this.localTotalClusterTime = param; + } + + /** field for AbortBy */ + protected java.lang.String localAbortBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAbortByTracker = false; + + public boolean isAbortBySpecified() { + return localAbortByTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAbortBy() { + return localAbortBy; + } + + /** + * Auto generated setter method + * + * @param param AbortBy + */ + public void setAbortBy(java.lang.String param) { + localAbortByTracker = param != null; + + this.localAbortBy = param; + } + + /** field for AbortTime */ + protected java.lang.String localAbortTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAbortTimeTracker = false; + + public boolean isAbortTimeSpecified() { + return localAbortTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAbortTime() { + return localAbortTime; + } + + /** + * Auto generated setter method + * + * @param param AbortTime + */ + public void setAbortTime(java.lang.String param) { + localAbortTimeTracker = param != null; + + this.localAbortTime = param; + } + + /** field for Query */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery localQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryTracker = false; + + public boolean isQuerySpecified() { + return localQueryTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery getQuery() { + return localQuery; + } + + /** + * Auto generated setter method + * + * @param param Query + */ + public void setQuery(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery param) { + localQueryTracker = param != null; + + this.localQuery = param; + } + + /** field for Helpers */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile localHelpers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHelpersTracker = false; + + public boolean isHelpersSpecified() { + return localHelpersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile getHelpers() { + return localHelpers; + } + + /** + * Auto generated setter method + * + * @param param Helpers + */ + public void setHelpers( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile param) { + localHelpersTracker = param != null; + + this.localHelpers = param; + } + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Graphs */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph localGraphs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphsTracker = false; + + public boolean isGraphsSpecified() { + return localGraphsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph getGraphs() { + return localGraphs; + } + + /** + * Auto generated setter method + * + * @param param Graphs + */ + public void setGraphs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph param) { + localGraphsTracker = param != null; + + this.localGraphs = param; + } + + /** field for SourceFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile + localSourceFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceFilesTracker = false; + + public boolean isSourceFilesSpecified() { + return localSourceFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile + getSourceFiles() { + return localSourceFiles; + } + + /** + * Auto generated setter method + * + * @param param SourceFiles + */ + public void setSourceFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile param) { + localSourceFilesTracker = param != null; + + this.localSourceFiles = param; + } + + /** field for Results */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult localResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultsTracker = false; + + public boolean isResultsSpecified() { + return localResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult getResults() { + return localResults; + } + + /** + * Auto generated setter method + * + * @param param Results + */ + public void setResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult param) { + localResultsTracker = param != null; + + this.localResults = param; + } + + /** field for Variables */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult localVariables; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localVariablesTracker = false; + + public boolean isVariablesSpecified() { + return localVariablesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult getVariables() { + return localVariables; + } + + /** + * Auto generated setter method + * + * @param param Variables + */ + public void setVariables( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult param) { + localVariablesTracker = param != null; + + this.localVariables = param; + } + + /** field for Timers */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer localTimers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimersTracker = false; + + public boolean isTimersSpecified() { + return localTimersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer getTimers() { + return localTimers; + } + + /** + * Auto generated setter method + * + * @param param Timers + */ + public void setTimers( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer param) { + localTimersTracker = param != null; + + this.localTimers = param; + } + + /** field for DebugValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue + localDebugValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValuesTracker = false; + + public boolean isDebugValuesSpecified() { + return localDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue getDebugValues() { + return localDebugValues; + } + + /** + * Auto generated setter method + * + * @param param DebugValues + */ + public void setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue param) { + localDebugValuesTracker = param != null; + + this.localDebugValues = param; + } + + /** field for ApplicationValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + localApplicationValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValuesTracker = false; + + public boolean isApplicationValuesSpecified() { + return localApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + getApplicationValues() { + return localApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValues + */ + public void setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { + localApplicationValuesTracker = param != null; + + this.localApplicationValues = param; + } + + /** field for Workflows */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow + localWorkflows; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkflowsTracker = false; + + public boolean isWorkflowsSpecified() { + return localWorkflowsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow getWorkflows() { + return localWorkflows; + } + + /** + * Auto generated setter method + * + * @param param Workflows + */ + public void setWorkflows( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow param) { + localWorkflowsTracker = param != null; + + this.localWorkflows = param; + } + + /** field for TimingData */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData + localTimingData; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimingDataTracker = false; + + public boolean isTimingDataSpecified() { + return localTimingDataTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData + getTimingData() { + return localTimingData; + } + + /** + * Auto generated setter method + * + * @param param TimingData + */ + public void setTimingData( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData param) { + localTimingDataTracker = param != null; + + this.localTimingData = param; + } + + /** field for AllowedClusters */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 + localAllowedClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowedClustersTracker = false; + + public boolean isAllowedClustersSpecified() { + return localAllowedClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 + getAllowedClusters() { + return localAllowedClusters; + } + + /** + * Auto generated setter method + * + * @param param AllowedClusters + */ + public void setAllowedClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 param) { + localAllowedClustersTracker = param != null; + + this.localAllowedClusters = param; + } + + /** field for ErrorCount */ + protected int localErrorCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorCountTracker = false; + + public boolean isErrorCountSpecified() { + return localErrorCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getErrorCount() { + return localErrorCount; + } + + /** + * Auto generated setter method + * + * @param param ErrorCount + */ + public void setErrorCount(int param) { + + // setting primitive attribute tracker to true + localErrorCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localErrorCount = param; + } + + /** field for WarningCount */ + protected int localWarningCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarningCountTracker = false; + + public boolean isWarningCountSpecified() { + return localWarningCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWarningCount() { + return localWarningCount; + } + + /** + * Auto generated setter method + * + * @param param WarningCount + */ + public void setWarningCount(int param) { + + // setting primitive attribute tracker to true + localWarningCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWarningCount = param; + } + + /** field for InfoCount */ + protected int localInfoCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localInfoCountTracker = false; + + public boolean isInfoCountSpecified() { + return localInfoCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getInfoCount() { + return localInfoCount; + } + + /** + * Auto generated setter method + * + * @param param InfoCount + */ + public void setInfoCount(int param) { + + // setting primitive attribute tracker to true + localInfoCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localInfoCount = param; + } + + /** field for AlertCount */ + protected int localAlertCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAlertCountTracker = false; + + public boolean isAlertCountSpecified() { + return localAlertCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAlertCount() { + return localAlertCount; + } + + /** + * Auto generated setter method + * + * @param param AlertCount + */ + public void setAlertCount(int param) { + + // setting primitive attribute tracker to true + localAlertCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAlertCount = param; + } + + /** field for GraphCount */ + protected int localGraphCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphCountTracker = false; + + public boolean isGraphCountSpecified() { + return localGraphCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getGraphCount() { + return localGraphCount; + } + + /** + * Auto generated setter method + * + * @param param GraphCount + */ + public void setGraphCount(int param) { + + // setting primitive attribute tracker to true + localGraphCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localGraphCount = param; + } + + /** field for SourceFileCount */ + protected int localSourceFileCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceFileCountTracker = false; + + public boolean isSourceFileCountSpecified() { + return localSourceFileCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSourceFileCount() { + return localSourceFileCount; + } + + /** + * Auto generated setter method + * + * @param param SourceFileCount + */ + public void setSourceFileCount(int param) { + + // setting primitive attribute tracker to true + localSourceFileCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSourceFileCount = param; + } + + /** field for ResultCount */ + protected int localResultCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultCountTracker = false; + + public boolean isResultCountSpecified() { + return localResultCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getResultCount() { + return localResultCount; + } + + /** + * Auto generated setter method + * + * @param param ResultCount + */ + public void setResultCount(int param) { + + // setting primitive attribute tracker to true + localResultCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localResultCount = param; + } + + /** field for VariableCount */ + protected int localVariableCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localVariableCountTracker = false; + + public boolean isVariableCountSpecified() { + return localVariableCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getVariableCount() { + return localVariableCount; + } + + /** + * Auto generated setter method + * + * @param param VariableCount + */ + public void setVariableCount(int param) { + + // setting primitive attribute tracker to true + localVariableCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localVariableCount = param; + } + + /** field for TimerCount */ + protected int localTimerCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimerCountTracker = false; + + public boolean isTimerCountSpecified() { + return localTimerCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTimerCount() { + return localTimerCount; + } + + /** + * Auto generated setter method + * + * @param param TimerCount + */ + public void setTimerCount(int param) { + + // setting primitive attribute tracker to true + localTimerCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTimerCount = param; + } + + /** field for HasDebugValue */ + protected boolean localHasDebugValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHasDebugValueTracker = false; + + public boolean isHasDebugValueSpecified() { + return localHasDebugValueTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getHasDebugValue() { + return localHasDebugValue; + } + + /** + * Auto generated setter method + * + * @param param HasDebugValue + */ + public void setHasDebugValue(boolean param) { + + // setting primitive attribute tracker to true + localHasDebugValueTracker = true; + + this.localHasDebugValue = param; + } + + /** field for ApplicationValueCount */ + protected int localApplicationValueCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValueCountTracker = false; + + public boolean isApplicationValueCountSpecified() { + return localApplicationValueCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getApplicationValueCount() { + return localApplicationValueCount; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValueCount + */ + public void setApplicationValueCount(int param) { + + // setting primitive attribute tracker to true + localApplicationValueCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localApplicationValueCount = param; + } + + /** field for XmlParams */ + protected java.lang.String localXmlParams; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localXmlParamsTracker = false; + + public boolean isXmlParamsSpecified() { + return localXmlParamsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getXmlParams() { + return localXmlParams; + } + + /** + * Auto generated setter method + * + * @param param XmlParams + */ + public void setXmlParams(java.lang.String param) { + localXmlParamsTracker = param != null; + + this.localXmlParams = param; + } + + /** field for AccessFlag */ + protected int localAccessFlag; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAccessFlagTracker = false; + + public boolean isAccessFlagSpecified() { + return localAccessFlagTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAccessFlag() { + return localAccessFlag; + } + + /** + * Auto generated setter method + * + * @param param AccessFlag + */ + public void setAccessFlag(int param) { + + // setting primitive attribute tracker to true + localAccessFlagTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAccessFlag = param; + } + + /** field for ClusterFlag */ + protected int localClusterFlag; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterFlagTracker = false; + + public boolean isClusterFlagSpecified() { + return localClusterFlagTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterFlag() { + return localClusterFlag; + } + + /** + * Auto generated setter method + * + * @param param ClusterFlag + */ + public void setClusterFlag(int param) { + + // setting primitive attribute tracker to true + localClusterFlagTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterFlag = param; + } + + /** field for HelpersDesc */ + protected java.lang.String localHelpersDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHelpersDescTracker = false; + + public boolean isHelpersDescSpecified() { + return localHelpersDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getHelpersDesc() { + return localHelpersDesc; + } + + /** + * Auto generated setter method + * + * @param param HelpersDesc + */ + public void setHelpersDesc(java.lang.String param) { + localHelpersDescTracker = param != null; + + this.localHelpersDesc = param; + } + + /** field for GraphsDesc */ + protected java.lang.String localGraphsDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphsDescTracker = false; + + public boolean isGraphsDescSpecified() { + return localGraphsDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphsDesc() { + return localGraphsDesc; + } + + /** + * Auto generated setter method + * + * @param param GraphsDesc + */ + public void setGraphsDesc(java.lang.String param) { + localGraphsDescTracker = param != null; + + this.localGraphsDesc = param; + } + + /** field for SourceFilesDesc */ + protected java.lang.String localSourceFilesDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceFilesDescTracker = false; + + public boolean isSourceFilesDescSpecified() { + return localSourceFilesDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceFilesDesc() { + return localSourceFilesDesc; + } + + /** + * Auto generated setter method + * + * @param param SourceFilesDesc + */ + public void setSourceFilesDesc(java.lang.String param) { + localSourceFilesDescTracker = param != null; + + this.localSourceFilesDesc = param; + } + + /** field for ResultsDesc */ + protected java.lang.String localResultsDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultsDescTracker = false; + + public boolean isResultsDescSpecified() { + return localResultsDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResultsDesc() { + return localResultsDesc; + } + + /** + * Auto generated setter method + * + * @param param ResultsDesc + */ + public void setResultsDesc(java.lang.String param) { + localResultsDescTracker = param != null; + + this.localResultsDesc = param; + } + + /** field for VariablesDesc */ + protected java.lang.String localVariablesDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localVariablesDescTracker = false; + + public boolean isVariablesDescSpecified() { + return localVariablesDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getVariablesDesc() { + return localVariablesDesc; + } + + /** + * Auto generated setter method + * + * @param param VariablesDesc + */ + public void setVariablesDesc(java.lang.String param) { + localVariablesDescTracker = param != null; + + this.localVariablesDesc = param; + } + + /** field for TimersDesc */ + protected java.lang.String localTimersDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimersDescTracker = false; + + public boolean isTimersDescSpecified() { + return localTimersDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimersDesc() { + return localTimersDesc; + } + + /** + * Auto generated setter method + * + * @param param TimersDesc + */ + public void setTimersDesc(java.lang.String param) { + localTimersDescTracker = param != null; + + this.localTimersDesc = param; + } + + /** field for DebugValuesDesc */ + protected java.lang.String localDebugValuesDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValuesDescTracker = false; + + public boolean isDebugValuesDescSpecified() { + return localDebugValuesDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDebugValuesDesc() { + return localDebugValuesDesc; + } + + /** + * Auto generated setter method + * + * @param param DebugValuesDesc + */ + public void setDebugValuesDesc(java.lang.String param) { + localDebugValuesDescTracker = param != null; + + this.localDebugValuesDesc = param; + } + + /** field for ApplicationValuesDesc */ + protected java.lang.String localApplicationValuesDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValuesDescTracker = false; + + public boolean isApplicationValuesDescSpecified() { + return localApplicationValuesDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getApplicationValuesDesc() { + return localApplicationValuesDesc; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValuesDesc + */ + public void setApplicationValuesDesc(java.lang.String param) { + localApplicationValuesDescTracker = param != null; + + this.localApplicationValuesDesc = param; + } + + /** field for WorkflowsDesc */ + protected java.lang.String localWorkflowsDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkflowsDescTracker = false; + + public boolean isWorkflowsDescSpecified() { + return localWorkflowsDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWorkflowsDesc() { + return localWorkflowsDesc; + } + + /** + * Auto generated setter method + * + * @param param WorkflowsDesc + */ + public void setWorkflowsDesc(java.lang.String param) { + localWorkflowsDescTracker = param != null; + + this.localWorkflowsDesc = param; + } + + /** field for HasArchiveQuery */ + protected boolean localHasArchiveQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHasArchiveQueryTracker = false; + + public boolean isHasArchiveQuerySpecified() { + return localHasArchiveQueryTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getHasArchiveQuery() { + return localHasArchiveQuery; + } + + /** + * Auto generated setter method + * + * @param param HasArchiveQuery + */ + public void setHasArchiveQuery(boolean param) { + + // setting primitive attribute tracker to true + localHasArchiveQueryTracker = true; + + this.localHasArchiveQuery = param; + } + + /** field for ThorLogList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo + localThorLogList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorLogListTracker = false; + + public boolean isThorLogListSpecified() { + return localThorLogListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo + getThorLogList() { + return localThorLogList; + } + + /** + * Auto generated setter method + * + * @param param ThorLogList + */ + public void setThorLogList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo param) { + localThorLogListTracker = param != null; + + this.localThorLogList = param; + } + + /** field for ResourceURLs */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0 + localResourceURLs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResourceURLsTracker = false; + + public boolean isResourceURLsSpecified() { + return localResourceURLsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0 + getResourceURLs() { + return localResourceURLs; + } + + /** + * Auto generated setter method + * + * @param param ResourceURLs + */ + public void setResourceURLs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0 param) { + localResourceURLsTracker = param != null; + + this.localResourceURLs = param; + } + + /** field for ResultViewCount */ + protected int localResultViewCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultViewCountTracker = false; + + public boolean isResultViewCountSpecified() { + return localResultViewCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getResultViewCount() { + return localResultViewCount; + } + + /** + * Auto generated setter method + * + * @param param ResultViewCount + */ + public void setResultViewCount(int param) { + + // setting primitive attribute tracker to true + localResultViewCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localResultViewCount = param; + } + + /** field for ResourceURLCount */ + protected int localResourceURLCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResourceURLCountTracker = false; + + public boolean isResourceURLCountSpecified() { + return localResourceURLCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getResourceURLCount() { + return localResourceURLCount; + } + + /** + * Auto generated setter method + * + * @param param ResourceURLCount + */ + public void setResourceURLCount(int param) { + + // setting primitive attribute tracker to true + localResourceURLCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localResourceURLCount = param; + } + + /** field for DebugValueCount */ + protected int localDebugValueCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValueCountTracker = false; + + public boolean isDebugValueCountSpecified() { + return localDebugValueCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getDebugValueCount() { + return localDebugValueCount; + } + + /** + * Auto generated setter method + * + * @param param DebugValueCount + */ + public void setDebugValueCount(int param) { + + // setting primitive attribute tracker to true + localDebugValueCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localDebugValueCount = param; + } + + /** field for WorkflowCount */ + protected int localWorkflowCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkflowCountTracker = false; + + public boolean isWorkflowCountSpecified() { + return localWorkflowCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWorkflowCount() { + return localWorkflowCount; + } + + /** + * Auto generated setter method + * + * @param param WorkflowCount + */ + public void setWorkflowCount(int param) { + + // setting primitive attribute tracker to true + localWorkflowCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWorkflowCount = param; + } + + /** field for HelpersCount */ + protected int localHelpersCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localHelpersCountTracker = false; + + public boolean isHelpersCountSpecified() { + return localHelpersCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getHelpersCount() { + return localHelpersCount; + } + + /** + * Auto generated setter method + * + * @param param HelpersCount + */ + public void setHelpersCount(int param) { + + // setting primitive attribute tracker to true + localHelpersCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localHelpersCount = param; + } + + /** field for ServiceNames */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localServiceNames; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localServiceNamesTracker = false; + + public boolean isServiceNamesSpecified() { + return localServiceNamesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getServiceNames() { + return localServiceNames; + } + + /** + * Auto generated setter method + * + * @param param ServiceNames + */ + public void setServiceNames( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localServiceNamesTracker = param != null; + + this.localServiceNames = param; + } + + /** field for ExecuteCost */ + protected double localExecuteCost; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExecuteCostTracker = false; + + public boolean isExecuteCostSpecified() { + return localExecuteCostTracker; + } + + /** + * Auto generated getter method + * + * @return double + */ + public double getExecuteCost() { + return localExecuteCost; + } + + /** + * Auto generated setter method + * + * @param param ExecuteCost + */ + public void setExecuteCost(double param) { + + // setting primitive attribute tracker to true + localExecuteCostTracker = !java.lang.Double.isNaN(param); + + this.localExecuteCost = param; + } + + /** field for FileAccessCost */ + protected double localFileAccessCost; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileAccessCostTracker = false; + + public boolean isFileAccessCostSpecified() { + return localFileAccessCostTracker; + } + + /** + * Auto generated getter method + * + * @return double + */ + public double getFileAccessCost() { + return localFileAccessCost; + } + + /** + * Auto generated setter method + * + * @param param FileAccessCost + */ + public void setFileAccessCost(double param) { + + // setting primitive attribute tracker to true + localFileAccessCostTracker = !java.lang.Double.isNaN(param); + + this.localFileAccessCost = param; + } + + /** field for CompileCost */ + protected double localCompileCost; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompileCostTracker = false; + + public boolean isCompileCostSpecified() { + return localCompileCostTracker; + } + + /** + * Auto generated getter method + * + * @return double + */ + public double getCompileCost() { + return localCompileCost; + } + + /** + * Auto generated setter method + * + * @param param CompileCost + */ + public void setCompileCost(double param) { + + // setting primitive attribute tracker to true + localCompileCostTracker = !java.lang.Double.isNaN(param); + + this.localCompileCost = param; + } + + /** field for NoAccess */ + protected boolean localNoAccess = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoAccessTracker = false; + + public boolean isNoAccessSpecified() { + return localNoAccessTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoAccess() { + return localNoAccess; + } + + /** + * Auto generated setter method + * + * @param param NoAccess + */ + public void setNoAccess(boolean param) { + + // setting primitive attribute tracker to true + localNoAccessTracker = true; + + this.localNoAccess = param; + } + + /** field for ECLWUProcessList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWUProcess + localECLWUProcessList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLWUProcessListTracker = false; + + public boolean isECLWUProcessListSpecified() { + return localECLWUProcessListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWUProcess + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWUProcess + getECLWUProcessList() { + return localECLWUProcessList; + } + + /** + * Auto generated setter method + * + * @param param ECLWUProcessList + */ + public void setECLWUProcessList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWUProcess param) { + localECLWUProcessListTracker = param != null; + + this.localECLWUProcessList = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWorkunit", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localRoxieClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RoxieCluster", xmlWriter); + + if (localRoxieCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RoxieCluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRoxieCluster); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + if (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localStateIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StateID", xmlWriter); + + if (localStateID == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("StateID cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateID)); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localStateExTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StateEx", xmlWriter); + + if (localStateEx == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StateEx cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStateEx); + } + + xmlWriter.writeEndElement(); + } + if (localDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localProtectedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Protected", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Protected cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtected)); + } + + xmlWriter.writeEndElement(); + } + if (localActiveTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Active", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Active cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActive)); + } + + xmlWriter.writeEndElement(); + } + if (localActionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Action", xmlWriter); + + if (localAction == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); + } + + xmlWriter.writeEndElement(); + } + if (localActionExTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ActionEx", xmlWriter); + + if (localActionEx == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ActionEx cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localActionEx); + } + + xmlWriter.writeEndElement(); + } + if (localDateTimeScheduledTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DateTimeScheduled", xmlWriter); + + if (localDateTimeScheduled == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DateTimeScheduled cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localDateTimeScheduled)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityClassTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityClass", xmlWriter); + + if (localPriorityClass == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityClass cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityClass)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityLevelTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityLevel", xmlWriter); + + if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Scope", xmlWriter); + + if (localScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScope); + } + + xmlWriter.writeEndElement(); + } + if (localSnapshotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Snapshot", xmlWriter); + + if (localSnapshot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSnapshot); + } + + xmlWriter.writeEndElement(); + } + if (localResultLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultLimit", xmlWriter); + + if (localResultLimit == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ResultLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localArchivedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Archived", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Archived cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localArchived)); + } + + xmlWriter.writeEndElement(); + } + if (localIsPausingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsPausing", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsPausing cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsPausing)); + } + + xmlWriter.writeEndElement(); + } + if (localThorLCRTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorLCR", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ThorLCR cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThorLCR)); + } + + xmlWriter.writeEndElement(); + } + if (localEventScheduleTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventSchedule", xmlWriter); + + if (localEventSchedule == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("EventSchedule cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEventSchedule)); + } + + xmlWriter.writeEndElement(); + } + if (localTotalClusterTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TotalClusterTime", xmlWriter); + + if (localTotalClusterTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TotalClusterTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTotalClusterTime); + } + + xmlWriter.writeEndElement(); + } + if (localAbortByTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AbortBy", xmlWriter); + + if (localAbortBy == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AbortBy cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAbortBy); + } + + xmlWriter.writeEndElement(); + } + if (localAbortTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AbortTime", xmlWriter); + + if (localAbortTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AbortTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAbortTime); + } + + xmlWriter.writeEndElement(); + } + if (localQueryTracker) { + if (localQuery == null) { + throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); + } + localQuery.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query"), xmlWriter); + } + if (localHelpersTracker) { + if (localHelpers == null) { + throw new org.apache.axis2.databinding.ADBException("Helpers cannot be null!!"); + } + localHelpers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Helpers"), xmlWriter); + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localGraphsTracker) { + if (localGraphs == null) { + throw new org.apache.axis2.databinding.ADBException("Graphs cannot be null!!"); + } + localGraphs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs"), xmlWriter); + } + if (localSourceFilesTracker) { + if (localSourceFiles == null) { + throw new org.apache.axis2.databinding.ADBException("SourceFiles cannot be null!!"); + } + localSourceFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceFiles"), + xmlWriter); + } + if (localResultsTracker) { + if (localResults == null) { + throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); + } + localResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results"), xmlWriter); + } + if (localVariablesTracker) { + if (localVariables == null) { + throw new org.apache.axis2.databinding.ADBException("Variables cannot be null!!"); + } + localVariables.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Variables"), xmlWriter); + } + if (localTimersTracker) { + if (localTimers == null) { + throw new org.apache.axis2.databinding.ADBException("Timers cannot be null!!"); + } + localTimers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Timers"), xmlWriter); + } + if (localDebugValuesTracker) { + if (localDebugValues == null) { + throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); + } + localDebugValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), + xmlWriter); + } + if (localApplicationValuesTracker) { + if (localApplicationValues == null) { + throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); + } + localApplicationValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), + xmlWriter); + } + if (localWorkflowsTracker) { + if (localWorkflows == null) { + throw new org.apache.axis2.databinding.ADBException("Workflows cannot be null!!"); + } + localWorkflows.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workflows"), xmlWriter); + } + if (localTimingDataTracker) { + if (localTimingData == null) { + throw new org.apache.axis2.databinding.ADBException("TimingData cannot be null!!"); + } + localTimingData.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimingData"), xmlWriter); + } + if (localAllowedClustersTracker) { + if (localAllowedClusters == null) { + throw new org.apache.axis2.databinding.ADBException("AllowedClusters cannot be null!!"); + } + localAllowedClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllowedClusters"), + xmlWriter); + } + if (localErrorCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ErrorCount", xmlWriter); + + if (localErrorCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ErrorCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localErrorCount)); + } + + xmlWriter.writeEndElement(); + } + if (localWarningCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarningCount", xmlWriter); + + if (localWarningCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("WarningCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarningCount)); + } + + xmlWriter.writeEndElement(); + } + if (localInfoCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "InfoCount", xmlWriter); + + if (localInfoCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("InfoCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInfoCount)); + } + + xmlWriter.writeEndElement(); + } + if (localAlertCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AlertCount", xmlWriter); + + if (localAlertCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("AlertCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAlertCount)); + } + + xmlWriter.writeEndElement(); + } + if (localGraphCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphCount", xmlWriter); + + if (localGraphCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("GraphCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localGraphCount)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceFileCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceFileCount", xmlWriter); + + if (localSourceFileCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SourceFileCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceFileCount)); + } + + xmlWriter.writeEndElement(); + } + if (localResultCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultCount", xmlWriter); + + if (localResultCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ResultCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultCount)); + } + + xmlWriter.writeEndElement(); + } + if (localVariableCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "VariableCount", xmlWriter); + + if (localVariableCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("VariableCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localVariableCount)); + } + + xmlWriter.writeEndElement(); + } + if (localTimerCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimerCount", xmlWriter); + + if (localTimerCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("TimerCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimerCount)); + } + + xmlWriter.writeEndElement(); + } + if (localHasDebugValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "HasDebugValue", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("HasDebugValue cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasDebugValue)); + } + + xmlWriter.writeEndElement(); + } + if (localApplicationValueCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ApplicationValueCount", xmlWriter); + + if (localApplicationValueCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "ApplicationValueCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localApplicationValueCount)); + } + + xmlWriter.writeEndElement(); + } + if (localXmlParamsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "XmlParams", xmlWriter); + + if (localXmlParams == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("XmlParams cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localXmlParams); + } + + xmlWriter.writeEndElement(); + } + if (localAccessFlagTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AccessFlag", xmlWriter); + + if (localAccessFlag == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("AccessFlag cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAccessFlag)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterFlagTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterFlag", xmlWriter); + + if (localClusterFlag == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterFlag cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterFlag)); + } + + xmlWriter.writeEndElement(); + } + if (localHelpersDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "HelpersDesc", xmlWriter); + + if (localHelpersDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("HelpersDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localHelpersDesc); + } + + xmlWriter.writeEndElement(); + } + if (localGraphsDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphsDesc", xmlWriter); + + if (localGraphsDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphsDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphsDesc); + } + + xmlWriter.writeEndElement(); + } + if (localSourceFilesDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceFilesDesc", xmlWriter); + + if (localSourceFilesDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceFilesDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceFilesDesc); + } + + xmlWriter.writeEndElement(); + } + if (localResultsDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultsDesc", xmlWriter); + + if (localResultsDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ResultsDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResultsDesc); + } + + xmlWriter.writeEndElement(); + } + if (localVariablesDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "VariablesDesc", xmlWriter); + + if (localVariablesDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("VariablesDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localVariablesDesc); + } + + xmlWriter.writeEndElement(); + } + if (localTimersDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimersDesc", xmlWriter); + + if (localTimersDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimersDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimersDesc); + } + + xmlWriter.writeEndElement(); + } + if (localDebugValuesDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DebugValuesDesc", xmlWriter); + + if (localDebugValuesDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DebugValuesDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDebugValuesDesc); + } + + xmlWriter.writeEndElement(); + } + if (localApplicationValuesDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ApplicationValuesDesc", xmlWriter); + + if (localApplicationValuesDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "ApplicationValuesDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localApplicationValuesDesc); + } + + xmlWriter.writeEndElement(); + } + if (localWorkflowsDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WorkflowsDesc", xmlWriter); + + if (localWorkflowsDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WorkflowsDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWorkflowsDesc); + } + + xmlWriter.writeEndElement(); + } + if (localHasArchiveQueryTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "HasArchiveQuery", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("HasArchiveQuery cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHasArchiveQuery)); + } + + xmlWriter.writeEndElement(); + } + if (localThorLogListTracker) { + if (localThorLogList == null) { + throw new org.apache.axis2.databinding.ADBException("ThorLogList cannot be null!!"); + } + localThorLogList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogList"), + xmlWriter); + } + if (localResourceURLsTracker) { + if (localResourceURLs == null) { + throw new org.apache.axis2.databinding.ADBException("ResourceURLs cannot be null!!"); + } + localResourceURLs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResourceURLs"), + xmlWriter); + } + if (localResultViewCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultViewCount", xmlWriter); + + if (localResultViewCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ResultViewCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultViewCount)); + } + + xmlWriter.writeEndElement(); + } + if (localResourceURLCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResourceURLCount", xmlWriter); + + if (localResourceURLCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ResourceURLCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localResourceURLCount)); + } + + xmlWriter.writeEndElement(); + } + if (localDebugValueCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DebugValueCount", xmlWriter); + + if (localDebugValueCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("DebugValueCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDebugValueCount)); + } + + xmlWriter.writeEndElement(); + } + if (localWorkflowCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WorkflowCount", xmlWriter); + + if (localWorkflowCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("WorkflowCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWorkflowCount)); + } + + xmlWriter.writeEndElement(); + } + if (localHelpersCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "HelpersCount", xmlWriter); + + if (localHelpersCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("HelpersCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localHelpersCount)); + } + + xmlWriter.writeEndElement(); + } + if (localServiceNamesTracker) { + if (localServiceNames == null) { + throw new org.apache.axis2.databinding.ADBException("ServiceNames cannot be null!!"); + } + localServiceNames.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServiceNames"), + xmlWriter); + } + if (localExecuteCostTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ExecuteCost", xmlWriter); + + if (java.lang.Double.isNaN(localExecuteCost)) { + + throw new org.apache.axis2.databinding.ADBException("ExecuteCost cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localExecuteCost)); + } + + xmlWriter.writeEndElement(); + } + if (localFileAccessCostTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileAccessCost", xmlWriter); + + if (java.lang.Double.isNaN(localFileAccessCost)) { + + throw new org.apache.axis2.databinding.ADBException("FileAccessCost cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileAccessCost)); + } + + xmlWriter.writeEndElement(); + } + if (localCompileCostTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CompileCost", xmlWriter); + + if (java.lang.Double.isNaN(localCompileCost)) { + + throw new org.apache.axis2.databinding.ADBException("CompileCost cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompileCost)); + } + + xmlWriter.writeEndElement(); + } + if (localNoAccessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoAccess", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoAccess cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoAccess)); + } + + xmlWriter.writeEndElement(); + } + if (localECLWUProcessListTracker) { + if (localECLWUProcessList == null) { + throw new org.apache.axis2.databinding.ADBException("ECLWUProcessList cannot be null!!"); + } + localECLWUProcessList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECLWUProcessList"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLWorkunit object = new ECLWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLWorkunit) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RoxieCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RoxieCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRoxieCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateEx") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateEx" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateEx( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Protected" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtected( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Active") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Active" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActive( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Action" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionEx") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ActionEx" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActionEx( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DateTimeScheduled") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DateTimeScheduled" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDateTimeScheduled( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityClass") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityClass" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityClass( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityLevel" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityLevel( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Scope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Snapshot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSnapshot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Archived") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Archived" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setArchived( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsPausing") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsPausing" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsPausing( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLCR") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorLCR" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorLCR( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventSchedule") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventSchedule" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventSchedule( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TotalClusterTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TotalClusterTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotalClusterTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AbortBy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AbortBy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAbortBy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AbortTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AbortTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAbortTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") + .equals(reader.getName())) { + + object.setQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Helpers") + .equals(reader.getName())) { + + object.setHelpers( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs") + .equals(reader.getName())) { + + object.setGraphs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceFiles") + .equals(reader.getName())) { + + object.setSourceFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") + .equals(reader.getName())) { + + object.setResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Variables") + .equals(reader.getName())) { + + object.setVariables( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Timers") + .equals(reader.getName())) { + + object.setTimers( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") + .equals(reader.getName())) { + + object.setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") + .equals(reader.getName())) { + + object.setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workflows") + .equals(reader.getName())) { + + object.setWorkflows( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimingData") + .equals(reader.getName())) { + + object.setTimingData( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AllowedClusters") + .equals(reader.getName())) { + + object.setAllowedClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ErrorCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setErrorCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarningCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarningCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarningCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "InfoCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "InfoCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setInfoCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AlertCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AlertCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAlertCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SourceFileCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceFileCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceFileCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "VariableCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "VariableCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setVariableCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimerCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimerCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimerCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "HasDebugValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "HasDebugValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setHasDebugValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValueCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ApplicationValueCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setApplicationValueCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "XmlParams") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "XmlParams" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setXmlParams( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AccessFlag") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AccessFlag" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAccessFlag( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFlag") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterFlag" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterFlag( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "HelpersDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "HelpersDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setHelpersDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphsDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphsDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphsDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SourceFilesDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceFilesDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceFilesDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultsDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultsDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultsDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "VariablesDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "VariablesDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setVariablesDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimersDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimersDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimersDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DebugValuesDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DebugValuesDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDebugValuesDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValuesDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ApplicationValuesDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setApplicationValuesDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WorkflowsDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WorkflowsDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWorkflowsDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "HasArchiveQuery") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "HasArchiveQuery" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setHasArchiveQuery( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorLogList") + .equals(reader.getName())) { + + object.setThorLogList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResourceURLs") + .equals(reader.getName())) { + + object.setResourceURLs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ResultViewCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultViewCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultViewCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ResourceURLCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResourceURLCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResourceURLCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DebugValueCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DebugValueCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDebugValueCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WorkflowCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WorkflowCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWorkflowCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "HelpersCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "HelpersCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setHelpersCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ServiceNames") + .equals(reader.getName())) { + + object.setServiceNames( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExecuteCost") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ExecuteCost" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setExecuteCost( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileAccessCost") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileAccessCost" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileAccessCost( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CompileCost") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CompileCost" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompileCost( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoAccess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoAccess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoAccess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ECLWUProcessList") + .equals(reader.getName())) { + + object.setECLWUProcessList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWUProcess.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkunitLW.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkunitLW.java index b00af31bd..6a10408a0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkunitLW.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ECLWorkunitLW.java @@ -1,1485 +1,1485 @@ -/** - * ECLWorkunitLW.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ECLWorkunitLW bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ECLWorkunitLW implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ECLWorkunitLW - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for JobName */ - protected java.lang.String localJobName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobNameTracker = false; - - public boolean isJobNameSpecified() { - return localJobNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobName() { - return localJobName; - } - - /** - * Auto generated setter method - * - * @param param JobName - */ - public void setJobName(java.lang.String param) { - localJobNameTracker = param != null; - - this.localJobName = param; - } - - /** field for WuScope */ - protected java.lang.String localWuScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuScopeTracker = false; - - public boolean isWuScopeSpecified() { - return localWuScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuScope() { - return localWuScope; - } - - /** - * Auto generated setter method - * - * @param param WuScope - */ - public void setWuScope(java.lang.String param) { - localWuScopeTracker = param != null; - - this.localWuScope = param; - } - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for State */ - protected int localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(int param) { - - // setting primitive attribute tracker to true - localStateTracker = param != java.lang.Integer.MIN_VALUE; - - this.localState = param; - } - - /** field for StateDesc */ - protected java.lang.String localStateDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateDescTracker = false; - - public boolean isStateDescSpecified() { - return localStateDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStateDesc() { - return localStateDesc; - } - - /** - * Auto generated setter method - * - * @param param StateDesc - */ - public void setStateDesc(java.lang.String param) { - localStateDescTracker = param != null; - - this.localStateDesc = param; - } - - /** field for Action */ - protected int localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction(int param) { - - // setting primitive attribute tracker to true - localActionTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAction = param; - } - - /** field for ActionDesc */ - protected java.lang.String localActionDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionDescTracker = false; - - public boolean isActionDescSpecified() { - return localActionDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getActionDesc() { - return localActionDesc; - } - - /** - * Auto generated setter method - * - * @param param ActionDesc - */ - public void setActionDesc(java.lang.String param) { - localActionDescTracker = param != null; - - this.localActionDesc = param; - } - - /** field for Priority */ - protected int localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(int param) { - - // setting primitive attribute tracker to true - localPriorityTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriority = param; - } - - /** field for PriorityDesc */ - protected java.lang.String localPriorityDesc; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityDescTracker = false; - - public boolean isPriorityDescSpecified() { - return localPriorityDescTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriorityDesc() { - return localPriorityDesc; - } - - /** - * Auto generated setter method - * - * @param param PriorityDesc - */ - public void setPriorityDesc(java.lang.String param) { - localPriorityDescTracker = param != null; - - this.localPriorityDesc = param; - } - - /** field for PriorityLevel */ - protected int localPriorityLevel; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityLevelTracker = false; - - public boolean isPriorityLevelSpecified() { - return localPriorityLevelTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityLevel() { - return localPriorityLevel; - } - - /** - * Auto generated setter method - * - * @param param PriorityLevel - */ - public void setPriorityLevel(int param) { - - // setting primitive attribute tracker to true - localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityLevel = param; - } - - /** field for IsProtected */ - protected boolean localIsProtected; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsProtectedTracker = false; - - public boolean isIsProtectedSpecified() { - return localIsProtectedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsProtected() { - return localIsProtected; - } - - /** - * Auto generated setter method - * - * @param param IsProtected - */ - public void setIsProtected(boolean param) { - - // setting primitive attribute tracker to true - localIsProtectedTracker = true; - - this.localIsProtected = param; - } - - /** field for DateTimeScheduled */ - protected java.util.Calendar localDateTimeScheduled; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDateTimeScheduledTracker = false; - - public boolean isDateTimeScheduledSpecified() { - return localDateTimeScheduledTracker; - } - - /** - * Auto generated getter method - * - * @return java.util.Calendar - */ - public java.util.Calendar getDateTimeScheduled() { - return localDateTimeScheduled; - } - - /** - * Auto generated setter method - * - * @param param DateTimeScheduled - */ - public void setDateTimeScheduled(java.util.Calendar param) { - localDateTimeScheduledTracker = param != null; - - this.localDateTimeScheduled = param; - } - - /** field for TotalClusterTime */ - protected org.apache.axis2.databinding.types.UnsignedInt localTotalClusterTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalClusterTimeTracker = false; - - public boolean isTotalClusterTimeSpecified() { - return localTotalClusterTimeTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getTotalClusterTime() { - return localTotalClusterTime; - } - - /** - * Auto generated setter method - * - * @param param TotalClusterTime - */ - public void setTotalClusterTime(org.apache.axis2.databinding.types.UnsignedInt param) { - localTotalClusterTimeTracker = param != null; - - this.localTotalClusterTime = param; - } - - /** field for ApplicationValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - localApplicationValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValuesTracker = false; - - public boolean isApplicationValuesSpecified() { - return localApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - getApplicationValues() { - return localApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValues - */ - public void setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { - localApplicationValuesTracker = param != null; - - this.localApplicationValues = param; - } - - /** field for NoAccess */ - protected boolean localNoAccess = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoAccessTracker = false; - - public boolean isNoAccessSpecified() { - return localNoAccessTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoAccess() { - return localNoAccess; - } - - /** - * Auto generated setter method - * - * @param param NoAccess - */ - public void setNoAccess(boolean param) { - - // setting primitive attribute tracker to true - localNoAccessTracker = true; - - this.localNoAccess = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ECLWorkunitLW", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWorkunitLW", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localJobNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "JobName", xmlWriter); - - if (localJobName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobName); - } - - xmlWriter.writeEndElement(); - } - if (localWuScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WuScope", xmlWriter); - - if (localWuScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WuScope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuScope); - } - - xmlWriter.writeEndElement(); - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); - } - - xmlWriter.writeEndElement(); - } - if (localStateDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StateDesc", xmlWriter); - - if (localStateDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StateDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStateDesc); - } - - xmlWriter.writeEndElement(); - } - if (localActionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Action", xmlWriter); - - if (localAction == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); - } - - xmlWriter.writeEndElement(); - } - if (localActionDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ActionDesc", xmlWriter); - - if (localActionDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ActionDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localActionDesc); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriority)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityDescTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityDesc", xmlWriter); - - if (localPriorityDesc == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PriorityDesc cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriorityDesc); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityLevelTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityLevel", xmlWriter); - - if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); - } - - xmlWriter.writeEndElement(); - } - if (localIsProtectedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsProtected", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsProtected cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsProtected)); - } - - xmlWriter.writeEndElement(); - } - if (localDateTimeScheduledTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DateTimeScheduled", xmlWriter); - - if (localDateTimeScheduled == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DateTimeScheduled cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localDateTimeScheduled)); - } - - xmlWriter.writeEndElement(); - } - if (localTotalClusterTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TotalClusterTime", xmlWriter); - - if (localTotalClusterTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TotalClusterTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTotalClusterTime)); - } - - xmlWriter.writeEndElement(); - } - if (localApplicationValuesTracker) { - if (localApplicationValues == null) { - throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); - } - localApplicationValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), - xmlWriter); - } - if (localNoAccessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoAccess", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoAccess cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoAccess)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ECLWorkunitLW parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ECLWorkunitLW object = new ECLWorkunitLW(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ECLWorkunitLW".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ECLWorkunitLW) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WuScope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WuScope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Action" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ActionDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActionDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityDesc") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityDesc" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityDesc( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityLevel" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityLevel( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsProtected") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsProtected" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsProtected( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DateTimeScheduled") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DateTimeScheduled" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDateTimeScheduled( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TotalClusterTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TotalClusterTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotalClusterTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") - .equals(reader.getName())) { - - object.setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoAccess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoAccess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoAccess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ECLWorkunitLW.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ECLWorkunitLW bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ECLWorkunitLW implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ECLWorkunitLW + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for JobName */ + protected java.lang.String localJobName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobNameTracker = false; + + public boolean isJobNameSpecified() { + return localJobNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobName() { + return localJobName; + } + + /** + * Auto generated setter method + * + * @param param JobName + */ + public void setJobName(java.lang.String param) { + localJobNameTracker = param != null; + + this.localJobName = param; + } + + /** field for WuScope */ + protected java.lang.String localWuScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuScopeTracker = false; + + public boolean isWuScopeSpecified() { + return localWuScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuScope() { + return localWuScope; + } + + /** + * Auto generated setter method + * + * @param param WuScope + */ + public void setWuScope(java.lang.String param) { + localWuScopeTracker = param != null; + + this.localWuScope = param; + } + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for State */ + protected int localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(int param) { + + // setting primitive attribute tracker to true + localStateTracker = param != java.lang.Integer.MIN_VALUE; + + this.localState = param; + } + + /** field for StateDesc */ + protected java.lang.String localStateDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateDescTracker = false; + + public boolean isStateDescSpecified() { + return localStateDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStateDesc() { + return localStateDesc; + } + + /** + * Auto generated setter method + * + * @param param StateDesc + */ + public void setStateDesc(java.lang.String param) { + localStateDescTracker = param != null; + + this.localStateDesc = param; + } + + /** field for Action */ + protected int localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction(int param) { + + // setting primitive attribute tracker to true + localActionTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAction = param; + } + + /** field for ActionDesc */ + protected java.lang.String localActionDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionDescTracker = false; + + public boolean isActionDescSpecified() { + return localActionDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getActionDesc() { + return localActionDesc; + } + + /** + * Auto generated setter method + * + * @param param ActionDesc + */ + public void setActionDesc(java.lang.String param) { + localActionDescTracker = param != null; + + this.localActionDesc = param; + } + + /** field for Priority */ + protected int localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(int param) { + + // setting primitive attribute tracker to true + localPriorityTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriority = param; + } + + /** field for PriorityDesc */ + protected java.lang.String localPriorityDesc; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityDescTracker = false; + + public boolean isPriorityDescSpecified() { + return localPriorityDescTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriorityDesc() { + return localPriorityDesc; + } + + /** + * Auto generated setter method + * + * @param param PriorityDesc + */ + public void setPriorityDesc(java.lang.String param) { + localPriorityDescTracker = param != null; + + this.localPriorityDesc = param; + } + + /** field for PriorityLevel */ + protected int localPriorityLevel; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityLevelTracker = false; + + public boolean isPriorityLevelSpecified() { + return localPriorityLevelTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityLevel() { + return localPriorityLevel; + } + + /** + * Auto generated setter method + * + * @param param PriorityLevel + */ + public void setPriorityLevel(int param) { + + // setting primitive attribute tracker to true + localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityLevel = param; + } + + /** field for IsProtected */ + protected boolean localIsProtected; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsProtectedTracker = false; + + public boolean isIsProtectedSpecified() { + return localIsProtectedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsProtected() { + return localIsProtected; + } + + /** + * Auto generated setter method + * + * @param param IsProtected + */ + public void setIsProtected(boolean param) { + + // setting primitive attribute tracker to true + localIsProtectedTracker = true; + + this.localIsProtected = param; + } + + /** field for DateTimeScheduled */ + protected java.util.Calendar localDateTimeScheduled; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDateTimeScheduledTracker = false; + + public boolean isDateTimeScheduledSpecified() { + return localDateTimeScheduledTracker; + } + + /** + * Auto generated getter method + * + * @return java.util.Calendar + */ + public java.util.Calendar getDateTimeScheduled() { + return localDateTimeScheduled; + } + + /** + * Auto generated setter method + * + * @param param DateTimeScheduled + */ + public void setDateTimeScheduled(java.util.Calendar param) { + localDateTimeScheduledTracker = param != null; + + this.localDateTimeScheduled = param; + } + + /** field for TotalClusterTime */ + protected org.apache.axis2.databinding.types.UnsignedInt localTotalClusterTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalClusterTimeTracker = false; + + public boolean isTotalClusterTimeSpecified() { + return localTotalClusterTimeTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getTotalClusterTime() { + return localTotalClusterTime; + } + + /** + * Auto generated setter method + * + * @param param TotalClusterTime + */ + public void setTotalClusterTime(org.apache.axis2.databinding.types.UnsignedInt param) { + localTotalClusterTimeTracker = param != null; + + this.localTotalClusterTime = param; + } + + /** field for ApplicationValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + localApplicationValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValuesTracker = false; + + public boolean isApplicationValuesSpecified() { + return localApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + getApplicationValues() { + return localApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValues + */ + public void setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { + localApplicationValuesTracker = param != null; + + this.localApplicationValues = param; + } + + /** field for NoAccess */ + protected boolean localNoAccess = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoAccessTracker = false; + + public boolean isNoAccessSpecified() { + return localNoAccessTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoAccess() { + return localNoAccess; + } + + /** + * Auto generated setter method + * + * @param param NoAccess + */ + public void setNoAccess(boolean param) { + + // setting primitive attribute tracker to true + localNoAccessTracker = true; + + this.localNoAccess = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ECLWorkunitLW", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWorkunitLW", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localJobNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "JobName", xmlWriter); + + if (localJobName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobName); + } + + xmlWriter.writeEndElement(); + } + if (localWuScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WuScope", xmlWriter); + + if (localWuScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WuScope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuScope); + } + + xmlWriter.writeEndElement(); + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); + } + + xmlWriter.writeEndElement(); + } + if (localStateDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StateDesc", xmlWriter); + + if (localStateDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StateDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStateDesc); + } + + xmlWriter.writeEndElement(); + } + if (localActionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Action", xmlWriter); + + if (localAction == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); + } + + xmlWriter.writeEndElement(); + } + if (localActionDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ActionDesc", xmlWriter); + + if (localActionDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ActionDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localActionDesc); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriority)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityDescTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityDesc", xmlWriter); + + if (localPriorityDesc == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PriorityDesc cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriorityDesc); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityLevelTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityLevel", xmlWriter); + + if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); + } + + xmlWriter.writeEndElement(); + } + if (localIsProtectedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsProtected", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsProtected cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsProtected)); + } + + xmlWriter.writeEndElement(); + } + if (localDateTimeScheduledTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DateTimeScheduled", xmlWriter); + + if (localDateTimeScheduled == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DateTimeScheduled cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localDateTimeScheduled)); + } + + xmlWriter.writeEndElement(); + } + if (localTotalClusterTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TotalClusterTime", xmlWriter); + + if (localTotalClusterTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TotalClusterTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTotalClusterTime)); + } + + xmlWriter.writeEndElement(); + } + if (localApplicationValuesTracker) { + if (localApplicationValues == null) { + throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); + } + localApplicationValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), + xmlWriter); + } + if (localNoAccessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoAccess", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoAccess cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoAccess)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ECLWorkunitLW parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ECLWorkunitLW object = new ECLWorkunitLW(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ECLWorkunitLW".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ECLWorkunitLW) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WuScope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WuScope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Action" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ActionDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActionDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityDesc") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityDesc" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityDesc( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityLevel" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityLevel( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsProtected") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsProtected" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsProtected( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DateTimeScheduled") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DateTimeScheduled" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDateTimeScheduled( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TotalClusterTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TotalClusterTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotalClusterTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") + .equals(reader.getName())) { + + object.setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoAccess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoAccess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoAccess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EclDefinitionActions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EclDefinitionActions.java index 54670ff06..b10e58279 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EclDefinitionActions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EclDefinitionActions.java @@ -1,417 +1,417 @@ -/** - * EclDefinitionActions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** EclDefinitionActions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EclDefinitionActions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "EclDefinitionActions", "ns1"); - - /** field for EclDefinitionActions */ - protected java.lang.String localEclDefinitionActions; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected EclDefinitionActions(java.lang.String value, boolean isRegisterValue) { - localEclDefinitionActions = value; - if (isRegisterValue) { - - _table_.put(localEclDefinitionActions, this); - } - } - - public static final java.lang.String _SyntaxCheck = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("SyntaxCheck"); - - public static final java.lang.String _Deploy = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Deploy"); - - public static final java.lang.String _Publish = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Publish"); - - public static final EclDefinitionActions SyntaxCheck = - new EclDefinitionActions(_SyntaxCheck, true); - - public static final EclDefinitionActions Deploy = new EclDefinitionActions(_Deploy, true); - - public static final EclDefinitionActions Publish = new EclDefinitionActions(_Publish, true); - - public java.lang.String getValue() { - return localEclDefinitionActions; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localEclDefinitionActions.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EclDefinitionActions", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "EclDefinitionActions", - xmlWriter); - } - } - - if (localEclDefinitionActions == null) { - - throw new org.apache.axis2.databinding.ADBException("EclDefinitionActions cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localEclDefinitionActions); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static EclDefinitionActions fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - EclDefinitionActions enumeration = (EclDefinitionActions) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static EclDefinitionActions fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static EclDefinitionActions fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return EclDefinitionActions.Factory.fromString(content, namespaceUri); - } else { - return EclDefinitionActions.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EclDefinitionActions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EclDefinitionActions object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EclDefinitionActions" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = EclDefinitionActions.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = EclDefinitionActions.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EclDefinitionActions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** EclDefinitionActions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EclDefinitionActions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "EclDefinitionActions", "ns1"); + + /** field for EclDefinitionActions */ + protected java.lang.String localEclDefinitionActions; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected EclDefinitionActions(java.lang.String value, boolean isRegisterValue) { + localEclDefinitionActions = value; + if (isRegisterValue) { + + _table_.put(localEclDefinitionActions, this); + } + } + + public static final java.lang.String _SyntaxCheck = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("SyntaxCheck"); + + public static final java.lang.String _Deploy = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Deploy"); + + public static final java.lang.String _Publish = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Publish"); + + public static final EclDefinitionActions SyntaxCheck = + new EclDefinitionActions(_SyntaxCheck, true); + + public static final EclDefinitionActions Deploy = new EclDefinitionActions(_Deploy, true); + + public static final EclDefinitionActions Publish = new EclDefinitionActions(_Publish, true); + + public java.lang.String getValue() { + return localEclDefinitionActions; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localEclDefinitionActions.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EclDefinitionActions", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "EclDefinitionActions", + xmlWriter); + } + } + + if (localEclDefinitionActions == null) { + + throw new org.apache.axis2.databinding.ADBException("EclDefinitionActions cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localEclDefinitionActions); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static EclDefinitionActions fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + EclDefinitionActions enumeration = (EclDefinitionActions) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static EclDefinitionActions fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static EclDefinitionActions fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return EclDefinitionActions.Factory.fromString(content, namespaceUri); + } else { + return EclDefinitionActions.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EclDefinitionActions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EclDefinitionActions object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EclDefinitionActions" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = EclDefinitionActions.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = EclDefinitionActions.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EndpointQueryStats.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EndpointQueryStats.java index 27881b65c..63c4cbd2e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EndpointQueryStats.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EndpointQueryStats.java @@ -1,523 +1,523 @@ -/** - * EndpointQueryStats.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** EndpointQueryStats bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EndpointQueryStats implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EndpointQueryStats - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Endpoint */ - protected java.lang.String localEndpoint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndpointTracker = false; - - public boolean isEndpointSpecified() { - return localEndpointTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndpoint() { - return localEndpoint; - } - - /** - * Auto generated setter method - * - * @param param Endpoint - */ - public void setEndpoint(java.lang.String param) { - localEndpointTracker = param != null; - - this.localEndpoint = param; - } - - /** field for Status */ - protected java.lang.String localStatus; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusTracker = false; - - public boolean isStatusSpecified() { - return localStatusTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStatus() { - return localStatus; - } - - /** - * Auto generated setter method - * - * @param param Status - */ - public void setStatus(java.lang.String param) { - localStatusTracker = param != null; - - this.localStatus = param; - } - - /** field for QueryStatsList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats - localQueryStatsList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryStatsListTracker = false; - - public boolean isQueryStatsListSpecified() { - return localQueryStatsListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats - getQueryStatsList() { - return localQueryStatsList; - } - - /** - * Auto generated setter method - * - * @param param QueryStatsList - */ - public void setQueryStatsList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats param) { - localQueryStatsListTracker = param != null; - - this.localQueryStatsList = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EndpointQueryStats", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "EndpointQueryStats", - xmlWriter); - } - } - if (localEndpointTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Endpoint", xmlWriter); - - if (localEndpoint == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Endpoint cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndpoint); - } - - xmlWriter.writeEndElement(); - } - if (localStatusTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Status", xmlWriter); - - if (localStatus == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Status cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStatus); - } - - xmlWriter.writeEndElement(); - } - if (localQueryStatsListTracker) { - if (localQueryStatsList == null) { - throw new org.apache.axis2.databinding.ADBException("QueryStatsList cannot be null!!"); - } - localQueryStatsList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsList"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EndpointQueryStats parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EndpointQueryStats object = new EndpointQueryStats(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EndpointQueryStats".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EndpointQueryStats) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Endpoint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndpoint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Status") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Status" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStatus( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsList") - .equals(reader.getName())) { - - object.setQueryStatsList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EndpointQueryStats.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** EndpointQueryStats bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EndpointQueryStats implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EndpointQueryStats + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Endpoint */ + protected java.lang.String localEndpoint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndpointTracker = false; + + public boolean isEndpointSpecified() { + return localEndpointTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndpoint() { + return localEndpoint; + } + + /** + * Auto generated setter method + * + * @param param Endpoint + */ + public void setEndpoint(java.lang.String param) { + localEndpointTracker = param != null; + + this.localEndpoint = param; + } + + /** field for Status */ + protected java.lang.String localStatus; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusTracker = false; + + public boolean isStatusSpecified() { + return localStatusTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStatus() { + return localStatus; + } + + /** + * Auto generated setter method + * + * @param param Status + */ + public void setStatus(java.lang.String param) { + localStatusTracker = param != null; + + this.localStatus = param; + } + + /** field for QueryStatsList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats + localQueryStatsList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryStatsListTracker = false; + + public boolean isQueryStatsListSpecified() { + return localQueryStatsListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats + getQueryStatsList() { + return localQueryStatsList; + } + + /** + * Auto generated setter method + * + * @param param QueryStatsList + */ + public void setQueryStatsList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats param) { + localQueryStatsListTracker = param != null; + + this.localQueryStatsList = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EndpointQueryStats", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "EndpointQueryStats", + xmlWriter); + } + } + if (localEndpointTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Endpoint", xmlWriter); + + if (localEndpoint == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Endpoint cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndpoint); + } + + xmlWriter.writeEndElement(); + } + if (localStatusTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Status", xmlWriter); + + if (localStatus == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Status cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStatus); + } + + xmlWriter.writeEndElement(); + } + if (localQueryStatsListTracker) { + if (localQueryStatsList == null) { + throw new org.apache.axis2.databinding.ADBException("QueryStatsList cannot be null!!"); + } + localQueryStatsList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsList"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EndpointQueryStats parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EndpointQueryStats object = new EndpointQueryStats(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EndpointQueryStats".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EndpointQueryStats) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Endpoint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndpoint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Status") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Status" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStatus( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsList") + .equals(reader.getName())) { + + object.setQueryStatsList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Endpoints_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Endpoints_type0.java index d99cb23a2..e277bee67 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Endpoints_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Endpoints_type0.java @@ -1,459 +1,459 @@ -/** - * Endpoints_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Endpoints_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Endpoints_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Endpoints_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Endpoint This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] localEndpoint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndpointTracker = false; - - public boolean isEndpointSpecified() { - return localEndpointTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] getEndpoint() { - return localEndpoint; - } - - /** validate the array for Endpoint */ - protected void validateEndpoint( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] param) {} - - /** - * Auto generated setter method - * - * @param param Endpoint - */ - public void setEndpoint( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] param) { - - validateEndpoint(param); - - localEndpointTracker = param != null; - - this.localEndpoint = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint - */ - public void addEndpoint( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint param) { - if (localEndpoint == null) { - localEndpoint = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] {}; - } - - // update the setting tracker - localEndpointTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localEndpoint); - list.add(param); - this.localEndpoint = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Endpoints_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Endpoints_type0", - xmlWriter); - } - } - if (localEndpointTracker) { - if (localEndpoint != null) { - for (int i = 0; i < localEndpoint.length; i++) { - if (localEndpoint[i] != null) { - localEndpoint[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Endpoint cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Endpoints_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Endpoints_type0 object = new Endpoints_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Endpoints_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Endpoints_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setEndpoint( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Endpoints_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Endpoints_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Endpoints_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Endpoints_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Endpoint This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] localEndpoint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndpointTracker = false; + + public boolean isEndpointSpecified() { + return localEndpointTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] getEndpoint() { + return localEndpoint; + } + + /** validate the array for Endpoint */ + protected void validateEndpoint( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] param) {} + + /** + * Auto generated setter method + * + * @param param Endpoint + */ + public void setEndpoint( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] param) { + + validateEndpoint(param); + + localEndpointTracker = param != null; + + this.localEndpoint = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint + */ + public void addEndpoint( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint param) { + if (localEndpoint == null) { + localEndpoint = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[] {}; + } + + // update the setting tracker + localEndpointTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localEndpoint); + list.add(param); + this.localEndpoint = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Endpoints_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Endpoints_type0", + xmlWriter); + } + } + if (localEndpointTracker) { + if (localEndpoint != null) { + for (int i = 0; i < localEndpoint.length; i++) { + if (localEndpoint[i] != null) { + localEndpoint[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Endpoint cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Endpoints_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Endpoints_type0 object = new Endpoints_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Endpoints_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Endpoints_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setEndpoint( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ErrorMessageFormat.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ErrorMessageFormat.java index e38b8bfa9..70a0cbc88 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ErrorMessageFormat.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ErrorMessageFormat.java @@ -1,415 +1,415 @@ -/** - * ErrorMessageFormat.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ErrorMessageFormat bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ErrorMessageFormat implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorMessageFormat", "ns1"); - - /** field for ErrorMessageFormat */ - protected java.lang.String localErrorMessageFormat; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected ErrorMessageFormat(java.lang.String value, boolean isRegisterValue) { - localErrorMessageFormat = value; - if (isRegisterValue) { - - _table_.put(localErrorMessageFormat, this); - } - } - - public static final java.lang.String _xml = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("xml"); - - public static final java.lang.String _json = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("json"); - - public static final java.lang.String _text = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("text"); - - public static final ErrorMessageFormat xml = new ErrorMessageFormat(_xml, true); - - public static final ErrorMessageFormat json = new ErrorMessageFormat(_json, true); - - public static final ErrorMessageFormat text = new ErrorMessageFormat(_text, true); - - public java.lang.String getValue() { - return localErrorMessageFormat; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localErrorMessageFormat.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ErrorMessageFormat", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ErrorMessageFormat", - xmlWriter); - } - } - - if (localErrorMessageFormat == null) { - - throw new org.apache.axis2.databinding.ADBException("ErrorMessageFormat cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localErrorMessageFormat); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static ErrorMessageFormat fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - ErrorMessageFormat enumeration = (ErrorMessageFormat) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static ErrorMessageFormat fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static ErrorMessageFormat fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return ErrorMessageFormat.Factory.fromString(content, namespaceUri); - } else { - return ErrorMessageFormat.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ErrorMessageFormat parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ErrorMessageFormat object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ErrorMessageFormat" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = ErrorMessageFormat.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = ErrorMessageFormat.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ErrorMessageFormat.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ErrorMessageFormat bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ErrorMessageFormat implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorMessageFormat", "ns1"); + + /** field for ErrorMessageFormat */ + protected java.lang.String localErrorMessageFormat; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected ErrorMessageFormat(java.lang.String value, boolean isRegisterValue) { + localErrorMessageFormat = value; + if (isRegisterValue) { + + _table_.put(localErrorMessageFormat, this); + } + } + + public static final java.lang.String _xml = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("xml"); + + public static final java.lang.String _json = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("json"); + + public static final java.lang.String _text = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("text"); + + public static final ErrorMessageFormat xml = new ErrorMessageFormat(_xml, true); + + public static final ErrorMessageFormat json = new ErrorMessageFormat(_json, true); + + public static final ErrorMessageFormat text = new ErrorMessageFormat(_text, true); + + public java.lang.String getValue() { + return localErrorMessageFormat; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localErrorMessageFormat.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ErrorMessageFormat", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ErrorMessageFormat", + xmlWriter); + } + } + + if (localErrorMessageFormat == null) { + + throw new org.apache.axis2.databinding.ADBException("ErrorMessageFormat cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localErrorMessageFormat); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static ErrorMessageFormat fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + ErrorMessageFormat enumeration = (ErrorMessageFormat) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static ErrorMessageFormat fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static ErrorMessageFormat fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return ErrorMessageFormat.Factory.fromString(content, namespaceUri); + } else { + return ErrorMessageFormat.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ErrorMessageFormat parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ErrorMessageFormat object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ErrorMessageFormat" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = ErrorMessageFormat.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = ErrorMessageFormat.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspException.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspException.java index 6ea260c4a..c5ee326a8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspException.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspException.java @@ -1,600 +1,600 @@ -/** - * EspException.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** EspException bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspException implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspException - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Code */ - protected java.lang.String localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(java.lang.String param) { - localCodeTracker = param != null; - - this.localCode = param; - } - - /** field for Audience */ - protected java.lang.String localAudience; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAudienceTracker = false; - - public boolean isAudienceSpecified() { - return localAudienceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAudience() { - return localAudience; - } - - /** - * Auto generated setter method - * - * @param param Audience - */ - public void setAudience(java.lang.String param) { - localAudienceTracker = param != null; - - this.localAudience = param; - } - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspException", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); - } - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Code", xmlWriter); - - if (localCode == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCode); - } - - xmlWriter.writeEndElement(); - } - if (localAudienceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Audience", xmlWriter); - - if (localAudience == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAudience); - } - - xmlWriter.writeEndElement(); - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspException parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspException object = new EspException(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspException".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspException) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Audience") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Audience" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAudience( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspException.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** EspException bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspException implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspException + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Code */ + protected java.lang.String localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(java.lang.String param) { + localCodeTracker = param != null; + + this.localCode = param; + } + + /** field for Audience */ + protected java.lang.String localAudience; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAudienceTracker = false; + + public boolean isAudienceSpecified() { + return localAudienceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAudience() { + return localAudience; + } + + /** + * Auto generated setter method + * + * @param param Audience + */ + public void setAudience(java.lang.String param) { + localAudienceTracker = param != null; + + this.localAudience = param; + } + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspException", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "EspException", xmlWriter); + } + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Code", xmlWriter); + + if (localCode == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Code cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCode); + } + + xmlWriter.writeEndElement(); + } + if (localAudienceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Audience", xmlWriter); + + if (localAudience == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Audience cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAudience); + } + + xmlWriter.writeEndElement(); + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspException parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspException object = new EspException(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspException".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspException) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Audience") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Audience" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAudience( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspSoapFault.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspSoapFault.java index c6c029c23..f33e902f4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspSoapFault.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspSoapFault.java @@ -1,39 +1,39 @@ -/** - * EspSoapFault.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -public class EspSoapFault extends java.lang.Exception { - - private static final long serialVersionUID = 1687308418529L; - - private org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions faultMessage; - - public EspSoapFault() { - super("EspSoapFault"); - } - - public EspSoapFault(java.lang.String s) { - super(s); - } - - public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { - super(s, ex); - } - - public EspSoapFault(java.lang.Throwable cause) { - super(cause); - } - - public void setFaultMessage( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions msg) { - faultMessage = msg; - } - - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions getFaultMessage() { - return faultMessage; - } -} +/** + * EspSoapFault.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +public class EspSoapFault extends java.lang.Exception { + + private static final long serialVersionUID = 1710441936033L; + + private org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions faultMessage; + + public EspSoapFault() { + super("EspSoapFault"); + } + + public EspSoapFault(java.lang.String s) { + super(s); + } + + public EspSoapFault(java.lang.String s, java.lang.Throwable ex) { + super(s, ex); + } + + public EspSoapFault(java.lang.Throwable cause) { + super(cause); + } + + public void setFaultMessage( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions msg) { + faultMessage = msg; + } + + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions getFaultMessage() { + return faultMessage; + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspStringArray.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspStringArray.java index afd8db323..ac737c128 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspStringArray.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/EspStringArray.java @@ -1,452 +1,452 @@ -/** - * EspStringArray.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** EspStringArray bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class EspStringArray implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = EspStringArray - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Item This was an Array! */ - protected java.lang.String[] localItem; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localItemTracker = false; - - public boolean isItemSpecified() { - return localItemTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getItem() { - return localItem; - } - - /** validate the array for Item */ - protected void validateItem(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Item - */ - public void setItem(java.lang.String[] param) { - - validateItem(param); - - localItemTracker = param != null; - - this.localItem = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addItem(java.lang.String param) { - if (localItem == null) { - localItem = new java.lang.String[] {}; - } - - // update the setting tracker - localItemTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); - list.add(param); - this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":EspStringArray", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "EspStringArray", - xmlWriter); - } - } - if (localItemTracker) { - if (localItem != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localItem.length; i++) { - - if (localItem[i] != null) { - - writeStartElement(null, namespace, "Item", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - EspStringArray object = new EspStringArray(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"EspStringArray".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (EspStringArray) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Item") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Item") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * EspStringArray.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** EspStringArray bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class EspStringArray implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = EspStringArray + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Item This was an Array! */ + protected java.lang.String[] localItem; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localItemTracker = false; + + public boolean isItemSpecified() { + return localItemTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getItem() { + return localItem; + } + + /** validate the array for Item */ + protected void validateItem(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Item + */ + public void setItem(java.lang.String[] param) { + + validateItem(param); + + localItemTracker = param != null; + + this.localItem = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addItem(java.lang.String param) { + if (localItem == null) { + localItem = new java.lang.String[] {}; + } + + // update the setting tracker + localItemTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem); + list.add(param); + this.localItem = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":EspStringArray", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "EspStringArray", + xmlWriter); + } + } + if (localItemTracker) { + if (localItem != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localItem.length; i++) { + + if (localItem[i] != null) { + + writeStartElement(null, namespace, "Item", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItem[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Item cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static EspStringArray parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + EspStringArray object = new EspStringArray(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"EspStringArray".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (EspStringArray) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Item") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Item") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setItem((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Exceptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Exceptions.java index 2e6da4fa5..1391ad08e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Exceptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Exceptions.java @@ -1,317 +1,317 @@ -/** - * Exceptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Exceptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Exceptions implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); - } - localExceptions.serialize(MY_QNAME, xmlWriter); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Exceptions object = new Exceptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Exceptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Exceptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Exceptions implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!"); + } + localExceptions.serialize(MY_QNAME, xmlWriter); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Exceptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Exceptions object = new Exceptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExistingQueries_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExistingQueries_type0.java index d27de486b..1f5512dcf 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExistingQueries_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExistingQueries_type0.java @@ -1,452 +1,452 @@ -/** - * ExistingQueries_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ExistingQueries_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExistingQueries_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ExistingQueries_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId This was an Array! */ - protected java.lang.String[] localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getQueryId() { - return localQueryId; - } - - /** validate the array for QueryId */ - protected void validateQueryId(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String[] param) { - - validateQueryId(param); - - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addQueryId(java.lang.String param) { - if (localQueryId == null) { - localQueryId = new java.lang.String[] {}; - } - - // update the setting tracker - localQueryIdTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); - list.add(param); - this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ExistingQueries_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ExistingQueries_type0", - xmlWriter); - } - } - if (localQueryIdTracker) { - if (localQueryId != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localQueryId.length; i++) { - - if (localQueryId[i] != null) { - - writeStartElement(null, namespace, "QueryId", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ExistingQueries_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ExistingQueries_type0 object = new ExistingQueries_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ExistingQueries_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ExistingQueries_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ExistingQueries_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ExistingQueries_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExistingQueries_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ExistingQueries_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId This was an Array! */ + protected java.lang.String[] localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getQueryId() { + return localQueryId; + } + + /** validate the array for QueryId */ + protected void validateQueryId(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String[] param) { + + validateQueryId(param); + + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addQueryId(java.lang.String param) { + if (localQueryId == null) { + localQueryId = new java.lang.String[] {}; + } + + // update the setting tracker + localQueryIdTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); + list.add(param); + this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ExistingQueries_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ExistingQueries_type0", + xmlWriter); + } + } + if (localQueryIdTracker) { + if (localQueryId != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localQueryId.length; i++) { + + if (localQueryId[i] != null) { + + writeStartElement(null, namespace, "QueryId", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ExistingQueries_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ExistingQueries_type0 object = new ExistingQueries_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ExistingQueries_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ExistingQueries_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExistingQueries_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExistingQueries_type1.java index fb3f8ca2e..66d8630d5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExistingQueries_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExistingQueries_type1.java @@ -1,452 +1,452 @@ -/** - * ExistingQueries_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ExistingQueries_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExistingQueries_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ExistingQueries_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId This was an Array! */ - protected java.lang.String[] localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getQueryId() { - return localQueryId; - } - - /** validate the array for QueryId */ - protected void validateQueryId(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String[] param) { - - validateQueryId(param); - - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addQueryId(java.lang.String param) { - if (localQueryId == null) { - localQueryId = new java.lang.String[] {}; - } - - // update the setting tracker - localQueryIdTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); - list.add(param); - this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ExistingQueries_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ExistingQueries_type1", - xmlWriter); - } - } - if (localQueryIdTracker) { - if (localQueryId != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localQueryId.length; i++) { - - if (localQueryId[i] != null) { - - writeStartElement(null, namespace, "QueryId", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ExistingQueries_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ExistingQueries_type1 object = new ExistingQueries_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ExistingQueries_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ExistingQueries_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ExistingQueries_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ExistingQueries_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExistingQueries_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ExistingQueries_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId This was an Array! */ + protected java.lang.String[] localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getQueryId() { + return localQueryId; + } + + /** validate the array for QueryId */ + protected void validateQueryId(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String[] param) { + + validateQueryId(param); + + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addQueryId(java.lang.String param) { + if (localQueryId == null) { + localQueryId = new java.lang.String[] {}; + } + + // update the setting tracker + localQueryIdTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); + list.add(param); + this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ExistingQueries_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ExistingQueries_type1", + xmlWriter); + } + } + if (localQueryIdTracker) { + if (localQueryId != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localQueryId.length; i++) { + + if (localQueryId[i] != null) { + + writeStartElement(null, namespace, "QueryId", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ExistingQueries_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ExistingQueries_type1 object = new ExistingQueries_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ExistingQueries_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ExistingQueries_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExtensionMapper.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExtensionMapper.java index ac74cdc6d..8e5210b1b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExtensionMapper.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExtensionMapper.java @@ -1,1205 +1,1242 @@ -/** - * ExtensionMapper.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ExtensionMapper class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExtensionMapper { - - public static java.lang.Object getTypeObject( - java.lang.String namespaceURI, - java.lang.String typeName, - javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Files_type3".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Files_type2".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWorkunitLW".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ClusterFiles_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ClusterFiles_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerysetImportActivation".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfWULogicalFileCopyInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QueryUsingFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfWUQuerySetDetail".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLSourceFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ResultViews_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "NameAndType".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfWUStatisticItem".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "QuerySet".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Files_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ScheduledWU".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLTimingData".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Files_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUPropertyFilter".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfQuerySet".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "QueryStats".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArchiveModules_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArchiveModules_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUActionResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "SuperFiles_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLTimer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ErrorMessageFormat".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLJob".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "SuperFiles_type3".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ThorLogInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "SuperFiles_type2".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "SuperFiles_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUScopeOptions".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUDetailsAttrValueType".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "WUs_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Results_type2".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Results_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Results_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfQuerySetQuery".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ClusterEndpoint".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ExtraProperties_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLGraph".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Notes_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfThorLogInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUExceptionSeverity".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfScheduledWU".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfLogicalFileUpload".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "FileErrors_type4".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "FileErrors_type2".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUQueryConfigResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "FileErrors_type3".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ResubmittedWU".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWorkunit".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "LogSelectColumnMode".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySuperFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "EspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLTimingData".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUQuerySetFilterType".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfNamedValue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ResourceURLs_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Dependencies_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "AllowedClusters_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QueryFilesUsed".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Dependencies_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QueryStatsRecord".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySetAliasActionItem".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLQuery".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfClusterQueryState".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "FileErrors_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "FileErrors_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ImportedQueries_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "GraphNameAndTypes_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfDebugValue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUExtraProperties".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUQuerySetDetail".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "LogicalFileUpload".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUResponseNote".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WULogicalFileCopyInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Activities_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLSchemaItem".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Activities_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySetQueryClientState".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLWorkflow".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySetAliasActionTypes".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "QuerySetAlias".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WsEclAddresses_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "WUScopeFilter".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUArchiveModule".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Ids_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "PropertyFilters_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUEclPluginsInFolder".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUEclDefinitionActionResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Plugins_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Queries_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Queries_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySetQueryActionItem".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ExistingQueries_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUResponseScope".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLGraph".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ExistingQueries_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "FileUsedByQuery".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Properties_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Properties_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Properties_type2".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Properties_type3".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ServerInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "CopiedQueries_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "NamedValue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "LogicalFileError".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLWorkunit".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ArrayOfECLJob".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLGraphEx".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLWorkunitLW".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfQueryStatsRecord".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ClusterQueryState".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySetQueryActionTypes".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "DeploymentFeatures".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ScopeTypes_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ScopeTypes_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Scopes_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ScopeTypes_type2".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Scopes_type1".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "MissingWuids_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUProtectFilter".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "SubFiles_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "DebugValue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "LogAccessLogFormat".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLSchemaItem".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ApplicationValue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySetQueryActionResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUPropertyOptions".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWorkflow".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "EspStringArray".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfQueryStats".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "WUArchiveFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Measures_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfTargetQueriesUsingFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWUActions".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUQueryActivationMode".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUCopyLogicalClusterFileSections".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfEndpointQueryStats".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUQueryFilterSuspendedType".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUResponseProperty".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLTimer".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfQueryUsingFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfEspException".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySetAliasActionResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "TargetQueriesUsingFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Aliases_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLHelpFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLSourceFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "EndpointQueryStats".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfThorQueue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfApplicationValue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUECLAttribute".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfWUEclDefinitionActionResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .ArrayOfWUEclDefinitionActionResult.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfServerInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfWUEclPluginsInFolder".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder - .Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUDetailsActivityInfo".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfQuerySummaryStats".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUPropertiesToReturn".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "EclDefinitionActions".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfECLHelpFile".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "Endpoints_type0".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUNestedFilter".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUStatisticItem".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "WUDetailsMetaProperty".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfQuerySetAlias".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias.Factory - .parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ThorQueue".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue.Factory.parse(reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "QuerySummaryStats".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "QuerySetQuery".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLGraphEx".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx.Factory.parse( - reader); - } - - if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) - && "ArrayOfWUActionResult".equals(typeName)) { - - return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult.Factory - .parse(reader); - } - - throw new org.apache.axis2.databinding.ADBException( - "Unsupported type " + namespaceURI + " " + typeName); - } -} +/** + * ExtensionMapper.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ExtensionMapper class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExtensionMapper { + + public static java.lang.Object getTypeObject( + java.lang.String namespaceURI, + java.lang.String typeName, + javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Files_type3".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "SortDirection".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SortDirection.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Files_type2".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWorkunitLW".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ClusterFiles_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ClusterFiles_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerysetImportActivation".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfWULogicalFileCopyInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QueryUsingFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryUsingFile.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfWUQuerySetDetail".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLSourceFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSourceFile.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ResultViews_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "NameAndType".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfWUStatisticItem".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "QuerySet".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySet.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Files_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ScheduledWU".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScheduledWU.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLTimingData".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimingData.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Files_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUPropertyFilter".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfQuerySet".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "QueryStats".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStats.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArchiveModules_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArchiveModules_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUActionResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResult.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "SuperFiles_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLTimer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ErrorMessageFormat".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLJob".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLJob.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "SuperFiles_type3".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ThorLogInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorLogInfo.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "SuperFiles_type2".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "SuperFiles_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUScopeOptions".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUDetailsAttrValueType".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "WUs_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Results_type2".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Results_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Results_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfQuerySetQuery".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ClusterEndpoint".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterEndpoint.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ExtraProperties_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLGraph".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Notes_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfThorLogInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorLogInfo.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUExceptionSeverity".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfScheduledWU".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfLogicalFileUpload".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "FileErrors_type4".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "FileErrors_type2".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUQueryConfigResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "FileErrors_type3".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ResubmittedWU".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWorkunit".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "LogSelectColumnMode".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySuperFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "EspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspException.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLTimingData".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimingData.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUQuerySetFilterType".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfNamedValue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ResourceURLs_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResourceURLs_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Dependencies_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "TimeRange".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TimeRange.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "AllowedClusters_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.AllowedClusters_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QueryFilesUsed".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Dependencies_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QueryStatsRecord".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryStatsRecord.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySetAliasActionItem".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionItem.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLQuery".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLQuery.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfClusterQueryState".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "FileErrors_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "LogAccessFilter".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessFilter.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "FileErrors_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ImportedQueries_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "GraphNameAndTypes_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfDebugValue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUExtraProperties".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUQuerySetDetail".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetail.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "LogicalFileUpload".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileUpload.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUResponseNote".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "LogEventClass".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogEventClass.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WULogicalFileCopyInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogicalFileCopyInfo.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Activities_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLSchemaItem".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSchemaItem.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Activities_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySetQueryClientState".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLWorkflow".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkflow.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySetAliasActionTypes".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "QuerySetAlias".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAlias.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WsEclAddresses_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "WUScopeFilter".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUArchiveModule".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveModule.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Ids_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "PropertyFilters_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWUProcess".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUProcess.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLResult.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUEclPluginsInFolder".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclPluginsInFolder.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUEclDefinitionActionResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResult + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Plugins_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Queries_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Queries_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySetQueryActionItem".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ExistingQueries_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUResponseScope".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLGraph".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraph.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ExistingQueries_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "FileUsedByQuery".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Properties_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Properties_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Properties_type2".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Properties_type3".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ServerInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ServerInfo.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "CopiedQueries_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "NamedValue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "LogicalFileError".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLWorkunit".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ArrayOfECLJob".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLGraphEx".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLWorkunitLW".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfQueryStatsRecord".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ClusterQueryState".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterQueryState.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySetQueryActionTypes".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "DeploymentFeatures".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ScopeTypes_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ScopeTypes_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Scopes_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ScopeTypes_type2".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Scopes_type1".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "MissingWuids_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUProtectFilter".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "SubFiles_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "DebugValue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DebugValue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "LogAccessLogFormat".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLSchemaItem".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLSchemaItem.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ApplicationValue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ApplicationValue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySetQueryActionResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUPropertyOptions".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWorkflow".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkflow.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "EspStringArray".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfQueryStats".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStats.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "WUArchiveFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Measures_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfTargetQueriesUsingFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLWUActions".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUQueryActivationMode".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUCopyLogicalClusterFileSections".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalClusterFileSections + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfEndpointQueryStats".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUQueryFilterSuspendedType".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUResponseProperty".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLTimer".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLTimer.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfQueryUsingFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfEspException".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySetAliasActionResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "TargetQueriesUsingFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TargetQueriesUsingFile.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "Aliases_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLHelpFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLHelpFile.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLSourceFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLSourceFile.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "EndpointQueryStats".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EndpointQueryStats.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfThorQueue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfApplicationValue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUECLAttribute".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUECLAttribute.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfWUEclDefinitionActionResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .ArrayOfWUEclDefinitionActionResult.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfServerInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfWUEclPluginsInFolder".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder + .Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUDetailsActivityInfo".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsActivityInfo.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfQuerySummaryStats".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUPropertiesToReturn".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "EclDefinitionActions".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLHelpFile".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLHelpFile.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "Endpoints_type0".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfECLWUProcess".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWUProcess.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUNestedFilter".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUStatisticItem".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUStatisticItem.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "WUDetailsMetaProperty".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfQuerySetAlias".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias.Factory + .parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ThorQueue".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ThorQueue.Factory.parse(reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "QuerySummaryStats".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySummaryStats.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "QuerySetQuery".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQuery.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) && "ECLGraphEx".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLGraphEx.Factory.parse( + reader); + } + + if ("urn:hpccsystems:ws:wsworkunits".equals(namespaceURI) + && "ArrayOfWUActionResult".equals(typeName)) { + + return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult.Factory + .parse(reader); + } + + throw new org.apache.axis2.databinding.ADBException( + "Unsupported type " + namespaceURI + " " + typeName); + } +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExtraProperties_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExtraProperties_type0.java index 782daf293..3a7704aab 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExtraProperties_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ExtraProperties_type0.java @@ -1,460 +1,460 @@ -/** - * ExtraProperties_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ExtraProperties_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ExtraProperties_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ExtraProperties_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Extra This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] localExtra; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExtraTracker = false; - - public boolean isExtraSpecified() { - return localExtraTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] getExtra() { - return localExtra; - } - - /** validate the array for Extra */ - protected void validateExtra( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] param) {} - - /** - * Auto generated setter method - * - * @param param Extra - */ - public void setExtra( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] param) { - - validateExtra(param); - - localExtraTracker = param != null; - - this.localExtra = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties - */ - public void addExtra( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties param) { - if (localExtra == null) { - localExtra = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] {}; - } - - // update the setting tracker - localExtraTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localExtra); - list.add(param); - this.localExtra = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ExtraProperties_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ExtraProperties_type0", - xmlWriter); - } - } - if (localExtraTracker) { - if (localExtra != null) { - for (int i = 0; i < localExtra.length; i++) { - if (localExtra[i] != null) { - localExtra[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Extra"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Extra cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ExtraProperties_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ExtraProperties_type0 object = new ExtraProperties_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ExtraProperties_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ExtraProperties_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Extra") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Extra") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setExtra( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ExtraProperties_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ExtraProperties_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ExtraProperties_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ExtraProperties_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Extra This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] localExtra; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExtraTracker = false; + + public boolean isExtraSpecified() { + return localExtraTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] getExtra() { + return localExtra; + } + + /** validate the array for Extra */ + protected void validateExtra( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] param) {} + + /** + * Auto generated setter method + * + * @param param Extra + */ + public void setExtra( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] param) { + + validateExtra(param); + + localExtraTracker = param != null; + + this.localExtra = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties + */ + public void addExtra( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties param) { + if (localExtra == null) { + localExtra = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[] {}; + } + + // update the setting tracker + localExtraTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localExtra); + list.add(param); + this.localExtra = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ExtraProperties_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ExtraProperties_type0", + xmlWriter); + } + } + if (localExtraTracker) { + if (localExtra != null) { + for (int i = 0; i < localExtra.length; i++) { + if (localExtra[i] != null) { + localExtra[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Extra"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Extra cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ExtraProperties_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ExtraProperties_type0 object = new ExtraProperties_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ExtraProperties_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ExtraProperties_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Extra") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Extra") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setExtra( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExtraProperties + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type0.java index 16e889b77..bb4195a81 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type0.java @@ -1,457 +1,457 @@ -/** - * FileErrors_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** FileErrors_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileErrors_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = FileErrors_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - */ - public void addFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileErrors_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileErrors_type0", - xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileErrors_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileErrors_type0 object = new FileErrors_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileErrors_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileErrors_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileErrors_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** FileErrors_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileErrors_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = FileErrors_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + */ + public void addFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileErrors_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileErrors_type0", + xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileErrors_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileErrors_type0 object = new FileErrors_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileErrors_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileErrors_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type1.java index 8d5dcd44e..e2e01e80f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type1.java @@ -1,457 +1,457 @@ -/** - * FileErrors_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** FileErrors_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileErrors_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = FileErrors_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - */ - public void addFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileErrors_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileErrors_type1", - xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileErrors_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileErrors_type1 object = new FileErrors_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileErrors_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileErrors_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileErrors_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** FileErrors_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileErrors_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = FileErrors_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + */ + public void addFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileErrors_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileErrors_type1", + xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileErrors_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileErrors_type1 object = new FileErrors_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileErrors_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileErrors_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type2.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type2.java index b4552c652..827a919b0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type2.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type2.java @@ -1,457 +1,457 @@ -/** - * FileErrors_type2.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** FileErrors_type2 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileErrors_type2 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = FileErrors_type2 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - */ - public void addFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileErrors_type2", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileErrors_type2", - xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileErrors_type2 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileErrors_type2 object = new FileErrors_type2(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileErrors_type2".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileErrors_type2) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileErrors_type2.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** FileErrors_type2 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileErrors_type2 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = FileErrors_type2 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + */ + public void addFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileErrors_type2", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileErrors_type2", + xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileErrors_type2 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileErrors_type2 object = new FileErrors_type2(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileErrors_type2".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileErrors_type2) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type3.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type3.java index ce1d9894c..977ef4f54 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type3.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type3.java @@ -1,457 +1,457 @@ -/** - * FileErrors_type3.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** FileErrors_type3 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileErrors_type3 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = FileErrors_type3 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - */ - public void addFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileErrors_type3", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileErrors_type3", - xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileErrors_type3 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileErrors_type3 object = new FileErrors_type3(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileErrors_type3".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileErrors_type3) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileErrors_type3.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** FileErrors_type3 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileErrors_type3 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = FileErrors_type3 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + */ + public void addFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileErrors_type3", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileErrors_type3", + xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileErrors_type3 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileErrors_type3 object = new FileErrors_type3(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileErrors_type3".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileErrors_type3) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type4.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type4.java index 6677ae51b..ed1b3eb4d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type4.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileErrors_type4.java @@ -1,457 +1,457 @@ -/** - * FileErrors_type4.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** FileErrors_type4 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileErrors_type4 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = FileErrors_type4 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - */ - public void addFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileErrors_type4", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileErrors_type4", - xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileErrors_type4 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileErrors_type4 object = new FileErrors_type4(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileErrors_type4".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileErrors_type4) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileErrors_type4.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** FileErrors_type4 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileErrors_type4 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = FileErrors_type4 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + */ + public void addFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileErrors_type4", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileErrors_type4", + xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileErrors_type4 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileErrors_type4 object = new FileErrors_type4(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileErrors_type4".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileErrors_type4) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogicalFileError.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileUsedByQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileUsedByQuery.java index 5b977277a..536841518 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileUsedByQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/FileUsedByQuery.java @@ -1,538 +1,538 @@ -/** - * FileUsedByQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** FileUsedByQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class FileUsedByQuery implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = FileUsedByQuery - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for FileSize */ - protected long localFileSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileSizeTracker = false; - - public boolean isFileSizeSpecified() { - return localFileSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getFileSize() { - return localFileSize; - } - - /** - * Auto generated setter method - * - * @param param FileSize - */ - public void setFileSize(long param) { - - // setting primitive attribute tracker to true - localFileSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localFileSize = param; - } - - /** field for NumberOfParts */ - protected org.apache.axis2.databinding.types.UnsignedInt localNumberOfParts; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumberOfPartsTracker = false; - - public boolean isNumberOfPartsSpecified() { - return localNumberOfPartsTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getNumberOfParts() { - return localNumberOfParts; - } - - /** - * Auto generated setter method - * - * @param param NumberOfParts - */ - public void setNumberOfParts(org.apache.axis2.databinding.types.UnsignedInt param) { - localNumberOfPartsTracker = param != null; - - this.localNumberOfParts = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":FileUsedByQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "FileUsedByQuery", - xmlWriter); - } - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localFileSizeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileSize", xmlWriter); - - if (localFileSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("FileSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileSize)); - } - - xmlWriter.writeEndElement(); - } - if (localNumberOfPartsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NumberOfParts", xmlWriter); - - if (localNumberOfParts == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NumberOfParts cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumberOfParts)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static FileUsedByQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - FileUsedByQuery object = new FileUsedByQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"FileUsedByQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (FileUsedByQuery) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumberOfParts") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumberOfParts" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumberOfParts( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * FileUsedByQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** FileUsedByQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class FileUsedByQuery implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = FileUsedByQuery + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for FileSize */ + protected long localFileSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileSizeTracker = false; + + public boolean isFileSizeSpecified() { + return localFileSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getFileSize() { + return localFileSize; + } + + /** + * Auto generated setter method + * + * @param param FileSize + */ + public void setFileSize(long param) { + + // setting primitive attribute tracker to true + localFileSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localFileSize = param; + } + + /** field for NumberOfParts */ + protected org.apache.axis2.databinding.types.UnsignedInt localNumberOfParts; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumberOfPartsTracker = false; + + public boolean isNumberOfPartsSpecified() { + return localNumberOfPartsTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getNumberOfParts() { + return localNumberOfParts; + } + + /** + * Auto generated setter method + * + * @param param NumberOfParts + */ + public void setNumberOfParts(org.apache.axis2.databinding.types.UnsignedInt param) { + localNumberOfPartsTracker = param != null; + + this.localNumberOfParts = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":FileUsedByQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "FileUsedByQuery", + xmlWriter); + } + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localFileSizeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileSize", xmlWriter); + + if (localFileSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("FileSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFileSize)); + } + + xmlWriter.writeEndElement(); + } + if (localNumberOfPartsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NumberOfParts", xmlWriter); + + if (localNumberOfParts == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NumberOfParts cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumberOfParts)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static FileUsedByQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + FileUsedByQuery object = new FileUsedByQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"FileUsedByQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (FileUsedByQuery) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumberOfParts") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumberOfParts" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumberOfParts( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type0.java index 173d98737..a71cfdc8c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type0.java @@ -1,452 +1,452 @@ -/** - * Files_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Files_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Files_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Files_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile - */ - public void addFile(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Files_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Files_type0", xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Files_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Files_type0 object = new Files_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Files_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Files_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Files_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Files_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Files_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Files_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile + */ + public void addFile(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Files_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Files_type0", xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Files_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Files_type0 object = new Files_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Files_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Files_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type1.java index dcec61629..de27d0023 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type1.java @@ -1,452 +1,452 @@ -/** - * Files_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Files_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Files_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Files_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile - */ - public void addFile(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Files_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Files_type1", xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Files_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Files_type1 object = new Files_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Files_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Files_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Files_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Files_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Files_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Files_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile + */ + public void addFile(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Files_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Files_type1", xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Files_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Files_type1 object = new Files_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Files_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Files_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUArchiveFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type2.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type2.java index 5de8db13c..10baeb17a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type2.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type2.java @@ -1,453 +1,453 @@ -/** - * Files_type2.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Files_type2 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Files_type2 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Files_type2 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery - */ - public void addFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Files_type2", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Files_type2", xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Files_type2 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Files_type2 object = new Files_type2(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Files_type2".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Files_type2) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Files_type2.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Files_type2 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Files_type2 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Files_type2 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery + */ + public void addFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Files_type2", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Files_type2", xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Files_type2 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Files_type2 object = new Files_type2(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Files_type2".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Files_type2) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type3.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type3.java index 6f605010d..298003fa4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type3.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Files_type3.java @@ -1,453 +1,453 @@ -/** - * Files_type3.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Files_type3 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Files_type3 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Files_type3 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery - */ - public void addFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery param) { - if (localFile == null) { - localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Files_type3", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Files_type3", xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - for (int i = 0; i < localFile.length; i++) { - if (localFile[i] != null) { - localFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Files_type3 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Files_type3 object = new Files_type3(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Files_type3".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Files_type3) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Files_type3.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Files_type3 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Files_type3 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Files_type3 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery + */ + public void addFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery param) { + if (localFile == null) { + localFile = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Files_type3", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Files_type3", xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + for (int i = 0; i < localFile.length; i++) { + if (localFile[i] != null) { + localFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Files_type3 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Files_type3 object = new Files_type3(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Files_type3".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Files_type3) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileUsedByQuery.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GVCAjaxGraph.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GVCAjaxGraph.java index 351a6c22c..2f5c81468 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GVCAjaxGraph.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GVCAjaxGraph.java @@ -1,599 +1,599 @@ -/** - * GVCAjaxGraph.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** GVCAjaxGraph bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GVCAjaxGraph implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GVCAjaxGraph", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for GraphName */ - protected java.lang.String localGraphName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNameTracker = false; - - public boolean isGraphNameSpecified() { - return localGraphNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphName() { - return localGraphName; - } - - /** - * Auto generated setter method - * - * @param param GraphName - */ - public void setGraphName(java.lang.String param) { - localGraphNameTracker = param != null; - - this.localGraphName = param; - } - - /** field for SubGraphId */ - protected int localSubGraphId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphIdTracker = false; - - public boolean isSubGraphIdSpecified() { - return localSubGraphIdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSubGraphId() { - return localSubGraphId; - } - - /** - * Auto generated setter method - * - * @param param SubGraphId - */ - public void setSubGraphId(int param) { - - // setting primitive attribute tracker to true - localSubGraphIdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSubGraphId = param; - } - - /** field for SubGraphOnly */ - protected boolean localSubGraphOnly; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphOnlyTracker = false; - - public boolean isSubGraphOnlySpecified() { - return localSubGraphOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSubGraphOnly() { - return localSubGraphOnly; - } - - /** - * Auto generated setter method - * - * @param param SubGraphOnly - */ - public void setSubGraphOnly(boolean param) { - - // setting primitive attribute tracker to true - localSubGraphOnlyTracker = true; - - this.localSubGraphOnly = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GVCAjaxGraph", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "GVCAjaxGraph", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localGraphNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphName", xmlWriter); - - if (localGraphName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphName); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphId", xmlWriter); - - if (localSubGraphId == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphId)); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphOnlyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SubGraphOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphOnly)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GVCAjaxGraph parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GVCAjaxGraph object = new GVCAjaxGraph(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GVCAjaxGraph".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GVCAjaxGraph) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GVCAjaxGraph.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** GVCAjaxGraph bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GVCAjaxGraph implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GVCAjaxGraph", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for GraphName */ + protected java.lang.String localGraphName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNameTracker = false; + + public boolean isGraphNameSpecified() { + return localGraphNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphName() { + return localGraphName; + } + + /** + * Auto generated setter method + * + * @param param GraphName + */ + public void setGraphName(java.lang.String param) { + localGraphNameTracker = param != null; + + this.localGraphName = param; + } + + /** field for SubGraphId */ + protected int localSubGraphId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphIdTracker = false; + + public boolean isSubGraphIdSpecified() { + return localSubGraphIdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSubGraphId() { + return localSubGraphId; + } + + /** + * Auto generated setter method + * + * @param param SubGraphId + */ + public void setSubGraphId(int param) { + + // setting primitive attribute tracker to true + localSubGraphIdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSubGraphId = param; + } + + /** field for SubGraphOnly */ + protected boolean localSubGraphOnly; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphOnlyTracker = false; + + public boolean isSubGraphOnlySpecified() { + return localSubGraphOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSubGraphOnly() { + return localSubGraphOnly; + } + + /** + * Auto generated setter method + * + * @param param SubGraphOnly + */ + public void setSubGraphOnly(boolean param) { + + // setting primitive attribute tracker to true + localSubGraphOnlyTracker = true; + + this.localSubGraphOnly = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GVCAjaxGraph", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "GVCAjaxGraph", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localGraphNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphName", xmlWriter); + + if (localGraphName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphName); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphId", xmlWriter); + + if (localSubGraphId == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphId)); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphOnlyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SubGraphOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphOnly)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GVCAjaxGraph parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GVCAjaxGraph object = new GVCAjaxGraph(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GVCAjaxGraph".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GVCAjaxGraph) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GVCAjaxGraphResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GVCAjaxGraphResponse.java index 64a82ee0a..6f2382e93 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GVCAjaxGraphResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GVCAjaxGraphResponse.java @@ -1,672 +1,672 @@ -/** - * GVCAjaxGraphResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** GVCAjaxGraphResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GVCAjaxGraphResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "GVCAjaxGraphResponse", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for GraphName */ - protected java.lang.String localGraphName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNameTracker = false; - - public boolean isGraphNameSpecified() { - return localGraphNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphName() { - return localGraphName; - } - - /** - * Auto generated setter method - * - * @param param GraphName - */ - public void setGraphName(java.lang.String param) { - localGraphNameTracker = param != null; - - this.localGraphName = param; - } - - /** field for GraphType */ - protected java.lang.String localGraphType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphTypeTracker = false; - - public boolean isGraphTypeSpecified() { - return localGraphTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphType() { - return localGraphType; - } - - /** - * Auto generated setter method - * - * @param param GraphType - */ - public void setGraphType(java.lang.String param) { - localGraphTypeTracker = param != null; - - this.localGraphType = param; - } - - /** field for SubGraphId */ - protected int localSubGraphId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphIdTracker = false; - - public boolean isSubGraphIdSpecified() { - return localSubGraphIdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSubGraphId() { - return localSubGraphId; - } - - /** - * Auto generated setter method - * - * @param param SubGraphId - */ - public void setSubGraphId(int param) { - - // setting primitive attribute tracker to true - localSubGraphIdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSubGraphId = param; - } - - /** field for SubGraphOnly */ - protected boolean localSubGraphOnly; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphOnlyTracker = false; - - public boolean isSubGraphOnlySpecified() { - return localSubGraphOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSubGraphOnly() { - return localSubGraphOnly; - } - - /** - * Auto generated setter method - * - * @param param SubGraphOnly - */ - public void setSubGraphOnly(boolean param) { - - // setting primitive attribute tracker to true - localSubGraphOnlyTracker = true; - - this.localSubGraphOnly = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GVCAjaxGraphResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GVCAjaxGraphResponse", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localGraphNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphName", xmlWriter); - - if (localGraphName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphName); - } - - xmlWriter.writeEndElement(); - } - if (localGraphTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphType", xmlWriter); - - if (localGraphType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphType); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphId", xmlWriter); - - if (localSubGraphId == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphId)); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphOnlyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SubGraphOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphOnly)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GVCAjaxGraphResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GVCAjaxGraphResponse object = new GVCAjaxGraphResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GVCAjaxGraphResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GVCAjaxGraphResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GVCAjaxGraphResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** GVCAjaxGraphResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GVCAjaxGraphResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "GVCAjaxGraphResponse", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for GraphName */ + protected java.lang.String localGraphName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNameTracker = false; + + public boolean isGraphNameSpecified() { + return localGraphNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphName() { + return localGraphName; + } + + /** + * Auto generated setter method + * + * @param param GraphName + */ + public void setGraphName(java.lang.String param) { + localGraphNameTracker = param != null; + + this.localGraphName = param; + } + + /** field for GraphType */ + protected java.lang.String localGraphType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphTypeTracker = false; + + public boolean isGraphTypeSpecified() { + return localGraphTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphType() { + return localGraphType; + } + + /** + * Auto generated setter method + * + * @param param GraphType + */ + public void setGraphType(java.lang.String param) { + localGraphTypeTracker = param != null; + + this.localGraphType = param; + } + + /** field for SubGraphId */ + protected int localSubGraphId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphIdTracker = false; + + public boolean isSubGraphIdSpecified() { + return localSubGraphIdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSubGraphId() { + return localSubGraphId; + } + + /** + * Auto generated setter method + * + * @param param SubGraphId + */ + public void setSubGraphId(int param) { + + // setting primitive attribute tracker to true + localSubGraphIdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSubGraphId = param; + } + + /** field for SubGraphOnly */ + protected boolean localSubGraphOnly; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphOnlyTracker = false; + + public boolean isSubGraphOnlySpecified() { + return localSubGraphOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSubGraphOnly() { + return localSubGraphOnly; + } + + /** + * Auto generated setter method + * + * @param param SubGraphOnly + */ + public void setSubGraphOnly(boolean param) { + + // setting primitive attribute tracker to true + localSubGraphOnlyTracker = true; + + this.localSubGraphOnly = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GVCAjaxGraphResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GVCAjaxGraphResponse", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localGraphNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphName", xmlWriter); + + if (localGraphName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphName); + } + + xmlWriter.writeEndElement(); + } + if (localGraphTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphType", xmlWriter); + + if (localGraphType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphType); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphId", xmlWriter); + + if (localSubGraphId == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphId)); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphOnlyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SubGraphOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubGraphOnly)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GVCAjaxGraphResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GVCAjaxGraphResponse object = new GVCAjaxGraphResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GVCAjaxGraphResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GVCAjaxGraphResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GraphNameAndTypes_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GraphNameAndTypes_type0.java index bae7f711f..d8ed58f86 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GraphNameAndTypes_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/GraphNameAndTypes_type0.java @@ -1,463 +1,463 @@ -/** - * GraphNameAndTypes_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** GraphNameAndTypes_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class GraphNameAndTypes_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = GraphNameAndTypes_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for GraphNameAndType This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] - localGraphNameAndType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNameAndTypeTracker = false; - - public boolean isGraphNameAndTypeSpecified() { - return localGraphNameAndTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] - getGraphNameAndType() { - return localGraphNameAndType; - } - - /** validate the array for GraphNameAndType */ - protected void validateGraphNameAndType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] param) {} - - /** - * Auto generated setter method - * - * @param param GraphNameAndType - */ - public void setGraphNameAndType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] param) { - - validateGraphNameAndType(param); - - localGraphNameAndTypeTracker = param != null; - - this.localGraphNameAndType = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType - */ - public void addGraphNameAndType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType param) { - if (localGraphNameAndType == null) { - localGraphNameAndType = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] {}; - } - - // update the setting tracker - localGraphNameAndTypeTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localGraphNameAndType); - list.add(param); - this.localGraphNameAndType = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":GraphNameAndTypes_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "GraphNameAndTypes_type0", - xmlWriter); - } - } - if (localGraphNameAndTypeTracker) { - if (localGraphNameAndType != null) { - for (int i = 0; i < localGraphNameAndType.length; i++) { - if (localGraphNameAndType[i] != null) { - localGraphNameAndType[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNameAndType"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("GraphNameAndType cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static GraphNameAndTypes_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - GraphNameAndTypes_type0 object = new GraphNameAndTypes_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"GraphNameAndTypes_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (GraphNameAndTypes_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNameAndType") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "GraphNameAndType") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setGraphNameAndType( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * GraphNameAndTypes_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** GraphNameAndTypes_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class GraphNameAndTypes_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = GraphNameAndTypes_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for GraphNameAndType This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] + localGraphNameAndType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNameAndTypeTracker = false; + + public boolean isGraphNameAndTypeSpecified() { + return localGraphNameAndTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] + getGraphNameAndType() { + return localGraphNameAndType; + } + + /** validate the array for GraphNameAndType */ + protected void validateGraphNameAndType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] param) {} + + /** + * Auto generated setter method + * + * @param param GraphNameAndType + */ + public void setGraphNameAndType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] param) { + + validateGraphNameAndType(param); + + localGraphNameAndTypeTracker = param != null; + + this.localGraphNameAndType = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType + */ + public void addGraphNameAndType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType param) { + if (localGraphNameAndType == null) { + localGraphNameAndType = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[] {}; + } + + // update the setting tracker + localGraphNameAndTypeTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localGraphNameAndType); + list.add(param); + this.localGraphNameAndType = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":GraphNameAndTypes_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "GraphNameAndTypes_type0", + xmlWriter); + } + } + if (localGraphNameAndTypeTracker) { + if (localGraphNameAndType != null) { + for (int i = 0; i < localGraphNameAndType.length; i++) { + if (localGraphNameAndType[i] != null) { + localGraphNameAndType[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNameAndType"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("GraphNameAndType cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static GraphNameAndTypes_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + GraphNameAndTypes_type0 object = new GraphNameAndTypes_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"GraphNameAndTypes_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (GraphNameAndTypes_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNameAndType") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "GraphNameAndType") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setGraphNameAndType( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NameAndType.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Ids_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Ids_type0.java index 9c3e6a2d6..a71d1b08d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Ids_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Ids_type0.java @@ -1,448 +1,448 @@ -/** - * Ids_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Ids_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Ids_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Ids_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Id This was an Array! */ - protected java.lang.String[] localId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIdTracker = false; - - public boolean isIdSpecified() { - return localIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getId() { - return localId; - } - - /** validate the array for Id */ - protected void validateId(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Id - */ - public void setId(java.lang.String[] param) { - - validateId(param); - - localIdTracker = param != null; - - this.localId = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addId(java.lang.String param) { - if (localId == null) { - localId = new java.lang.String[] {}; - } - - // update the setting tracker - localIdTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localId); - list.add(param); - this.localId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Ids_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Ids_type0", xmlWriter); - } - } - if (localIdTracker) { - if (localId != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localId.length; i++) { - - if (localId[i] != null) { - - writeStartElement(null, namespace, "id", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localId[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("id cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Ids_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Ids_type0 object = new Ids_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Ids_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Ids_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "id") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "id") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Ids_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Ids_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Ids_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Ids_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Id This was an Array! */ + protected java.lang.String[] localId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIdTracker = false; + + public boolean isIdSpecified() { + return localIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getId() { + return localId; + } + + /** validate the array for Id */ + protected void validateId(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Id + */ + public void setId(java.lang.String[] param) { + + validateId(param); + + localIdTracker = param != null; + + this.localId = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addId(java.lang.String param) { + if (localId == null) { + localId = new java.lang.String[] {}; + } + + // update the setting tracker + localIdTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localId); + list.add(param); + this.localId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Ids_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Ids_type0", xmlWriter); + } + } + if (localIdTracker) { + if (localId != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localId.length; i++) { + + if (localId[i] != null) { + + writeStartElement(null, namespace, "id", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localId[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("id cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Ids_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Ids_type0 object = new Ids_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Ids_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Ids_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "id") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "id") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ImportedQueries_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ImportedQueries_type0.java index 6492f5f2c..479febaa9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ImportedQueries_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ImportedQueries_type0.java @@ -1,452 +1,452 @@ -/** - * ImportedQueries_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ImportedQueries_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ImportedQueries_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ImportedQueries_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId This was an Array! */ - protected java.lang.String[] localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getQueryId() { - return localQueryId; - } - - /** validate the array for QueryId */ - protected void validateQueryId(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String[] param) { - - validateQueryId(param); - - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addQueryId(java.lang.String param) { - if (localQueryId == null) { - localQueryId = new java.lang.String[] {}; - } - - // update the setting tracker - localQueryIdTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); - list.add(param); - this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ImportedQueries_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ImportedQueries_type0", - xmlWriter); - } - } - if (localQueryIdTracker) { - if (localQueryId != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localQueryId.length; i++) { - - if (localQueryId[i] != null) { - - writeStartElement(null, namespace, "QueryId", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ImportedQueries_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ImportedQueries_type0 object = new ImportedQueries_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ImportedQueries_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ImportedQueries_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ImportedQueries_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ImportedQueries_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ImportedQueries_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ImportedQueries_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId This was an Array! */ + protected java.lang.String[] localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getQueryId() { + return localQueryId; + } + + /** validate the array for QueryId */ + protected void validateQueryId(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String[] param) { + + validateQueryId(param); + + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addQueryId(java.lang.String param) { + if (localQueryId == null) { + localQueryId = new java.lang.String[] {}; + } + + // update the setting tracker + localQueryIdTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); + list.add(param); + this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ImportedQueries_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ImportedQueries_type0", + xmlWriter); + } + } + if (localQueryIdTracker) { + if (localQueryId != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localQueryId.length; i++) { + + if (localQueryId[i] != null) { + + writeStartElement(null, namespace, "QueryId", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ImportedQueries_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ImportedQueries_type0 object = new ImportedQueries_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ImportedQueries_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ImportedQueries_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogAccessFilter.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogAccessFilter.java new file mode 100644 index 000000000..bff8d77ee --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogAccessFilter.java @@ -0,0 +1,993 @@ +/** + * LogAccessFilter.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** LogAccessFilter bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LogAccessFilter implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = LogAccessFilter + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WildcardFilter */ + protected java.lang.String localWildcardFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWildcardFilterTracker = false; + + public boolean isWildcardFilterSpecified() { + return localWildcardFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWildcardFilter() { + return localWildcardFilter; + } + + /** + * Auto generated setter method + * + * @param param WildcardFilter + */ + public void setWildcardFilter(java.lang.String param) { + localWildcardFilterTracker = param != null; + + this.localWildcardFilter = param; + } + + /** field for AbsoluteTimeRange */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TimeRange localAbsoluteTimeRange; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAbsoluteTimeRangeTracker = false; + + public boolean isAbsoluteTimeRangeSpecified() { + return localAbsoluteTimeRangeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TimeRange + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TimeRange getAbsoluteTimeRange() { + return localAbsoluteTimeRange; + } + + /** + * Auto generated setter method + * + * @param param AbsoluteTimeRange + */ + public void setAbsoluteTimeRange( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TimeRange param) { + localAbsoluteTimeRangeTracker = param != null; + + this.localAbsoluteTimeRange = param; + } + + /** field for RelativeTimeRangeBuffer */ + protected org.apache.axis2.databinding.types.UnsignedInt localRelativeTimeRangeBuffer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRelativeTimeRangeBufferTracker = false; + + public boolean isRelativeTimeRangeBufferSpecified() { + return localRelativeTimeRangeBufferTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getRelativeTimeRangeBuffer() { + return localRelativeTimeRangeBuffer; + } + + /** + * Auto generated setter method + * + * @param param RelativeTimeRangeBuffer + */ + public void setRelativeTimeRangeBuffer(org.apache.axis2.databinding.types.UnsignedInt param) { + localRelativeTimeRangeBufferTracker = param != null; + + this.localRelativeTimeRangeBuffer = param; + } + + /** field for LineLimit */ + protected org.apache.axis2.databinding.types.UnsignedInt localLineLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("10000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLineLimitTracker = false; + + public boolean isLineLimitSpecified() { + return localLineLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getLineLimit() { + return localLineLimit; + } + + /** + * Auto generated setter method + * + * @param param LineLimit + */ + public void setLineLimit(org.apache.axis2.databinding.types.UnsignedInt param) { + localLineLimitTracker = param != null; + + this.localLineLimit = param; + } + + /** field for LineStartFrom */ + protected long localLineStartFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLineStartFromTracker = false; + + public boolean isLineStartFromSpecified() { + return localLineStartFromTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getLineStartFrom() { + return localLineStartFrom; + } + + /** + * Auto generated setter method + * + * @param param LineStartFrom + */ + public void setLineStartFrom(long param) { + + // setting primitive attribute tracker to true + localLineStartFromTracker = param != java.lang.Long.MIN_VALUE; + + this.localLineStartFrom = param; + } + + /** field for SelectColumnMode */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode + localSelectColumnMode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSelectColumnModeTracker = false; + + public boolean isSelectColumnModeSpecified() { + return localSelectColumnModeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode + getSelectColumnMode() { + return localSelectColumnMode; + } + + /** + * Auto generated setter method + * + * @param param SelectColumnMode + */ + public void setSelectColumnMode( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode param) { + localSelectColumnModeTracker = param != null; + + this.localSelectColumnMode = param; + } + + /** field for CustomColumns */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + localCustomColumns; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCustomColumnsTracker = false; + + public boolean isCustomColumnsSpecified() { + return localCustomColumnsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getCustomColumns() { + return localCustomColumns; + } + + /** + * Auto generated setter method + * + * @param param CustomColumns + */ + public void setCustomColumns( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localCustomColumnsTracker = param != null; + + this.localCustomColumns = param; + } + + /** field for ComponentsFilter */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + localComponentsFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localComponentsFilterTracker = false; + + public boolean isComponentsFilterSpecified() { + return localComponentsFilterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + getComponentsFilter() { + return localComponentsFilter; + } + + /** + * Auto generated setter method + * + * @param param ComponentsFilter + */ + public void setComponentsFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localComponentsFilterTracker = param != null; + + this.localComponentsFilter = param; + } + + /** field for Format */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat localFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFormatTracker = false; + + public boolean isFormatSpecified() { + return localFormatTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat getFormat() { + return localFormat; + } + + /** + * Auto generated setter method + * + * @param param Format + */ + public void setFormat( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat param) { + localFormatTracker = param != null; + + this.localFormat = param; + } + + /** field for SortByTimeDirection */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SortDirection + localSortByTimeDirection; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortByTimeDirectionTracker = false; + + public boolean isSortByTimeDirectionSpecified() { + return localSortByTimeDirectionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SortDirection + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SortDirection + getSortByTimeDirection() { + return localSortByTimeDirection; + } + + /** + * Auto generated setter method + * + * @param param SortByTimeDirection + */ + public void setSortByTimeDirection( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SortDirection param) { + localSortByTimeDirectionTracker = param != null; + + this.localSortByTimeDirection = param; + } + + /** field for LogEventType */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogEventClass localLogEventType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogEventTypeTracker = false; + + public boolean isLogEventTypeSpecified() { + return localLogEventTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogEventClass + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogEventClass getLogEventType() { + return localLogEventType; + } + + /** + * Auto generated setter method + * + * @param param LogEventType + */ + public void setLogEventType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogEventClass param) { + localLogEventTypeTracker = param != null; + + this.localLogEventType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LogAccessFilter", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "LogAccessFilter", + xmlWriter); + } + } + if (localWildcardFilterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WildcardFilter", xmlWriter); + + if (localWildcardFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WildcardFilter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWildcardFilter); + } + + xmlWriter.writeEndElement(); + } + if (localAbsoluteTimeRangeTracker) { + if (localAbsoluteTimeRange == null) { + throw new org.apache.axis2.databinding.ADBException("AbsoluteTimeRange cannot be null!!"); + } + localAbsoluteTimeRange.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AbsoluteTimeRange"), + xmlWriter); + } + if (localRelativeTimeRangeBufferTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RelativeTimeRangeBuffer", xmlWriter); + + if (localRelativeTimeRangeBuffer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "RelativeTimeRangeBuffer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localRelativeTimeRangeBuffer)); + } + + xmlWriter.writeEndElement(); + } + if (localLineLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LineLimit", xmlWriter); + + if (localLineLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LineLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLineLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localLineStartFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LineStartFrom", xmlWriter); + + if (localLineStartFrom == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LineStartFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLineStartFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localSelectColumnModeTracker) { + if (localSelectColumnMode == null) { + throw new org.apache.axis2.databinding.ADBException("SelectColumnMode cannot be null!!"); + } + localSelectColumnMode.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SelectColumnMode"), + xmlWriter); + } + if (localCustomColumnsTracker) { + if (localCustomColumns == null) { + throw new org.apache.axis2.databinding.ADBException("CustomColumns cannot be null!!"); + } + localCustomColumns.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CustomColumns"), + xmlWriter); + } + if (localComponentsFilterTracker) { + if (localComponentsFilter == null) { + throw new org.apache.axis2.databinding.ADBException("ComponentsFilter cannot be null!!"); + } + localComponentsFilter.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ComponentsFilter"), + xmlWriter); + } + if (localFormatTracker) { + if (localFormat == null) { + throw new org.apache.axis2.databinding.ADBException("Format cannot be null!!"); + } + localFormat.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Format"), xmlWriter); + } + if (localSortByTimeDirectionTracker) { + if (localSortByTimeDirection == null) { + throw new org.apache.axis2.databinding.ADBException("sortByTimeDirection cannot be null!!"); + } + localSortByTimeDirection.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "sortByTimeDirection"), + xmlWriter); + } + if (localLogEventTypeTracker) { + if (localLogEventType == null) { + throw new org.apache.axis2.databinding.ADBException("LogEventType cannot be null!!"); + } + localLogEventType.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogEventType"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LogAccessFilter parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LogAccessFilter object = new LogAccessFilter(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"LogAccessFilter".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (LogAccessFilter) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WildcardFilter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WildcardFilter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWildcardFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AbsoluteTimeRange") + .equals(reader.getName())) { + + object.setAbsoluteTimeRange( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.TimeRange.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "RelativeTimeRangeBuffer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RelativeTimeRangeBuffer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRelativeTimeRangeBuffer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LineLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LineLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLineLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LineStartFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LineStartFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLineStartFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SelectColumnMode") + .equals(reader.getName())) { + + object.setSelectColumnMode( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CustomColumns") + .equals(reader.getName())) { + + object.setCustomColumns( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ComponentsFilter") + .equals(reader.getName())) { + + object.setComponentsFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Format") + .equals(reader.getName())) { + + object.setFormat( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "sortByTimeDirection") + .equals(reader.getName())) { + + object.setSortByTimeDirection( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SortDirection.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogEventType") + .equals(reader.getName())) { + + object.setLogEventType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogEventClass.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogAccessLogFormat.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogAccessLogFormat.java index ed505533a..a840b2b2d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogAccessLogFormat.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogAccessLogFormat.java @@ -1,417 +1,417 @@ -/** - * LogAccessLogFormat.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** LogAccessLogFormat bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class LogAccessLogFormat implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogAccessLogFormat", "ns1"); - - /** field for LogAccessLogFormat */ - protected int localLogAccessLogFormat; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected LogAccessLogFormat(int value, boolean isRegisterValue) { - localLogAccessLogFormat = value; - if (isRegisterValue) { - - _table_.put(localLogAccessLogFormat + "", this); - } - } - - public static final int _value1 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); - - public static final int _value2 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); - - public static final int _value3 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("2"); - - public static final LogAccessLogFormat value1 = new LogAccessLogFormat(_value1, true); - - public static final LogAccessLogFormat value2 = new LogAccessLogFormat(_value2, true); - - public static final LogAccessLogFormat value3 = new LogAccessLogFormat(_value3, true); - - public int getValue() { - return localLogAccessLogFormat; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localLogAccessLogFormat); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":LogAccessLogFormat", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "LogAccessLogFormat", - xmlWriter); - } - } - - if (localLogAccessLogFormat == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("property value cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localLogAccessLogFormat)); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static LogAccessLogFormat fromValue(int value) - throws java.lang.IllegalArgumentException { - LogAccessLogFormat enumeration = (LogAccessLogFormat) _table_.get(value + ""); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static LogAccessLogFormat fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static LogAccessLogFormat fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return LogAccessLogFormat.Factory.fromString(content, namespaceUri); - } else { - return LogAccessLogFormat.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static LogAccessLogFormat parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - LogAccessLogFormat object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogAccessLogFormat" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = LogAccessLogFormat.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = LogAccessLogFormat.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * LogAccessLogFormat.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** LogAccessLogFormat bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LogAccessLogFormat implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogAccessLogFormat", "ns1"); + + /** field for LogAccessLogFormat */ + protected int localLogAccessLogFormat; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected LogAccessLogFormat(int value, boolean isRegisterValue) { + localLogAccessLogFormat = value; + if (isRegisterValue) { + + _table_.put(localLogAccessLogFormat + "", this); + } + } + + public static final int _value1 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + public static final int _value2 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + public static final int _value3 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("2"); + + public static final LogAccessLogFormat value1 = new LogAccessLogFormat(_value1, true); + + public static final LogAccessLogFormat value2 = new LogAccessLogFormat(_value2, true); + + public static final LogAccessLogFormat value3 = new LogAccessLogFormat(_value3, true); + + public int getValue() { + return localLogAccessLogFormat; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localLogAccessLogFormat); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LogAccessLogFormat", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "LogAccessLogFormat", + xmlWriter); + } + } + + if (localLogAccessLogFormat == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("property value cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localLogAccessLogFormat)); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static LogAccessLogFormat fromValue(int value) + throws java.lang.IllegalArgumentException { + LogAccessLogFormat enumeration = (LogAccessLogFormat) _table_.get(value + ""); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static LogAccessLogFormat fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static LogAccessLogFormat fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return LogAccessLogFormat.Factory.fromString(content, namespaceUri); + } else { + return LogAccessLogFormat.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LogAccessLogFormat parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LogAccessLogFormat object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogAccessLogFormat" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = LogAccessLogFormat.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = LogAccessLogFormat.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogEventClass.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogEventClass.java new file mode 100644 index 000000000..4f749b311 --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogEventClass.java @@ -0,0 +1,435 @@ +/** + * LogEventClass.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** LogEventClass bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LogEventClass implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogEventClass", "ns1"); + + /** field for LogEventClass */ + protected java.lang.String localLogEventClass; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected LogEventClass(java.lang.String value, boolean isRegisterValue) { + localLogEventClass = value; + if (isRegisterValue) { + + _table_.put(localLogEventClass, this); + } + } + + public static final java.lang.String _ALL = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ALL"); + + public static final java.lang.String _DIS = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("DIS"); + + public static final java.lang.String _ERR = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ERR"); + + public static final java.lang.String _WRN = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("WRN"); + + public static final java.lang.String _INF = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("INF"); + + public static final java.lang.String _PRO = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("PRO"); + + public static final java.lang.String _MET = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("MET"); + + public static final java.lang.String _EVT = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("EVT"); + + public static final LogEventClass ALL = new LogEventClass(_ALL, true); + + public static final LogEventClass DIS = new LogEventClass(_DIS, true); + + public static final LogEventClass ERR = new LogEventClass(_ERR, true); + + public static final LogEventClass WRN = new LogEventClass(_WRN, true); + + public static final LogEventClass INF = new LogEventClass(_INF, true); + + public static final LogEventClass PRO = new LogEventClass(_PRO, true); + + public static final LogEventClass MET = new LogEventClass(_MET, true); + + public static final LogEventClass EVT = new LogEventClass(_EVT, true); + + public java.lang.String getValue() { + return localLogEventClass; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localLogEventClass.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LogEventClass", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "LogEventClass", xmlWriter); + } + } + + if (localLogEventClass == null) { + + throw new org.apache.axis2.databinding.ADBException("LogEventClass cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localLogEventClass); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static LogEventClass fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + LogEventClass enumeration = (LogEventClass) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static LogEventClass fromString(java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static LogEventClass fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return LogEventClass.Factory.fromString(content, namespaceUri); + } else { + return LogEventClass.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LogEventClass parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LogEventClass object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogEventClass" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = LogEventClass.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = LogEventClass.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogSelectColumnMode.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogSelectColumnMode.java index 2b4ef9e34..606fcd869 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogSelectColumnMode.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogSelectColumnMode.java @@ -1,422 +1,422 @@ -/** - * LogSelectColumnMode.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** LogSelectColumnMode bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class LogSelectColumnMode implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogSelectColumnMode", "ns1"); - - /** field for LogSelectColumnMode */ - protected int localLogSelectColumnMode; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected LogSelectColumnMode(int value, boolean isRegisterValue) { - localLogSelectColumnMode = value; - if (isRegisterValue) { - - _table_.put(localLogSelectColumnMode + "", this); - } - } - - public static final int _value1 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); - - public static final int _value2 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); - - public static final int _value3 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("2"); - - public static final int _value4 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("3"); - - public static final LogSelectColumnMode value1 = new LogSelectColumnMode(_value1, true); - - public static final LogSelectColumnMode value2 = new LogSelectColumnMode(_value2, true); - - public static final LogSelectColumnMode value3 = new LogSelectColumnMode(_value3, true); - - public static final LogSelectColumnMode value4 = new LogSelectColumnMode(_value4, true); - - public int getValue() { - return localLogSelectColumnMode; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localLogSelectColumnMode); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":LogSelectColumnMode", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "LogSelectColumnMode", - xmlWriter); - } - } - - if (localLogSelectColumnMode == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("property value cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localLogSelectColumnMode)); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static LogSelectColumnMode fromValue(int value) - throws java.lang.IllegalArgumentException { - LogSelectColumnMode enumeration = (LogSelectColumnMode) _table_.get(value + ""); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static LogSelectColumnMode fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static LogSelectColumnMode fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return LogSelectColumnMode.Factory.fromString(content, namespaceUri); - } else { - return LogSelectColumnMode.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static LogSelectColumnMode parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - LogSelectColumnMode object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogSelectColumnMode" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = LogSelectColumnMode.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = LogSelectColumnMode.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * LogSelectColumnMode.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** LogSelectColumnMode bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LogSelectColumnMode implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogSelectColumnMode", "ns1"); + + /** field for LogSelectColumnMode */ + protected int localLogSelectColumnMode; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected LogSelectColumnMode(int value, boolean isRegisterValue) { + localLogSelectColumnMode = value; + if (isRegisterValue) { + + _table_.put(localLogSelectColumnMode + "", this); + } + } + + public static final int _value1 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + public static final int _value2 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + public static final int _value3 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("2"); + + public static final int _value4 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("3"); + + public static final LogSelectColumnMode value1 = new LogSelectColumnMode(_value1, true); + + public static final LogSelectColumnMode value2 = new LogSelectColumnMode(_value2, true); + + public static final LogSelectColumnMode value3 = new LogSelectColumnMode(_value3, true); + + public static final LogSelectColumnMode value4 = new LogSelectColumnMode(_value4, true); + + public int getValue() { + return localLogSelectColumnMode; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localLogSelectColumnMode); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LogSelectColumnMode", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "LogSelectColumnMode", + xmlWriter); + } + } + + if (localLogSelectColumnMode == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("property value cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localLogSelectColumnMode)); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static LogSelectColumnMode fromValue(int value) + throws java.lang.IllegalArgumentException { + LogSelectColumnMode enumeration = (LogSelectColumnMode) _table_.get(value + ""); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static LogSelectColumnMode fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static LogSelectColumnMode fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return LogSelectColumnMode.Factory.fromString(content, namespaceUri); + } else { + return LogSelectColumnMode.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LogSelectColumnMode parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LogSelectColumnMode object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogSelectColumnMode" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = LogSelectColumnMode.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = LogSelectColumnMode.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogicalFileError.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogicalFileError.java index a41464dc1..12f7bf749 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogicalFileError.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogicalFileError.java @@ -1,468 +1,468 @@ -/** - * LogicalFileError.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** LogicalFileError bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class LogicalFileError implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = LogicalFileError - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Error */ - protected java.lang.String localError; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorTracker = false; - - public boolean isErrorSpecified() { - return localErrorTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getError() { - return localError; - } - - /** - * Auto generated setter method - * - * @param param Error - */ - public void setError(java.lang.String param) { - localErrorTracker = param != null; - - this.localError = param; - } - - /** field for LogicalName */ - protected java.lang.String localLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalNameTracker = false; - - public boolean isLogicalNameSpecified() { - return localLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalName() { - return localLogicalName; - } - - /** - * Auto generated setter method - * - * @param param LogicalName - */ - public void setLogicalName(java.lang.String param) { - localLogicalNameTracker = param != null; - - this.localLogicalName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":LogicalFileError", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "LogicalFileError", - xmlWriter); - } - } - if (localErrorTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Error", xmlWriter); - - if (localError == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Error cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localError); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalName", xmlWriter); - - if (localLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static LogicalFileError parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - LogicalFileError object = new LogicalFileError(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"LogicalFileError".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (LogicalFileError) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Error") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Error" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setError( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * LogicalFileError.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** LogicalFileError bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LogicalFileError implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = LogicalFileError + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Error */ + protected java.lang.String localError; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorTracker = false; + + public boolean isErrorSpecified() { + return localErrorTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getError() { + return localError; + } + + /** + * Auto generated setter method + * + * @param param Error + */ + public void setError(java.lang.String param) { + localErrorTracker = param != null; + + this.localError = param; + } + + /** field for LogicalName */ + protected java.lang.String localLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalNameTracker = false; + + public boolean isLogicalNameSpecified() { + return localLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalName() { + return localLogicalName; + } + + /** + * Auto generated setter method + * + * @param param LogicalName + */ + public void setLogicalName(java.lang.String param) { + localLogicalNameTracker = param != null; + + this.localLogicalName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LogicalFileError", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "LogicalFileError", + xmlWriter); + } + } + if (localErrorTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Error", xmlWriter); + + if (localError == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Error cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localError); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalName", xmlWriter); + + if (localLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LogicalFileError parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LogicalFileError object = new LogicalFileError(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"LogicalFileError".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (LogicalFileError) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Error") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Error" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setError( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogicalFileUpload.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogicalFileUpload.java index 3120ebaaa..7cf09cddc 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogicalFileUpload.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/LogicalFileUpload.java @@ -1,605 +1,605 @@ -/** - * LogicalFileUpload.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** LogicalFileUpload bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class LogicalFileUpload implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = LogicalFileUpload - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Type */ - protected int localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(int param) { - - // setting primitive attribute tracker to true - localTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localType = param; - } - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Destination */ - protected java.lang.String localDestination; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestinationTracker = false; - - public boolean isDestinationSpecified() { - return localDestinationTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestination() { - return localDestination; - } - - /** - * Auto generated setter method - * - * @param param Destination - */ - public void setDestination(java.lang.String param) { - localDestinationTracker = param != null; - - this.localDestination = param; - } - - /** field for EventTag */ - protected java.lang.String localEventTag; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventTagTracker = false; - - public boolean isEventTagSpecified() { - return localEventTagTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventTag() { - return localEventTag; - } - - /** - * Auto generated setter method - * - * @param param EventTag - */ - public void setEventTag(java.lang.String param) { - localEventTagTracker = param != null; - - this.localEventTag = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":LogicalFileUpload", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "LogicalFileUpload", - xmlWriter); - } - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localType)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localDestinationTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Destination", xmlWriter); - - if (localDestination == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Destination cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestination); - } - - xmlWriter.writeEndElement(); - } - if (localEventTagTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventTag", xmlWriter); - - if (localEventTag == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventTag cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventTag); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static LogicalFileUpload parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - LogicalFileUpload object = new LogicalFileUpload(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"LogicalFileUpload".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (LogicalFileUpload) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Destination") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Destination" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestination( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventTag") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventTag" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventTag( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * LogicalFileUpload.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** LogicalFileUpload bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class LogicalFileUpload implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = LogicalFileUpload + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Type */ + protected int localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(int param) { + + // setting primitive attribute tracker to true + localTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localType = param; + } + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Destination */ + protected java.lang.String localDestination; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestinationTracker = false; + + public boolean isDestinationSpecified() { + return localDestinationTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestination() { + return localDestination; + } + + /** + * Auto generated setter method + * + * @param param Destination + */ + public void setDestination(java.lang.String param) { + localDestinationTracker = param != null; + + this.localDestination = param; + } + + /** field for EventTag */ + protected java.lang.String localEventTag; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventTagTracker = false; + + public boolean isEventTagSpecified() { + return localEventTagTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventTag() { + return localEventTag; + } + + /** + * Auto generated setter method + * + * @param param EventTag + */ + public void setEventTag(java.lang.String param) { + localEventTagTracker = param != null; + + this.localEventTag = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":LogicalFileUpload", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "LogicalFileUpload", + xmlWriter); + } + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localType)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localDestinationTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Destination", xmlWriter); + + if (localDestination == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Destination cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestination); + } + + xmlWriter.writeEndElement(); + } + if (localEventTagTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventTag", xmlWriter); + + if (localEventTag == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventTag cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventTag); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static LogicalFileUpload parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + LogicalFileUpload object = new LogicalFileUpload(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"LogicalFileUpload".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (LogicalFileUpload) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Destination") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Destination" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestination( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventTag") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventTag" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventTag( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Measures_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Measures_type0.java index 92b826f59..2ffcc99de 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Measures_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Measures_type0.java @@ -1,452 +1,452 @@ -/** - * Measures_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Measures_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Measures_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Measures_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Measure This was an Array! */ - protected java.lang.String[] localMeasure; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMeasureTracker = false; - - public boolean isMeasureSpecified() { - return localMeasureTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getMeasure() { - return localMeasure; - } - - /** validate the array for Measure */ - protected void validateMeasure(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Measure - */ - public void setMeasure(java.lang.String[] param) { - - validateMeasure(param); - - localMeasureTracker = param != null; - - this.localMeasure = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addMeasure(java.lang.String param) { - if (localMeasure == null) { - localMeasure = new java.lang.String[] {}; - } - - // update the setting tracker - localMeasureTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localMeasure); - list.add(param); - this.localMeasure = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Measures_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Measures_type0", - xmlWriter); - } - } - if (localMeasureTracker) { - if (localMeasure != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localMeasure.length; i++) { - - if (localMeasure[i] != null) { - - writeStartElement(null, namespace, "Measure", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMeasure[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Measures_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Measures_type0 object = new Measures_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Measures_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Measures_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setMeasure((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Measures_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Measures_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Measures_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Measures_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Measure This was an Array! */ + protected java.lang.String[] localMeasure; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMeasureTracker = false; + + public boolean isMeasureSpecified() { + return localMeasureTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getMeasure() { + return localMeasure; + } + + /** validate the array for Measure */ + protected void validateMeasure(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Measure + */ + public void setMeasure(java.lang.String[] param) { + + validateMeasure(param); + + localMeasureTracker = param != null; + + this.localMeasure = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addMeasure(java.lang.String param) { + if (localMeasure == null) { + localMeasure = new java.lang.String[] {}; + } + + // update the setting tracker + localMeasureTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localMeasure); + list.add(param); + this.localMeasure = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Measures_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Measures_type0", + xmlWriter); + } + } + if (localMeasureTracker) { + if (localMeasure != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localMeasure.length; i++) { + + if (localMeasure[i] != null) { + + writeStartElement(null, namespace, "Measure", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMeasure[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Measures_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Measures_type0 object = new Measures_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Measures_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Measures_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setMeasure((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/MissingWuids_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/MissingWuids_type0.java index 8c709a296..8d9b0ecf0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/MissingWuids_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/MissingWuids_type0.java @@ -1,452 +1,452 @@ -/** - * MissingWuids_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** MissingWuids_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class MissingWuids_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = MissingWuids_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId This was an Array! */ - protected java.lang.String[] localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getQueryId() { - return localQueryId; - } - - /** validate the array for QueryId */ - protected void validateQueryId(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String[] param) { - - validateQueryId(param); - - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addQueryId(java.lang.String param) { - if (localQueryId == null) { - localQueryId = new java.lang.String[] {}; - } - - // update the setting tracker - localQueryIdTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); - list.add(param); - this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":MissingWuids_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "MissingWuids_type0", - xmlWriter); - } - } - if (localQueryIdTracker) { - if (localQueryId != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localQueryId.length; i++) { - - if (localQueryId[i] != null) { - - writeStartElement(null, namespace, "QueryId", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static MissingWuids_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - MissingWuids_type0 object = new MissingWuids_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"MissingWuids_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (MissingWuids_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * MissingWuids_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** MissingWuids_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class MissingWuids_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = MissingWuids_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId This was an Array! */ + protected java.lang.String[] localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getQueryId() { + return localQueryId; + } + + /** validate the array for QueryId */ + protected void validateQueryId(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String[] param) { + + validateQueryId(param); + + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addQueryId(java.lang.String param) { + if (localQueryId == null) { + localQueryId = new java.lang.String[] {}; + } + + // update the setting tracker + localQueryIdTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQueryId); + list.add(param); + this.localQueryId = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":MissingWuids_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "MissingWuids_type0", + xmlWriter); + } + } + if (localQueryIdTracker) { + if (localQueryId != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localQueryId.length; i++) { + + if (localQueryId[i] != null) { + + writeStartElement(null, namespace, "QueryId", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localQueryId[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static MissingWuids_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + MissingWuids_type0 object = new MissingWuids_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"MissingWuids_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (MissingWuids_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQueryId((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/NameAndType.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/NameAndType.java index cacec8de0..7d22a7e64 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/NameAndType.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/NameAndType.java @@ -1,464 +1,464 @@ -/** - * NameAndType.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** NameAndType bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class NameAndType implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = NameAndType - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":NameAndType", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "NameAndType", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static NameAndType parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - NameAndType object = new NameAndType(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"NameAndType".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (NameAndType) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * NameAndType.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** NameAndType bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class NameAndType implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = NameAndType + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":NameAndType", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "NameAndType", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static NameAndType parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + NameAndType object = new NameAndType(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"NameAndType".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (NameAndType) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/NamedValue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/NamedValue.java index c5ba205ba..7206536c4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/NamedValue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/NamedValue.java @@ -1,464 +1,464 @@ -/** - * NamedValue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** NamedValue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class NamedValue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = NamedValue - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Value */ - protected java.lang.String localValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValueTracker = false; - - public boolean isValueSpecified() { - return localValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getValue() { - return localValue; - } - - /** - * Auto generated setter method - * - * @param param Value - */ - public void setValue(java.lang.String param) { - localValueTracker = param != null; - - this.localValue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":NamedValue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "NamedValue", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Value", xmlWriter); - - if (localValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localValue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static NamedValue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - NamedValue object = new NamedValue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"NamedValue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (NamedValue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Value" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * NamedValue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** NamedValue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class NamedValue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = NamedValue + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Value */ + protected java.lang.String localValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValueTracker = false; + + public boolean isValueSpecified() { + return localValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getValue() { + return localValue; + } + + /** + * Auto generated setter method + * + * @param param Value + */ + public void setValue(java.lang.String param) { + localValueTracker = param != null; + + this.localValue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":NamedValue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "NamedValue", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Value", xmlWriter); + + if (localValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localValue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static NamedValue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + NamedValue object = new NamedValue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"NamedValue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (NamedValue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Value" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Notes_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Notes_type0.java index 26b4fa7ae..9471227a2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Notes_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Notes_type0.java @@ -1,452 +1,452 @@ -/** - * Notes_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Notes_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Notes_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Notes_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Note This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] localNote; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoteTracker = false; - - public boolean isNoteSpecified() { - return localNoteTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] getNote() { - return localNote; - } - - /** validate the array for Note */ - protected void validateNote( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] param) {} - - /** - * Auto generated setter method - * - * @param param Note - */ - public void setNote( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] param) { - - validateNote(param); - - localNoteTracker = param != null; - - this.localNote = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote - */ - public void addNote(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote param) { - if (localNote == null) { - localNote = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] {}; - } - - // update the setting tracker - localNoteTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localNote); - list.add(param); - this.localNote = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Notes_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Notes_type0", xmlWriter); - } - } - if (localNoteTracker) { - if (localNote != null) { - for (int i = 0; i < localNote.length; i++) { - if (localNote[i] != null) { - localNote[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Note"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Note cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Notes_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Notes_type0 object = new Notes_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Notes_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Notes_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Note") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Note") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setNote( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Notes_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Notes_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Notes_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Notes_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Note This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] localNote; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoteTracker = false; + + public boolean isNoteSpecified() { + return localNoteTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] getNote() { + return localNote; + } + + /** validate the array for Note */ + protected void validateNote( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] param) {} + + /** + * Auto generated setter method + * + * @param param Note + */ + public void setNote( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] param) { + + validateNote(param); + + localNoteTracker = param != null; + + this.localNote = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote + */ + public void addNote(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote param) { + if (localNote == null) { + localNote = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[] {}; + } + + // update the setting tracker + localNoteTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localNote); + list.add(param); + this.localNote = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Notes_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Notes_type0", xmlWriter); + } + } + if (localNoteTracker) { + if (localNote != null) { + for (int i = 0; i < localNote.length; i++) { + if (localNote[i] != null) { + localNote[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Note"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Note cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Notes_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Notes_type0 object = new Notes_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Notes_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Notes_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Note") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Note") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setNote( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseNote.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Ping.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Ping.java index a87665021..786827787 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Ping.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Ping.java @@ -1,310 +1,310 @@ -/** - * Ping.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Ping bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Ping implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Ping", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Ping", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Ping", xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Ping parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - Ping object = new Ping(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Ping".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Ping) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Ping.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Ping bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Ping implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Ping", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Ping", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Ping", xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Ping parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + Ping object = new Ping(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Ping".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Ping) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Plugins_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Plugins_type0.java index f3c04cd50..c503cb081 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Plugins_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Plugins_type0.java @@ -1,448 +1,448 @@ -/** - * Plugins_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Plugins_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Plugins_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Plugins_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Plugin This was an Array! */ - protected java.lang.String[] localPlugin; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPluginTracker = false; - - public boolean isPluginSpecified() { - return localPluginTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getPlugin() { - return localPlugin; - } - - /** validate the array for Plugin */ - protected void validatePlugin(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Plugin - */ - public void setPlugin(java.lang.String[] param) { - - validatePlugin(param); - - localPluginTracker = param != null; - - this.localPlugin = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addPlugin(java.lang.String param) { - if (localPlugin == null) { - localPlugin = new java.lang.String[] {}; - } - - // update the setting tracker - localPluginTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localPlugin); - list.add(param); - this.localPlugin = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Plugins_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Plugins_type0", xmlWriter); - } - } - if (localPluginTracker) { - if (localPlugin != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localPlugin.length; i++) { - - if (localPlugin[i] != null) { - - writeStartElement(null, namespace, "Plugin", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPlugin[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Plugin cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Plugins_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Plugins_type0 object = new Plugins_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Plugins_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Plugins_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugin") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugin") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setPlugin((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Plugins_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Plugins_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Plugins_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Plugins_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Plugin This was an Array! */ + protected java.lang.String[] localPlugin; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPluginTracker = false; + + public boolean isPluginSpecified() { + return localPluginTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getPlugin() { + return localPlugin; + } + + /** validate the array for Plugin */ + protected void validatePlugin(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Plugin + */ + public void setPlugin(java.lang.String[] param) { + + validatePlugin(param); + + localPluginTracker = param != null; + + this.localPlugin = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addPlugin(java.lang.String param) { + if (localPlugin == null) { + localPlugin = new java.lang.String[] {}; + } + + // update the setting tracker + localPluginTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localPlugin); + list.add(param); + this.localPlugin = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Plugins_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Plugins_type0", xmlWriter); + } + } + if (localPluginTracker) { + if (localPlugin != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localPlugin.length; i++) { + + if (localPlugin[i] != null) { + + writeStartElement(null, namespace, "Plugin", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPlugin[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Plugin cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Plugins_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Plugins_type0 object = new Plugins_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Plugins_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Plugins_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugin") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugin") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setPlugin((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type0.java index 90c3e8a76..ddf494eec 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type0.java @@ -1,453 +1,453 @@ -/** - * Properties_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Properties_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Properties_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Properties_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Property This was an Array! */ - protected java.lang.String[] localProperty; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertyTracker = false; - - public boolean isPropertySpecified() { - return localPropertyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getProperty() { - return localProperty; - } - - /** validate the array for Property */ - protected void validateProperty(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Property - */ - public void setProperty(java.lang.String[] param) { - - validateProperty(param); - - localPropertyTracker = param != null; - - this.localProperty = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addProperty(java.lang.String param) { - if (localProperty == null) { - localProperty = new java.lang.String[] {}; - } - - // update the setting tracker - localPropertyTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProperty); - list.add(param); - this.localProperty = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Properties_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Properties_type0", - xmlWriter); - } - } - if (localPropertyTracker) { - if (localProperty != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localProperty.length; i++) { - - if (localProperty[i] != null) { - - writeStartElement(null, namespace, "Property", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProperty[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Property cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Properties_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Properties_type0 object = new Properties_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Properties_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Properties_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setProperty( - (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Properties_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Properties_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Properties_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Properties_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Property This was an Array! */ + protected java.lang.String[] localProperty; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertyTracker = false; + + public boolean isPropertySpecified() { + return localPropertyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getProperty() { + return localProperty; + } + + /** validate the array for Property */ + protected void validateProperty(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Property + */ + public void setProperty(java.lang.String[] param) { + + validateProperty(param); + + localPropertyTracker = param != null; + + this.localProperty = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addProperty(java.lang.String param) { + if (localProperty == null) { + localProperty = new java.lang.String[] {}; + } + + // update the setting tracker + localPropertyTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProperty); + list.add(param); + this.localProperty = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Properties_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Properties_type0", + xmlWriter); + } + } + if (localPropertyTracker) { + if (localProperty != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localProperty.length; i++) { + + if (localProperty[i] != null) { + + writeStartElement(null, namespace, "Property", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProperty[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Property cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Properties_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Properties_type0 object = new Properties_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Properties_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Properties_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setProperty( + (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type1.java index 27059e4a0..d2b05a865 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type1.java @@ -1,453 +1,453 @@ -/** - * Properties_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Properties_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Properties_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Properties_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Property This was an Array! */ - protected java.lang.String[] localProperty; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertyTracker = false; - - public boolean isPropertySpecified() { - return localPropertyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getProperty() { - return localProperty; - } - - /** validate the array for Property */ - protected void validateProperty(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Property - */ - public void setProperty(java.lang.String[] param) { - - validateProperty(param); - - localPropertyTracker = param != null; - - this.localProperty = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addProperty(java.lang.String param) { - if (localProperty == null) { - localProperty = new java.lang.String[] {}; - } - - // update the setting tracker - localPropertyTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProperty); - list.add(param); - this.localProperty = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Properties_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Properties_type1", - xmlWriter); - } - } - if (localPropertyTracker) { - if (localProperty != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localProperty.length; i++) { - - if (localProperty[i] != null) { - - writeStartElement(null, namespace, "Property", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProperty[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Property cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Properties_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Properties_type1 object = new Properties_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Properties_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Properties_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setProperty( - (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Properties_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Properties_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Properties_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Properties_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Property This was an Array! */ + protected java.lang.String[] localProperty; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertyTracker = false; + + public boolean isPropertySpecified() { + return localPropertyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getProperty() { + return localProperty; + } + + /** validate the array for Property */ + protected void validateProperty(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Property + */ + public void setProperty(java.lang.String[] param) { + + validateProperty(param); + + localPropertyTracker = param != null; + + this.localProperty = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addProperty(java.lang.String param) { + if (localProperty == null) { + localProperty = new java.lang.String[] {}; + } + + // update the setting tracker + localPropertyTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProperty); + list.add(param); + this.localProperty = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Properties_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Properties_type1", + xmlWriter); + } + } + if (localPropertyTracker) { + if (localProperty != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localProperty.length; i++) { + + if (localProperty[i] != null) { + + writeStartElement(null, namespace, "Property", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProperty[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Property cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Properties_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Properties_type1 object = new Properties_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Properties_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Properties_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setProperty( + (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type2.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type2.java index 6a42e4dd9..6f091c3c8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type2.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type2.java @@ -1,461 +1,461 @@ -/** - * Properties_type2.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Properties_type2 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Properties_type2 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Properties_type2 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Property This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] - localProperty; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertyTracker = false; - - public boolean isPropertySpecified() { - return localPropertyTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] getProperty() { - return localProperty; - } - - /** validate the array for Property */ - protected void validateProperty( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] param) {} - - /** - * Auto generated setter method - * - * @param param Property - */ - public void setProperty( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] param) { - - validateProperty(param); - - localPropertyTracker = param != null; - - this.localProperty = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty - */ - public void addProperty( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty param) { - if (localProperty == null) { - localProperty = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] {}; - } - - // update the setting tracker - localPropertyTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProperty); - list.add(param); - this.localProperty = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Properties_type2", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Properties_type2", - xmlWriter); - } - } - if (localPropertyTracker) { - if (localProperty != null) { - for (int i = 0; i < localProperty.length; i++) { - if (localProperty[i] != null) { - localProperty[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Property cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Properties_type2 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Properties_type2 object = new Properties_type2(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Properties_type2".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Properties_type2) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setProperty( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Properties_type2.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Properties_type2 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Properties_type2 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Properties_type2 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Property This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] + localProperty; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertyTracker = false; + + public boolean isPropertySpecified() { + return localPropertyTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] getProperty() { + return localProperty; + } + + /** validate the array for Property */ + protected void validateProperty( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] param) {} + + /** + * Auto generated setter method + * + * @param param Property + */ + public void setProperty( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] param) { + + validateProperty(param); + + localPropertyTracker = param != null; + + this.localProperty = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty + */ + public void addProperty( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty param) { + if (localProperty == null) { + localProperty = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[] {}; + } + + // update the setting tracker + localPropertyTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProperty); + list.add(param); + this.localProperty = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Properties_type2", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Properties_type2", + xmlWriter); + } + } + if (localPropertyTracker) { + if (localProperty != null) { + for (int i = 0; i < localProperty.length; i++) { + if (localProperty[i] != null) { + localProperty[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Property cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Properties_type2 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Properties_type2 object = new Properties_type2(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Properties_type2".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Properties_type2) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setProperty( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseProperty + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type3.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type3.java index 7a01dde58..f5fc803a0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type3.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Properties_type3.java @@ -1,462 +1,462 @@ -/** - * Properties_type3.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Properties_type3 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Properties_type3 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Properties_type3 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Property This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] - localProperty; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertyTracker = false; - - public boolean isPropertySpecified() { - return localPropertyTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] - getProperty() { - return localProperty; - } - - /** validate the array for Property */ - protected void validateProperty( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] param) {} - - /** - * Auto generated setter method - * - * @param param Property - */ - public void setProperty( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] param) { - - validateProperty(param); - - localPropertyTracker = param != null; - - this.localProperty = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty - */ - public void addProperty( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty param) { - if (localProperty == null) { - localProperty = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] {}; - } - - // update the setting tracker - localPropertyTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProperty); - list.add(param); - this.localProperty = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Properties_type3", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "Properties_type3", - xmlWriter); - } - } - if (localPropertyTracker) { - if (localProperty != null) { - for (int i = 0; i < localProperty.length; i++) { - if (localProperty[i] != null) { - localProperty[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Property cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Properties_type3 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Properties_type3 object = new Properties_type3(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Properties_type3".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Properties_type3) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setProperty( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Properties_type3.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Properties_type3 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Properties_type3 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Properties_type3 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Property This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] + localProperty; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertyTracker = false; + + public boolean isPropertySpecified() { + return localPropertyTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] + getProperty() { + return localProperty; + } + + /** validate the array for Property */ + protected void validateProperty( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] param) {} + + /** + * Auto generated setter method + * + * @param param Property + */ + public void setProperty( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] param) { + + validateProperty(param); + + localPropertyTracker = param != null; + + this.localProperty = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty + */ + public void addProperty( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty param) { + if (localProperty == null) { + localProperty = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[] {}; + } + + // update the setting tracker + localPropertyTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localProperty); + list.add(param); + this.localProperty = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Properties_type3", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "Properties_type3", + xmlWriter); + } + } + if (localPropertyTracker) { + if (localProperty != null) { + for (int i = 0; i < localProperty.length; i++) { + if (localProperty[i] != null) { + localProperty[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Property cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Properties_type3 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Properties_type3 object = new Properties_type3(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Properties_type3".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Properties_type3) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Property") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setProperty( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaProperty + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/PropertyFilters_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/PropertyFilters_type0.java index dbe715f62..0bca6d44f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/PropertyFilters_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/PropertyFilters_type0.java @@ -1,462 +1,462 @@ -/** - * PropertyFilters_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** PropertyFilters_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class PropertyFilters_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = PropertyFilters_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for PropertyFilter This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] - localPropertyFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertyFilterTracker = false; - - public boolean isPropertyFilterSpecified() { - return localPropertyFilterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] - getPropertyFilter() { - return localPropertyFilter; - } - - /** validate the array for PropertyFilter */ - protected void validatePropertyFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] param) {} - - /** - * Auto generated setter method - * - * @param param PropertyFilter - */ - public void setPropertyFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] param) { - - validatePropertyFilter(param); - - localPropertyFilterTracker = param != null; - - this.localPropertyFilter = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter - */ - public void addPropertyFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter param) { - if (localPropertyFilter == null) { - localPropertyFilter = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] {}; - } - - // update the setting tracker - localPropertyFilterTracker = true; - - java.util.List list = - org.apache.axis2.databinding.utils.ConverterUtil.toList(localPropertyFilter); - list.add(param); - this.localPropertyFilter = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":PropertyFilters_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "PropertyFilters_type0", - xmlWriter); - } - } - if (localPropertyFilterTracker) { - if (localPropertyFilter != null) { - for (int i = 0; i < localPropertyFilter.length; i++) { - if (localPropertyFilter[i] != null) { - localPropertyFilter[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyFilter"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("PropertyFilter cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static PropertyFilters_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - PropertyFilters_type0 object = new PropertyFilters_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"PropertyFilters_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (PropertyFilters_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyFilter") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyFilter") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setPropertyFilter( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * PropertyFilters_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** PropertyFilters_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class PropertyFilters_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = PropertyFilters_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for PropertyFilter This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] + localPropertyFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertyFilterTracker = false; + + public boolean isPropertyFilterSpecified() { + return localPropertyFilterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] + getPropertyFilter() { + return localPropertyFilter; + } + + /** validate the array for PropertyFilter */ + protected void validatePropertyFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] param) {} + + /** + * Auto generated setter method + * + * @param param PropertyFilter + */ + public void setPropertyFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] param) { + + validatePropertyFilter(param); + + localPropertyFilterTracker = param != null; + + this.localPropertyFilter = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter + */ + public void addPropertyFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter param) { + if (localPropertyFilter == null) { + localPropertyFilter = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[] {}; + } + + // update the setting tracker + localPropertyFilterTracker = true; + + java.util.List list = + org.apache.axis2.databinding.utils.ConverterUtil.toList(localPropertyFilter); + list.add(param); + this.localPropertyFilter = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":PropertyFilters_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "PropertyFilters_type0", + xmlWriter); + } + } + if (localPropertyFilterTracker) { + if (localPropertyFilter != null) { + for (int i = 0; i < localPropertyFilter.length; i++) { + if (localPropertyFilter[i] != null) { + localPropertyFilter[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyFilter"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("PropertyFilter cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static PropertyFilters_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + PropertyFilters_type0 object = new PropertyFilters_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"PropertyFilters_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (PropertyFilters_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyFilter") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyFilter") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setPropertyFilter( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyFilter.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Queries_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Queries_type0.java index 891d072b4..6640e1415 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Queries_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Queries_type0.java @@ -1,454 +1,454 @@ -/** - * Queries_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Queries_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Queries_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Queries_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Query This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] localQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryTracker = false; - - public boolean isQuerySpecified() { - return localQueryTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] getQuery() { - return localQuery; - } - - /** validate the array for Query */ - protected void validateQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] param) {} - - /** - * Auto generated setter method - * - * @param param Query - */ - public void setQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] param) { - - validateQuery(param); - - localQueryTracker = param != null; - - this.localQuery = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed - */ - public void addQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed param) { - if (localQuery == null) { - localQuery = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] {}; - } - - // update the setting tracker - localQueryTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuery); - list.add(param); - this.localQuery = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Queries_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Queries_type0", xmlWriter); - } - } - if (localQueryTracker) { - if (localQuery != null) { - for (int i = 0; i < localQuery.length; i++) { - if (localQuery[i] != null) { - localQuery[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Queries_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Queries_type0 object = new Queries_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Queries_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Queries_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQuery( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Queries_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Queries_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Queries_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Queries_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Query This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] localQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryTracker = false; + + public boolean isQuerySpecified() { + return localQueryTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] getQuery() { + return localQuery; + } + + /** validate the array for Query */ + protected void validateQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] param) {} + + /** + * Auto generated setter method + * + * @param param Query + */ + public void setQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] param) { + + validateQuery(param); + + localQueryTracker = param != null; + + this.localQuery = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed + */ + public void addQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed param) { + if (localQuery == null) { + localQuery = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[] {}; + } + + // update the setting tracker + localQueryTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuery); + list.add(param); + this.localQuery = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Queries_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Queries_type0", xmlWriter); + } + } + if (localQueryTracker) { + if (localQuery != null) { + for (int i = 0; i < localQuery.length; i++) { + if (localQuery[i] != null) { + localQuery[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Queries_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Queries_type0 object = new Queries_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Queries_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Queries_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQuery( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QueryFilesUsed.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Queries_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Queries_type1.java index 9e5c43179..d48e48bb3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Queries_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Queries_type1.java @@ -1,458 +1,458 @@ -/** - * Queries_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Queries_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Queries_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Queries_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Query This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] - localQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryTracker = false; - - public boolean isQuerySpecified() { - return localQueryTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] - getQuery() { - return localQuery; - } - - /** validate the array for Query */ - protected void validateQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] param) {} - - /** - * Auto generated setter method - * - * @param param Query - */ - public void setQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] param) { - - validateQuery(param); - - localQueryTracker = param != null; - - this.localQuery = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem - */ - public void addQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem param) { - if (localQuery == null) { - localQuery = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] {}; - } - - // update the setting tracker - localQueryTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuery); - list.add(param); - this.localQuery = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Queries_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Queries_type1", xmlWriter); - } - } - if (localQueryTracker) { - if (localQuery != null) { - for (int i = 0; i < localQuery.length; i++) { - if (localQuery[i] != null) { - localQuery[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Queries_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Queries_type1 object = new Queries_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Queries_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Queries_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setQuery( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Queries_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Queries_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Queries_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Queries_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Query This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] + localQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryTracker = false; + + public boolean isQuerySpecified() { + return localQueryTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] + getQuery() { + return localQuery; + } + + /** validate the array for Query */ + protected void validateQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] param) {} + + /** + * Auto generated setter method + * + * @param param Query + */ + public void setQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] param) { + + validateQuery(param); + + localQueryTracker = param != null; + + this.localQuery = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem + */ + public void addQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem param) { + if (localQuery == null) { + localQuery = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[] {}; + } + + // update the setting tracker + localQueryTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localQuery); + list.add(param); + this.localQuery = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Queries_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Queries_type1", xmlWriter); + } + } + if (localQueryTracker) { + if (localQuery != null) { + for (int i = 0; i < localQuery.length; i++) { + if (localQuery[i] != null) { + localQuery[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Queries_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Queries_type1 object = new Queries_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Queries_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Queries_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setQuery( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionItem + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryFilesUsed.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryFilesUsed.java index aa4ad7b43..66b6d0d8b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryFilesUsed.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryFilesUsed.java @@ -1,503 +1,503 @@ -/** - * QueryFilesUsed.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QueryFilesUsed bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QueryFilesUsed implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QueryFilesUsed - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for Files */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3 localFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesTracker = false; - - public boolean isFilesSpecified() { - return localFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3 getFiles() { - return localFiles; - } - - /** - * Auto generated setter method - * - * @param param Files - */ - public void setFiles(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3 param) { - localFilesTracker = param != null; - - this.localFiles = param; - } - - /** field for SuperFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2 localSuperFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperFilesTracker = false; - - public boolean isSuperFilesSpecified() { - return localSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2 getSuperFiles() { - return localSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param SuperFiles - */ - public void setSuperFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2 param) { - localSuperFilesTracker = param != null; - - this.localSuperFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QueryFilesUsed", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QueryFilesUsed", - xmlWriter); - } - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localFilesTracker) { - if (localFiles == null) { - throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); - } - localFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files"), xmlWriter); - } - if (localSuperFilesTracker) { - if (localSuperFiles == null) { - throw new org.apache.axis2.databinding.ADBException("SuperFiles cannot be null!!"); - } - localSuperFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QueryFilesUsed parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QueryFilesUsed object = new QueryFilesUsed(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QueryFilesUsed".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QueryFilesUsed) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files") - .equals(reader.getName())) { - - object.setFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles") - .equals(reader.getName())) { - - object.setSuperFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QueryFilesUsed.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QueryFilesUsed bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QueryFilesUsed implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QueryFilesUsed + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3 localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3 getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3 param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** field for SuperFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2 localSuperFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperFilesTracker = false; + + public boolean isSuperFilesSpecified() { + return localSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2 getSuperFiles() { + return localSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param SuperFiles + */ + public void setSuperFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2 param) { + localSuperFilesTracker = param != null; + + this.localSuperFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QueryFilesUsed", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QueryFilesUsed", + xmlWriter); + } + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files"), xmlWriter); + } + if (localSuperFilesTracker) { + if (localSuperFiles == null) { + throw new org.apache.axis2.databinding.ADBException("SuperFiles cannot be null!!"); + } + localSuperFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QueryFilesUsed parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QueryFilesUsed object = new QueryFilesUsed(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QueryFilesUsed".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QueryFilesUsed) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type3.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles") + .equals(reader.getName())) { + + object.setSuperFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type2.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySet.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySet.java index 948ae6248..8a86d2499 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySet.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySet.java @@ -1,396 +1,396 @@ -/** - * QuerySet.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySet bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySet implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySet - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySet", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "QuerySet", xmlWriter); - } - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySet parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySet object = new QuerySet(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySet".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySet) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySet.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySet bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySet implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySet + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySet", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "QuerySet", xmlWriter); + } + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySet parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySet object = new QuerySet(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySet".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySet) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAlias.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAlias.java index b6bbc6022..57c56bfec 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAlias.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAlias.java @@ -1,464 +1,464 @@ -/** - * QuerySetAlias.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetAlias bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetAlias implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySetAlias - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Id */ - protected java.lang.String localId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIdTracker = false; - - public boolean isIdSpecified() { - return localIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getId() { - return localId; - } - - /** - * Auto generated setter method - * - * @param param Id - */ - public void setId(java.lang.String param) { - localIdTracker = param != null; - - this.localId = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetAlias", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "QuerySetAlias", xmlWriter); - } - } - if (localIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Id", xmlWriter); - - 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 (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - if (localName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetAlias parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetAlias object = new QuerySetAlias(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySetAlias".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySetAlias) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Id") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Id" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetAlias.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetAlias bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetAlias implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySetAlias + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Id */ + protected java.lang.String localId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIdTracker = false; + + public boolean isIdSpecified() { + return localIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getId() { + return localId; + } + + /** + * Auto generated setter method + * + * @param param Id + */ + public void setId(java.lang.String param) { + localIdTracker = param != null; + + this.localId = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetAlias", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "QuerySetAlias", xmlWriter); + } + } + if (localIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Id", xmlWriter); + + 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 (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + if (localName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetAlias parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetAlias object = new QuerySetAlias(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySetAlias".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySetAlias) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Id") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Id" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionItem.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionItem.java index 0d36d0236..77b0f6600 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionItem.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionItem.java @@ -1,400 +1,400 @@ -/** - * QuerySetAliasActionItem.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetAliasActionItem bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetAliasActionItem implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySetAliasActionItem - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetAliasActionItem", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySetAliasActionItem", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - if (localName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetAliasActionItem parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetAliasActionItem object = new QuerySetAliasActionItem(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySetAliasActionItem".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySetAliasActionItem) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetAliasActionItem.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetAliasActionItem bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetAliasActionItem implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySetAliasActionItem + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetAliasActionItem", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySetAliasActionItem", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + if (localName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetAliasActionItem parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetAliasActionItem object = new QuerySetAliasActionItem(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySetAliasActionItem".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySetAliasActionItem) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionResult.java index d4c8be86b..17ffcc80b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionResult.java @@ -1,606 +1,606 @@ -/** - * QuerySetAliasActionResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetAliasActionResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetAliasActionResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySetAliasActionResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Success */ - protected boolean localSuccess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuccessTracker = false; - - public boolean isSuccessSpecified() { - return localSuccessTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuccess() { - return localSuccess; - } - - /** - * Auto generated setter method - * - * @param param Success - */ - public void setSuccess(boolean param) { - - // setting primitive attribute tracker to true - localSuccessTracker = true; - - this.localSuccess = param; - } - - /** field for Code */ - protected int localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(int param) { - - // setting primitive attribute tracker to true - localCodeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCode = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetAliasActionResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySetAliasActionResult", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localSuccessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Success", xmlWriter); - - 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(); - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Code", xmlWriter); - - 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 (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetAliasActionResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetAliasActionResult object = new QuerySetAliasActionResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySetAliasActionResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySetAliasActionResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Success") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Success" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuccess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetAliasActionResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetAliasActionResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetAliasActionResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySetAliasActionResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Success */ + protected boolean localSuccess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuccessTracker = false; + + public boolean isSuccessSpecified() { + return localSuccessTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuccess() { + return localSuccess; + } + + /** + * Auto generated setter method + * + * @param param Success + */ + public void setSuccess(boolean param) { + + // setting primitive attribute tracker to true + localSuccessTracker = true; + + this.localSuccess = param; + } + + /** field for Code */ + protected int localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(int param) { + + // setting primitive attribute tracker to true + localCodeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCode = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetAliasActionResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySetAliasActionResult", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localSuccessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Success", xmlWriter); + + 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(); + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Code", xmlWriter); + + 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 (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetAliasActionResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetAliasActionResult object = new QuerySetAliasActionResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySetAliasActionResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySetAliasActionResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Success") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Success" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuccess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionTypes.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionTypes.java index eee962da0..7065df0dc 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionTypes.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetAliasActionTypes.java @@ -1,408 +1,408 @@ -/** - * QuerySetAliasActionTypes.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetAliasActionTypes bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetAliasActionTypes implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QuerySetAliasActionTypes", "ns1"); - - /** field for QuerySetAliasActionTypes */ - protected java.lang.String localQuerySetAliasActionTypes; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected QuerySetAliasActionTypes(java.lang.String value, boolean isRegisterValue) { - localQuerySetAliasActionTypes = value; - if (isRegisterValue) { - - _table_.put(localQuerySetAliasActionTypes, this); - } - } - - public static final java.lang.String _Deactivate = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Deactivate"); - - public static final QuerySetAliasActionTypes Deactivate = - new QuerySetAliasActionTypes(_Deactivate, true); - - public java.lang.String getValue() { - return localQuerySetAliasActionTypes; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localQuerySetAliasActionTypes.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetAliasActionTypes", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySetAliasActionTypes", - xmlWriter); - } - } - - if (localQuerySetAliasActionTypes == null) { - - throw new org.apache.axis2.databinding.ADBException( - "QuerySetAliasActionTypes cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetAliasActionTypes); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static QuerySetAliasActionTypes fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - QuerySetAliasActionTypes enumeration = (QuerySetAliasActionTypes) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static QuerySetAliasActionTypes fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static QuerySetAliasActionTypes fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return QuerySetAliasActionTypes.Factory.fromString(content, namespaceUri); - } else { - return QuerySetAliasActionTypes.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetAliasActionTypes parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetAliasActionTypes object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetAliasActionTypes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = QuerySetAliasActionTypes.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = QuerySetAliasActionTypes.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetAliasActionTypes.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetAliasActionTypes bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetAliasActionTypes implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QuerySetAliasActionTypes", "ns1"); + + /** field for QuerySetAliasActionTypes */ + protected java.lang.String localQuerySetAliasActionTypes; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected QuerySetAliasActionTypes(java.lang.String value, boolean isRegisterValue) { + localQuerySetAliasActionTypes = value; + if (isRegisterValue) { + + _table_.put(localQuerySetAliasActionTypes, this); + } + } + + public static final java.lang.String _Deactivate = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Deactivate"); + + public static final QuerySetAliasActionTypes Deactivate = + new QuerySetAliasActionTypes(_Deactivate, true); + + public java.lang.String getValue() { + return localQuerySetAliasActionTypes; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localQuerySetAliasActionTypes.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetAliasActionTypes", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySetAliasActionTypes", + xmlWriter); + } + } + + if (localQuerySetAliasActionTypes == null) { + + throw new org.apache.axis2.databinding.ADBException( + "QuerySetAliasActionTypes cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetAliasActionTypes); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static QuerySetAliasActionTypes fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + QuerySetAliasActionTypes enumeration = (QuerySetAliasActionTypes) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static QuerySetAliasActionTypes fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static QuerySetAliasActionTypes fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return QuerySetAliasActionTypes.Factory.fromString(content, namespaceUri); + } else { + return QuerySetAliasActionTypes.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetAliasActionTypes parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetAliasActionTypes object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetAliasActionTypes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = QuerySetAliasActionTypes.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = QuerySetAliasActionTypes.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQuery.java index 38f90e86b..d8e5155bd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQuery.java @@ -1,1478 +1,1478 @@ -/** - * QuerySetQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetQuery implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySetQuery - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Id */ - protected java.lang.String localId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIdTracker = false; - - public boolean isIdSpecified() { - return localIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getId() { - return localId; - } - - /** - * Auto generated setter method - * - * @param param Id - */ - public void setId(java.lang.String param) { - localIdTracker = param != null; - - this.localId = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Dll */ - protected java.lang.String localDll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDllTracker = false; - - public boolean isDllSpecified() { - return localDllTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDll() { - return localDll; - } - - /** - * Auto generated setter method - * - * @param param Dll - */ - public void setDll(java.lang.String param) { - localDllTracker = param != null; - - this.localDll = param; - } - - /** field for Suspended */ - protected boolean localSuspended; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedTracker = false; - - public boolean isSuspendedSpecified() { - return localSuspendedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuspended() { - return localSuspended; - } - - /** - * Auto generated setter method - * - * @param param Suspended - */ - public void setSuspended(boolean param) { - - // setting primitive attribute tracker to true - localSuspendedTracker = true; - - this.localSuspended = param; - } - - /** field for Clusters */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState - localClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClustersTracker = false; - - public boolean isClustersSpecified() { - return localClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState - getClusters() { - return localClusters; - } - - /** - * Auto generated setter method - * - * @param param Clusters - */ - public void setClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState param) { - localClustersTracker = param != null; - - this.localClusters = param; - } - - /** field for MemoryLimit */ - protected java.lang.String localMemoryLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitTracker = false; - - public boolean isMemoryLimitSpecified() { - return localMemoryLimitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemoryLimit() { - return localMemoryLimit; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimit - */ - public void setMemoryLimit(java.lang.String param) { - localMemoryLimitTracker = param != null; - - this.localMemoryLimit = param; - } - - /** field for TimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitTracker = false; - - public boolean isTimeLimitSpecified() { - return localTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { - return localTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param TimeLimit - */ - public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localTimeLimitTracker = param != null; - - this.localTimeLimit = param; - } - - /** field for WarnTimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitTracker = false; - - public boolean isWarnTimeLimitSpecified() { - return localWarnTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { - return localWarnTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimit - */ - public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localWarnTimeLimitTracker = param != null; - - this.localWarnTimeLimit = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for QuerySetId */ - protected java.lang.String localQuerySetId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetIdTracker = false; - - public boolean isQuerySetIdSpecified() { - return localQuerySetIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetId() { - return localQuerySetId; - } - - /** - * Auto generated setter method - * - * @param param QuerySetId - */ - public void setQuerySetId(java.lang.String param) { - localQuerySetIdTracker = param != null; - - this.localQuerySetId = param; - } - - /** field for IsLibrary */ - protected boolean localIsLibrary; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsLibraryTracker = false; - - public boolean isIsLibrarySpecified() { - return localIsLibraryTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsLibrary() { - return localIsLibrary; - } - - /** - * Auto generated setter method - * - * @param param IsLibrary - */ - public void setIsLibrary(boolean param) { - - // setting primitive attribute tracker to true - localIsLibraryTracker = true; - - this.localIsLibrary = param; - } - - /** field for Activated */ - protected boolean localActivated; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivatedTracker = false; - - public boolean isActivatedSpecified() { - return localActivatedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getActivated() { - return localActivated; - } - - /** - * Auto generated setter method - * - * @param param Activated - */ - public void setActivated(boolean param) { - - // setting primitive attribute tracker to true - localActivatedTracker = true; - - this.localActivated = param; - } - - /** field for PublishedBy */ - protected java.lang.String localPublishedBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPublishedByTracker = false; - - public boolean isPublishedBySpecified() { - return localPublishedByTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPublishedBy() { - return localPublishedBy; - } - - /** - * Auto generated setter method - * - * @param param PublishedBy - */ - public void setPublishedBy(java.lang.String param) { - localPublishedByTracker = param != null; - - this.localPublishedBy = param; - } - - /** field for Snapshot */ - protected java.lang.String localSnapshot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSnapshotTracker = false; - - public boolean isSnapshotSpecified() { - return localSnapshotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSnapshot() { - return localSnapshot; - } - - /** - * Auto generated setter method - * - * @param param Snapshot - */ - public void setSnapshot(java.lang.String param) { - localSnapshotTracker = param != null; - - this.localSnapshot = param; - } - - /** field for PriorityID */ - protected int localPriorityID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityIDTracker = false; - - public boolean isPriorityIDSpecified() { - return localPriorityIDTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityID() { - return localPriorityID; - } - - /** - * Auto generated setter method - * - * @param param PriorityID - */ - public void setPriorityID(int param) { - - // setting primitive attribute tracker to true - localPriorityIDTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityID = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "QuerySetQuery", xmlWriter); - } - } - if (localIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Id", xmlWriter); - - 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 (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDllTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Dll", xmlWriter); - - if (localDll == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Dll cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDll); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Suspended", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); - } - - xmlWriter.writeEndElement(); - } - if (localClustersTracker) { - if (localClusters == null) { - throw new org.apache.axis2.databinding.ADBException("Clusters cannot be null!!"); - } - localClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters"), xmlWriter); - } - if (localMemoryLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "memoryLimit", xmlWriter); - - if (localMemoryLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("memoryLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemoryLimit); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "timeLimit", xmlWriter); - - if (localTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("timeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "warnTimeLimit", xmlWriter); - - if (localWarnTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("warnTimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localQuerySetIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetId", xmlWriter); - - if (localQuerySetId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetId); - } - - xmlWriter.writeEndElement(); - } - if (localIsLibraryTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsLibrary", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsLibrary cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsLibrary)); - } - - xmlWriter.writeEndElement(); - } - if (localActivatedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Activated", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Activated cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivated)); - } - - xmlWriter.writeEndElement(); - } - if (localPublishedByTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PublishedBy", xmlWriter); - - if (localPublishedBy == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PublishedBy cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPublishedBy); - } - - xmlWriter.writeEndElement(); - } - if (localSnapshotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "snapshot", xmlWriter); - - if (localSnapshot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("snapshot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSnapshot); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityID", xmlWriter); - - if (localPriorityID == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityID cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityID)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetQuery object = new QuerySetQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySetQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySetQuery) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Id") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Id" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Dll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Suspended" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspended( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters") - .equals(reader.getName())) { - - object.setClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "memoryLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "memoryLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "timeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "timeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "warnTimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "warnTimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsLibrary") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsLibrary" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsLibrary( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activated") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Activated" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActivated( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PublishedBy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PublishedBy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPublishedBy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "snapshot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "snapshot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSnapshot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetQuery implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySetQuery + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Id */ + protected java.lang.String localId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIdTracker = false; + + public boolean isIdSpecified() { + return localIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getId() { + return localId; + } + + /** + * Auto generated setter method + * + * @param param Id + */ + public void setId(java.lang.String param) { + localIdTracker = param != null; + + this.localId = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Dll */ + protected java.lang.String localDll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDllTracker = false; + + public boolean isDllSpecified() { + return localDllTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDll() { + return localDll; + } + + /** + * Auto generated setter method + * + * @param param Dll + */ + public void setDll(java.lang.String param) { + localDllTracker = param != null; + + this.localDll = param; + } + + /** field for Suspended */ + protected boolean localSuspended; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedTracker = false; + + public boolean isSuspendedSpecified() { + return localSuspendedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuspended() { + return localSuspended; + } + + /** + * Auto generated setter method + * + * @param param Suspended + */ + public void setSuspended(boolean param) { + + // setting primitive attribute tracker to true + localSuspendedTracker = true; + + this.localSuspended = param; + } + + /** field for Clusters */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState + localClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClustersTracker = false; + + public boolean isClustersSpecified() { + return localClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState + getClusters() { + return localClusters; + } + + /** + * Auto generated setter method + * + * @param param Clusters + */ + public void setClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState param) { + localClustersTracker = param != null; + + this.localClusters = param; + } + + /** field for MemoryLimit */ + protected java.lang.String localMemoryLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitTracker = false; + + public boolean isMemoryLimitSpecified() { + return localMemoryLimitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemoryLimit() { + return localMemoryLimit; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimit + */ + public void setMemoryLimit(java.lang.String param) { + localMemoryLimitTracker = param != null; + + this.localMemoryLimit = param; + } + + /** field for TimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitTracker = false; + + public boolean isTimeLimitSpecified() { + return localTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { + return localTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param TimeLimit + */ + public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localTimeLimitTracker = param != null; + + this.localTimeLimit = param; + } + + /** field for WarnTimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitTracker = false; + + public boolean isWarnTimeLimitSpecified() { + return localWarnTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { + return localWarnTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimit + */ + public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localWarnTimeLimitTracker = param != null; + + this.localWarnTimeLimit = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for QuerySetId */ + protected java.lang.String localQuerySetId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetIdTracker = false; + + public boolean isQuerySetIdSpecified() { + return localQuerySetIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetId() { + return localQuerySetId; + } + + /** + * Auto generated setter method + * + * @param param QuerySetId + */ + public void setQuerySetId(java.lang.String param) { + localQuerySetIdTracker = param != null; + + this.localQuerySetId = param; + } + + /** field for IsLibrary */ + protected boolean localIsLibrary; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsLibraryTracker = false; + + public boolean isIsLibrarySpecified() { + return localIsLibraryTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsLibrary() { + return localIsLibrary; + } + + /** + * Auto generated setter method + * + * @param param IsLibrary + */ + public void setIsLibrary(boolean param) { + + // setting primitive attribute tracker to true + localIsLibraryTracker = true; + + this.localIsLibrary = param; + } + + /** field for Activated */ + protected boolean localActivated; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivatedTracker = false; + + public boolean isActivatedSpecified() { + return localActivatedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getActivated() { + return localActivated; + } + + /** + * Auto generated setter method + * + * @param param Activated + */ + public void setActivated(boolean param) { + + // setting primitive attribute tracker to true + localActivatedTracker = true; + + this.localActivated = param; + } + + /** field for PublishedBy */ + protected java.lang.String localPublishedBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPublishedByTracker = false; + + public boolean isPublishedBySpecified() { + return localPublishedByTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPublishedBy() { + return localPublishedBy; + } + + /** + * Auto generated setter method + * + * @param param PublishedBy + */ + public void setPublishedBy(java.lang.String param) { + localPublishedByTracker = param != null; + + this.localPublishedBy = param; + } + + /** field for Snapshot */ + protected java.lang.String localSnapshot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSnapshotTracker = false; + + public boolean isSnapshotSpecified() { + return localSnapshotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSnapshot() { + return localSnapshot; + } + + /** + * Auto generated setter method + * + * @param param Snapshot + */ + public void setSnapshot(java.lang.String param) { + localSnapshotTracker = param != null; + + this.localSnapshot = param; + } + + /** field for PriorityID */ + protected int localPriorityID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityIDTracker = false; + + public boolean isPriorityIDSpecified() { + return localPriorityIDTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityID() { + return localPriorityID; + } + + /** + * Auto generated setter method + * + * @param param PriorityID + */ + public void setPriorityID(int param) { + + // setting primitive attribute tracker to true + localPriorityIDTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityID = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "QuerySetQuery", xmlWriter); + } + } + if (localIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Id", xmlWriter); + + 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 (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDllTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Dll", xmlWriter); + + if (localDll == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Dll cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDll); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Suspended", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); + } + + xmlWriter.writeEndElement(); + } + if (localClustersTracker) { + if (localClusters == null) { + throw new org.apache.axis2.databinding.ADBException("Clusters cannot be null!!"); + } + localClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters"), xmlWriter); + } + if (localMemoryLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "memoryLimit", xmlWriter); + + if (localMemoryLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("memoryLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemoryLimit); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "timeLimit", xmlWriter); + + if (localTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("timeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "warnTimeLimit", xmlWriter); + + if (localWarnTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("warnTimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localQuerySetIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetId", xmlWriter); + + if (localQuerySetId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetId); + } + + xmlWriter.writeEndElement(); + } + if (localIsLibraryTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsLibrary", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsLibrary cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsLibrary)); + } + + xmlWriter.writeEndElement(); + } + if (localActivatedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Activated", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Activated cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivated)); + } + + xmlWriter.writeEndElement(); + } + if (localPublishedByTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PublishedBy", xmlWriter); + + if (localPublishedBy == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PublishedBy cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPublishedBy); + } + + xmlWriter.writeEndElement(); + } + if (localSnapshotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "snapshot", xmlWriter); + + if (localSnapshot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("snapshot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSnapshot); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityID", xmlWriter); + + if (localPriorityID == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityID cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityID)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetQuery object = new QuerySetQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySetQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySetQuery) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Id") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Id" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Dll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Suspended" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspended( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters") + .equals(reader.getName())) { + + object.setClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "memoryLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "memoryLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "timeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "timeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "warnTimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "warnTimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsLibrary") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsLibrary" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsLibrary( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activated") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Activated" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActivated( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PublishedBy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PublishedBy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPublishedBy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "snapshot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "snapshot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSnapshot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionItem.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionItem.java index 1c59cbc75..2aeaa5ec9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionItem.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionItem.java @@ -1,595 +1,595 @@ -/** - * QuerySetQueryActionItem.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetQueryActionItem bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetQueryActionItem implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySetQueryActionItem - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for Activated */ - protected boolean localActivated; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivatedTracker = false; - - public boolean isActivatedSpecified() { - return localActivatedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getActivated() { - return localActivated; - } - - /** - * Auto generated setter method - * - * @param param Activated - */ - public void setActivated(boolean param) { - - // setting primitive attribute tracker to true - localActivatedTracker = true; - - this.localActivated = param; - } - - /** field for SuspendedByUser */ - protected boolean localSuspendedByUser = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedByUserTracker = false; - - public boolean isSuspendedByUserSpecified() { - return localSuspendedByUserTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuspendedByUser() { - return localSuspendedByUser; - } - - /** - * Auto generated setter method - * - * @param param SuspendedByUser - */ - public void setSuspendedByUser(boolean param) { - - // setting primitive attribute tracker to true - localSuspendedByUserTracker = true; - - this.localSuspendedByUser = param; - } - - /** field for ClientState */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState - localClientState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClientStateTracker = false; - - public boolean isClientStateSpecified() { - return localClientStateTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState - getClientState() { - return localClientState; - } - - /** - * Auto generated setter method - * - * @param param ClientState - */ - public void setClientState( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState param) { - localClientStateTracker = param != null; - - this.localClientState = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetQueryActionItem", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySetQueryActionItem", - xmlWriter); - } - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localActivatedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Activated", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Activated cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivated)); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendedByUserTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SuspendedByUser", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SuspendedByUser cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspendedByUser)); - } - - xmlWriter.writeEndElement(); - } - if (localClientStateTracker) { - if (localClientState == null) { - throw new org.apache.axis2.databinding.ADBException("ClientState cannot be null!!"); - } - localClientState.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClientState"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetQueryActionItem parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetQueryActionItem object = new QuerySetQueryActionItem(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySetQueryActionItem".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySetQueryActionItem) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activated") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Activated" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActivated( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SuspendedByUser") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SuspendedByUser" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspendedByUser( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClientState") - .equals(reader.getName())) { - - object.setClientState( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetQueryActionItem.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetQueryActionItem bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetQueryActionItem implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySetQueryActionItem + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for Activated */ + protected boolean localActivated; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivatedTracker = false; + + public boolean isActivatedSpecified() { + return localActivatedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getActivated() { + return localActivated; + } + + /** + * Auto generated setter method + * + * @param param Activated + */ + public void setActivated(boolean param) { + + // setting primitive attribute tracker to true + localActivatedTracker = true; + + this.localActivated = param; + } + + /** field for SuspendedByUser */ + protected boolean localSuspendedByUser = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedByUserTracker = false; + + public boolean isSuspendedByUserSpecified() { + return localSuspendedByUserTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuspendedByUser() { + return localSuspendedByUser; + } + + /** + * Auto generated setter method + * + * @param param SuspendedByUser + */ + public void setSuspendedByUser(boolean param) { + + // setting primitive attribute tracker to true + localSuspendedByUserTracker = true; + + this.localSuspendedByUser = param; + } + + /** field for ClientState */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState + localClientState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClientStateTracker = false; + + public boolean isClientStateSpecified() { + return localClientStateTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState + getClientState() { + return localClientState; + } + + /** + * Auto generated setter method + * + * @param param ClientState + */ + public void setClientState( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState param) { + localClientStateTracker = param != null; + + this.localClientState = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetQueryActionItem", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySetQueryActionItem", + xmlWriter); + } + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localActivatedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Activated", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Activated cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivated)); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendedByUserTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SuspendedByUser", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SuspendedByUser cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspendedByUser)); + } + + xmlWriter.writeEndElement(); + } + if (localClientStateTracker) { + if (localClientState == null) { + throw new org.apache.axis2.databinding.ADBException("ClientState cannot be null!!"); + } + localClientState.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClientState"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetQueryActionItem parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetQueryActionItem object = new QuerySetQueryActionItem(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySetQueryActionItem".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySetQueryActionItem) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activated") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Activated" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActivated( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SuspendedByUser") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SuspendedByUser" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspendedByUser( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClientState") + .equals(reader.getName())) { + + object.setClientState( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryClientState + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionResult.java index ba937e330..b9e506200 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionResult.java @@ -1,743 +1,743 @@ -/** - * QuerySetQueryActionResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetQueryActionResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetQueryActionResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySetQueryActionResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for Suspended */ - protected boolean localSuspended; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedTracker = false; - - public boolean isSuspendedSpecified() { - return localSuspendedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuspended() { - return localSuspended; - } - - /** - * Auto generated setter method - * - * @param param Suspended - */ - public void setSuspended(boolean param) { - - // setting primitive attribute tracker to true - localSuspendedTracker = true; - - this.localSuspended = param; - } - - /** field for Success */ - protected boolean localSuccess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuccessTracker = false; - - public boolean isSuccessSpecified() { - return localSuccessTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuccess() { - return localSuccess; - } - - /** - * Auto generated setter method - * - * @param param Success - */ - public void setSuccess(boolean param) { - - // setting primitive attribute tracker to true - localSuccessTracker = true; - - this.localSuccess = param; - } - - /** field for Code */ - protected int localCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCodeTracker = false; - - public boolean isCodeSpecified() { - return localCodeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCode() { - return localCode; - } - - /** - * Auto generated setter method - * - * @param param Code - */ - public void setCode(int param) { - - // setting primitive attribute tracker to true - localCodeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCode = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetQueryActionResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySetQueryActionResult", - xmlWriter); - } - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Suspended", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); - } - - xmlWriter.writeEndElement(); - } - if (localSuccessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Success", xmlWriter); - - 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(); - } - if (localCodeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Code", xmlWriter); - - 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 (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetQueryActionResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetQueryActionResult object = new QuerySetQueryActionResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySetQueryActionResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySetQueryActionResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Suspended" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspended( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Success") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Success" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuccess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Code") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Code" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetQueryActionResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetQueryActionResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetQueryActionResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySetQueryActionResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for Suspended */ + protected boolean localSuspended; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedTracker = false; + + public boolean isSuspendedSpecified() { + return localSuspendedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuspended() { + return localSuspended; + } + + /** + * Auto generated setter method + * + * @param param Suspended + */ + public void setSuspended(boolean param) { + + // setting primitive attribute tracker to true + localSuspendedTracker = true; + + this.localSuspended = param; + } + + /** field for Success */ + protected boolean localSuccess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuccessTracker = false; + + public boolean isSuccessSpecified() { + return localSuccessTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuccess() { + return localSuccess; + } + + /** + * Auto generated setter method + * + * @param param Success + */ + public void setSuccess(boolean param) { + + // setting primitive attribute tracker to true + localSuccessTracker = true; + + this.localSuccess = param; + } + + /** field for Code */ + protected int localCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCodeTracker = false; + + public boolean isCodeSpecified() { + return localCodeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCode() { + return localCode; + } + + /** + * Auto generated setter method + * + * @param param Code + */ + public void setCode(int param) { + + // setting primitive attribute tracker to true + localCodeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCode = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetQueryActionResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySetQueryActionResult", + xmlWriter); + } + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Suspended", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); + } + + xmlWriter.writeEndElement(); + } + if (localSuccessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Success", xmlWriter); + + 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(); + } + if (localCodeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Code", xmlWriter); + + 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 (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetQueryActionResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetQueryActionResult object = new QuerySetQueryActionResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySetQueryActionResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySetQueryActionResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Suspended" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspended( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Success") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Success" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuccess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Code") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Code" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionTypes.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionTypes.java index cc4d7be2c..3ab42aa04 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionTypes.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryActionTypes.java @@ -1,449 +1,449 @@ -/** - * QuerySetQueryActionTypes.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetQueryActionTypes bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetQueryActionTypes implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QuerySetQueryActionTypes", "ns1"); - - /** field for QuerySetQueryActionTypes */ - protected java.lang.String localQuerySetQueryActionTypes; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected QuerySetQueryActionTypes(java.lang.String value, boolean isRegisterValue) { - localQuerySetQueryActionTypes = value; - if (isRegisterValue) { - - _table_.put(localQuerySetQueryActionTypes, this); - } - } - - public static final java.lang.String _Suspend = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspend"); - - public static final java.lang.String _Unsuspend = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Unsuspend"); - - public static final java.lang.String _ToggleSuspend = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ToggleSuspend"); - - public static final java.lang.String _Activate = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Activate"); - - public static final java.lang.String _Delete = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Delete"); - - public static final java.lang.String _DeleteQueriesAndWUs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("DeleteQueriesAndWUs"); - - public static final java.lang.String _RemoveAllAliases = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("RemoveAllAliases"); - - public static final java.lang.String _ResetQueryStats = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ResetQueryStats"); - - public static final QuerySetQueryActionTypes Suspend = - new QuerySetQueryActionTypes(_Suspend, true); - - public static final QuerySetQueryActionTypes Unsuspend = - new QuerySetQueryActionTypes(_Unsuspend, true); - - public static final QuerySetQueryActionTypes ToggleSuspend = - new QuerySetQueryActionTypes(_ToggleSuspend, true); - - public static final QuerySetQueryActionTypes Activate = - new QuerySetQueryActionTypes(_Activate, true); - - public static final QuerySetQueryActionTypes Delete = new QuerySetQueryActionTypes(_Delete, true); - - public static final QuerySetQueryActionTypes DeleteQueriesAndWUs = - new QuerySetQueryActionTypes(_DeleteQueriesAndWUs, true); - - public static final QuerySetQueryActionTypes RemoveAllAliases = - new QuerySetQueryActionTypes(_RemoveAllAliases, true); - - public static final QuerySetQueryActionTypes ResetQueryStats = - new QuerySetQueryActionTypes(_ResetQueryStats, true); - - public java.lang.String getValue() { - return localQuerySetQueryActionTypes; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localQuerySetQueryActionTypes.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetQueryActionTypes", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySetQueryActionTypes", - xmlWriter); - } - } - - if (localQuerySetQueryActionTypes == null) { - - throw new org.apache.axis2.databinding.ADBException( - "QuerySetQueryActionTypes cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetQueryActionTypes); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static QuerySetQueryActionTypes fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - QuerySetQueryActionTypes enumeration = (QuerySetQueryActionTypes) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static QuerySetQueryActionTypes fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static QuerySetQueryActionTypes fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return QuerySetQueryActionTypes.Factory.fromString(content, namespaceUri); - } else { - return QuerySetQueryActionTypes.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetQueryActionTypes parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetQueryActionTypes object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetQueryActionTypes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = QuerySetQueryActionTypes.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = QuerySetQueryActionTypes.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetQueryActionTypes.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetQueryActionTypes bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetQueryActionTypes implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QuerySetQueryActionTypes", "ns1"); + + /** field for QuerySetQueryActionTypes */ + protected java.lang.String localQuerySetQueryActionTypes; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected QuerySetQueryActionTypes(java.lang.String value, boolean isRegisterValue) { + localQuerySetQueryActionTypes = value; + if (isRegisterValue) { + + _table_.put(localQuerySetQueryActionTypes, this); + } + } + + public static final java.lang.String _Suspend = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspend"); + + public static final java.lang.String _Unsuspend = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Unsuspend"); + + public static final java.lang.String _ToggleSuspend = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ToggleSuspend"); + + public static final java.lang.String _Activate = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Activate"); + + public static final java.lang.String _Delete = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Delete"); + + public static final java.lang.String _DeleteQueriesAndWUs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("DeleteQueriesAndWUs"); + + public static final java.lang.String _RemoveAllAliases = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("RemoveAllAliases"); + + public static final java.lang.String _ResetQueryStats = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ResetQueryStats"); + + public static final QuerySetQueryActionTypes Suspend = + new QuerySetQueryActionTypes(_Suspend, true); + + public static final QuerySetQueryActionTypes Unsuspend = + new QuerySetQueryActionTypes(_Unsuspend, true); + + public static final QuerySetQueryActionTypes ToggleSuspend = + new QuerySetQueryActionTypes(_ToggleSuspend, true); + + public static final QuerySetQueryActionTypes Activate = + new QuerySetQueryActionTypes(_Activate, true); + + public static final QuerySetQueryActionTypes Delete = new QuerySetQueryActionTypes(_Delete, true); + + public static final QuerySetQueryActionTypes DeleteQueriesAndWUs = + new QuerySetQueryActionTypes(_DeleteQueriesAndWUs, true); + + public static final QuerySetQueryActionTypes RemoveAllAliases = + new QuerySetQueryActionTypes(_RemoveAllAliases, true); + + public static final QuerySetQueryActionTypes ResetQueryStats = + new QuerySetQueryActionTypes(_ResetQueryStats, true); + + public java.lang.String getValue() { + return localQuerySetQueryActionTypes; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localQuerySetQueryActionTypes.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetQueryActionTypes", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySetQueryActionTypes", + xmlWriter); + } + } + + if (localQuerySetQueryActionTypes == null) { + + throw new org.apache.axis2.databinding.ADBException( + "QuerySetQueryActionTypes cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetQueryActionTypes); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static QuerySetQueryActionTypes fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + QuerySetQueryActionTypes enumeration = (QuerySetQueryActionTypes) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static QuerySetQueryActionTypes fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static QuerySetQueryActionTypes fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return QuerySetQueryActionTypes.Factory.fromString(content, namespaceUri); + } else { + return QuerySetQueryActionTypes.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetQueryActionTypes parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetQueryActionTypes object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetQueryActionTypes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = QuerySetQueryActionTypes.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = QuerySetQueryActionTypes.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryClientState.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryClientState.java index 6e9e5afb0..96b3df345 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryClientState.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySetQueryClientState.java @@ -1,400 +1,400 @@ -/** - * QuerySetQueryClientState.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySetQueryClientState bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySetQueryClientState implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySetQueryClientState - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Suspended */ - protected java.lang.String localSuspended; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedTracker = false; - - public boolean isSuspendedSpecified() { - return localSuspendedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSuspended() { - return localSuspended; - } - - /** - * Auto generated setter method - * - * @param param Suspended - */ - public void setSuspended(java.lang.String param) { - localSuspendedTracker = param != null; - - this.localSuspended = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySetQueryClientState", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySetQueryClientState", - xmlWriter); - } - } - if (localSuspendedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Suspended", xmlWriter); - - if (localSuspended == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSuspended); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySetQueryClientState parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySetQueryClientState object = new QuerySetQueryClientState(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySetQueryClientState".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySetQueryClientState) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Suspended" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspended( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySetQueryClientState.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySetQueryClientState bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySetQueryClientState implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySetQueryClientState + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Suspended */ + protected java.lang.String localSuspended; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedTracker = false; + + public boolean isSuspendedSpecified() { + return localSuspendedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSuspended() { + return localSuspended; + } + + /** + * Auto generated setter method + * + * @param param Suspended + */ + public void setSuspended(java.lang.String param) { + localSuspendedTracker = param != null; + + this.localSuspended = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySetQueryClientState", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySetQueryClientState", + xmlWriter); + } + } + if (localSuspendedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Suspended", xmlWriter); + + if (localSuspended == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSuspended); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySetQueryClientState parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySetQueryClientState object = new QuerySetQueryClientState(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySetQueryClientState".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySetQueryClientState) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Suspended" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspended( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryStats.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryStats.java index e206cbed0..200d514b4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryStats.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryStats.java @@ -1,511 +1,511 @@ -/** - * QueryStats.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QueryStats bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QueryStats implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QueryStats - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ID */ - protected java.lang.String localID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIDTracker = false; - - public boolean isIDSpecified() { - return localIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getID() { - return localID; - } - - /** - * Auto generated setter method - * - * @param param ID - */ - public void setID(java.lang.String param) { - localIDTracker = param != null; - - this.localID = param; - } - - /** field for AggregateQueryStatsList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats - localAggregateQueryStatsList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAggregateQueryStatsListTracker = false; - - public boolean isAggregateQueryStatsListSpecified() { - return localAggregateQueryStatsListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats - getAggregateQueryStatsList() { - return localAggregateQueryStatsList; - } - - /** - * Auto generated setter method - * - * @param param AggregateQueryStatsList - */ - public void setAggregateQueryStatsList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats param) { - localAggregateQueryStatsListTracker = param != null; - - this.localAggregateQueryStatsList = param; - } - - /** field for QueryStatsRecordList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord - localQueryStatsRecordList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryStatsRecordListTracker = false; - - public boolean isQueryStatsRecordListSpecified() { - return localQueryStatsRecordListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord - getQueryStatsRecordList() { - return localQueryStatsRecordList; - } - - /** - * Auto generated setter method - * - * @param param QueryStatsRecordList - */ - public void setQueryStatsRecordList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord param) { - localQueryStatsRecordListTracker = param != null; - - this.localQueryStatsRecordList = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QueryStats", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "QueryStats", xmlWriter); - } - } - if (localIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ID", xmlWriter); - - 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 (localAggregateQueryStatsListTracker) { - if (localAggregateQueryStatsList == null) { - throw new org.apache.axis2.databinding.ADBException( - "AggregateQueryStatsList cannot be null!!"); - } - localAggregateQueryStatsList.serialize( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AggregateQueryStatsList"), - xmlWriter); - } - if (localQueryStatsRecordListTracker) { - if (localQueryStatsRecordList == null) { - throw new org.apache.axis2.databinding.ADBException( - "QueryStatsRecordList cannot be null!!"); - } - localQueryStatsRecordList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsRecordList"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QueryStats parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QueryStats object = new QueryStats(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QueryStats".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QueryStats) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AggregateQueryStatsList") - .equals(reader.getName())) { - - object.setAggregateQueryStatsList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QueryStatsRecordList") - .equals(reader.getName())) { - - object.setQueryStatsRecordList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QueryStats.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QueryStats bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QueryStats implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QueryStats + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ID */ + protected java.lang.String localID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIDTracker = false; + + public boolean isIDSpecified() { + return localIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getID() { + return localID; + } + + /** + * Auto generated setter method + * + * @param param ID + */ + public void setID(java.lang.String param) { + localIDTracker = param != null; + + this.localID = param; + } + + /** field for AggregateQueryStatsList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats + localAggregateQueryStatsList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAggregateQueryStatsListTracker = false; + + public boolean isAggregateQueryStatsListSpecified() { + return localAggregateQueryStatsListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats + getAggregateQueryStatsList() { + return localAggregateQueryStatsList; + } + + /** + * Auto generated setter method + * + * @param param AggregateQueryStatsList + */ + public void setAggregateQueryStatsList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats param) { + localAggregateQueryStatsListTracker = param != null; + + this.localAggregateQueryStatsList = param; + } + + /** field for QueryStatsRecordList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord + localQueryStatsRecordList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryStatsRecordListTracker = false; + + public boolean isQueryStatsRecordListSpecified() { + return localQueryStatsRecordListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord + getQueryStatsRecordList() { + return localQueryStatsRecordList; + } + + /** + * Auto generated setter method + * + * @param param QueryStatsRecordList + */ + public void setQueryStatsRecordList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord param) { + localQueryStatsRecordListTracker = param != null; + + this.localQueryStatsRecordList = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QueryStats", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "QueryStats", xmlWriter); + } + } + if (localIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ID", xmlWriter); + + 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 (localAggregateQueryStatsListTracker) { + if (localAggregateQueryStatsList == null) { + throw new org.apache.axis2.databinding.ADBException( + "AggregateQueryStatsList cannot be null!!"); + } + localAggregateQueryStatsList.serialize( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AggregateQueryStatsList"), + xmlWriter); + } + if (localQueryStatsRecordListTracker) { + if (localQueryStatsRecordList == null) { + throw new org.apache.axis2.databinding.ADBException( + "QueryStatsRecordList cannot be null!!"); + } + localQueryStatsRecordList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsRecordList"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QueryStats parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QueryStats object = new QueryStats(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QueryStats".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QueryStats) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AggregateQueryStatsList") + .equals(reader.getName())) { + + object.setAggregateQueryStatsList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QueryStatsRecordList") + .equals(reader.getName())) { + + object.setQueryStatsRecordList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryStatsRecord + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryStatsRecord.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryStatsRecord.java index c156a8386..2fde30d8d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryStatsRecord.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryStatsRecord.java @@ -1,745 +1,745 @@ -/** - * QueryStatsRecord.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QueryStatsRecord bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QueryStatsRecord implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QueryStatsRecord - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for StartTime */ - protected java.lang.String localStartTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartTimeTracker = false; - - public boolean isStartTimeSpecified() { - return localStartTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartTime() { - return localStartTime; - } - - /** - * Auto generated setter method - * - * @param param StartTime - */ - public void setStartTime(java.lang.String param) { - localStartTimeTracker = param != null; - - this.localStartTime = param; - } - - /** field for ElapsedTimeMs */ - protected long localElapsedTimeMs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localElapsedTimeMsTracker = false; - - public boolean isElapsedTimeMsSpecified() { - return localElapsedTimeMsTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getElapsedTimeMs() { - return localElapsedTimeMs; - } - - /** - * Auto generated setter method - * - * @param param ElapsedTimeMs - */ - public void setElapsedTimeMs(long param) { - - // setting primitive attribute tracker to true - localElapsedTimeMsTracker = param != java.lang.Long.MIN_VALUE; - - this.localElapsedTimeMs = param; - } - - /** field for MemoryUsed */ - protected long localMemoryUsed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryUsedTracker = false; - - public boolean isMemoryUsedSpecified() { - return localMemoryUsedTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getMemoryUsed() { - return localMemoryUsed; - } - - /** - * Auto generated setter method - * - * @param param MemoryUsed - */ - public void setMemoryUsed(long param) { - - // setting primitive attribute tracker to true - localMemoryUsedTracker = param != java.lang.Long.MIN_VALUE; - - this.localMemoryUsed = param; - } - - /** field for BytesOut */ - protected long localBytesOut; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBytesOutTracker = false; - - public boolean isBytesOutSpecified() { - return localBytesOutTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getBytesOut() { - return localBytesOut; - } - - /** - * Auto generated setter method - * - * @param param BytesOut - */ - public void setBytesOut(long param) { - - // setting primitive attribute tracker to true - localBytesOutTracker = param != java.lang.Long.MIN_VALUE; - - this.localBytesOut = param; - } - - /** field for SlavesReplyLen */ - protected int localSlavesReplyLen; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSlavesReplyLenTracker = false; - - public boolean isSlavesReplyLenSpecified() { - return localSlavesReplyLenTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSlavesReplyLen() { - return localSlavesReplyLen; - } - - /** - * Auto generated setter method - * - * @param param SlavesReplyLen - */ - public void setSlavesReplyLen(int param) { - - // setting primitive attribute tracker to true - localSlavesReplyLenTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSlavesReplyLen = param; - } - - /** field for Failed */ - protected boolean localFailed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFailedTracker = false; - - public boolean isFailedSpecified() { - return localFailedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFailed() { - return localFailed; - } - - /** - * Auto generated setter method - * - * @param param Failed - */ - public void setFailed(boolean param) { - - // setting primitive attribute tracker to true - localFailedTracker = true; - - this.localFailed = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QueryStatsRecord", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QueryStatsRecord", - xmlWriter); - } - } - if (localStartTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartTime", xmlWriter); - - if (localStartTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartTime); - } - - xmlWriter.writeEndElement(); - } - if (localElapsedTimeMsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ElapsedTimeMs", xmlWriter); - - if (localElapsedTimeMs == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ElapsedTimeMs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localElapsedTimeMs)); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryUsedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MemoryUsed", xmlWriter); - - if (localMemoryUsed == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MemoryUsed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemoryUsed)); - } - - xmlWriter.writeEndElement(); - } - if (localBytesOutTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BytesOut", xmlWriter); - - if (localBytesOut == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BytesOut cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBytesOut)); - } - - xmlWriter.writeEndElement(); - } - if (localSlavesReplyLenTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SlavesReplyLen", xmlWriter); - - if (localSlavesReplyLen == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SlavesReplyLen cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSlavesReplyLen)); - } - - xmlWriter.writeEndElement(); - } - if (localFailedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Failed", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Failed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFailed)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QueryStatsRecord parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QueryStatsRecord object = new QueryStatsRecord(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QueryStatsRecord".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QueryStatsRecord) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ElapsedTimeMs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ElapsedTimeMs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setElapsedTimeMs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryUsed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemoryUsed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryUsed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BytesOut") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BytesOut" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBytesOut( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SlavesReplyLen") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SlavesReplyLen" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSlavesReplyLen( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Failed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Failed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFailed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QueryStatsRecord.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QueryStatsRecord bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QueryStatsRecord implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QueryStatsRecord + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for StartTime */ + protected java.lang.String localStartTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartTimeTracker = false; + + public boolean isStartTimeSpecified() { + return localStartTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartTime() { + return localStartTime; + } + + /** + * Auto generated setter method + * + * @param param StartTime + */ + public void setStartTime(java.lang.String param) { + localStartTimeTracker = param != null; + + this.localStartTime = param; + } + + /** field for ElapsedTimeMs */ + protected long localElapsedTimeMs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localElapsedTimeMsTracker = false; + + public boolean isElapsedTimeMsSpecified() { + return localElapsedTimeMsTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getElapsedTimeMs() { + return localElapsedTimeMs; + } + + /** + * Auto generated setter method + * + * @param param ElapsedTimeMs + */ + public void setElapsedTimeMs(long param) { + + // setting primitive attribute tracker to true + localElapsedTimeMsTracker = param != java.lang.Long.MIN_VALUE; + + this.localElapsedTimeMs = param; + } + + /** field for MemoryUsed */ + protected long localMemoryUsed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryUsedTracker = false; + + public boolean isMemoryUsedSpecified() { + return localMemoryUsedTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getMemoryUsed() { + return localMemoryUsed; + } + + /** + * Auto generated setter method + * + * @param param MemoryUsed + */ + public void setMemoryUsed(long param) { + + // setting primitive attribute tracker to true + localMemoryUsedTracker = param != java.lang.Long.MIN_VALUE; + + this.localMemoryUsed = param; + } + + /** field for BytesOut */ + protected long localBytesOut; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBytesOutTracker = false; + + public boolean isBytesOutSpecified() { + return localBytesOutTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getBytesOut() { + return localBytesOut; + } + + /** + * Auto generated setter method + * + * @param param BytesOut + */ + public void setBytesOut(long param) { + + // setting primitive attribute tracker to true + localBytesOutTracker = param != java.lang.Long.MIN_VALUE; + + this.localBytesOut = param; + } + + /** field for SlavesReplyLen */ + protected int localSlavesReplyLen; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSlavesReplyLenTracker = false; + + public boolean isSlavesReplyLenSpecified() { + return localSlavesReplyLenTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSlavesReplyLen() { + return localSlavesReplyLen; + } + + /** + * Auto generated setter method + * + * @param param SlavesReplyLen + */ + public void setSlavesReplyLen(int param) { + + // setting primitive attribute tracker to true + localSlavesReplyLenTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSlavesReplyLen = param; + } + + /** field for Failed */ + protected boolean localFailed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFailedTracker = false; + + public boolean isFailedSpecified() { + return localFailedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFailed() { + return localFailed; + } + + /** + * Auto generated setter method + * + * @param param Failed + */ + public void setFailed(boolean param) { + + // setting primitive attribute tracker to true + localFailedTracker = true; + + this.localFailed = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QueryStatsRecord", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QueryStatsRecord", + xmlWriter); + } + } + if (localStartTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartTime", xmlWriter); + + if (localStartTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartTime); + } + + xmlWriter.writeEndElement(); + } + if (localElapsedTimeMsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ElapsedTimeMs", xmlWriter); + + if (localElapsedTimeMs == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ElapsedTimeMs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localElapsedTimeMs)); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryUsedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MemoryUsed", xmlWriter); + + if (localMemoryUsed == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MemoryUsed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemoryUsed)); + } + + xmlWriter.writeEndElement(); + } + if (localBytesOutTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BytesOut", xmlWriter); + + if (localBytesOut == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BytesOut cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBytesOut)); + } + + xmlWriter.writeEndElement(); + } + if (localSlavesReplyLenTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SlavesReplyLen", xmlWriter); + + if (localSlavesReplyLen == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SlavesReplyLen cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSlavesReplyLen)); + } + + xmlWriter.writeEndElement(); + } + if (localFailedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Failed", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Failed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFailed)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QueryStatsRecord parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QueryStatsRecord object = new QueryStatsRecord(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QueryStatsRecord".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QueryStatsRecord) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ElapsedTimeMs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ElapsedTimeMs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setElapsedTimeMs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryUsed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemoryUsed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryUsed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BytesOut") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BytesOut" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBytesOut( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SlavesReplyLen") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SlavesReplyLen" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSlavesReplyLen( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Failed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Failed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFailed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySummaryStats.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySummaryStats.java index a0fd611dc..71169cbcc 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySummaryStats.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySummaryStats.java @@ -1,1312 +1,1312 @@ -/** - * QuerySummaryStats.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySummaryStats bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySummaryStats implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySummaryStats - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Endpoint */ - protected java.lang.String localEndpoint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndpointTracker = false; - - public boolean isEndpointSpecified() { - return localEndpointTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndpoint() { - return localEndpoint; - } - - /** - * Auto generated setter method - * - * @param param Endpoint - */ - public void setEndpoint(java.lang.String param) { - localEndpointTracker = param != null; - - this.localEndpoint = param; - } - - /** field for Status */ - protected java.lang.String localStatus; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatusTracker = false; - - public boolean isStatusSpecified() { - return localStatusTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStatus() { - return localStatus; - } - - /** - * Auto generated setter method - * - * @param param Status - */ - public void setStatus(java.lang.String param) { - localStatusTracker = param != null; - - this.localStatus = param; - } - - /** field for StartTime */ - protected java.lang.String localStartTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartTimeTracker = false; - - public boolean isStartTimeSpecified() { - return localStartTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartTime() { - return localStartTime; - } - - /** - * Auto generated setter method - * - * @param param StartTime - */ - public void setStartTime(java.lang.String param) { - localStartTimeTracker = param != null; - - this.localStartTime = param; - } - - /** field for EndTime */ - protected java.lang.String localEndTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndTimeTracker = false; - - public boolean isEndTimeSpecified() { - return localEndTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndTime() { - return localEndTime; - } - - /** - * Auto generated setter method - * - * @param param EndTime - */ - public void setEndTime(java.lang.String param) { - localEndTimeTracker = param != null; - - this.localEndTime = param; - } - - /** field for CountTotal */ - protected int localCountTotal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTotalTracker = false; - - public boolean isCountTotalSpecified() { - return localCountTotalTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCountTotal() { - return localCountTotal; - } - - /** - * Auto generated setter method - * - * @param param CountTotal - */ - public void setCountTotal(int param) { - - // setting primitive attribute tracker to true - localCountTotalTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCountTotal = param; - } - - /** field for CountFailed */ - protected int localCountFailed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountFailedTracker = false; - - public boolean isCountFailedSpecified() { - return localCountFailedTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCountFailed() { - return localCountFailed; - } - - /** - * Auto generated setter method - * - * @param param CountFailed - */ - public void setCountFailed(int param) { - - // setting primitive attribute tracker to true - localCountFailedTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCountFailed = param; - } - - /** field for AverageSlavesReplyLen */ - protected int localAverageSlavesReplyLen; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAverageSlavesReplyLenTracker = false; - - public boolean isAverageSlavesReplyLenSpecified() { - return localAverageSlavesReplyLenTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAverageSlavesReplyLen() { - return localAverageSlavesReplyLen; - } - - /** - * Auto generated setter method - * - * @param param AverageSlavesReplyLen - */ - public void setAverageSlavesReplyLen(int param) { - - // setting primitive attribute tracker to true - localAverageSlavesReplyLenTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAverageSlavesReplyLen = param; - } - - /** field for AverageBytesOut */ - protected long localAverageBytesOut; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAverageBytesOutTracker = false; - - public boolean isAverageBytesOutSpecified() { - return localAverageBytesOutTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getAverageBytesOut() { - return localAverageBytesOut; - } - - /** - * Auto generated setter method - * - * @param param AverageBytesOut - */ - public void setAverageBytesOut(long param) { - - // setting primitive attribute tracker to true - localAverageBytesOutTracker = param != java.lang.Long.MIN_VALUE; - - this.localAverageBytesOut = param; - } - - /** field for SizeAvgPeakMemory */ - protected long localSizeAvgPeakMemory; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSizeAvgPeakMemoryTracker = false; - - public boolean isSizeAvgPeakMemorySpecified() { - return localSizeAvgPeakMemoryTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getSizeAvgPeakMemory() { - return localSizeAvgPeakMemory; - } - - /** - * Auto generated setter method - * - * @param param SizeAvgPeakMemory - */ - public void setSizeAvgPeakMemory(long param) { - - // setting primitive attribute tracker to true - localSizeAvgPeakMemoryTracker = param != java.lang.Long.MIN_VALUE; - - this.localSizeAvgPeakMemory = param; - } - - /** field for TimeAvgTotalExecuteMinutes */ - protected long localTimeAvgTotalExecuteMinutes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeAvgTotalExecuteMinutesTracker = false; - - public boolean isTimeAvgTotalExecuteMinutesSpecified() { - return localTimeAvgTotalExecuteMinutesTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getTimeAvgTotalExecuteMinutes() { - return localTimeAvgTotalExecuteMinutes; - } - - /** - * Auto generated setter method - * - * @param param TimeAvgTotalExecuteMinutes - */ - public void setTimeAvgTotalExecuteMinutes(long param) { - - // setting primitive attribute tracker to true - localTimeAvgTotalExecuteMinutesTracker = param != java.lang.Long.MIN_VALUE; - - this.localTimeAvgTotalExecuteMinutes = param; - } - - /** field for TimeMinTotalExecuteMinutes */ - protected long localTimeMinTotalExecuteMinutes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeMinTotalExecuteMinutesTracker = false; - - public boolean isTimeMinTotalExecuteMinutesSpecified() { - return localTimeMinTotalExecuteMinutesTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getTimeMinTotalExecuteMinutes() { - return localTimeMinTotalExecuteMinutes; - } - - /** - * Auto generated setter method - * - * @param param TimeMinTotalExecuteMinutes - */ - public void setTimeMinTotalExecuteMinutes(long param) { - - // setting primitive attribute tracker to true - localTimeMinTotalExecuteMinutesTracker = param != java.lang.Long.MIN_VALUE; - - this.localTimeMinTotalExecuteMinutes = param; - } - - /** field for TimeMaxTotalExecuteMinutes */ - protected long localTimeMaxTotalExecuteMinutes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeMaxTotalExecuteMinutesTracker = false; - - public boolean isTimeMaxTotalExecuteMinutesSpecified() { - return localTimeMaxTotalExecuteMinutesTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getTimeMaxTotalExecuteMinutes() { - return localTimeMaxTotalExecuteMinutes; - } - - /** - * Auto generated setter method - * - * @param param TimeMaxTotalExecuteMinutes - */ - public void setTimeMaxTotalExecuteMinutes(long param) { - - // setting primitive attribute tracker to true - localTimeMaxTotalExecuteMinutesTracker = param != java.lang.Long.MIN_VALUE; - - this.localTimeMaxTotalExecuteMinutes = param; - } - - /** field for Percentile97 */ - protected long localPercentile97; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPercentile97Tracker = false; - - public boolean isPercentile97Specified() { - return localPercentile97Tracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPercentile97() { - return localPercentile97; - } - - /** - * Auto generated setter method - * - * @param param Percentile97 - */ - public void setPercentile97(long param) { - - // setting primitive attribute tracker to true - localPercentile97Tracker = param != java.lang.Long.MIN_VALUE; - - this.localPercentile97 = param; - } - - /** field for Percentile97Estimate */ - protected boolean localPercentile97Estimate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPercentile97EstimateTracker = false; - - public boolean isPercentile97EstimateSpecified() { - return localPercentile97EstimateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPercentile97Estimate() { - return localPercentile97Estimate; - } - - /** - * Auto generated setter method - * - * @param param Percentile97Estimate - */ - public void setPercentile97Estimate(boolean param) { - - // setting primitive attribute tracker to true - localPercentile97EstimateTracker = true; - - this.localPercentile97Estimate = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySummaryStats", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySummaryStats", - xmlWriter); - } - } - if (localEndpointTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Endpoint", xmlWriter); - - if (localEndpoint == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Endpoint cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndpoint); - } - - xmlWriter.writeEndElement(); - } - if (localStatusTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Status", xmlWriter); - - if (localStatus == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Status cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStatus); - } - - xmlWriter.writeEndElement(); - } - if (localStartTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartTime", xmlWriter); - - if (localStartTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartTime); - } - - xmlWriter.writeEndElement(); - } - if (localEndTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndTime", xmlWriter); - - if (localEndTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndTime); - } - - xmlWriter.writeEndElement(); - } - if (localCountTotalTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CountTotal", xmlWriter); - - if (localCountTotal == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CountTotal cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCountTotal)); - } - - xmlWriter.writeEndElement(); - } - if (localCountFailedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CountFailed", xmlWriter); - - if (localCountFailed == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CountFailed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCountFailed)); - } - - xmlWriter.writeEndElement(); - } - if (localAverageSlavesReplyLenTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AverageSlavesReplyLen", xmlWriter); - - if (localAverageSlavesReplyLen == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "AverageSlavesReplyLen cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAverageSlavesReplyLen)); - } - - xmlWriter.writeEndElement(); - } - if (localAverageBytesOutTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AverageBytesOut", xmlWriter); - - if (localAverageBytesOut == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("AverageBytesOut cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAverageBytesOut)); - } - - xmlWriter.writeEndElement(); - } - if (localSizeAvgPeakMemoryTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SizeAvgPeakMemory", xmlWriter); - - if (localSizeAvgPeakMemory == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SizeAvgPeakMemory cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSizeAvgPeakMemory)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeAvgTotalExecuteMinutesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeAvgTotalExecuteMinutes", xmlWriter); - - if (localTimeAvgTotalExecuteMinutes == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "TimeAvgTotalExecuteMinutes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTimeAvgTotalExecuteMinutes)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeMinTotalExecuteMinutesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeMinTotalExecuteMinutes", xmlWriter); - - if (localTimeMinTotalExecuteMinutes == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "TimeMinTotalExecuteMinutes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTimeMinTotalExecuteMinutes)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeMaxTotalExecuteMinutesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeMaxTotalExecuteMinutes", xmlWriter); - - if (localTimeMaxTotalExecuteMinutes == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "TimeMaxTotalExecuteMinutes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTimeMaxTotalExecuteMinutes)); - } - - xmlWriter.writeEndElement(); - } - if (localPercentile97Tracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Percentile97", xmlWriter); - - if (localPercentile97 == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Percentile97 cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPercentile97)); - } - - xmlWriter.writeEndElement(); - } - if (localPercentile97EstimateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Percentile97Estimate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "Percentile97Estimate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localPercentile97Estimate)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySummaryStats parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySummaryStats object = new QuerySummaryStats(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySummaryStats".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySummaryStats) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Endpoint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndpoint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Status") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Status" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStatus( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CountTotal") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CountTotal" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCountTotal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CountFailed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CountFailed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCountFailed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AverageSlavesReplyLen") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AverageSlavesReplyLen" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAverageSlavesReplyLen( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AverageBytesOut") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AverageBytesOut" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAverageBytesOut( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SizeAvgPeakMemory") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SizeAvgPeakMemory" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSizeAvgPeakMemory( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TimeAvgTotalExecuteMinutes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeAvgTotalExecuteMinutes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeAvgTotalExecuteMinutes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TimeMinTotalExecuteMinutes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeMinTotalExecuteMinutes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeMinTotalExecuteMinutes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TimeMaxTotalExecuteMinutes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeMaxTotalExecuteMinutes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeMaxTotalExecuteMinutes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Percentile97") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Percentile97" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPercentile97( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "Percentile97Estimate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Percentile97Estimate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPercentile97Estimate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySummaryStats.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySummaryStats bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySummaryStats implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySummaryStats + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Endpoint */ + protected java.lang.String localEndpoint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndpointTracker = false; + + public boolean isEndpointSpecified() { + return localEndpointTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndpoint() { + return localEndpoint; + } + + /** + * Auto generated setter method + * + * @param param Endpoint + */ + public void setEndpoint(java.lang.String param) { + localEndpointTracker = param != null; + + this.localEndpoint = param; + } + + /** field for Status */ + protected java.lang.String localStatus; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatusTracker = false; + + public boolean isStatusSpecified() { + return localStatusTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStatus() { + return localStatus; + } + + /** + * Auto generated setter method + * + * @param param Status + */ + public void setStatus(java.lang.String param) { + localStatusTracker = param != null; + + this.localStatus = param; + } + + /** field for StartTime */ + protected java.lang.String localStartTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartTimeTracker = false; + + public boolean isStartTimeSpecified() { + return localStartTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartTime() { + return localStartTime; + } + + /** + * Auto generated setter method + * + * @param param StartTime + */ + public void setStartTime(java.lang.String param) { + localStartTimeTracker = param != null; + + this.localStartTime = param; + } + + /** field for EndTime */ + protected java.lang.String localEndTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndTimeTracker = false; + + public boolean isEndTimeSpecified() { + return localEndTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndTime() { + return localEndTime; + } + + /** + * Auto generated setter method + * + * @param param EndTime + */ + public void setEndTime(java.lang.String param) { + localEndTimeTracker = param != null; + + this.localEndTime = param; + } + + /** field for CountTotal */ + protected int localCountTotal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTotalTracker = false; + + public boolean isCountTotalSpecified() { + return localCountTotalTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCountTotal() { + return localCountTotal; + } + + /** + * Auto generated setter method + * + * @param param CountTotal + */ + public void setCountTotal(int param) { + + // setting primitive attribute tracker to true + localCountTotalTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCountTotal = param; + } + + /** field for CountFailed */ + protected int localCountFailed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountFailedTracker = false; + + public boolean isCountFailedSpecified() { + return localCountFailedTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCountFailed() { + return localCountFailed; + } + + /** + * Auto generated setter method + * + * @param param CountFailed + */ + public void setCountFailed(int param) { + + // setting primitive attribute tracker to true + localCountFailedTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCountFailed = param; + } + + /** field for AverageSlavesReplyLen */ + protected int localAverageSlavesReplyLen; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAverageSlavesReplyLenTracker = false; + + public boolean isAverageSlavesReplyLenSpecified() { + return localAverageSlavesReplyLenTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAverageSlavesReplyLen() { + return localAverageSlavesReplyLen; + } + + /** + * Auto generated setter method + * + * @param param AverageSlavesReplyLen + */ + public void setAverageSlavesReplyLen(int param) { + + // setting primitive attribute tracker to true + localAverageSlavesReplyLenTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAverageSlavesReplyLen = param; + } + + /** field for AverageBytesOut */ + protected long localAverageBytesOut; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAverageBytesOutTracker = false; + + public boolean isAverageBytesOutSpecified() { + return localAverageBytesOutTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getAverageBytesOut() { + return localAverageBytesOut; + } + + /** + * Auto generated setter method + * + * @param param AverageBytesOut + */ + public void setAverageBytesOut(long param) { + + // setting primitive attribute tracker to true + localAverageBytesOutTracker = param != java.lang.Long.MIN_VALUE; + + this.localAverageBytesOut = param; + } + + /** field for SizeAvgPeakMemory */ + protected long localSizeAvgPeakMemory; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSizeAvgPeakMemoryTracker = false; + + public boolean isSizeAvgPeakMemorySpecified() { + return localSizeAvgPeakMemoryTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getSizeAvgPeakMemory() { + return localSizeAvgPeakMemory; + } + + /** + * Auto generated setter method + * + * @param param SizeAvgPeakMemory + */ + public void setSizeAvgPeakMemory(long param) { + + // setting primitive attribute tracker to true + localSizeAvgPeakMemoryTracker = param != java.lang.Long.MIN_VALUE; + + this.localSizeAvgPeakMemory = param; + } + + /** field for TimeAvgTotalExecuteMinutes */ + protected long localTimeAvgTotalExecuteMinutes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeAvgTotalExecuteMinutesTracker = false; + + public boolean isTimeAvgTotalExecuteMinutesSpecified() { + return localTimeAvgTotalExecuteMinutesTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getTimeAvgTotalExecuteMinutes() { + return localTimeAvgTotalExecuteMinutes; + } + + /** + * Auto generated setter method + * + * @param param TimeAvgTotalExecuteMinutes + */ + public void setTimeAvgTotalExecuteMinutes(long param) { + + // setting primitive attribute tracker to true + localTimeAvgTotalExecuteMinutesTracker = param != java.lang.Long.MIN_VALUE; + + this.localTimeAvgTotalExecuteMinutes = param; + } + + /** field for TimeMinTotalExecuteMinutes */ + protected long localTimeMinTotalExecuteMinutes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeMinTotalExecuteMinutesTracker = false; + + public boolean isTimeMinTotalExecuteMinutesSpecified() { + return localTimeMinTotalExecuteMinutesTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getTimeMinTotalExecuteMinutes() { + return localTimeMinTotalExecuteMinutes; + } + + /** + * Auto generated setter method + * + * @param param TimeMinTotalExecuteMinutes + */ + public void setTimeMinTotalExecuteMinutes(long param) { + + // setting primitive attribute tracker to true + localTimeMinTotalExecuteMinutesTracker = param != java.lang.Long.MIN_VALUE; + + this.localTimeMinTotalExecuteMinutes = param; + } + + /** field for TimeMaxTotalExecuteMinutes */ + protected long localTimeMaxTotalExecuteMinutes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeMaxTotalExecuteMinutesTracker = false; + + public boolean isTimeMaxTotalExecuteMinutesSpecified() { + return localTimeMaxTotalExecuteMinutesTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getTimeMaxTotalExecuteMinutes() { + return localTimeMaxTotalExecuteMinutes; + } + + /** + * Auto generated setter method + * + * @param param TimeMaxTotalExecuteMinutes + */ + public void setTimeMaxTotalExecuteMinutes(long param) { + + // setting primitive attribute tracker to true + localTimeMaxTotalExecuteMinutesTracker = param != java.lang.Long.MIN_VALUE; + + this.localTimeMaxTotalExecuteMinutes = param; + } + + /** field for Percentile97 */ + protected long localPercentile97; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPercentile97Tracker = false; + + public boolean isPercentile97Specified() { + return localPercentile97Tracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPercentile97() { + return localPercentile97; + } + + /** + * Auto generated setter method + * + * @param param Percentile97 + */ + public void setPercentile97(long param) { + + // setting primitive attribute tracker to true + localPercentile97Tracker = param != java.lang.Long.MIN_VALUE; + + this.localPercentile97 = param; + } + + /** field for Percentile97Estimate */ + protected boolean localPercentile97Estimate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPercentile97EstimateTracker = false; + + public boolean isPercentile97EstimateSpecified() { + return localPercentile97EstimateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPercentile97Estimate() { + return localPercentile97Estimate; + } + + /** + * Auto generated setter method + * + * @param param Percentile97Estimate + */ + public void setPercentile97Estimate(boolean param) { + + // setting primitive attribute tracker to true + localPercentile97EstimateTracker = true; + + this.localPercentile97Estimate = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySummaryStats", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySummaryStats", + xmlWriter); + } + } + if (localEndpointTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Endpoint", xmlWriter); + + if (localEndpoint == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Endpoint cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndpoint); + } + + xmlWriter.writeEndElement(); + } + if (localStatusTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Status", xmlWriter); + + if (localStatus == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Status cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStatus); + } + + xmlWriter.writeEndElement(); + } + if (localStartTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartTime", xmlWriter); + + if (localStartTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartTime); + } + + xmlWriter.writeEndElement(); + } + if (localEndTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndTime", xmlWriter); + + if (localEndTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndTime); + } + + xmlWriter.writeEndElement(); + } + if (localCountTotalTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CountTotal", xmlWriter); + + if (localCountTotal == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CountTotal cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCountTotal)); + } + + xmlWriter.writeEndElement(); + } + if (localCountFailedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CountFailed", xmlWriter); + + if (localCountFailed == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CountFailed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCountFailed)); + } + + xmlWriter.writeEndElement(); + } + if (localAverageSlavesReplyLenTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AverageSlavesReplyLen", xmlWriter); + + if (localAverageSlavesReplyLen == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "AverageSlavesReplyLen cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAverageSlavesReplyLen)); + } + + xmlWriter.writeEndElement(); + } + if (localAverageBytesOutTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AverageBytesOut", xmlWriter); + + if (localAverageBytesOut == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("AverageBytesOut cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAverageBytesOut)); + } + + xmlWriter.writeEndElement(); + } + if (localSizeAvgPeakMemoryTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SizeAvgPeakMemory", xmlWriter); + + if (localSizeAvgPeakMemory == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SizeAvgPeakMemory cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSizeAvgPeakMemory)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeAvgTotalExecuteMinutesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeAvgTotalExecuteMinutes", xmlWriter); + + if (localTimeAvgTotalExecuteMinutes == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "TimeAvgTotalExecuteMinutes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTimeAvgTotalExecuteMinutes)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeMinTotalExecuteMinutesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeMinTotalExecuteMinutes", xmlWriter); + + if (localTimeMinTotalExecuteMinutes == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "TimeMinTotalExecuteMinutes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTimeMinTotalExecuteMinutes)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeMaxTotalExecuteMinutesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeMaxTotalExecuteMinutes", xmlWriter); + + if (localTimeMaxTotalExecuteMinutes == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "TimeMaxTotalExecuteMinutes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTimeMaxTotalExecuteMinutes)); + } + + xmlWriter.writeEndElement(); + } + if (localPercentile97Tracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Percentile97", xmlWriter); + + if (localPercentile97 == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Percentile97 cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPercentile97)); + } + + xmlWriter.writeEndElement(); + } + if (localPercentile97EstimateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Percentile97Estimate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "Percentile97Estimate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localPercentile97Estimate)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySummaryStats parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySummaryStats object = new QuerySummaryStats(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySummaryStats".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySummaryStats) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Endpoint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndpoint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Status") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Status" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStatus( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CountTotal") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CountTotal" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCountTotal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CountFailed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CountFailed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCountFailed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AverageSlavesReplyLen") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AverageSlavesReplyLen" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAverageSlavesReplyLen( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AverageBytesOut") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AverageBytesOut" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAverageBytesOut( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SizeAvgPeakMemory") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SizeAvgPeakMemory" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSizeAvgPeakMemory( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TimeAvgTotalExecuteMinutes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeAvgTotalExecuteMinutes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeAvgTotalExecuteMinutes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TimeMinTotalExecuteMinutes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeMinTotalExecuteMinutes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeMinTotalExecuteMinutes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TimeMaxTotalExecuteMinutes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeMaxTotalExecuteMinutes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeMaxTotalExecuteMinutes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Percentile97") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Percentile97" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPercentile97( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "Percentile97Estimate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Percentile97Estimate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPercentile97Estimate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySuperFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySuperFile.java index 03be8c886..ba5499a8f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySuperFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerySuperFile.java @@ -1,504 +1,504 @@ -/** - * QuerySuperFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerySuperFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerySuperFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QuerySuperFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for SubFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0 localSubFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubFilesTracker = false; - - public boolean isSubFilesSpecified() { - return localSubFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0 getSubFiles() { - return localSubFiles; - } - - /** - * Auto generated setter method - * - * @param param SubFiles - */ - public void setSubFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0 param) { - localSubFilesTracker = param != null; - - this.localSubFiles = param; - } - - /** field for SuperFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0 localSuperFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperFilesTracker = false; - - public boolean isSuperFilesSpecified() { - return localSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0 getSuperFiles() { - return localSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param SuperFiles - */ - public void setSuperFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0 param) { - localSuperFilesTracker = param != null; - - this.localSuperFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerySuperFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerySuperFile", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localSubFilesTracker) { - if (localSubFiles == null) { - throw new org.apache.axis2.databinding.ADBException("SubFiles cannot be null!!"); - } - localSubFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubFiles"), xmlWriter); - } - if (localSuperFilesTracker) { - if (localSuperFiles == null) { - throw new org.apache.axis2.databinding.ADBException("SuperFiles cannot be null!!"); - } - localSuperFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerySuperFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerySuperFile object = new QuerySuperFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QuerySuperFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QuerySuperFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubFiles") - .equals(reader.getName())) { - - object.setSubFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles") - .equals(reader.getName())) { - - object.setSuperFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerySuperFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerySuperFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerySuperFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QuerySuperFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for SubFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0 localSubFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubFilesTracker = false; + + public boolean isSubFilesSpecified() { + return localSubFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0 getSubFiles() { + return localSubFiles; + } + + /** + * Auto generated setter method + * + * @param param SubFiles + */ + public void setSubFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0 param) { + localSubFilesTracker = param != null; + + this.localSubFiles = param; + } + + /** field for SuperFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0 localSuperFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperFilesTracker = false; + + public boolean isSuperFilesSpecified() { + return localSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0 getSuperFiles() { + return localSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param SuperFiles + */ + public void setSuperFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0 param) { + localSuperFilesTracker = param != null; + + this.localSuperFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerySuperFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerySuperFile", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localSubFilesTracker) { + if (localSubFiles == null) { + throw new org.apache.axis2.databinding.ADBException("SubFiles cannot be null!!"); + } + localSubFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubFiles"), xmlWriter); + } + if (localSuperFilesTracker) { + if (localSuperFiles == null) { + throw new org.apache.axis2.databinding.ADBException("SuperFiles cannot be null!!"); + } + localSuperFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerySuperFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerySuperFile object = new QuerySuperFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QuerySuperFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QuerySuperFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubFiles") + .equals(reader.getName())) { + + object.setSubFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SubFiles_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles") + .equals(reader.getName())) { + + object.setSuperFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryUsingFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryUsingFile.java index 5997f60db..d4996d228 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryUsingFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QueryUsingFile.java @@ -1,468 +1,468 @@ -/** - * QueryUsingFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QueryUsingFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QueryUsingFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = QueryUsingFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Id */ - protected java.lang.String localId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIdTracker = false; - - public boolean isIdSpecified() { - return localIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getId() { - return localId; - } - - /** - * Auto generated setter method - * - * @param param Id - */ - public void setId(java.lang.String param) { - localIdTracker = param != null; - - this.localId = param; - } - - /** field for Package */ - protected java.lang.String localPackage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPackageTracker = false; - - public boolean isPackageSpecified() { - return localPackageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPackage() { - return localPackage; - } - - /** - * Auto generated setter method - * - * @param param Package - */ - public void setPackage(java.lang.String param) { - localPackageTracker = param != null; - - this.localPackage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QueryUsingFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QueryUsingFile", - xmlWriter); - } - } - if (localIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Id", xmlWriter); - - 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 (localPackageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Package", xmlWriter); - - if (localPackage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Package cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPackage); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QueryUsingFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QueryUsingFile object = new QueryUsingFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"QueryUsingFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (QueryUsingFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Id") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Id" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Package") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Package" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPackage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QueryUsingFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QueryUsingFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QueryUsingFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = QueryUsingFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Id */ + protected java.lang.String localId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIdTracker = false; + + public boolean isIdSpecified() { + return localIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getId() { + return localId; + } + + /** + * Auto generated setter method + * + * @param param Id + */ + public void setId(java.lang.String param) { + localIdTracker = param != null; + + this.localId = param; + } + + /** field for Package */ + protected java.lang.String localPackage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPackageTracker = false; + + public boolean isPackageSpecified() { + return localPackageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPackage() { + return localPackage; + } + + /** + * Auto generated setter method + * + * @param param Package + */ + public void setPackage(java.lang.String param) { + localPackageTracker = param != null; + + this.localPackage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QueryUsingFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QueryUsingFile", + xmlWriter); + } + } + if (localIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Id", xmlWriter); + + 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 (localPackageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Package", xmlWriter); + + if (localPackage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Package cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPackage); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QueryUsingFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QueryUsingFile object = new QueryUsingFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"QueryUsingFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (QueryUsingFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Id") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Id" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Package") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Package" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPackage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerysetImportActivation.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerysetImportActivation.java index 530cef522..d1f58f7f9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerysetImportActivation.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/QuerysetImportActivation.java @@ -1,413 +1,413 @@ -/** - * QuerysetImportActivation.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** QuerysetImportActivation bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class QuerysetImportActivation implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QuerysetImportActivation", "ns1"); - - /** field for QuerysetImportActivation */ - protected java.lang.String localQuerysetImportActivation; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected QuerysetImportActivation(java.lang.String value, boolean isRegisterValue) { - localQuerysetImportActivation = value; - if (isRegisterValue) { - - _table_.put(localQuerysetImportActivation, this); - } - } - - public static final java.lang.String _None = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("None"); - - public static final java.lang.String _ActivateImportedActive = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ActivateImportedActive"); - - public static final QuerysetImportActivation None = new QuerysetImportActivation(_None, true); - - public static final QuerysetImportActivation ActivateImportedActive = - new QuerysetImportActivation(_ActivateImportedActive, true); - - public java.lang.String getValue() { - return localQuerysetImportActivation; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localQuerysetImportActivation.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":QuerysetImportActivation", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "QuerysetImportActivation", - xmlWriter); - } - } - - if (localQuerysetImportActivation == null) { - - throw new org.apache.axis2.databinding.ADBException( - "QuerysetImportActivation cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localQuerysetImportActivation); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static QuerysetImportActivation fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - QuerysetImportActivation enumeration = (QuerysetImportActivation) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static QuerysetImportActivation fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static QuerysetImportActivation fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return QuerysetImportActivation.Factory.fromString(content, namespaceUri); - } else { - return QuerysetImportActivation.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static QuerysetImportActivation parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - QuerysetImportActivation object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerysetImportActivation" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = QuerysetImportActivation.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = QuerysetImportActivation.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * QuerysetImportActivation.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** QuerysetImportActivation bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class QuerysetImportActivation implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QuerysetImportActivation", "ns1"); + + /** field for QuerysetImportActivation */ + protected java.lang.String localQuerysetImportActivation; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected QuerysetImportActivation(java.lang.String value, boolean isRegisterValue) { + localQuerysetImportActivation = value; + if (isRegisterValue) { + + _table_.put(localQuerysetImportActivation, this); + } + } + + public static final java.lang.String _None = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("None"); + + public static final java.lang.String _ActivateImportedActive = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("ActivateImportedActive"); + + public static final QuerysetImportActivation None = new QuerysetImportActivation(_None, true); + + public static final QuerysetImportActivation ActivateImportedActive = + new QuerysetImportActivation(_ActivateImportedActive, true); + + public java.lang.String getValue() { + return localQuerysetImportActivation; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localQuerysetImportActivation.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":QuerysetImportActivation", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "QuerysetImportActivation", + xmlWriter); + } + } + + if (localQuerysetImportActivation == null) { + + throw new org.apache.axis2.databinding.ADBException( + "QuerysetImportActivation cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localQuerysetImportActivation); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static QuerysetImportActivation fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + QuerysetImportActivation enumeration = (QuerysetImportActivation) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static QuerysetImportActivation fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static QuerysetImportActivation fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return QuerysetImportActivation.Factory.fromString(content, namespaceUri); + } else { + return QuerysetImportActivation.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static QuerysetImportActivation parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + QuerysetImportActivation object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerysetImportActivation" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = QuerysetImportActivation.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = QuerysetImportActivation.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResourceURLs_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResourceURLs_type0.java index d4a704ebe..8834fc714 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResourceURLs_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResourceURLs_type0.java @@ -1,452 +1,452 @@ -/** - * ResourceURLs_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ResourceURLs_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ResourceURLs_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ResourceURLs_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for URL This was an Array! */ - protected java.lang.String[] localURL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localURLTracker = false; - - public boolean isURLSpecified() { - return localURLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getURL() { - return localURL; - } - - /** validate the array for URL */ - protected void validateURL(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param URL - */ - public void setURL(java.lang.String[] param) { - - validateURL(param); - - localURLTracker = param != null; - - this.localURL = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addURL(java.lang.String param) { - if (localURL == null) { - localURL = new java.lang.String[] {}; - } - - // update the setting tracker - localURLTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localURL); - list.add(param); - this.localURL = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ResourceURLs_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ResourceURLs_type0", - xmlWriter); - } - } - if (localURLTracker) { - if (localURL != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localURL.length; i++) { - - if (localURL[i] != null) { - - writeStartElement(null, namespace, "URL", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localURL[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("URL cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ResourceURLs_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ResourceURLs_type0 object = new ResourceURLs_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ResourceURLs_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ResourceURLs_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "URL") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "URL") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setURL((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ResourceURLs_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ResourceURLs_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ResourceURLs_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ResourceURLs_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for URL This was an Array! */ + protected java.lang.String[] localURL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localURLTracker = false; + + public boolean isURLSpecified() { + return localURLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getURL() { + return localURL; + } + + /** validate the array for URL */ + protected void validateURL(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param URL + */ + public void setURL(java.lang.String[] param) { + + validateURL(param); + + localURLTracker = param != null; + + this.localURL = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addURL(java.lang.String param) { + if (localURL == null) { + localURL = new java.lang.String[] {}; + } + + // update the setting tracker + localURLTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localURL); + list.add(param); + this.localURL = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ResourceURLs_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ResourceURLs_type0", + xmlWriter); + } + } + if (localURLTracker) { + if (localURL != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localURL.length; i++) { + + if (localURL[i] != null) { + + writeStartElement(null, namespace, "URL", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localURL[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("URL cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ResourceURLs_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ResourceURLs_type0 object = new ResourceURLs_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ResourceURLs_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ResourceURLs_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "URL") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "URL") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setURL((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResubmittedWU.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResubmittedWU.java index b0d25e22a..2bd3e380a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResubmittedWU.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResubmittedWU.java @@ -1,464 +1,464 @@ -/** - * ResubmittedWU.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ResubmittedWU bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ResubmittedWU implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ResubmittedWU - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for ParentWUID */ - protected java.lang.String localParentWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localParentWUIDTracker = false; - - public boolean isParentWUIDSpecified() { - return localParentWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getParentWUID() { - return localParentWUID; - } - - /** - * Auto generated setter method - * - * @param param ParentWUID - */ - public void setParentWUID(java.lang.String param) { - localParentWUIDTracker = param != null; - - this.localParentWUID = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ResubmittedWU", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ResubmittedWU", xmlWriter); - } - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localParentWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ParentWUID", xmlWriter); - - if (localParentWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ParentWUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localParentWUID); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ResubmittedWU parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ResubmittedWU object = new ResubmittedWU(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ResubmittedWU".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ResubmittedWU) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ParentWUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ParentWUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setParentWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ResubmittedWU.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ResubmittedWU bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ResubmittedWU implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ResubmittedWU + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for ParentWUID */ + protected java.lang.String localParentWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localParentWUIDTracker = false; + + public boolean isParentWUIDSpecified() { + return localParentWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getParentWUID() { + return localParentWUID; + } + + /** + * Auto generated setter method + * + * @param param ParentWUID + */ + public void setParentWUID(java.lang.String param) { + localParentWUIDTracker = param != null; + + this.localParentWUID = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ResubmittedWU", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ResubmittedWU", xmlWriter); + } + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localParentWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ParentWUID", xmlWriter); + + if (localParentWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ParentWUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localParentWUID); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ResubmittedWU parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ResubmittedWU object = new ResubmittedWU(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ResubmittedWU".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ResubmittedWU) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ParentWUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ParentWUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setParentWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResultViews_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResultViews_type0.java index 1b3cb93e6..a4d8c4d8d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResultViews_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ResultViews_type0.java @@ -1,452 +1,452 @@ -/** - * ResultViews_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ResultViews_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ResultViews_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ResultViews_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for View This was an Array! */ - protected java.lang.String[] localView; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localViewTracker = false; - - public boolean isViewSpecified() { - return localViewTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getView() { - return localView; - } - - /** validate the array for View */ - protected void validateView(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param View - */ - public void setView(java.lang.String[] param) { - - validateView(param); - - localViewTracker = param != null; - - this.localView = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addView(java.lang.String param) { - if (localView == null) { - localView = new java.lang.String[] {}; - } - - // update the setting tracker - localViewTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localView); - list.add(param); - this.localView = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ResultViews_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ResultViews_type0", - xmlWriter); - } - } - if (localViewTracker) { - if (localView != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localView.length; i++) { - - if (localView[i] != null) { - - writeStartElement(null, namespace, "View", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localView[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("View cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ResultViews_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ResultViews_type0 object = new ResultViews_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ResultViews_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ResultViews_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "View") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "View") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setView((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ResultViews_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ResultViews_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ResultViews_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ResultViews_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for View This was an Array! */ + protected java.lang.String[] localView; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localViewTracker = false; + + public boolean isViewSpecified() { + return localViewTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getView() { + return localView; + } + + /** validate the array for View */ + protected void validateView(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param View + */ + public void setView(java.lang.String[] param) { + + validateView(param); + + localViewTracker = param != null; + + this.localView = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addView(java.lang.String param) { + if (localView == null) { + localView = new java.lang.String[] {}; + } + + // update the setting tracker + localViewTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localView); + list.add(param); + this.localView = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ResultViews_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ResultViews_type0", + xmlWriter); + } + } + if (localViewTracker) { + if (localView != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localView.length; i++) { + + if (localView[i] != null) { + + writeStartElement(null, namespace, "View", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localView[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("View cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ResultViews_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ResultViews_type0 object = new ResultViews_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ResultViews_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ResultViews_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "View") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "View") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setView((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type0.java index 46f052679..f8eb34c33 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type0.java @@ -1,458 +1,458 @@ -/** - * Results_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Results_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Results_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Results_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Result This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] - localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] - getResult() { - return localResult; - } - - /** validate the array for Result */ - protected void validateResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] param) {} - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] param) { - - validateResult(param); - - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult - */ - public void addResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult param) { - if (localResult == null) { - localResult = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] {}; - } - - // update the setting tracker - localResultTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localResult); - list.add(param); - this.localResult = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Results_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Results_type0", xmlWriter); - } - } - if (localResultTracker) { - if (localResult != null) { - for (int i = 0; i < localResult.length; i++) { - if (localResult[i] != null) { - localResult[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Results_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Results_type0 object = new Results_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Results_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Results_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult - .Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setResult( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .QuerySetQueryActionResult.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Results_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Results_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Results_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Results_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Result This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] + localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] + getResult() { + return localResult; + } + + /** validate the array for Result */ + protected void validateResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] param) {} + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] param) { + + validateResult(param); + + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult + */ + public void addResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult param) { + if (localResult == null) { + localResult = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[] {}; + } + + // update the setting tracker + localResultTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localResult); + list.add(param); + this.localResult = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Results_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Results_type0", xmlWriter); + } + } + if (localResultTracker) { + if (localResult != null) { + for (int i = 0; i < localResult.length; i++) { + if (localResult[i] != null) { + localResult[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Results_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Results_type0 object = new Results_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Results_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Results_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult + .Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setResult( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionResult[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .QuerySetQueryActionResult.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type1.java index 65aba5db3..994115e20 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type1.java @@ -1,458 +1,458 @@ -/** - * Results_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Results_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Results_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Results_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Result This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] - localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] - getResult() { - return localResult; - } - - /** validate the array for Result */ - protected void validateResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] param) {} - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] param) { - - validateResult(param); - - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult - */ - public void addResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult param) { - if (localResult == null) { - localResult = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] {}; - } - - // update the setting tracker - localResultTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localResult); - list.add(param); - this.localResult = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Results_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Results_type1", xmlWriter); - } - } - if (localResultTracker) { - if (localResult != null) { - for (int i = 0; i < localResult.length; i++) { - if (localResult[i] != null) { - localResult[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Results_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Results_type1 object = new Results_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Results_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Results_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult - .Factory.parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setResult( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .QuerySetAliasActionResult.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Results_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Results_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Results_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Results_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Result This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] + localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] + getResult() { + return localResult; + } + + /** validate the array for Result */ + protected void validateResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] param) {} + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] param) { + + validateResult(param); + + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult + */ + public void addResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult param) { + if (localResult == null) { + localResult = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[] {}; + } + + // update the setting tracker + localResultTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localResult); + list.add(param); + this.localResult = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Results_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Results_type1", xmlWriter); + } + } + if (localResultTracker) { + if (localResult != null) { + for (int i = 0; i < localResult.length; i++) { + if (localResult[i] != null) { + localResult[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Results_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Results_type1 object = new Results_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Results_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Results_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult + .Factory.parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setResult( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionResult[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .QuerySetAliasActionResult.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type2.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type2.java index a9e40af7d..f55f6e77f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type2.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Results_type2.java @@ -1,457 +1,457 @@ -/** - * Results_type2.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Results_type2 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Results_type2 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Results_type2 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Result This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] - localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] getResult() { - return localResult; - } - - /** validate the array for Result */ - protected void validateResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] param) {} - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] param) { - - validateResult(param); - - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult - */ - public void addResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult param) { - if (localResult == null) { - localResult = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] {}; - } - - // update the setting tracker - localResultTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localResult); - list.add(param); - this.localResult = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Results_type2", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Results_type2", xmlWriter); - } - } - if (localResultTracker) { - if (localResult != null) { - for (int i = 0; i < localResult.length; i++) { - if (localResult[i] != null) { - localResult[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Results_type2 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Results_type2 object = new Results_type2(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Results_type2".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Results_type2) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult.Factory - .parse(reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult - .Factory.parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setResult( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult - .class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Results_type2.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Results_type2 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Results_type2 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Results_type2 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Result This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] + localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] getResult() { + return localResult; + } + + /** validate the array for Result */ + protected void validateResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] param) {} + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] param) { + + validateResult(param); + + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult + */ + public void addResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult param) { + if (localResult == null) { + localResult = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[] {}; + } + + // update the setting tracker + localResultTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localResult); + list.add(param); + this.localResult = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Results_type2", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Results_type2", xmlWriter); + } + } + if (localResultTracker) { + if (localResult != null) { + for (int i = 0; i < localResult.length; i++) { + if (localResult[i] != null) { + localResult[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Results_type2 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Results_type2 object = new Results_type2(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Results_type2".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Results_type2) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult.Factory + .parse(reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult + .Factory.parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setResult( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResult + .class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScheduledWU.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScheduledWU.java index 435a94855..18d4941e8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScheduledWU.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScheduledWU.java @@ -1,879 +1,879 @@ -/** - * ScheduledWU.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ScheduledWU bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ScheduledWU implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ScheduledWU - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for EventName */ - protected java.lang.String localEventName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventNameTracker = false; - - public boolean isEventNameSpecified() { - return localEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventName() { - return localEventName; - } - - /** - * Auto generated setter method - * - * @param param EventName - */ - public void setEventName(java.lang.String param) { - localEventNameTracker = param != null; - - this.localEventName = param; - } - - /** field for EventText */ - protected java.lang.String localEventText = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventTextTracker = false; - - public boolean isEventTextSpecified() { - return localEventTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventText() { - return localEventText; - } - - /** - * Auto generated setter method - * - * @param param EventText - */ - public void setEventText(java.lang.String param) { - localEventTextTracker = param != null; - - this.localEventText = param; - } - - /** field for JobName */ - protected java.lang.String localJobName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobNameTracker = false; - - public boolean isJobNameSpecified() { - return localJobNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobName() { - return localJobName; - } - - /** - * Auto generated setter method - * - * @param param JobName - */ - public void setJobName(java.lang.String param) { - localJobNameTracker = param != null; - - this.localJobName = param; - } - - /** field for StateID */ - protected int localStateID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateIDTracker = false; - - public boolean isStateIDSpecified() { - return localStateIDTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getStateID() { - return localStateID; - } - - /** - * Auto generated setter method - * - * @param param StateID - */ - public void setStateID(int param) { - - // setting primitive attribute tracker to true - localStateIDTracker = param != java.lang.Integer.MIN_VALUE; - - this.localStateID = param; - } - - /** field for State */ - protected java.lang.String localState = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for Owner */ - protected java.lang.String localOwner = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ScheduledWU", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ScheduledWU", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localEventNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventName", xmlWriter); - - if (localEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventName); - } - - xmlWriter.writeEndElement(); - } - if (localEventTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventText", xmlWriter); - - if (localEventText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventText); - } - - xmlWriter.writeEndElement(); - } - if (localJobNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "JobName", xmlWriter); - - if (localJobName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobName); - } - - xmlWriter.writeEndElement(); - } - if (localStateIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StateID", xmlWriter); - - if (localStateID == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("StateID cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateID)); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ScheduledWU parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ScheduledWU object = new ScheduledWU(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ScheduledWU".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ScheduledWU) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ScheduledWU.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ScheduledWU bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ScheduledWU implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ScheduledWU + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for EventName */ + protected java.lang.String localEventName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventNameTracker = false; + + public boolean isEventNameSpecified() { + return localEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventName() { + return localEventName; + } + + /** + * Auto generated setter method + * + * @param param EventName + */ + public void setEventName(java.lang.String param) { + localEventNameTracker = param != null; + + this.localEventName = param; + } + + /** field for EventText */ + protected java.lang.String localEventText = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventTextTracker = false; + + public boolean isEventTextSpecified() { + return localEventTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventText() { + return localEventText; + } + + /** + * Auto generated setter method + * + * @param param EventText + */ + public void setEventText(java.lang.String param) { + localEventTextTracker = param != null; + + this.localEventText = param; + } + + /** field for JobName */ + protected java.lang.String localJobName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobNameTracker = false; + + public boolean isJobNameSpecified() { + return localJobNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobName() { + return localJobName; + } + + /** + * Auto generated setter method + * + * @param param JobName + */ + public void setJobName(java.lang.String param) { + localJobNameTracker = param != null; + + this.localJobName = param; + } + + /** field for StateID */ + protected int localStateID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateIDTracker = false; + + public boolean isStateIDSpecified() { + return localStateIDTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getStateID() { + return localStateID; + } + + /** + * Auto generated setter method + * + * @param param StateID + */ + public void setStateID(int param) { + + // setting primitive attribute tracker to true + localStateIDTracker = param != java.lang.Integer.MIN_VALUE; + + this.localStateID = param; + } + + /** field for State */ + protected java.lang.String localState = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for Owner */ + protected java.lang.String localOwner = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ScheduledWU", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ScheduledWU", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localEventNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventName", xmlWriter); + + if (localEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventName); + } + + xmlWriter.writeEndElement(); + } + if (localEventTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventText", xmlWriter); + + if (localEventText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventText); + } + + xmlWriter.writeEndElement(); + } + if (localJobNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "JobName", xmlWriter); + + if (localJobName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobName); + } + + xmlWriter.writeEndElement(); + } + if (localStateIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StateID", xmlWriter); + + if (localStateID == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("StateID cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateID)); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ScheduledWU parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ScheduledWU object = new ScheduledWU(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ScheduledWU".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ScheduledWU) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type0.java index 2202884ae..7f414f067 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type0.java @@ -1,454 +1,454 @@ -/** - * ScopeTypes_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ScopeTypes_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ScopeTypes_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ScopeTypes_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ScopeType This was an Array! */ - protected java.lang.String[] localScopeType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypeTracker = false; - - public boolean isScopeTypeSpecified() { - return localScopeTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getScopeType() { - return localScopeType; - } - - /** validate the array for ScopeType */ - protected void validateScopeType(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param ScopeType - */ - public void setScopeType(java.lang.String[] param) { - - validateScopeType(param); - - localScopeTypeTracker = param != null; - - this.localScopeType = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addScopeType(java.lang.String param) { - if (localScopeType == null) { - localScopeType = new java.lang.String[] {}; - } - - // update the setting tracker - localScopeTypeTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScopeType); - list.add(param); - this.localScopeType = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ScopeTypes_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ScopeTypes_type0", - xmlWriter); - } - } - if (localScopeTypeTracker) { - if (localScopeType != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localScopeType.length; i++) { - - if (localScopeType[i] != null) { - - writeStartElement(null, namespace, "ScopeType", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localScopeType[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ScopeTypes_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ScopeTypes_type0 object = new ScopeTypes_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ScopeTypes_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ScopeTypes_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setScopeType( - (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ScopeTypes_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ScopeTypes_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ScopeTypes_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ScopeTypes_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ScopeType This was an Array! */ + protected java.lang.String[] localScopeType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypeTracker = false; + + public boolean isScopeTypeSpecified() { + return localScopeTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getScopeType() { + return localScopeType; + } + + /** validate the array for ScopeType */ + protected void validateScopeType(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param ScopeType + */ + public void setScopeType(java.lang.String[] param) { + + validateScopeType(param); + + localScopeTypeTracker = param != null; + + this.localScopeType = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addScopeType(java.lang.String param) { + if (localScopeType == null) { + localScopeType = new java.lang.String[] {}; + } + + // update the setting tracker + localScopeTypeTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScopeType); + list.add(param); + this.localScopeType = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ScopeTypes_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ScopeTypes_type0", + xmlWriter); + } + } + if (localScopeTypeTracker) { + if (localScopeType != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localScopeType.length; i++) { + + if (localScopeType[i] != null) { + + writeStartElement(null, namespace, "ScopeType", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localScopeType[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ScopeTypes_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ScopeTypes_type0 object = new ScopeTypes_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ScopeTypes_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ScopeTypes_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setScopeType( + (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type1.java index 25f9d377c..ce374ec5d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type1.java @@ -1,454 +1,454 @@ -/** - * ScopeTypes_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ScopeTypes_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ScopeTypes_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ScopeTypes_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ScopeType This was an Array! */ - protected java.lang.String[] localScopeType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypeTracker = false; - - public boolean isScopeTypeSpecified() { - return localScopeTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getScopeType() { - return localScopeType; - } - - /** validate the array for ScopeType */ - protected void validateScopeType(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param ScopeType - */ - public void setScopeType(java.lang.String[] param) { - - validateScopeType(param); - - localScopeTypeTracker = param != null; - - this.localScopeType = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addScopeType(java.lang.String param) { - if (localScopeType == null) { - localScopeType = new java.lang.String[] {}; - } - - // update the setting tracker - localScopeTypeTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScopeType); - list.add(param); - this.localScopeType = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ScopeTypes_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ScopeTypes_type1", - xmlWriter); - } - } - if (localScopeTypeTracker) { - if (localScopeType != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localScopeType.length; i++) { - - if (localScopeType[i] != null) { - - writeStartElement(null, namespace, "ScopeType", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localScopeType[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ScopeTypes_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ScopeTypes_type1 object = new ScopeTypes_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ScopeTypes_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ScopeTypes_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setScopeType( - (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ScopeTypes_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ScopeTypes_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ScopeTypes_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ScopeTypes_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ScopeType This was an Array! */ + protected java.lang.String[] localScopeType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypeTracker = false; + + public boolean isScopeTypeSpecified() { + return localScopeTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getScopeType() { + return localScopeType; + } + + /** validate the array for ScopeType */ + protected void validateScopeType(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param ScopeType + */ + public void setScopeType(java.lang.String[] param) { + + validateScopeType(param); + + localScopeTypeTracker = param != null; + + this.localScopeType = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addScopeType(java.lang.String param) { + if (localScopeType == null) { + localScopeType = new java.lang.String[] {}; + } + + // update the setting tracker + localScopeTypeTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScopeType); + list.add(param); + this.localScopeType = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ScopeTypes_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ScopeTypes_type1", + xmlWriter); + } + } + if (localScopeTypeTracker) { + if (localScopeType != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localScopeType.length; i++) { + + if (localScopeType[i] != null) { + + writeStartElement(null, namespace, "ScopeType", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localScopeType[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ScopeTypes_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ScopeTypes_type1 object = new ScopeTypes_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ScopeTypes_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ScopeTypes_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setScopeType( + (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type2.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type2.java index 3892b98c8..f0a115414 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type2.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ScopeTypes_type2.java @@ -1,454 +1,454 @@ -/** - * ScopeTypes_type2.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ScopeTypes_type2 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ScopeTypes_type2 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ScopeTypes_type2 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ScopeType This was an Array! */ - protected java.lang.String[] localScopeType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypeTracker = false; - - public boolean isScopeTypeSpecified() { - return localScopeTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getScopeType() { - return localScopeType; - } - - /** validate the array for ScopeType */ - protected void validateScopeType(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param ScopeType - */ - public void setScopeType(java.lang.String[] param) { - - validateScopeType(param); - - localScopeTypeTracker = param != null; - - this.localScopeType = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addScopeType(java.lang.String param) { - if (localScopeType == null) { - localScopeType = new java.lang.String[] {}; - } - - // update the setting tracker - localScopeTypeTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScopeType); - list.add(param); - this.localScopeType = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ScopeTypes_type2", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "ScopeTypes_type2", - xmlWriter); - } - } - if (localScopeTypeTracker) { - if (localScopeType != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localScopeType.length; i++) { - - if (localScopeType[i] != null) { - - writeStartElement(null, namespace, "ScopeType", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localScopeType[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ScopeTypes_type2 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ScopeTypes_type2 object = new ScopeTypes_type2(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ScopeTypes_type2".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ScopeTypes_type2) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setScopeType( - (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ScopeTypes_type2.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ScopeTypes_type2 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ScopeTypes_type2 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ScopeTypes_type2 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ScopeType This was an Array! */ + protected java.lang.String[] localScopeType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypeTracker = false; + + public boolean isScopeTypeSpecified() { + return localScopeTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getScopeType() { + return localScopeType; + } + + /** validate the array for ScopeType */ + protected void validateScopeType(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param ScopeType + */ + public void setScopeType(java.lang.String[] param) { + + validateScopeType(param); + + localScopeTypeTracker = param != null; + + this.localScopeType = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addScopeType(java.lang.String param) { + if (localScopeType == null) { + localScopeType = new java.lang.String[] {}; + } + + // update the setting tracker + localScopeTypeTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScopeType); + list.add(param); + this.localScopeType = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ScopeTypes_type2", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "ScopeTypes_type2", + xmlWriter); + } + } + if (localScopeTypeTracker) { + if (localScopeType != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localScopeType.length; i++) { + + if (localScopeType[i] != null) { + + writeStartElement(null, namespace, "ScopeType", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localScopeType[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ScopeTypes_type2 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ScopeTypes_type2 object = new ScopeTypes_type2(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ScopeTypes_type2".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ScopeTypes_type2) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setScopeType( + (java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Scopes_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Scopes_type0.java index fb7f3fb0c..239b8fbd4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Scopes_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Scopes_type0.java @@ -1,448 +1,448 @@ -/** - * Scopes_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Scopes_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Scopes_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Scopes_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Scope This was an Array! */ - protected java.lang.String[] localScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTracker = false; - - public boolean isScopeSpecified() { - return localScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getScope() { - return localScope; - } - - /** validate the array for Scope */ - protected void validateScope(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Scope - */ - public void setScope(java.lang.String[] param) { - - validateScope(param); - - localScopeTracker = param != null; - - this.localScope = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addScope(java.lang.String param) { - if (localScope == null) { - localScope = new java.lang.String[] {}; - } - - // update the setting tracker - localScopeTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScope); - list.add(param); - this.localScope = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Scopes_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Scopes_type0", xmlWriter); - } - } - if (localScopeTracker) { - if (localScope != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localScope.length; i++) { - - if (localScope[i] != null) { - - writeStartElement(null, namespace, "Scope", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localScope[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Scopes_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Scopes_type0 object = new Scopes_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Scopes_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Scopes_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setScope((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Scopes_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Scopes_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Scopes_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Scopes_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Scope This was an Array! */ + protected java.lang.String[] localScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTracker = false; + + public boolean isScopeSpecified() { + return localScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getScope() { + return localScope; + } + + /** validate the array for Scope */ + protected void validateScope(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Scope + */ + public void setScope(java.lang.String[] param) { + + validateScope(param); + + localScopeTracker = param != null; + + this.localScope = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addScope(java.lang.String param) { + if (localScope == null) { + localScope = new java.lang.String[] {}; + } + + // update the setting tracker + localScopeTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScope); + list.add(param); + this.localScope = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Scopes_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Scopes_type0", xmlWriter); + } + } + if (localScopeTracker) { + if (localScope != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localScope.length; i++) { + + if (localScope[i] != null) { + + writeStartElement(null, namespace, "Scope", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localScope[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Scopes_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Scopes_type0 object = new Scopes_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Scopes_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Scopes_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setScope((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Scopes_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Scopes_type1.java index a70c18e46..ee3cc59a8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Scopes_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/Scopes_type1.java @@ -1,454 +1,454 @@ -/** - * Scopes_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** Scopes_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class Scopes_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = Scopes_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Scope This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] localScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTracker = false; - - public boolean isScopeSpecified() { - return localScopeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] getScope() { - return localScope; - } - - /** validate the array for Scope */ - protected void validateScope( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) {} - - /** - * Auto generated setter method - * - * @param param Scope - */ - public void setScope( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) { - - validateScope(param); - - localScopeTracker = param != null; - - this.localScope = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope - */ - public void addScope( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope param) { - if (localScope == null) { - localScope = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] {}; - } - - // update the setting tracker - localScopeTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScope); - list.add(param); - this.localScope = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":Scopes_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Scopes_type1", xmlWriter); - } - } - if (localScopeTracker) { - if (localScope != null) { - for (int i = 0; i < localScope.length; i++) { - if (localScope[i] != null) { - localScope[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static Scopes_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - Scopes_type1 object = new Scopes_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"Scopes_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (Scopes_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setScope( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * Scopes_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** Scopes_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class Scopes_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = Scopes_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Scope This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] localScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTracker = false; + + public boolean isScopeSpecified() { + return localScopeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] getScope() { + return localScope; + } + + /** validate the array for Scope */ + protected void validateScope( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) {} + + /** + * Auto generated setter method + * + * @param param Scope + */ + public void setScope( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] param) { + + validateScope(param); + + localScopeTracker = param != null; + + this.localScope = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope + */ + public void addScope( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope param) { + if (localScope == null) { + localScope = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[] {}; + } + + // update the setting tracker + localScopeTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localScope); + list.add(param); + this.localScope = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":Scopes_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "Scopes_type1", xmlWriter); + } + } + if (localScopeTracker) { + if (localScope != null) { + for (int i = 0; i < localScope.length; i++) { + if (localScope[i] != null) { + localScope[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static Scopes_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + Scopes_type1 object = new Scopes_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"Scopes_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (Scopes_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setScope( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResponseScope.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ServerInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ServerInfo.java index f0f03782b..cb1068d2d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ServerInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ServerInfo.java @@ -1,466 +1,466 @@ -/** - * ServerInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ServerInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ServerInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ServerInfo - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for NetAddress */ - protected java.lang.String localNetAddress = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNetAddressTracker = false; - - public boolean isNetAddressSpecified() { - return localNetAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNetAddress() { - return localNetAddress; - } - - /** - * Auto generated setter method - * - * @param param NetAddress - */ - public void setNetAddress(java.lang.String param) { - localNetAddressTracker = param != null; - - this.localNetAddress = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ServerInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ServerInfo", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localNetAddressTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NetAddress", xmlWriter); - - if (localNetAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNetAddress); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ServerInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ServerInfo object = new ServerInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ServerInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ServerInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NetAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NetAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNetAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ServerInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ServerInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ServerInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ServerInfo + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for NetAddress */ + protected java.lang.String localNetAddress = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetAddressTracker = false; + + public boolean isNetAddressSpecified() { + return localNetAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetAddress() { + return localNetAddress; + } + + /** + * Auto generated setter method + * + * @param param NetAddress + */ + public void setNetAddress(java.lang.String param) { + localNetAddressTracker = param != null; + + this.localNetAddress = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ServerInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ServerInfo", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localNetAddressTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NetAddress", xmlWriter); + + if (localNetAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetAddress); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ServerInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ServerInfo object = new ServerInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ServerInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ServerInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NetAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SortDirection.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SortDirection.java new file mode 100644 index 000000000..26184744c --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SortDirection.java @@ -0,0 +1,404 @@ +/** + * SortDirection.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** SortDirection bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SortDirection implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SortDirection", "ns1"); + + /** field for SortDirection */ + protected int localSortDirection; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected SortDirection(int value, boolean isRegisterValue) { + localSortDirection = value; + if (isRegisterValue) { + + _table_.put(localSortDirection + "", this); + } + } + + public static final int _value1 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + public static final int _value2 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + public static final SortDirection value1 = new SortDirection(_value1, true); + + public static final SortDirection value2 = new SortDirection(_value2, true); + + public int getValue() { + return localSortDirection; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSortDirection); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SortDirection", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "SortDirection", xmlWriter); + } + } + + if (localSortDirection == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("property value cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSortDirection)); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static SortDirection fromValue(int value) throws java.lang.IllegalArgumentException { + SortDirection enumeration = (SortDirection) _table_.get(value + ""); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static SortDirection fromString(java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static SortDirection fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return SortDirection.Factory.fromString(content, namespaceUri); + } else { + return SortDirection.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SortDirection parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SortDirection object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SortDirection" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = SortDirection.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = SortDirection.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/String.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/String.java index 0a1770381..0b248e008 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/String.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/String.java @@ -1,361 +1,361 @@ -/** - * String.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** String bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class String implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "string", "ns1"); - - /** field for String */ - protected java.lang.String localString; - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getString() { - return localString; - } - - /** - * Auto generated setter method - * - * @param param String - */ - public void setString(java.lang.String param) { - - this.localString = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // We can safely assume an element has only one type associated with it - - java.lang.String namespace = "urn:hpccsystems:ws:wsworkunits"; - java.lang.String _localName = "string"; - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":string", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); - } - } - - if (localString == null) { - - // write the nil attribute - writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); - - } else { - - xmlWriter.writeCharacters(localString); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - String object = new String(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - // Skip the element and report the null value. It cannot have subelements. - while (!reader.isEndElement()) reader.next(); - - return object; - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "string") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { - - java.lang.String content = reader.getElementText(); - - object.setString( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - } else { - - reader.getElementText(); // throw away text nodes if any. - } - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * String.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** String bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class String implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "string", "ns1"); + + /** field for String */ + protected java.lang.String localString; + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getString() { + return localString; + } + + /** + * Auto generated setter method + * + * @param param String + */ + public void setString(java.lang.String param) { + + this.localString = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // We can safely assume an element has only one type associated with it + + java.lang.String namespace = "urn:hpccsystems:ws:wsworkunits"; + java.lang.String _localName = "string"; + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":string", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "string", xmlWriter); + } + } + + if (localString == null) { + + // write the nil attribute + writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); + + } else { + + xmlWriter.writeCharacters(localString); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static String parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + String object = new String(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + // Skip the element and report the null value. It cannot have subelements. + while (!reader.isEndElement()) reader.next(); + + return object; + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "string") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if (!"true".equals(nillableValue) && !"1".equals(nillableValue)) { + + java.lang.String content = reader.getElementText(); + + object.setString( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + } else { + + reader.getElementText(); // throw away text nodes if any. + } + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SubFiles_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SubFiles_type0.java index 54f727a31..752596b1c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SubFiles_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SubFiles_type0.java @@ -1,452 +1,452 @@ -/** - * SubFiles_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** SubFiles_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SubFiles_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = SubFiles_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for File This was an Array! */ - protected java.lang.String[] localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getFile() { - return localFile; - } - - /** validate the array for File */ - protected void validateFile(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile(java.lang.String[] param) { - - validateFile(param); - - localFileTracker = param != null; - - this.localFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addFile(java.lang.String param) { - if (localFile == null) { - localFile = new java.lang.String[] {}; - } - - // update the setting tracker - localFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); - list.add(param); - this.localFile = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SubFiles_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SubFiles_type0", - xmlWriter); - } - } - if (localFileTracker) { - if (localFile != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localFile.length; i++) { - - if (localFile[i] != null) { - - writeStartElement(null, namespace, "File", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFile[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SubFiles_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SubFiles_type0 object = new SubFiles_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SubFiles_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SubFiles_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setFile((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SubFiles_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** SubFiles_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SubFiles_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = SubFiles_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for File This was an Array! */ + protected java.lang.String[] localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getFile() { + return localFile; + } + + /** validate the array for File */ + protected void validateFile(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile(java.lang.String[] param) { + + validateFile(param); + + localFileTracker = param != null; + + this.localFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addFile(java.lang.String param) { + if (localFile == null) { + localFile = new java.lang.String[] {}; + } + + // update the setting tracker + localFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFile); + list.add(param); + this.localFile = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SubFiles_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SubFiles_type0", + xmlWriter); + } + } + if (localFileTracker) { + if (localFile != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localFile.length; i++) { + + if (localFile[i] != null) { + + writeStartElement(null, namespace, "File", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFile[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SubFiles_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SubFiles_type0 object = new SubFiles_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SubFiles_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SubFiles_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setFile((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type0.java index 5449f4cd0..792430863 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type0.java @@ -1,459 +1,459 @@ -/** - * SuperFiles_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** SuperFiles_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SuperFiles_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = SuperFiles_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for SuperFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] localSuperFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperFileTracker = false; - - public boolean isSuperFileSpecified() { - return localSuperFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] getSuperFile() { - return localSuperFile; - } - - /** validate the array for SuperFile */ - protected void validateSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) {} - - /** - * Auto generated setter method - * - * @param param SuperFile - */ - public void setSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) { - - validateSuperFile(param); - - localSuperFileTracker = param != null; - - this.localSuperFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile - */ - public void addSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile param) { - if (localSuperFile == null) { - localSuperFile = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] {}; - } - - // update the setting tracker - localSuperFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSuperFile); - list.add(param); - this.localSuperFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SuperFiles_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SuperFiles_type0", - xmlWriter); - } - } - if (localSuperFileTracker) { - if (localSuperFile != null) { - for (int i = 0; i < localSuperFile.length; i++) { - if (localSuperFile[i] != null) { - localSuperFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("SuperFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SuperFiles_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SuperFiles_type0 object = new SuperFiles_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SuperFiles_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SuperFiles_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setSuperFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SuperFiles_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** SuperFiles_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SuperFiles_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = SuperFiles_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for SuperFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] localSuperFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperFileTracker = false; + + public boolean isSuperFileSpecified() { + return localSuperFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] getSuperFile() { + return localSuperFile; + } + + /** validate the array for SuperFile */ + protected void validateSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) {} + + /** + * Auto generated setter method + * + * @param param SuperFile + */ + public void setSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) { + + validateSuperFile(param); + + localSuperFileTracker = param != null; + + this.localSuperFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile + */ + public void addSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile param) { + if (localSuperFile == null) { + localSuperFile = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] {}; + } + + // update the setting tracker + localSuperFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSuperFile); + list.add(param); + this.localSuperFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SuperFiles_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SuperFiles_type0", + xmlWriter); + } + } + if (localSuperFileTracker) { + if (localSuperFile != null) { + for (int i = 0; i < localSuperFile.length; i++) { + if (localSuperFile[i] != null) { + localSuperFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("SuperFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SuperFiles_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SuperFiles_type0 object = new SuperFiles_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SuperFiles_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SuperFiles_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setSuperFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type1.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type1.java index 0f1b4a38d..7b7788c36 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type1.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type1.java @@ -1,459 +1,459 @@ -/** - * SuperFiles_type1.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** SuperFiles_type1 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SuperFiles_type1 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = SuperFiles_type1 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for SuperFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] localSuperFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperFileTracker = false; - - public boolean isSuperFileSpecified() { - return localSuperFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] getSuperFile() { - return localSuperFile; - } - - /** validate the array for SuperFile */ - protected void validateSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) {} - - /** - * Auto generated setter method - * - * @param param SuperFile - */ - public void setSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) { - - validateSuperFile(param); - - localSuperFileTracker = param != null; - - this.localSuperFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile - */ - public void addSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile param) { - if (localSuperFile == null) { - localSuperFile = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] {}; - } - - // update the setting tracker - localSuperFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSuperFile); - list.add(param); - this.localSuperFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SuperFiles_type1", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SuperFiles_type1", - xmlWriter); - } - } - if (localSuperFileTracker) { - if (localSuperFile != null) { - for (int i = 0; i < localSuperFile.length; i++) { - if (localSuperFile[i] != null) { - localSuperFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("SuperFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SuperFiles_type1 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SuperFiles_type1 object = new SuperFiles_type1(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SuperFiles_type1".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SuperFiles_type1) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setSuperFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SuperFiles_type1.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** SuperFiles_type1 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SuperFiles_type1 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = SuperFiles_type1 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for SuperFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] localSuperFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperFileTracker = false; + + public boolean isSuperFileSpecified() { + return localSuperFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] getSuperFile() { + return localSuperFile; + } + + /** validate the array for SuperFile */ + protected void validateSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) {} + + /** + * Auto generated setter method + * + * @param param SuperFile + */ + public void setSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) { + + validateSuperFile(param); + + localSuperFileTracker = param != null; + + this.localSuperFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile + */ + public void addSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile param) { + if (localSuperFile == null) { + localSuperFile = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] {}; + } + + // update the setting tracker + localSuperFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSuperFile); + list.add(param); + this.localSuperFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SuperFiles_type1", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SuperFiles_type1", + xmlWriter); + } + } + if (localSuperFileTracker) { + if (localSuperFile != null) { + for (int i = 0; i < localSuperFile.length; i++) { + if (localSuperFile[i] != null) { + localSuperFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("SuperFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SuperFiles_type1 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SuperFiles_type1 object = new SuperFiles_type1(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SuperFiles_type1".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SuperFiles_type1) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setSuperFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type2.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type2.java index 0f6832e65..65a4d7908 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type2.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type2.java @@ -1,459 +1,459 @@ -/** - * SuperFiles_type2.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** SuperFiles_type2 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SuperFiles_type2 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = SuperFiles_type2 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for SuperFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] localSuperFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperFileTracker = false; - - public boolean isSuperFileSpecified() { - return localSuperFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] getSuperFile() { - return localSuperFile; - } - - /** validate the array for SuperFile */ - protected void validateSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) {} - - /** - * Auto generated setter method - * - * @param param SuperFile - */ - public void setSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) { - - validateSuperFile(param); - - localSuperFileTracker = param != null; - - this.localSuperFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile - */ - public void addSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile param) { - if (localSuperFile == null) { - localSuperFile = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] {}; - } - - // update the setting tracker - localSuperFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSuperFile); - list.add(param); - this.localSuperFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SuperFiles_type2", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SuperFiles_type2", - xmlWriter); - } - } - if (localSuperFileTracker) { - if (localSuperFile != null) { - for (int i = 0; i < localSuperFile.length; i++) { - if (localSuperFile[i] != null) { - localSuperFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("SuperFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SuperFiles_type2 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SuperFiles_type2 object = new SuperFiles_type2(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SuperFiles_type2".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SuperFiles_type2) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setSuperFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SuperFiles_type2.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** SuperFiles_type2 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SuperFiles_type2 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = SuperFiles_type2 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for SuperFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] localSuperFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperFileTracker = false; + + public boolean isSuperFileSpecified() { + return localSuperFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] getSuperFile() { + return localSuperFile; + } + + /** validate the array for SuperFile */ + protected void validateSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) {} + + /** + * Auto generated setter method + * + * @param param SuperFile + */ + public void setSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) { + + validateSuperFile(param); + + localSuperFileTracker = param != null; + + this.localSuperFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile + */ + public void addSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile param) { + if (localSuperFile == null) { + localSuperFile = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] {}; + } + + // update the setting tracker + localSuperFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSuperFile); + list.add(param); + this.localSuperFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SuperFiles_type2", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SuperFiles_type2", + xmlWriter); + } + } + if (localSuperFileTracker) { + if (localSuperFile != null) { + for (int i = 0; i < localSuperFile.length; i++) { + if (localSuperFile[i] != null) { + localSuperFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("SuperFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SuperFiles_type2 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SuperFiles_type2 object = new SuperFiles_type2(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SuperFiles_type2".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SuperFiles_type2) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setSuperFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type3.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type3.java index 2e9fa29b0..f11c30b85 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type3.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/SuperFiles_type3.java @@ -1,459 +1,459 @@ -/** - * SuperFiles_type3.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** SuperFiles_type3 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class SuperFiles_type3 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = SuperFiles_type3 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for SuperFile This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] localSuperFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperFileTracker = false; - - public boolean isSuperFileSpecified() { - return localSuperFileTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] getSuperFile() { - return localSuperFile; - } - - /** validate the array for SuperFile */ - protected void validateSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) {} - - /** - * Auto generated setter method - * - * @param param SuperFile - */ - public void setSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) { - - validateSuperFile(param); - - localSuperFileTracker = param != null; - - this.localSuperFile = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile - */ - public void addSuperFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile param) { - if (localSuperFile == null) { - localSuperFile = - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] {}; - } - - // update the setting tracker - localSuperFileTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSuperFile); - list.add(param); - this.localSuperFile = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":SuperFiles_type3", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "SuperFiles_type3", - xmlWriter); - } - } - if (localSuperFileTracker) { - if (localSuperFile != null) { - for (int i = 0; i < localSuperFile.length; i++) { - if (localSuperFile[i] != null) { - localSuperFile[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile"), - xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("SuperFile cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static SuperFiles_type3 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - SuperFiles_type3 object = new SuperFiles_type3(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"SuperFiles_type3".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (SuperFiles_type3) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setSuperFile( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * SuperFiles_type3.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** SuperFiles_type3 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class SuperFiles_type3 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = SuperFiles_type3 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for SuperFile This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] localSuperFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperFileTracker = false; + + public boolean isSuperFileSpecified() { + return localSuperFileTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] getSuperFile() { + return localSuperFile; + } + + /** validate the array for SuperFile */ + protected void validateSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) {} + + /** + * Auto generated setter method + * + * @param param SuperFile + */ + public void setSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] param) { + + validateSuperFile(param); + + localSuperFileTracker = param != null; + + this.localSuperFile = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile + */ + public void addSuperFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile param) { + if (localSuperFile == null) { + localSuperFile = + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[] {}; + } + + // update the setting tracker + localSuperFileTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localSuperFile); + list.add(param); + this.localSuperFile = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":SuperFiles_type3", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "SuperFiles_type3", + xmlWriter); + } + } + if (localSuperFileTracker) { + if (localSuperFile != null) { + for (int i = 0; i < localSuperFile.length; i++) { + if (localSuperFile[i] != null) { + localSuperFile[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile"), + xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("SuperFile cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static SuperFiles_type3 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + SuperFiles_type3 object = new SuperFiles_type3(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"SuperFiles_type3".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (SuperFiles_type3) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFile") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setSuperFile( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySuperFile.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/TargetQueriesUsingFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/TargetQueriesUsingFile.java index b724dc313..89682e7a5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/TargetQueriesUsingFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/TargetQueriesUsingFile.java @@ -1,521 +1,521 @@ -/** - * TargetQueriesUsingFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** TargetQueriesUsingFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class TargetQueriesUsingFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = TargetQueriesUsingFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for PackageMap */ - protected java.lang.String localPackageMap; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPackageMapTracker = false; - - public boolean isPackageMapSpecified() { - return localPackageMapTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPackageMap() { - return localPackageMap; - } - - /** - * Auto generated setter method - * - * @param param PackageMap - */ - public void setPackageMap(java.lang.String param) { - localPackageMapTracker = param != null; - - this.localPackageMap = param; - } - - /** field for Queries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile - localQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueriesTracker = false; - - public boolean isQueriesSpecified() { - return localQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile getQueries() { - return localQueries; - } - - /** - * Auto generated setter method - * - * @param param Queries - */ - public void setQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile param) { - localQueriesTracker = param != null; - - this.localQueries = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":TargetQueriesUsingFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "TargetQueriesUsingFile", - xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localPackageMapTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PackageMap", xmlWriter); - - if (localPackageMap == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PackageMap cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPackageMap); - } - - xmlWriter.writeEndElement(); - } - if (localQueriesTracker) { - if (localQueries == null) { - throw new org.apache.axis2.databinding.ADBException("Queries cannot be null!!"); - } - localQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static TargetQueriesUsingFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - TargetQueriesUsingFile object = new TargetQueriesUsingFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"TargetQueriesUsingFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (TargetQueriesUsingFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PackageMap") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PackageMap" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPackageMap( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries") - .equals(reader.getName())) { - - object.setQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * TargetQueriesUsingFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** TargetQueriesUsingFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TargetQueriesUsingFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TargetQueriesUsingFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for PackageMap */ + protected java.lang.String localPackageMap; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPackageMapTracker = false; + + public boolean isPackageMapSpecified() { + return localPackageMapTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPackageMap() { + return localPackageMap; + } + + /** + * Auto generated setter method + * + * @param param PackageMap + */ + public void setPackageMap(java.lang.String param) { + localPackageMapTracker = param != null; + + this.localPackageMap = param; + } + + /** field for Queries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile + localQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueriesTracker = false; + + public boolean isQueriesSpecified() { + return localQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile getQueries() { + return localQueries; + } + + /** + * Auto generated setter method + * + * @param param Queries + */ + public void setQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile param) { + localQueriesTracker = param != null; + + this.localQueries = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TargetQueriesUsingFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "TargetQueriesUsingFile", + xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localPackageMapTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PackageMap", xmlWriter); + + if (localPackageMap == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PackageMap cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPackageMap); + } + + xmlWriter.writeEndElement(); + } + if (localQueriesTracker) { + if (localQueries == null) { + throw new org.apache.axis2.databinding.ADBException("Queries cannot be null!!"); + } + localQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TargetQueriesUsingFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TargetQueriesUsingFile object = new TargetQueriesUsingFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TargetQueriesUsingFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TargetQueriesUsingFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PackageMap") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PackageMap" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPackageMap( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries") + .equals(reader.getName())) { + + object.setQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQueryUsingFile + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ThorLogInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ThorLogInfo.java index 5a548611a..e7a995af4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ThorLogInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ThorLogInfo.java @@ -1,601 +1,601 @@ -/** - * ThorLogInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ThorLogInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ThorLogInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ThorLogInfo - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ProcessName */ - protected java.lang.String localProcessName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessNameTracker = false; - - public boolean isProcessNameSpecified() { - return localProcessNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProcessName() { - return localProcessName; - } - - /** - * Auto generated setter method - * - * @param param ProcessName - */ - public void setProcessName(java.lang.String param) { - localProcessNameTracker = param != null; - - this.localProcessName = param; - } - - /** field for ClusterGroup */ - protected java.lang.String localClusterGroup; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterGroupTracker = false; - - public boolean isClusterGroupSpecified() { - return localClusterGroupTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterGroup() { - return localClusterGroup; - } - - /** - * Auto generated setter method - * - * @param param ClusterGroup - */ - public void setClusterGroup(java.lang.String param) { - localClusterGroupTracker = param != null; - - this.localClusterGroup = param; - } - - /** field for LogDate */ - protected java.lang.String localLogDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDateTracker = false; - - public boolean isLogDateSpecified() { - return localLogDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDate() { - return localLogDate; - } - - /** - * Auto generated setter method - * - * @param param LogDate - */ - public void setLogDate(java.lang.String param) { - localLogDateTracker = param != null; - - this.localLogDate = param; - } - - /** field for NumberSlaves */ - protected int localNumberSlaves; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumberSlavesTracker = false; - - public boolean isNumberSlavesSpecified() { - return localNumberSlavesTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getNumberSlaves() { - return localNumberSlaves; - } - - /** - * Auto generated setter method - * - * @param param NumberSlaves - */ - public void setNumberSlaves(int param) { - - // setting primitive attribute tracker to true - localNumberSlavesTracker = param != java.lang.Integer.MIN_VALUE; - - this.localNumberSlaves = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ThorLogInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ThorLogInfo", xmlWriter); - } - } - if (localProcessNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ProcessName", xmlWriter); - - if (localProcessName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ProcessName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProcessName); - } - - xmlWriter.writeEndElement(); - } - if (localClusterGroupTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterGroup", xmlWriter); - - if (localClusterGroup == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterGroup cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterGroup); - } - - xmlWriter.writeEndElement(); - } - if (localLogDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogDate", xmlWriter); - - if (localLogDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDate); - } - - xmlWriter.writeEndElement(); - } - if (localNumberSlavesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NumberSlaves", xmlWriter); - - if (localNumberSlaves == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NumberSlaves cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumberSlaves)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ThorLogInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ThorLogInfo object = new ThorLogInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ThorLogInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ThorLogInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ProcessName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProcessName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcessName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterGroup") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterGroup" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterGroup( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumberSlaves") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumberSlaves" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumberSlaves( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ThorLogInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ThorLogInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ThorLogInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ThorLogInfo + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ProcessName */ + protected java.lang.String localProcessName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessNameTracker = false; + + public boolean isProcessNameSpecified() { + return localProcessNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProcessName() { + return localProcessName; + } + + /** + * Auto generated setter method + * + * @param param ProcessName + */ + public void setProcessName(java.lang.String param) { + localProcessNameTracker = param != null; + + this.localProcessName = param; + } + + /** field for ClusterGroup */ + protected java.lang.String localClusterGroup; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterGroupTracker = false; + + public boolean isClusterGroupSpecified() { + return localClusterGroupTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterGroup() { + return localClusterGroup; + } + + /** + * Auto generated setter method + * + * @param param ClusterGroup + */ + public void setClusterGroup(java.lang.String param) { + localClusterGroupTracker = param != null; + + this.localClusterGroup = param; + } + + /** field for LogDate */ + protected java.lang.String localLogDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDateTracker = false; + + public boolean isLogDateSpecified() { + return localLogDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDate() { + return localLogDate; + } + + /** + * Auto generated setter method + * + * @param param LogDate + */ + public void setLogDate(java.lang.String param) { + localLogDateTracker = param != null; + + this.localLogDate = param; + } + + /** field for NumberSlaves */ + protected int localNumberSlaves; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumberSlavesTracker = false; + + public boolean isNumberSlavesSpecified() { + return localNumberSlavesTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getNumberSlaves() { + return localNumberSlaves; + } + + /** + * Auto generated setter method + * + * @param param NumberSlaves + */ + public void setNumberSlaves(int param) { + + // setting primitive attribute tracker to true + localNumberSlavesTracker = param != java.lang.Integer.MIN_VALUE; + + this.localNumberSlaves = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ThorLogInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ThorLogInfo", xmlWriter); + } + } + if (localProcessNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ProcessName", xmlWriter); + + if (localProcessName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ProcessName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProcessName); + } + + xmlWriter.writeEndElement(); + } + if (localClusterGroupTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterGroup", xmlWriter); + + if (localClusterGroup == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterGroup cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterGroup); + } + + xmlWriter.writeEndElement(); + } + if (localLogDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogDate", xmlWriter); + + if (localLogDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDate); + } + + xmlWriter.writeEndElement(); + } + if (localNumberSlavesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NumberSlaves", xmlWriter); + + if (localNumberSlaves == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NumberSlaves cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumberSlaves)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ThorLogInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ThorLogInfo object = new ThorLogInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ThorLogInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ThorLogInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ProcessName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProcessName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcessName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterGroup") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterGroup" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterGroup( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumberSlaves") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumberSlaves" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumberSlaves( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ThorQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ThorQueue.java index 788c51bff..2073441a2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ThorQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/ThorQueue.java @@ -1,872 +1,872 @@ -/** - * ThorQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** ThorQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class ThorQueue implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = ThorQueue - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for DT */ - protected java.lang.String localDT; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDTTracker = false; - - public boolean isDTSpecified() { - return localDTTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDT() { - return localDT; - } - - /** - * Auto generated setter method - * - * @param param DT - */ - public void setDT(java.lang.String param) { - localDTTracker = param != null; - - this.localDT = param; - } - - /** field for RunningWUs */ - protected java.lang.String localRunningWUs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningWUsTracker = false; - - public boolean isRunningWUsSpecified() { - return localRunningWUsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRunningWUs() { - return localRunningWUs; - } - - /** - * Auto generated setter method - * - * @param param RunningWUs - */ - public void setRunningWUs(java.lang.String param) { - localRunningWUsTracker = param != null; - - this.localRunningWUs = param; - } - - /** field for QueuedWUs */ - protected java.lang.String localQueuedWUs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueuedWUsTracker = false; - - public boolean isQueuedWUsSpecified() { - return localQueuedWUsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueuedWUs() { - return localQueuedWUs; - } - - /** - * Auto generated setter method - * - * @param param QueuedWUs - */ - public void setQueuedWUs(java.lang.String param) { - localQueuedWUsTracker = param != null; - - this.localQueuedWUs = param; - } - - /** field for WaitingThors */ - protected java.lang.String localWaitingThors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitingThorsTracker = false; - - public boolean isWaitingThorsSpecified() { - return localWaitingThorsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWaitingThors() { - return localWaitingThors; - } - - /** - * Auto generated setter method - * - * @param param WaitingThors - */ - public void setWaitingThors(java.lang.String param) { - localWaitingThorsTracker = param != null; - - this.localWaitingThors = param; - } - - /** field for ConnectedThors */ - protected java.lang.String localConnectedThors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localConnectedThorsTracker = false; - - public boolean isConnectedThorsSpecified() { - return localConnectedThorsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getConnectedThors() { - return localConnectedThors; - } - - /** - * Auto generated setter method - * - * @param param ConnectedThors - */ - public void setConnectedThors(java.lang.String param) { - localConnectedThorsTracker = param != null; - - this.localConnectedThors = param; - } - - /** field for IdledThors */ - protected java.lang.String localIdledThors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIdledThorsTracker = false; - - public boolean isIdledThorsSpecified() { - return localIdledThorsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getIdledThors() { - return localIdledThors; - } - - /** - * Auto generated setter method - * - * @param param IdledThors - */ - public void setIdledThors(java.lang.String param) { - localIdledThorsTracker = param != null; - - this.localIdledThors = param; - } - - /** field for RunningWU1 */ - protected java.lang.String localRunningWU1; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningWU1Tracker = false; - - public boolean isRunningWU1Specified() { - return localRunningWU1Tracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRunningWU1() { - return localRunningWU1; - } - - /** - * Auto generated setter method - * - * @param param RunningWU1 - */ - public void setRunningWU1(java.lang.String param) { - localRunningWU1Tracker = param != null; - - this.localRunningWU1 = param; - } - - /** field for RunningWU2 */ - protected java.lang.String localRunningWU2; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningWU2Tracker = false; - - public boolean isRunningWU2Specified() { - return localRunningWU2Tracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRunningWU2() { - return localRunningWU2; - } - - /** - * Auto generated setter method - * - * @param param RunningWU2 - */ - public void setRunningWU2(java.lang.String param) { - localRunningWU2Tracker = param != null; - - this.localRunningWU2 = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":ThorQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ThorQueue", xmlWriter); - } - } - if (localDTTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DT", xmlWriter); - - if (localDT == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DT cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDT); - } - - xmlWriter.writeEndElement(); - } - if (localRunningWUsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RunningWUs", xmlWriter); - - if (localRunningWUs == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RunningWUs cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRunningWUs); - } - - xmlWriter.writeEndElement(); - } - if (localQueuedWUsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueuedWUs", xmlWriter); - - if (localQueuedWUs == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueuedWUs cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueuedWUs); - } - - xmlWriter.writeEndElement(); - } - if (localWaitingThorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WaitingThors", xmlWriter); - - if (localWaitingThors == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WaitingThors cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWaitingThors); - } - - xmlWriter.writeEndElement(); - } - if (localConnectedThorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ConnectedThors", xmlWriter); - - if (localConnectedThors == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ConnectedThors cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localConnectedThors); - } - - xmlWriter.writeEndElement(); - } - if (localIdledThorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IdledThors", xmlWriter); - - if (localIdledThors == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("IdledThors cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localIdledThors); - } - - xmlWriter.writeEndElement(); - } - if (localRunningWU1Tracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RunningWU1", xmlWriter); - - if (localRunningWU1 == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RunningWU1 cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRunningWU1); - } - - xmlWriter.writeEndElement(); - } - if (localRunningWU2Tracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RunningWU2", xmlWriter); - - if (localRunningWU2 == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RunningWU2 cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRunningWU2); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static ThorQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - ThorQueue object = new ThorQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"ThorQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (ThorQueue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DT") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DT" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDT( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningWUs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RunningWUs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunningWUs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueuedWUs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueuedWUs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueuedWUs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WaitingThors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WaitingThors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWaitingThors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ConnectedThors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ConnectedThors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setConnectedThors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IdledThors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IdledThors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIdledThors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningWU1") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RunningWU1" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunningWU1( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningWU2") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RunningWU2" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunningWU2( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * ThorQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** ThorQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class ThorQueue implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = ThorQueue + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for DT */ + protected java.lang.String localDT; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDTTracker = false; + + public boolean isDTSpecified() { + return localDTTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDT() { + return localDT; + } + + /** + * Auto generated setter method + * + * @param param DT + */ + public void setDT(java.lang.String param) { + localDTTracker = param != null; + + this.localDT = param; + } + + /** field for RunningWUs */ + protected java.lang.String localRunningWUs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningWUsTracker = false; + + public boolean isRunningWUsSpecified() { + return localRunningWUsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRunningWUs() { + return localRunningWUs; + } + + /** + * Auto generated setter method + * + * @param param RunningWUs + */ + public void setRunningWUs(java.lang.String param) { + localRunningWUsTracker = param != null; + + this.localRunningWUs = param; + } + + /** field for QueuedWUs */ + protected java.lang.String localQueuedWUs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueuedWUsTracker = false; + + public boolean isQueuedWUsSpecified() { + return localQueuedWUsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueuedWUs() { + return localQueuedWUs; + } + + /** + * Auto generated setter method + * + * @param param QueuedWUs + */ + public void setQueuedWUs(java.lang.String param) { + localQueuedWUsTracker = param != null; + + this.localQueuedWUs = param; + } + + /** field for WaitingThors */ + protected java.lang.String localWaitingThors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitingThorsTracker = false; + + public boolean isWaitingThorsSpecified() { + return localWaitingThorsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWaitingThors() { + return localWaitingThors; + } + + /** + * Auto generated setter method + * + * @param param WaitingThors + */ + public void setWaitingThors(java.lang.String param) { + localWaitingThorsTracker = param != null; + + this.localWaitingThors = param; + } + + /** field for ConnectedThors */ + protected java.lang.String localConnectedThors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localConnectedThorsTracker = false; + + public boolean isConnectedThorsSpecified() { + return localConnectedThorsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getConnectedThors() { + return localConnectedThors; + } + + /** + * Auto generated setter method + * + * @param param ConnectedThors + */ + public void setConnectedThors(java.lang.String param) { + localConnectedThorsTracker = param != null; + + this.localConnectedThors = param; + } + + /** field for IdledThors */ + protected java.lang.String localIdledThors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIdledThorsTracker = false; + + public boolean isIdledThorsSpecified() { + return localIdledThorsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getIdledThors() { + return localIdledThors; + } + + /** + * Auto generated setter method + * + * @param param IdledThors + */ + public void setIdledThors(java.lang.String param) { + localIdledThorsTracker = param != null; + + this.localIdledThors = param; + } + + /** field for RunningWU1 */ + protected java.lang.String localRunningWU1; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningWU1Tracker = false; + + public boolean isRunningWU1Specified() { + return localRunningWU1Tracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRunningWU1() { + return localRunningWU1; + } + + /** + * Auto generated setter method + * + * @param param RunningWU1 + */ + public void setRunningWU1(java.lang.String param) { + localRunningWU1Tracker = param != null; + + this.localRunningWU1 = param; + } + + /** field for RunningWU2 */ + protected java.lang.String localRunningWU2; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningWU2Tracker = false; + + public boolean isRunningWU2Specified() { + return localRunningWU2Tracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRunningWU2() { + return localRunningWU2; + } + + /** + * Auto generated setter method + * + * @param param RunningWU2 + */ + public void setRunningWU2(java.lang.String param) { + localRunningWU2Tracker = param != null; + + this.localRunningWU2 = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":ThorQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ThorQueue", xmlWriter); + } + } + if (localDTTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DT", xmlWriter); + + if (localDT == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DT cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDT); + } + + xmlWriter.writeEndElement(); + } + if (localRunningWUsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RunningWUs", xmlWriter); + + if (localRunningWUs == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RunningWUs cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRunningWUs); + } + + xmlWriter.writeEndElement(); + } + if (localQueuedWUsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueuedWUs", xmlWriter); + + if (localQueuedWUs == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueuedWUs cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueuedWUs); + } + + xmlWriter.writeEndElement(); + } + if (localWaitingThorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WaitingThors", xmlWriter); + + if (localWaitingThors == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WaitingThors cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWaitingThors); + } + + xmlWriter.writeEndElement(); + } + if (localConnectedThorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ConnectedThors", xmlWriter); + + if (localConnectedThors == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ConnectedThors cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localConnectedThors); + } + + xmlWriter.writeEndElement(); + } + if (localIdledThorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IdledThors", xmlWriter); + + if (localIdledThors == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("IdledThors cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localIdledThors); + } + + xmlWriter.writeEndElement(); + } + if (localRunningWU1Tracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RunningWU1", xmlWriter); + + if (localRunningWU1 == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RunningWU1 cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRunningWU1); + } + + xmlWriter.writeEndElement(); + } + if (localRunningWU2Tracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RunningWU2", xmlWriter); + + if (localRunningWU2 == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RunningWU2 cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRunningWU2); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static ThorQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + ThorQueue object = new ThorQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"ThorQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (ThorQueue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DT") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DT" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDT( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningWUs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RunningWUs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunningWUs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueuedWUs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueuedWUs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueuedWUs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WaitingThors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WaitingThors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWaitingThors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ConnectedThors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ConnectedThors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setConnectedThors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IdledThors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IdledThors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIdledThors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningWU1") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RunningWU1" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunningWU1( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RunningWU2") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RunningWU2" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunningWU2( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/TimeRange.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/TimeRange.java new file mode 100644 index 000000000..c47c8569a --- /dev/null +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/TimeRange.java @@ -0,0 +1,466 @@ +/** + * TimeRange.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** TimeRange bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class TimeRange implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = TimeRange + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for StartDate */ + protected java.util.Calendar localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.util.Calendar + */ + public java.util.Calendar getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.util.Calendar param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.util.Calendar localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.util.Calendar + */ + public java.util.Calendar getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.util.Calendar param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":TimeRange", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "TimeRange", xmlWriter); + } + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStartDate)); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEndDate)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static TimeRange parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + TimeRange object = new TimeRange(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"TimeRange".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (TimeRange) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAbort.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAbort.java index a5668f0ce..a1fe7b869 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAbort.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAbort.java @@ -1,449 +1,450 @@ -/** - * WUAbort.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUAbort bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUAbort implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAbort", "ns1"); - - /** field for Wuids */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidsTracker = false; - - public boolean isWuidsSpecified() { - return localWuidsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { - return localWuids; - } - - /** - * Auto generated setter method - * - * @param param Wuids - */ - public void setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localWuidsTracker = param != null; - - this.localWuids = param; - } - - /** field for BlockTillFinishTimer */ - protected int localBlockTillFinishTimer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBlockTillFinishTimerTracker = false; - - public boolean isBlockTillFinishTimerSpecified() { - return localBlockTillFinishTimerTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBlockTillFinishTimer() { - return localBlockTillFinishTimer; - } - - /** - * Auto generated setter method - * - * @param param BlockTillFinishTimer - */ - public void setBlockTillFinishTimer(int param) { - - // setting primitive attribute tracker to true - localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBlockTillFinishTimer = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUAbort", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUAbort", xmlWriter); - } - } - if (localWuidsTracker) { - if (localWuids == null) { - throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); - } - localWuids.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); - } - if (localBlockTillFinishTimerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); - - if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "BlockTillFinishTimer cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBlockTillFinishTimer)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUAbort parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUAbort object = new WUAbort(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUAbort".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUAbort) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") - .equals(reader.getName())) { - - object.setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BlockTillFinishTimer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBlockTillFinishTimer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUAbort.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUAbort bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUAbort implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAbort", "ns1"); + + /** field for Wuids */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidsTracker = false; + + public boolean isWuidsSpecified() { + return localWuidsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { + return localWuids; + } + + /** + * Auto generated setter method + * + * @param param Wuids + */ + public void setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localWuidsTracker = param != null; + + this.localWuids = param; + } + + /** field for BlockTillFinishTimer */ + protected int localBlockTillFinishTimer = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBlockTillFinishTimerTracker = false; + + public boolean isBlockTillFinishTimerSpecified() { + return localBlockTillFinishTimerTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBlockTillFinishTimer() { + return localBlockTillFinishTimer; + } + + /** + * Auto generated setter method + * + * @param param BlockTillFinishTimer + */ + public void setBlockTillFinishTimer(int param) { + + // setting primitive attribute tracker to true + localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBlockTillFinishTimer = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUAbort", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUAbort", xmlWriter); + } + } + if (localWuidsTracker) { + if (localWuids == null) { + throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); + } + localWuids.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); + } + if (localBlockTillFinishTimerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); + + if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "BlockTillFinishTimer cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBlockTillFinishTimer)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUAbort parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUAbort object = new WUAbort(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUAbort".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUAbort) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") + .equals(reader.getName())) { + + object.setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BlockTillFinishTimer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBlockTillFinishTimer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAbortResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAbortResponse.java index 0b735435e..6681e4457 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAbortResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAbortResponse.java @@ -1,438 +1,438 @@ -/** - * WUAbortResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUAbortResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUAbortResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAbortResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ActionResults */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - localActionResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionResultsTracker = false; - - public boolean isActionResultsSpecified() { - return localActionResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - getActionResults() { - return localActionResults; - } - - /** - * Auto generated setter method - * - * @param param ActionResults - */ - public void setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult param) { - localActionResultsTracker = param != null; - - this.localActionResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUAbortResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUAbortResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localActionResultsTracker) { - if (localActionResults == null) { - throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); - } - localActionResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUAbortResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUAbortResponse object = new WUAbortResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUAbortResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUAbortResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") - .equals(reader.getName())) { - - object.setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUAbortResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUAbortResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUAbortResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAbortResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ActionResults */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + localActionResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionResultsTracker = false; + + public boolean isActionResultsSpecified() { + return localActionResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + getActionResults() { + return localActionResults; + } + + /** + * Auto generated setter method + * + * @param param ActionResults + */ + public void setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult param) { + localActionResultsTracker = param != null; + + this.localActionResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUAbortResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUAbortResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localActionResultsTracker) { + if (localActionResults == null) { + throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); + } + localActionResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUAbortResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUAbortResponse object = new WUAbortResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUAbortResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUAbortResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") + .equals(reader.getName())) { + + object.setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAction.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAction.java index d03098b3d..be3a5f31c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAction.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAction.java @@ -1,1529 +1,1530 @@ -/** - * WUAction.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUAction bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUAction implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAction", "ns1"); - - /** field for Wuids */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidsTracker = false; - - public boolean isWuidsSpecified() { - return localWuidsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { - return localWuids; - } - - /** - * Auto generated setter method - * - * @param param Wuids - */ - public void setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localWuidsTracker = param != null; - - this.localWuids = param; - } - - /** field for WUActionType */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions localWUActionType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUActionTypeTracker = false; - - public boolean isWUActionTypeSpecified() { - return localWUActionTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions getWUActionType() { - return localWUActionType; - } - - /** - * Auto generated setter method - * - * @param param WUActionType - */ - public void setWUActionType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions param) { - localWUActionTypeTracker = param != null; - - this.localWUActionType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for ECL */ - protected java.lang.String localECL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLTracker = false; - - public boolean isECLSpecified() { - return localECLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getECL() { - return localECL; - } - - /** - * Auto generated setter method - * - * @param param ECL - */ - public void setECL(java.lang.String param) { - localECLTracker = param != null; - - this.localECL = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** field for Test */ - protected java.lang.String localTest; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTestTracker = false; - - public boolean isTestSpecified() { - return localTestTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTest() { - return localTest; - } - - /** - * Auto generated setter method - * - * @param param Test - */ - public void setTest(java.lang.String param) { - localTestTracker = param != null; - - this.localTest = param; - } - - /** field for CurrentPage */ - protected java.lang.String localCurrentPage = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCurrentPageTracker = false; - - public boolean isCurrentPageSpecified() { - return localCurrentPageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCurrentPage() { - return localCurrentPage; - } - - /** - * Auto generated setter method - * - * @param param CurrentPage - */ - public void setCurrentPage(java.lang.String param) { - localCurrentPageTracker = param != null; - - this.localCurrentPage = param; - } - - /** field for PageSize */ - protected java.lang.String localPageSize = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageSizeTracker = false; - - public boolean isPageSizeSpecified() { - return localPageSizeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPageSize() { - return localPageSize; - } - - /** - * Auto generated setter method - * - * @param param PageSize - */ - public void setPageSize(java.lang.String param) { - localPageSizeTracker = param != null; - - this.localPageSize = param; - } - - /** field for Sortby */ - protected java.lang.String localSortby; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortbyTracker = false; - - public boolean isSortbySpecified() { - return localSortbyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortby() { - return localSortby; - } - - /** - * Auto generated setter method - * - * @param param Sortby - */ - public void setSortby(java.lang.String param) { - localSortbyTracker = param != null; - - this.localSortby = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for EventServer */ - protected java.lang.String localEventServer = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventServerTracker = false; - - public boolean isEventServerSpecified() { - return localEventServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventServer() { - return localEventServer; - } - - /** - * Auto generated setter method - * - * @param param EventServer - */ - public void setEventServer(java.lang.String param) { - localEventServerTracker = param != null; - - this.localEventServer = param; - } - - /** field for EventName */ - protected java.lang.String localEventName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventNameTracker = false; - - public boolean isEventNameSpecified() { - return localEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventName() { - return localEventName; - } - - /** - * Auto generated setter method - * - * @param param EventName - */ - public void setEventName(java.lang.String param) { - localEventNameTracker = param != null; - - this.localEventName = param; - } - - /** field for PageFrom */ - protected java.lang.String localPageFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageFromTracker = false; - - public boolean isPageFromSpecified() { - return localPageFromTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPageFrom() { - return localPageFrom; - } - - /** - * Auto generated setter method - * - * @param param PageFrom - */ - public void setPageFrom(java.lang.String param) { - localPageFromTracker = param != null; - - this.localPageFrom = param; - } - - /** field for BlockTillFinishTimer */ - protected int localBlockTillFinishTimer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBlockTillFinishTimerTracker = false; - - public boolean isBlockTillFinishTimerSpecified() { - return localBlockTillFinishTimerTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBlockTillFinishTimer() { - return localBlockTillFinishTimer; - } - - /** - * Auto generated setter method - * - * @param param BlockTillFinishTimer - */ - public void setBlockTillFinishTimer(int param) { - - // setting primitive attribute tracker to true - localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBlockTillFinishTimer = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUAction", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUAction", xmlWriter); - } - } - if (localWuidsTracker) { - if (localWuids == null) { - throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); - } - localWuids.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); - } - if (localWUActionTypeTracker) { - if (localWUActionType == null) { - throw new org.apache.axis2.databinding.ADBException("WUActionType cannot be null!!"); - } - localWUActionType.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionType"), - xmlWriter); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localECLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ECL", xmlWriter); - - if (localECL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localECL); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - if (localTestTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Test", xmlWriter); - - if (localTest == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Test cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTest); - } - - xmlWriter.writeEndElement(); - } - if (localCurrentPageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CurrentPage", xmlWriter); - - if (localCurrentPage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("CurrentPage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCurrentPage); - } - - xmlWriter.writeEndElement(); - } - if (localPageSizeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageSize", xmlWriter); - - if (localPageSize == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPageSize); - } - - xmlWriter.writeEndElement(); - } - if (localSortbyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sortby", xmlWriter); - - if (localSortby == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortby); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localEventServerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventServer", xmlWriter); - - if (localEventServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventServer cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventServer); - } - - xmlWriter.writeEndElement(); - } - if (localEventNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventName", xmlWriter); - - if (localEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventName); - } - - xmlWriter.writeEndElement(); - } - if (localPageFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageFrom", xmlWriter); - - if (localPageFrom == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PageFrom cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPageFrom); - } - - xmlWriter.writeEndElement(); - } - if (localBlockTillFinishTimerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); - - if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "BlockTillFinishTimer cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBlockTillFinishTimer)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUAction parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUAction object = new WUAction(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUAction".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUAction) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") - .equals(reader.getName())) { - - object.setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionType") - .equals(reader.getName())) { - - object.setWUActionType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Test") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Test" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTest( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CurrentPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CurrentPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCurrentPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sortby" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortby( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventServer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventServer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BlockTillFinishTimer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBlockTillFinishTimer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUAction.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUAction bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUAction implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAction", "ns1"); + + /** field for Wuids */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidsTracker = false; + + public boolean isWuidsSpecified() { + return localWuidsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { + return localWuids; + } + + /** + * Auto generated setter method + * + * @param param Wuids + */ + public void setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localWuidsTracker = param != null; + + this.localWuids = param; + } + + /** field for WUActionType */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions localWUActionType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUActionTypeTracker = false; + + public boolean isWUActionTypeSpecified() { + return localWUActionTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions getWUActionType() { + return localWUActionType; + } + + /** + * Auto generated setter method + * + * @param param WUActionType + */ + public void setWUActionType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions param) { + localWUActionTypeTracker = param != null; + + this.localWUActionType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for ECL */ + protected java.lang.String localECL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLTracker = false; + + public boolean isECLSpecified() { + return localECLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getECL() { + return localECL; + } + + /** + * Auto generated setter method + * + * @param param ECL + */ + public void setECL(java.lang.String param) { + localECLTracker = param != null; + + this.localECL = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** field for Test */ + protected java.lang.String localTest; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTestTracker = false; + + public boolean isTestSpecified() { + return localTestTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTest() { + return localTest; + } + + /** + * Auto generated setter method + * + * @param param Test + */ + public void setTest(java.lang.String param) { + localTestTracker = param != null; + + this.localTest = param; + } + + /** field for CurrentPage */ + protected java.lang.String localCurrentPage = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCurrentPageTracker = false; + + public boolean isCurrentPageSpecified() { + return localCurrentPageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCurrentPage() { + return localCurrentPage; + } + + /** + * Auto generated setter method + * + * @param param CurrentPage + */ + public void setCurrentPage(java.lang.String param) { + localCurrentPageTracker = param != null; + + this.localCurrentPage = param; + } + + /** field for PageSize */ + protected java.lang.String localPageSize = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageSizeTracker = false; + + public boolean isPageSizeSpecified() { + return localPageSizeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPageSize() { + return localPageSize; + } + + /** + * Auto generated setter method + * + * @param param PageSize + */ + public void setPageSize(java.lang.String param) { + localPageSizeTracker = param != null; + + this.localPageSize = param; + } + + /** field for Sortby */ + protected java.lang.String localSortby; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortbyTracker = false; + + public boolean isSortbySpecified() { + return localSortbyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortby() { + return localSortby; + } + + /** + * Auto generated setter method + * + * @param param Sortby + */ + public void setSortby(java.lang.String param) { + localSortbyTracker = param != null; + + this.localSortby = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for EventServer */ + protected java.lang.String localEventServer = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventServerTracker = false; + + public boolean isEventServerSpecified() { + return localEventServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventServer() { + return localEventServer; + } + + /** + * Auto generated setter method + * + * @param param EventServer + */ + public void setEventServer(java.lang.String param) { + localEventServerTracker = param != null; + + this.localEventServer = param; + } + + /** field for EventName */ + protected java.lang.String localEventName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventNameTracker = false; + + public boolean isEventNameSpecified() { + return localEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventName() { + return localEventName; + } + + /** + * Auto generated setter method + * + * @param param EventName + */ + public void setEventName(java.lang.String param) { + localEventNameTracker = param != null; + + this.localEventName = param; + } + + /** field for PageFrom */ + protected java.lang.String localPageFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageFromTracker = false; + + public boolean isPageFromSpecified() { + return localPageFromTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPageFrom() { + return localPageFrom; + } + + /** + * Auto generated setter method + * + * @param param PageFrom + */ + public void setPageFrom(java.lang.String param) { + localPageFromTracker = param != null; + + this.localPageFrom = param; + } + + /** field for BlockTillFinishTimer */ + protected int localBlockTillFinishTimer = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBlockTillFinishTimerTracker = false; + + public boolean isBlockTillFinishTimerSpecified() { + return localBlockTillFinishTimerTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBlockTillFinishTimer() { + return localBlockTillFinishTimer; + } + + /** + * Auto generated setter method + * + * @param param BlockTillFinishTimer + */ + public void setBlockTillFinishTimer(int param) { + + // setting primitive attribute tracker to true + localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBlockTillFinishTimer = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUAction", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUAction", xmlWriter); + } + } + if (localWuidsTracker) { + if (localWuids == null) { + throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); + } + localWuids.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); + } + if (localWUActionTypeTracker) { + if (localWUActionType == null) { + throw new org.apache.axis2.databinding.ADBException("WUActionType cannot be null!!"); + } + localWUActionType.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionType"), + xmlWriter); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localECLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ECL", xmlWriter); + + if (localECL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localECL); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + if (localTestTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Test", xmlWriter); + + if (localTest == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Test cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTest); + } + + xmlWriter.writeEndElement(); + } + if (localCurrentPageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CurrentPage", xmlWriter); + + if (localCurrentPage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("CurrentPage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCurrentPage); + } + + xmlWriter.writeEndElement(); + } + if (localPageSizeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageSize", xmlWriter); + + if (localPageSize == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPageSize); + } + + xmlWriter.writeEndElement(); + } + if (localSortbyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sortby", xmlWriter); + + if (localSortby == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortby); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localEventServerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventServer", xmlWriter); + + if (localEventServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventServer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventServer); + } + + xmlWriter.writeEndElement(); + } + if (localEventNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventName", xmlWriter); + + if (localEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventName); + } + + xmlWriter.writeEndElement(); + } + if (localPageFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageFrom", xmlWriter); + + if (localPageFrom == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PageFrom cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPageFrom); + } + + xmlWriter.writeEndElement(); + } + if (localBlockTillFinishTimerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); + + if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "BlockTillFinishTimer cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBlockTillFinishTimer)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUAction parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUAction object = new WUAction(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUAction".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUAction) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") + .equals(reader.getName())) { + + object.setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionType") + .equals(reader.getName())) { + + object.setWUActionType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWUActions.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Test") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Test" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTest( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CurrentPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CurrentPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCurrentPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sortby" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortby( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventServer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventServer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BlockTillFinishTimer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBlockTillFinishTimer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUActionResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUActionResponse.java index 69e9897ec..36311a320 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUActionResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUActionResponse.java @@ -1,438 +1,438 @@ -/** - * WUActionResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUActionResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUActionResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ActionResults */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - localActionResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionResultsTracker = false; - - public boolean isActionResultsSpecified() { - return localActionResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - getActionResults() { - return localActionResults; - } - - /** - * Auto generated setter method - * - * @param param ActionResults - */ - public void setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult param) { - localActionResultsTracker = param != null; - - this.localActionResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUActionResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUActionResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localActionResultsTracker) { - if (localActionResults == null) { - throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); - } - localActionResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUActionResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUActionResponse object = new WUActionResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUActionResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUActionResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") - .equals(reader.getName())) { - - object.setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUActionResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUActionResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUActionResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUActionResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ActionResults */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + localActionResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionResultsTracker = false; + + public boolean isActionResultsSpecified() { + return localActionResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + getActionResults() { + return localActionResults; + } + + /** + * Auto generated setter method + * + * @param param ActionResults + */ + public void setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult param) { + localActionResultsTracker = param != null; + + this.localActionResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUActionResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUActionResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localActionResultsTracker) { + if (localActionResults == null) { + throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); + } + localActionResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUActionResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUActionResponse object = new WUActionResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUActionResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUActionResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") + .equals(reader.getName())) { + + object.setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUActionResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUActionResult.java index 2966a31dc..381ea1752 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUActionResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUActionResult.java @@ -1,536 +1,536 @@ -/** - * WUActionResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUActionResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUActionResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUActionResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Action */ - protected java.lang.String localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction(java.lang.String param) { - localActionTracker = param != null; - - this.localAction = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUActionResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUActionResult", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localActionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Action", xmlWriter); - - if (localAction == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAction); - } - - xmlWriter.writeEndElement(); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUActionResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUActionResult object = new WUActionResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUActionResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUActionResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Action" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUActionResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUActionResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUActionResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUActionResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Action */ + protected java.lang.String localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction(java.lang.String param) { + localActionTracker = param != null; + + this.localAction = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUActionResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUActionResult", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localActionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Action", xmlWriter); + + if (localAction == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAction); + } + + xmlWriter.writeEndElement(); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUActionResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUActionResult object = new WUActionResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUActionResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUActionResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Action" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAddLocalFileToWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAddLocalFileToWorkunit.java index 0d5ecf907..8d9ae261c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAddLocalFileToWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAddLocalFileToWorkunit.java @@ -1,740 +1,740 @@ -/** - * WUAddLocalFileToWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUAddLocalFileToWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUAddLocalFileToWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUAddLocalFileToWorkunit", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Val */ - protected java.lang.String localVal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValTracker = false; - - public boolean isValSpecified() { - return localValTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getVal() { - return localVal; - } - - /** - * Auto generated setter method - * - * @param param Val - */ - public void setVal(java.lang.String param) { - localValTracker = param != null; - - this.localVal = param; - } - - /** field for DefVal */ - protected java.lang.String localDefVal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDefValTracker = false; - - public boolean isDefValSpecified() { - return localDefValTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDefVal() { - return localDefVal; - } - - /** - * Auto generated setter method - * - * @param param DefVal - */ - public void setDefVal(java.lang.String param) { - localDefValTracker = param != null; - - this.localDefVal = param; - } - - /** field for Type */ - protected int localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(int param) { - - // setting primitive attribute tracker to true - localTypeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localType = param; - } - - /** field for Length */ - protected int localLength; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLengthTracker = false; - - public boolean isLengthSpecified() { - return localLengthTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getLength() { - return localLength; - } - - /** - * Auto generated setter method - * - * @param param Length - */ - public void setLength(int param) { - - // setting primitive attribute tracker to true - localLengthTracker = param != java.lang.Integer.MIN_VALUE; - - this.localLength = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUAddLocalFileToWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUAddLocalFileToWorkunit", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localValTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Val", xmlWriter); - - if (localVal == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Val cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localVal); - } - - xmlWriter.writeEndElement(); - } - if (localDefValTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DefVal", xmlWriter); - - if (localDefVal == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DefVal cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDefVal); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localType)); - } - - xmlWriter.writeEndElement(); - } - if (localLengthTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Length", xmlWriter); - - if (localLength == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Length cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLength)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUAddLocalFileToWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUAddLocalFileToWorkunit object = new WUAddLocalFileToWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUAddLocalFileToWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUAddLocalFileToWorkunit) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Val") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Val" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setVal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DefVal") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DefVal" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDefVal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Length") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Length" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLength( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUAddLocalFileToWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUAddLocalFileToWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUAddLocalFileToWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUAddLocalFileToWorkunit", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Val */ + protected java.lang.String localVal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValTracker = false; + + public boolean isValSpecified() { + return localValTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getVal() { + return localVal; + } + + /** + * Auto generated setter method + * + * @param param Val + */ + public void setVal(java.lang.String param) { + localValTracker = param != null; + + this.localVal = param; + } + + /** field for DefVal */ + protected java.lang.String localDefVal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDefValTracker = false; + + public boolean isDefValSpecified() { + return localDefValTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDefVal() { + return localDefVal; + } + + /** + * Auto generated setter method + * + * @param param DefVal + */ + public void setDefVal(java.lang.String param) { + localDefValTracker = param != null; + + this.localDefVal = param; + } + + /** field for Type */ + protected int localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(int param) { + + // setting primitive attribute tracker to true + localTypeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localType = param; + } + + /** field for Length */ + protected int localLength; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLengthTracker = false; + + public boolean isLengthSpecified() { + return localLengthTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getLength() { + return localLength; + } + + /** + * Auto generated setter method + * + * @param param Length + */ + public void setLength(int param) { + + // setting primitive attribute tracker to true + localLengthTracker = param != java.lang.Integer.MIN_VALUE; + + this.localLength = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUAddLocalFileToWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUAddLocalFileToWorkunit", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localValTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Val", xmlWriter); + + if (localVal == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Val cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localVal); + } + + xmlWriter.writeEndElement(); + } + if (localDefValTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DefVal", xmlWriter); + + if (localDefVal == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DefVal cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDefVal); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localType)); + } + + xmlWriter.writeEndElement(); + } + if (localLengthTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Length", xmlWriter); + + if (localLength == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Length cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLength)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUAddLocalFileToWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUAddLocalFileToWorkunit object = new WUAddLocalFileToWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUAddLocalFileToWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUAddLocalFileToWorkunit) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Val") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Val" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setVal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DefVal") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DefVal" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDefVal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Length") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Length" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLength( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAddLocalFileToWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAddLocalFileToWorkunitResponse.java index 09e9d0d5a..3423646d8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAddLocalFileToWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAddLocalFileToWorkunitResponse.java @@ -1,588 +1,588 @@ -/** - * WUAddLocalFileToWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUAddLocalFileToWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUAddLocalFileToWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUAddLocalFileToWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUAddLocalFileToWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUAddLocalFileToWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUAddLocalFileToWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUAddLocalFileToWorkunitResponse object = new WUAddLocalFileToWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUAddLocalFileToWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUAddLocalFileToWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUAddLocalFileToWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUAddLocalFileToWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUAddLocalFileToWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUAddLocalFileToWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUAddLocalFileToWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUAddLocalFileToWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUAddLocalFileToWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUAddLocalFileToWorkunitResponse object = new WUAddLocalFileToWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUAddLocalFileToWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUAddLocalFileToWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAnalyseHotspot.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAnalyseHotspot.java index 95258edaa..29b73ce25 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAnalyseHotspot.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAnalyseHotspot.java @@ -1,879 +1,879 @@ -/** - * WUAnalyseHotspot.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUAnalyseHotspot bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUAnalyseHotspot implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAnalyseHotspot", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for RootScope */ - protected java.lang.String localRootScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRootScopeTracker = false; - - public boolean isRootScopeSpecified() { - return localRootScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRootScope() { - return localRootScope; - } - - /** - * Auto generated setter method - * - * @param param RootScope - */ - public void setRootScope(java.lang.String param) { - localRootScopeTracker = param != null; - - this.localRootScope = param; - } - - /** field for OptOnlyActive */ - protected boolean localOptOnlyActive = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOptOnlyActiveTracker = false; - - public boolean isOptOnlyActiveSpecified() { - return localOptOnlyActiveTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOptOnlyActive() { - return localOptOnlyActive; - } - - /** - * Auto generated setter method - * - * @param param OptOnlyActive - */ - public void setOptOnlyActive(boolean param) { - - // setting primitive attribute tracker to true - localOptOnlyActiveTracker = true; - - this.localOptOnlyActive = param; - } - - /** field for OnlyCriticalPath */ - protected boolean localOnlyCriticalPath = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnlyCriticalPathTracker = false; - - public boolean isOnlyCriticalPathSpecified() { - return localOnlyCriticalPathTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOnlyCriticalPath() { - return localOnlyCriticalPath; - } - - /** - * Auto generated setter method - * - * @param param OnlyCriticalPath - */ - public void setOnlyCriticalPath(boolean param) { - - // setting primitive attribute tracker to true - localOnlyCriticalPathTracker = true; - - this.localOnlyCriticalPath = param; - } - - /** field for IncludeProperties */ - protected boolean localIncludeProperties = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludePropertiesTracker = false; - - public boolean isIncludePropertiesSpecified() { - return localIncludePropertiesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeProperties() { - return localIncludeProperties; - } - - /** - * Auto generated setter method - * - * @param param IncludeProperties - */ - public void setIncludeProperties(boolean param) { - - // setting primitive attribute tracker to true - localIncludePropertiesTracker = true; - - this.localIncludeProperties = param; - } - - /** field for IncludeStatistics */ - protected boolean localIncludeStatistics = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeStatisticsTracker = false; - - public boolean isIncludeStatisticsSpecified() { - return localIncludeStatisticsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeStatistics() { - return localIncludeStatistics; - } - - /** - * Auto generated setter method - * - * @param param IncludeStatistics - */ - public void setIncludeStatistics(boolean param) { - - // setting primitive attribute tracker to true - localIncludeStatisticsTracker = true; - - this.localIncludeStatistics = param; - } - - /** field for ThresholdPercent */ - protected double localThresholdPercent = - org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble("1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThresholdPercentTracker = false; - - public boolean isThresholdPercentSpecified() { - return localThresholdPercentTracker; - } - - /** - * Auto generated getter method - * - * @return double - */ - public double getThresholdPercent() { - return localThresholdPercent; - } - - /** - * Auto generated setter method - * - * @param param ThresholdPercent - */ - public void setThresholdPercent(double param) { - - // setting primitive attribute tracker to true - localThresholdPercentTracker = !java.lang.Double.isNaN(param); - - this.localThresholdPercent = param; - } - - /** field for PropertyOptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions - localPropertyOptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertyOptionsTracker = false; - - public boolean isPropertyOptionsSpecified() { - return localPropertyOptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions - getPropertyOptions() { - return localPropertyOptions; - } - - /** - * Auto generated setter method - * - * @param param PropertyOptions - */ - public void setPropertyOptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions param) { - localPropertyOptionsTracker = param != null; - - this.localPropertyOptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUAnalyseHotspot", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUAnalyseHotspot", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localRootScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RootScope", xmlWriter); - - if (localRootScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RootScope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRootScope); - } - - xmlWriter.writeEndElement(); - } - if (localOptOnlyActiveTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OptOnlyActive", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OptOnlyActive cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOptOnlyActive)); - } - - xmlWriter.writeEndElement(); - } - if (localOnlyCriticalPathTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OnlyCriticalPath", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OnlyCriticalPath cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localOnlyCriticalPath)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludePropertiesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeProperties", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeProperties cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeProperties)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeStatisticsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeStatistics", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeStatistics cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeStatistics)); - } - - xmlWriter.writeEndElement(); - } - if (localThresholdPercentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThresholdPercent", xmlWriter); - - if (java.lang.Double.isNaN(localThresholdPercent)) { - - throw new org.apache.axis2.databinding.ADBException("ThresholdPercent cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localThresholdPercent)); - } - - xmlWriter.writeEndElement(); - } - if (localPropertyOptionsTracker) { - if (localPropertyOptions == null) { - throw new org.apache.axis2.databinding.ADBException("PropertyOptions cannot be null!!"); - } - localPropertyOptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyOptions"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUAnalyseHotspot parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUAnalyseHotspot object = new WUAnalyseHotspot(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUAnalyseHotspot".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUAnalyseHotspot) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RootScope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RootScope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRootScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OptOnlyActive") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OptOnlyActive" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOptOnlyActive( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "OnlyCriticalPath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OnlyCriticalPath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOnlyCriticalPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeProperties") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeProperties" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeProperties( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeStatistics") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeStatistics" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeStatistics( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ThresholdPercent") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThresholdPercent" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThresholdPercent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "PropertyOptions") - .equals(reader.getName())) { - - object.setPropertyOptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUAnalyseHotspot.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUAnalyseHotspot bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUAnalyseHotspot implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAnalyseHotspot", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for RootScope */ + protected java.lang.String localRootScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRootScopeTracker = false; + + public boolean isRootScopeSpecified() { + return localRootScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRootScope() { + return localRootScope; + } + + /** + * Auto generated setter method + * + * @param param RootScope + */ + public void setRootScope(java.lang.String param) { + localRootScopeTracker = param != null; + + this.localRootScope = param; + } + + /** field for OptOnlyActive */ + protected boolean localOptOnlyActive = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOptOnlyActiveTracker = false; + + public boolean isOptOnlyActiveSpecified() { + return localOptOnlyActiveTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOptOnlyActive() { + return localOptOnlyActive; + } + + /** + * Auto generated setter method + * + * @param param OptOnlyActive + */ + public void setOptOnlyActive(boolean param) { + + // setting primitive attribute tracker to true + localOptOnlyActiveTracker = true; + + this.localOptOnlyActive = param; + } + + /** field for OnlyCriticalPath */ + protected boolean localOnlyCriticalPath = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnlyCriticalPathTracker = false; + + public boolean isOnlyCriticalPathSpecified() { + return localOnlyCriticalPathTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOnlyCriticalPath() { + return localOnlyCriticalPath; + } + + /** + * Auto generated setter method + * + * @param param OnlyCriticalPath + */ + public void setOnlyCriticalPath(boolean param) { + + // setting primitive attribute tracker to true + localOnlyCriticalPathTracker = true; + + this.localOnlyCriticalPath = param; + } + + /** field for IncludeProperties */ + protected boolean localIncludeProperties = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludePropertiesTracker = false; + + public boolean isIncludePropertiesSpecified() { + return localIncludePropertiesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeProperties() { + return localIncludeProperties; + } + + /** + * Auto generated setter method + * + * @param param IncludeProperties + */ + public void setIncludeProperties(boolean param) { + + // setting primitive attribute tracker to true + localIncludePropertiesTracker = true; + + this.localIncludeProperties = param; + } + + /** field for IncludeStatistics */ + protected boolean localIncludeStatistics = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeStatisticsTracker = false; + + public boolean isIncludeStatisticsSpecified() { + return localIncludeStatisticsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeStatistics() { + return localIncludeStatistics; + } + + /** + * Auto generated setter method + * + * @param param IncludeStatistics + */ + public void setIncludeStatistics(boolean param) { + + // setting primitive attribute tracker to true + localIncludeStatisticsTracker = true; + + this.localIncludeStatistics = param; + } + + /** field for ThresholdPercent */ + protected double localThresholdPercent = + org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble("1.0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThresholdPercentTracker = false; + + public boolean isThresholdPercentSpecified() { + return localThresholdPercentTracker; + } + + /** + * Auto generated getter method + * + * @return double + */ + public double getThresholdPercent() { + return localThresholdPercent; + } + + /** + * Auto generated setter method + * + * @param param ThresholdPercent + */ + public void setThresholdPercent(double param) { + + // setting primitive attribute tracker to true + localThresholdPercentTracker = !java.lang.Double.isNaN(param); + + this.localThresholdPercent = param; + } + + /** field for PropertyOptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions + localPropertyOptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertyOptionsTracker = false; + + public boolean isPropertyOptionsSpecified() { + return localPropertyOptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions + getPropertyOptions() { + return localPropertyOptions; + } + + /** + * Auto generated setter method + * + * @param param PropertyOptions + */ + public void setPropertyOptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions param) { + localPropertyOptionsTracker = param != null; + + this.localPropertyOptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUAnalyseHotspot", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUAnalyseHotspot", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localRootScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RootScope", xmlWriter); + + if (localRootScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RootScope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRootScope); + } + + xmlWriter.writeEndElement(); + } + if (localOptOnlyActiveTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OptOnlyActive", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OptOnlyActive cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOptOnlyActive)); + } + + xmlWriter.writeEndElement(); + } + if (localOnlyCriticalPathTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OnlyCriticalPath", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OnlyCriticalPath cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localOnlyCriticalPath)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludePropertiesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeProperties", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeProperties cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeProperties)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeStatisticsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeStatistics", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeStatistics cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeStatistics)); + } + + xmlWriter.writeEndElement(); + } + if (localThresholdPercentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThresholdPercent", xmlWriter); + + if (java.lang.Double.isNaN(localThresholdPercent)) { + + throw new org.apache.axis2.databinding.ADBException("ThresholdPercent cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localThresholdPercent)); + } + + xmlWriter.writeEndElement(); + } + if (localPropertyOptionsTracker) { + if (localPropertyOptions == null) { + throw new org.apache.axis2.databinding.ADBException("PropertyOptions cannot be null!!"); + } + localPropertyOptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyOptions"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUAnalyseHotspot parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUAnalyseHotspot object = new WUAnalyseHotspot(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUAnalyseHotspot".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUAnalyseHotspot) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RootScope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RootScope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRootScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OptOnlyActive") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OptOnlyActive" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOptOnlyActive( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "OnlyCriticalPath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OnlyCriticalPath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOnlyCriticalPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeProperties") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeProperties" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeProperties( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeStatistics") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeStatistics" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeStatistics( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ThresholdPercent") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThresholdPercent" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThresholdPercent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDouble(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "PropertyOptions") + .equals(reader.getName())) { + + object.setPropertyOptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAnalyseHotspotResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAnalyseHotspotResponse.java index 62acec5d7..18af8a562 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAnalyseHotspotResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUAnalyseHotspotResponse.java @@ -1,628 +1,628 @@ -/** - * WUAnalyseHotspotResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUAnalyseHotspotResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUAnalyseHotspotResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUAnalyseHotspotResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for RootScope */ - protected java.lang.String localRootScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRootScopeTracker = false; - - public boolean isRootScopeSpecified() { - return localRootScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRootScope() { - return localRootScope; - } - - /** - * Auto generated setter method - * - * @param param RootScope - */ - public void setRootScope(java.lang.String param) { - localRootScopeTracker = param != null; - - this.localRootScope = param; - } - - /** field for RootTime */ - protected long localRootTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRootTimeTracker = false; - - public boolean isRootTimeSpecified() { - return localRootTimeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getRootTime() { - return localRootTime; - } - - /** - * Auto generated setter method - * - * @param param RootTime - */ - public void setRootTime(long param) { - - // setting primitive attribute tracker to true - localRootTimeTracker = param != java.lang.Long.MIN_VALUE; - - this.localRootTime = param; - } - - /** field for Activities */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0 localActivities; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivitiesTracker = false; - - public boolean isActivitiesSpecified() { - return localActivitiesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0 getActivities() { - return localActivities; - } - - /** - * Auto generated setter method - * - * @param param Activities - */ - public void setActivities( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0 param) { - localActivitiesTracker = param != null; - - this.localActivities = param; - } - - /** field for Dependencies */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0 - localDependencies; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDependenciesTracker = false; - - public boolean isDependenciesSpecified() { - return localDependenciesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0 - getDependencies() { - return localDependencies; - } - - /** - * Auto generated setter method - * - * @param param Dependencies - */ - public void setDependencies( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0 param) { - localDependenciesTracker = param != null; - - this.localDependencies = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUAnalyseHotspotResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUAnalyseHotspotResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localRootScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RootScope", xmlWriter); - - if (localRootScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RootScope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRootScope); - } - - xmlWriter.writeEndElement(); - } - if (localRootTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RootTime", xmlWriter); - - if (localRootTime == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("RootTime cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRootTime)); - } - - xmlWriter.writeEndElement(); - } - if (localActivitiesTracker) { - if (localActivities == null) { - throw new org.apache.axis2.databinding.ADBException("Activities cannot be null!!"); - } - localActivities.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activities"), xmlWriter); - } - if (localDependenciesTracker) { - if (localDependencies == null) { - throw new org.apache.axis2.databinding.ADBException("Dependencies cannot be null!!"); - } - localDependencies.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependencies"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUAnalyseHotspotResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUAnalyseHotspotResponse object = new WUAnalyseHotspotResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUAnalyseHotspotResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUAnalyseHotspotResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RootScope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RootScope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRootScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RootTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RootTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRootTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activities") - .equals(reader.getName())) { - - object.setActivities( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependencies") - .equals(reader.getName())) { - - object.setDependencies( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUAnalyseHotspotResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUAnalyseHotspotResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUAnalyseHotspotResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUAnalyseHotspotResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for RootScope */ + protected java.lang.String localRootScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRootScopeTracker = false; + + public boolean isRootScopeSpecified() { + return localRootScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRootScope() { + return localRootScope; + } + + /** + * Auto generated setter method + * + * @param param RootScope + */ + public void setRootScope(java.lang.String param) { + localRootScopeTracker = param != null; + + this.localRootScope = param; + } + + /** field for RootTime */ + protected long localRootTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRootTimeTracker = false; + + public boolean isRootTimeSpecified() { + return localRootTimeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getRootTime() { + return localRootTime; + } + + /** + * Auto generated setter method + * + * @param param RootTime + */ + public void setRootTime(long param) { + + // setting primitive attribute tracker to true + localRootTimeTracker = param != java.lang.Long.MIN_VALUE; + + this.localRootTime = param; + } + + /** field for Activities */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0 localActivities; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivitiesTracker = false; + + public boolean isActivitiesSpecified() { + return localActivitiesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0 getActivities() { + return localActivities; + } + + /** + * Auto generated setter method + * + * @param param Activities + */ + public void setActivities( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0 param) { + localActivitiesTracker = param != null; + + this.localActivities = param; + } + + /** field for Dependencies */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0 + localDependencies; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDependenciesTracker = false; + + public boolean isDependenciesSpecified() { + return localDependenciesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0 + getDependencies() { + return localDependencies; + } + + /** + * Auto generated setter method + * + * @param param Dependencies + */ + public void setDependencies( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0 param) { + localDependenciesTracker = param != null; + + this.localDependencies = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUAnalyseHotspotResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUAnalyseHotspotResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localRootScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RootScope", xmlWriter); + + if (localRootScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RootScope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRootScope); + } + + xmlWriter.writeEndElement(); + } + if (localRootTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RootTime", xmlWriter); + + if (localRootTime == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("RootTime cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRootTime)); + } + + xmlWriter.writeEndElement(); + } + if (localActivitiesTracker) { + if (localActivities == null) { + throw new org.apache.axis2.databinding.ADBException("Activities cannot be null!!"); + } + localActivities.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activities"), xmlWriter); + } + if (localDependenciesTracker) { + if (localDependencies == null) { + throw new org.apache.axis2.databinding.ADBException("Dependencies cannot be null!!"); + } + localDependencies.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependencies"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUAnalyseHotspotResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUAnalyseHotspotResponse object = new WUAnalyseHotspotResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUAnalyseHotspotResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUAnalyseHotspotResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RootScope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RootScope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRootScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RootTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RootTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRootTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activities") + .equals(reader.getName())) { + + object.setActivities( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependencies") + .equals(reader.getName())) { + + object.setDependencies( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUArchiveFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUArchiveFile.java index 8b829a928..2255c71b6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUArchiveFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUArchiveFile.java @@ -1,600 +1,600 @@ -/** - * WUArchiveFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUArchiveFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUArchiveFile implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUArchiveFile - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Key */ - protected java.lang.String localKey; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKeyTracker = false; - - public boolean isKeySpecified() { - return localKeyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getKey() { - return localKey; - } - - /** - * Auto generated setter method - * - * @param param Key - */ - public void setKey(java.lang.String param) { - localKeyTracker = param != null; - - this.localKey = param; - } - - /** field for SourcePath */ - protected java.lang.String localSourcePath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourcePathTracker = false; - - public boolean isSourcePathSpecified() { - return localSourcePathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourcePath() { - return localSourcePath; - } - - /** - * Auto generated setter method - * - * @param param SourcePath - */ - public void setSourcePath(java.lang.String param) { - localSourcePathTracker = param != null; - - this.localSourcePath = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUArchiveFile", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUArchiveFile", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localKeyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Key", xmlWriter); - - 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 (localSourcePathTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourcePath", xmlWriter); - - if (localSourcePath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourcePath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourcePath); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUArchiveFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUArchiveFile object = new WUArchiveFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUArchiveFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUArchiveFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Key") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Key" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKey( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourcePath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourcePath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourcePath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUArchiveFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUArchiveFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUArchiveFile implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUArchiveFile + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Key */ + protected java.lang.String localKey; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKeyTracker = false; + + public boolean isKeySpecified() { + return localKeyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getKey() { + return localKey; + } + + /** + * Auto generated setter method + * + * @param param Key + */ + public void setKey(java.lang.String param) { + localKeyTracker = param != null; + + this.localKey = param; + } + + /** field for SourcePath */ + protected java.lang.String localSourcePath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourcePathTracker = false; + + public boolean isSourcePathSpecified() { + return localSourcePathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourcePath() { + return localSourcePath; + } + + /** + * Auto generated setter method + * + * @param param SourcePath + */ + public void setSourcePath(java.lang.String param) { + localSourcePathTracker = param != null; + + this.localSourcePath = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUArchiveFile", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUArchiveFile", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localKeyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Key", xmlWriter); + + 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 (localSourcePathTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourcePath", xmlWriter); + + if (localSourcePath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourcePath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourcePath); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUArchiveFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUArchiveFile object = new WUArchiveFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUArchiveFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUArchiveFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Key") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Key" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKey( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourcePath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourcePath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourcePath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUArchiveModule.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUArchiveModule.java index 274480fa4..28450b1c7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUArchiveModule.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUArchiveModule.java @@ -1,983 +1,983 @@ -/** - * WUArchiveModule.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUArchiveModule bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUArchiveModule implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUArchiveModule - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for FullName */ - protected java.lang.String localFullName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFullNameTracker = false; - - public boolean isFullNameSpecified() { - return localFullNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFullName() { - return localFullName; - } - - /** - * Auto generated setter method - * - * @param param FullName - */ - public void setFullName(java.lang.String param) { - localFullNameTracker = param != null; - - this.localFullName = param; - } - - /** field for Flags */ - protected org.apache.axis2.databinding.types.UnsignedInt localFlags; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFlagsTracker = false; - - public boolean isFlagsSpecified() { - return localFlagsTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getFlags() { - return localFlags; - } - - /** - * Auto generated setter method - * - * @param param Flags - */ - public void setFlags(org.apache.axis2.databinding.types.UnsignedInt param) { - localFlagsTracker = param != null; - - this.localFlags = param; - } - - /** field for Key */ - protected java.lang.String localKey; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKeyTracker = false; - - public boolean isKeySpecified() { - return localKeyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getKey() { - return localKey; - } - - /** - * Auto generated setter method - * - * @param param Key - */ - public void setKey(java.lang.String param) { - localKeyTracker = param != null; - - this.localKey = param; - } - - /** field for Plugin */ - protected java.lang.String localPlugin; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPluginTracker = false; - - public boolean isPluginSpecified() { - return localPluginTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPlugin() { - return localPlugin; - } - - /** - * Auto generated setter method - * - * @param param Plugin - */ - public void setPlugin(java.lang.String param) { - localPluginTracker = param != null; - - this.localPlugin = param; - } - - /** field for SourcePath */ - protected java.lang.String localSourcePath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourcePathTracker = false; - - public boolean isSourcePathSpecified() { - return localSourcePathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourcePath() { - return localSourcePath; - } - - /** - * Auto generated setter method - * - * @param param SourcePath - */ - public void setSourcePath(java.lang.String param) { - localSourcePathTracker = param != null; - - this.localSourcePath = param; - } - - /** field for Version */ - protected java.lang.String localVersion; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localVersionTracker = false; - - public boolean isVersionSpecified() { - return localVersionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getVersion() { - return localVersion; - } - - /** - * Auto generated setter method - * - * @param param Version - */ - public void setVersion(java.lang.String param) { - localVersionTracker = param != null; - - this.localVersion = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for ArchiveModules */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 - localArchiveModules; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localArchiveModulesTracker = false; - - public boolean isArchiveModulesSpecified() { - return localArchiveModulesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 - getArchiveModules() { - return localArchiveModules; - } - - /** - * Auto generated setter method - * - * @param param ArchiveModules - */ - public void setArchiveModules( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 param) { - localArchiveModulesTracker = param != null; - - this.localArchiveModules = param; - } - - /** field for Files */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0 localFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesTracker = false; - - public boolean isFilesSpecified() { - return localFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0 getFiles() { - return localFiles; - } - - /** - * Auto generated setter method - * - * @param param Files - */ - public void setFiles(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0 param) { - localFilesTracker = param != null; - - this.localFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUArchiveModule", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUArchiveModule", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localFullNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FullName", xmlWriter); - - if (localFullName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FullName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFullName); - } - - xmlWriter.writeEndElement(); - } - if (localFlagsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Flags", xmlWriter); - - if (localFlags == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Flags cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFlags)); - } - - xmlWriter.writeEndElement(); - } - if (localKeyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Key", xmlWriter); - - 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 (localPluginTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Plugin", xmlWriter); - - if (localPlugin == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Plugin cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPlugin); - } - - xmlWriter.writeEndElement(); - } - if (localSourcePathTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourcePath", xmlWriter); - - if (localSourcePath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourcePath cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourcePath); - } - - xmlWriter.writeEndElement(); - } - if (localVersionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Version", xmlWriter); - - if (localVersion == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Version cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localVersion); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localArchiveModulesTracker) { - if (localArchiveModules == null) { - throw new org.apache.axis2.databinding.ADBException("ArchiveModules cannot be null!!"); - } - localArchiveModules.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModules"), - xmlWriter); - } - if (localFilesTracker) { - if (localFiles == null) { - throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); - } - localFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUArchiveModule parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUArchiveModule object = new WUArchiveModule(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUArchiveModule".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUArchiveModule) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FullName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FullName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFullName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Flags") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Flags" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFlags( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Key") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Key" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKey( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugin") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Plugin" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPlugin( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourcePath") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourcePath" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourcePath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Version") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Version" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setVersion( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModules") - .equals(reader.getName())) { - - object.setArchiveModules( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files") - .equals(reader.getName())) { - - object.setFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUArchiveModule.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUArchiveModule bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUArchiveModule implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUArchiveModule + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for FullName */ + protected java.lang.String localFullName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFullNameTracker = false; + + public boolean isFullNameSpecified() { + return localFullNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFullName() { + return localFullName; + } + + /** + * Auto generated setter method + * + * @param param FullName + */ + public void setFullName(java.lang.String param) { + localFullNameTracker = param != null; + + this.localFullName = param; + } + + /** field for Flags */ + protected org.apache.axis2.databinding.types.UnsignedInt localFlags; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFlagsTracker = false; + + public boolean isFlagsSpecified() { + return localFlagsTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getFlags() { + return localFlags; + } + + /** + * Auto generated setter method + * + * @param param Flags + */ + public void setFlags(org.apache.axis2.databinding.types.UnsignedInt param) { + localFlagsTracker = param != null; + + this.localFlags = param; + } + + /** field for Key */ + protected java.lang.String localKey; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKeyTracker = false; + + public boolean isKeySpecified() { + return localKeyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getKey() { + return localKey; + } + + /** + * Auto generated setter method + * + * @param param Key + */ + public void setKey(java.lang.String param) { + localKeyTracker = param != null; + + this.localKey = param; + } + + /** field for Plugin */ + protected java.lang.String localPlugin; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPluginTracker = false; + + public boolean isPluginSpecified() { + return localPluginTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPlugin() { + return localPlugin; + } + + /** + * Auto generated setter method + * + * @param param Plugin + */ + public void setPlugin(java.lang.String param) { + localPluginTracker = param != null; + + this.localPlugin = param; + } + + /** field for SourcePath */ + protected java.lang.String localSourcePath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourcePathTracker = false; + + public boolean isSourcePathSpecified() { + return localSourcePathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourcePath() { + return localSourcePath; + } + + /** + * Auto generated setter method + * + * @param param SourcePath + */ + public void setSourcePath(java.lang.String param) { + localSourcePathTracker = param != null; + + this.localSourcePath = param; + } + + /** field for Version */ + protected java.lang.String localVersion; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localVersionTracker = false; + + public boolean isVersionSpecified() { + return localVersionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getVersion() { + return localVersion; + } + + /** + * Auto generated setter method + * + * @param param Version + */ + public void setVersion(java.lang.String param) { + localVersionTracker = param != null; + + this.localVersion = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for ArchiveModules */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 + localArchiveModules; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localArchiveModulesTracker = false; + + public boolean isArchiveModulesSpecified() { + return localArchiveModulesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 + getArchiveModules() { + return localArchiveModules; + } + + /** + * Auto generated setter method + * + * @param param ArchiveModules + */ + public void setArchiveModules( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 param) { + localArchiveModulesTracker = param != null; + + this.localArchiveModules = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0 localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0 getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0 param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUArchiveModule", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUArchiveModule", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localFullNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FullName", xmlWriter); + + if (localFullName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FullName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFullName); + } + + xmlWriter.writeEndElement(); + } + if (localFlagsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Flags", xmlWriter); + + if (localFlags == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Flags cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFlags)); + } + + xmlWriter.writeEndElement(); + } + if (localKeyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Key", xmlWriter); + + 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 (localPluginTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Plugin", xmlWriter); + + if (localPlugin == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Plugin cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPlugin); + } + + xmlWriter.writeEndElement(); + } + if (localSourcePathTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourcePath", xmlWriter); + + if (localSourcePath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourcePath cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourcePath); + } + + xmlWriter.writeEndElement(); + } + if (localVersionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Version", xmlWriter); + + if (localVersion == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Version cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localVersion); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localArchiveModulesTracker) { + if (localArchiveModules == null) { + throw new org.apache.axis2.databinding.ADBException("ArchiveModules cannot be null!!"); + } + localArchiveModules.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModules"), + xmlWriter); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUArchiveModule parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUArchiveModule object = new WUArchiveModule(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUArchiveModule".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUArchiveModule) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FullName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FullName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFullName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Flags") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Flags" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFlags( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Key") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Key" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKey( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugin") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Plugin" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPlugin( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourcePath") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourcePath" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourcePath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Version") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Version" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModules") + .equals(reader.getName())) { + + object.setArchiveModules( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type0 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type0.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCDebug.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCDebug.java index f9dc690d8..13d695f66 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCDebug.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCDebug.java @@ -1,461 +1,461 @@ -/** - * WUCDebug.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCDebug bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCDebug implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCDebug", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Command */ - protected java.lang.String localCommand; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommandTracker = false; - - public boolean isCommandSpecified() { - return localCommandTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCommand() { - return localCommand; - } - - /** - * Auto generated setter method - * - * @param param Command - */ - public void setCommand(java.lang.String param) { - localCommandTracker = param != null; - - this.localCommand = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCDebug", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUCDebug", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localCommandTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Command", xmlWriter); - - if (localCommand == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Command cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCommand); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCDebug parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCDebug object = new WUCDebug(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCDebug".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCDebug) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Command") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Command" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCommand( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCDebug.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCDebug bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCDebug implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCDebug", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Command */ + protected java.lang.String localCommand; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommandTracker = false; + + public boolean isCommandSpecified() { + return localCommandTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCommand() { + return localCommand; + } + + /** + * Auto generated setter method + * + * @param param Command + */ + public void setCommand(java.lang.String param) { + localCommandTracker = param != null; + + this.localCommand = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCDebug", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUCDebug", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localCommandTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Command", xmlWriter); + + if (localCommand == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Command cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCommand); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCDebug parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCDebug object = new WUCDebug(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCDebug".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCDebug) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Command") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Command" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCommand( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCheckFeatures.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCheckFeatures.java index 5b384be70..3d9035250 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCheckFeatures.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCheckFeatures.java @@ -1,315 +1,401 @@ -/** - * WUCheckFeatures.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCheckFeatures bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCheckFeatures implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCheckFeatures", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCheckFeatures", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCheckFeatures", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCheckFeatures parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCheckFeatures object = new WUCheckFeatures(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCheckFeatures".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCheckFeatures) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCheckFeatures.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCheckFeatures bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCheckFeatures implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCheckFeatures", "ns1"); + + /** field for IncludeFullVersion */ + protected boolean localIncludeFullVersion = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeFullVersionTracker = false; + + public boolean isIncludeFullVersionSpecified() { + return localIncludeFullVersionTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeFullVersion() { + return localIncludeFullVersion; + } + + /** + * Auto generated setter method + * + * @param param IncludeFullVersion + */ + public void setIncludeFullVersion(boolean param) { + + // setting primitive attribute tracker to true + localIncludeFullVersionTracker = true; + + this.localIncludeFullVersion = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCheckFeatures", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCheckFeatures", + xmlWriter); + } + } + if (localIncludeFullVersionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeFullVersion", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeFullVersion cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeFullVersion)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCheckFeatures parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCheckFeatures object = new WUCheckFeatures(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCheckFeatures".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCheckFeatures) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeFullVersion") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeFullVersion" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeFullVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCheckFeaturesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCheckFeaturesResponse.java index a9027a866..8e7b9da41 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCheckFeaturesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCheckFeaturesResponse.java @@ -1,722 +1,927 @@ -/** - * WUCheckFeaturesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCheckFeaturesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCheckFeaturesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUCheckFeaturesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for BuildVersionMajor */ - protected int localBuildVersionMajor; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildVersionMajorTracker = false; - - public boolean isBuildVersionMajorSpecified() { - return localBuildVersionMajorTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBuildVersionMajor() { - return localBuildVersionMajor; - } - - /** - * Auto generated setter method - * - * @param param BuildVersionMajor - */ - public void setBuildVersionMajor(int param) { - - // setting primitive attribute tracker to true - localBuildVersionMajorTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBuildVersionMajor = param; - } - - /** field for BuildVersionMinor */ - protected int localBuildVersionMinor; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildVersionMinorTracker = false; - - public boolean isBuildVersionMinorSpecified() { - return localBuildVersionMinorTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBuildVersionMinor() { - return localBuildVersionMinor; - } - - /** - * Auto generated setter method - * - * @param param BuildVersionMinor - */ - public void setBuildVersionMinor(int param) { - - // setting primitive attribute tracker to true - localBuildVersionMinorTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBuildVersionMinor = param; - } - - /** field for BuildVersionPoint */ - protected int localBuildVersionPoint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildVersionPointTracker = false; - - public boolean isBuildVersionPointSpecified() { - return localBuildVersionPointTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBuildVersionPoint() { - return localBuildVersionPoint; - } - - /** - * Auto generated setter method - * - * @param param BuildVersionPoint - */ - public void setBuildVersionPoint(int param) { - - // setting primitive attribute tracker to true - localBuildVersionPointTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBuildVersionPoint = param; - } - - /** field for MaxRequestEntityLength */ - protected org.apache.axis2.databinding.types.UnsignedInt localMaxRequestEntityLength; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxRequestEntityLengthTracker = false; - - public boolean isMaxRequestEntityLengthSpecified() { - return localMaxRequestEntityLengthTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getMaxRequestEntityLength() { - return localMaxRequestEntityLength; - } - - /** - * Auto generated setter method - * - * @param param MaxRequestEntityLength - */ - public void setMaxRequestEntityLength(org.apache.axis2.databinding.types.UnsignedInt param) { - localMaxRequestEntityLengthTracker = param != null; - - this.localMaxRequestEntityLength = param; - } - - /** field for Deployment */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures - localDeployment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDeploymentTracker = false; - - public boolean isDeploymentSpecified() { - return localDeploymentTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures getDeployment() { - return localDeployment; - } - - /** - * Auto generated setter method - * - * @param param Deployment - */ - public void setDeployment( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures param) { - localDeploymentTracker = param != null; - - this.localDeployment = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCheckFeaturesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCheckFeaturesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localBuildVersionMajorTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BuildVersionMajor", xmlWriter); - - if (localBuildVersionMajor == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BuildVersionMajor cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBuildVersionMajor)); - } - - xmlWriter.writeEndElement(); - } - if (localBuildVersionMinorTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BuildVersionMinor", xmlWriter); - - if (localBuildVersionMinor == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BuildVersionMinor cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBuildVersionMinor)); - } - - xmlWriter.writeEndElement(); - } - if (localBuildVersionPointTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BuildVersionPoint", xmlWriter); - - if (localBuildVersionPoint == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BuildVersionPoint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBuildVersionPoint)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxRequestEntityLengthTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "maxRequestEntityLength", xmlWriter); - - if (localMaxRequestEntityLength == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "maxRequestEntityLength cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localMaxRequestEntityLength)); - } - - xmlWriter.writeEndElement(); - } - if (localDeploymentTracker) { - if (localDeployment == null) { - throw new org.apache.axis2.databinding.ADBException("Deployment cannot be null!!"); - } - localDeployment.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Deployment"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCheckFeaturesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCheckFeaturesResponse object = new WUCheckFeaturesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCheckFeaturesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCheckFeaturesResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BuildVersionMajor") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BuildVersionMajor" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuildVersionMajor( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BuildVersionMinor") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BuildVersionMinor" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuildVersionMinor( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BuildVersionPoint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BuildVersionPoint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuildVersionPoint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "maxRequestEntityLength") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "maxRequestEntityLength" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxRequestEntityLength( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Deployment") - .equals(reader.getName())) { - - object.setDeployment( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCheckFeaturesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCheckFeaturesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCheckFeaturesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUCheckFeaturesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for BuildVersionMajor */ + protected int localBuildVersionMajor; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildVersionMajorTracker = false; + + public boolean isBuildVersionMajorSpecified() { + return localBuildVersionMajorTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBuildVersionMajor() { + return localBuildVersionMajor; + } + + /** + * Auto generated setter method + * + * @param param BuildVersionMajor + */ + public void setBuildVersionMajor(int param) { + + // setting primitive attribute tracker to true + localBuildVersionMajorTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBuildVersionMajor = param; + } + + /** field for BuildVersionMinor */ + protected int localBuildVersionMinor; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildVersionMinorTracker = false; + + public boolean isBuildVersionMinorSpecified() { + return localBuildVersionMinorTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBuildVersionMinor() { + return localBuildVersionMinor; + } + + /** + * Auto generated setter method + * + * @param param BuildVersionMinor + */ + public void setBuildVersionMinor(int param) { + + // setting primitive attribute tracker to true + localBuildVersionMinorTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBuildVersionMinor = param; + } + + /** field for BuildVersionPoint */ + protected int localBuildVersionPoint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildVersionPointTracker = false; + + public boolean isBuildVersionPointSpecified() { + return localBuildVersionPointTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBuildVersionPoint() { + return localBuildVersionPoint; + } + + /** + * Auto generated setter method + * + * @param param BuildVersionPoint + */ + public void setBuildVersionPoint(int param) { + + // setting primitive attribute tracker to true + localBuildVersionPointTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBuildVersionPoint = param; + } + + /** field for MaxRequestEntityLength */ + protected org.apache.axis2.databinding.types.UnsignedInt localMaxRequestEntityLength; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxRequestEntityLengthTracker = false; + + public boolean isMaxRequestEntityLengthSpecified() { + return localMaxRequestEntityLengthTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getMaxRequestEntityLength() { + return localMaxRequestEntityLength; + } + + /** + * Auto generated setter method + * + * @param param MaxRequestEntityLength + */ + public void setMaxRequestEntityLength(org.apache.axis2.databinding.types.UnsignedInt param) { + localMaxRequestEntityLengthTracker = param != null; + + this.localMaxRequestEntityLength = param; + } + + /** field for Deployment */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures + localDeployment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDeploymentTracker = false; + + public boolean isDeploymentSpecified() { + return localDeploymentTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures getDeployment() { + return localDeployment; + } + + /** + * Auto generated setter method + * + * @param param Deployment + */ + public void setDeployment( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures param) { + localDeploymentTracker = param != null; + + this.localDeployment = param; + } + + /** field for BuildVersion */ + protected java.lang.String localBuildVersion; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildVersionTracker = false; + + public boolean isBuildVersionSpecified() { + return localBuildVersionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuildVersion() { + return localBuildVersion; + } + + /** + * Auto generated setter method + * + * @param param BuildVersion + */ + public void setBuildVersion(java.lang.String param) { + localBuildVersionTracker = param != null; + + this.localBuildVersion = param; + } + + /** field for BuildMaturity */ + protected java.lang.String localBuildMaturity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildMaturityTracker = false; + + public boolean isBuildMaturitySpecified() { + return localBuildMaturityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuildMaturity() { + return localBuildMaturity; + } + + /** + * Auto generated setter method + * + * @param param BuildMaturity + */ + public void setBuildMaturity(java.lang.String param) { + localBuildMaturityTracker = param != null; + + this.localBuildMaturity = param; + } + + /** field for BuildTagTimestamp */ + protected java.lang.String localBuildTagTimestamp; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildTagTimestampTracker = false; + + public boolean isBuildTagTimestampSpecified() { + return localBuildTagTimestampTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuildTagTimestamp() { + return localBuildTagTimestamp; + } + + /** + * Auto generated setter method + * + * @param param BuildTagTimestamp + */ + public void setBuildTagTimestamp(java.lang.String param) { + localBuildTagTimestampTracker = param != null; + + this.localBuildTagTimestamp = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCheckFeaturesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCheckFeaturesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localBuildVersionMajorTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BuildVersionMajor", xmlWriter); + + if (localBuildVersionMajor == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BuildVersionMajor cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBuildVersionMajor)); + } + + xmlWriter.writeEndElement(); + } + if (localBuildVersionMinorTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BuildVersionMinor", xmlWriter); + + if (localBuildVersionMinor == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BuildVersionMinor cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBuildVersionMinor)); + } + + xmlWriter.writeEndElement(); + } + if (localBuildVersionPointTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BuildVersionPoint", xmlWriter); + + if (localBuildVersionPoint == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BuildVersionPoint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBuildVersionPoint)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxRequestEntityLengthTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "maxRequestEntityLength", xmlWriter); + + if (localMaxRequestEntityLength == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "maxRequestEntityLength cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localMaxRequestEntityLength)); + } + + xmlWriter.writeEndElement(); + } + if (localDeploymentTracker) { + if (localDeployment == null) { + throw new org.apache.axis2.databinding.ADBException("Deployment cannot be null!!"); + } + localDeployment.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Deployment"), xmlWriter); + } + if (localBuildVersionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BuildVersion", xmlWriter); + + if (localBuildVersion == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BuildVersion cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuildVersion); + } + + xmlWriter.writeEndElement(); + } + if (localBuildMaturityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BuildMaturity", xmlWriter); + + if (localBuildMaturity == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BuildMaturity cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuildMaturity); + } + + xmlWriter.writeEndElement(); + } + if (localBuildTagTimestampTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BuildTagTimestamp", xmlWriter); + + if (localBuildTagTimestamp == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BuildTagTimestamp cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuildTagTimestamp); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCheckFeaturesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCheckFeaturesResponse object = new WUCheckFeaturesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCheckFeaturesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCheckFeaturesResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BuildVersionMajor") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BuildVersionMajor" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuildVersionMajor( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BuildVersionMinor") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BuildVersionMinor" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuildVersionMinor( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BuildVersionPoint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BuildVersionPoint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuildVersionPoint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "maxRequestEntityLength") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "maxRequestEntityLength" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxRequestEntityLength( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Deployment") + .equals(reader.getName())) { + + object.setDeployment( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.DeploymentFeatures.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BuildVersion") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BuildVersion" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuildVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BuildMaturity") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BuildMaturity" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuildMaturity( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BuildTagTimestamp") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BuildTagTimestamp" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuildTagTimestamp( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueLOG.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueLOG.java index 90fa2ec02..e8b01cf35 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueLOG.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueLOG.java @@ -1,534 +1,534 @@ -/** - * WUClusterJobQueueLOG.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUClusterJobQueueLOG bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUClusterJobQueueLOG implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueLOG", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUClusterJobQueueLOG", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUClusterJobQueueLOG", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUClusterJobQueueLOG parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUClusterJobQueueLOG object = new WUClusterJobQueueLOG(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUClusterJobQueueLOG".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUClusterJobQueueLOG) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUClusterJobQueueLOG.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUClusterJobQueueLOG bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUClusterJobQueueLOG implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueLOG", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUClusterJobQueueLOG", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUClusterJobQueueLOG", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUClusterJobQueueLOG parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUClusterJobQueueLOG object = new WUClusterJobQueueLOG(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUClusterJobQueueLOG".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUClusterJobQueueLOG) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueLOGResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueLOGResponse.java index c809e1a24..046549613 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueLOGResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueLOGResponse.java @@ -1,446 +1,446 @@ -/** - * WUClusterJobQueueLOGResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUClusterJobQueueLOGResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUClusterJobQueueLOGResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueLOGResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Thefile */ - protected javax.activation.DataHandler localThefile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThefileTracker = false; - - public boolean isThefileSpecified() { - return localThefileTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getThefile() { - return localThefile; - } - - /** - * Auto generated setter method - * - * @param param Thefile - */ - public void setThefile(javax.activation.DataHandler param) { - localThefileTracker = param != null; - - this.localThefile = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUClusterJobQueueLOGResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUClusterJobQueueLOGResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localThefileTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "thefile", xmlWriter); - - if (localThefile != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localThefile, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for thefile", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUClusterJobQueueLOGResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUClusterJobQueueLOGResponse object = new WUClusterJobQueueLOGResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUClusterJobQueueLOGResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUClusterJobQueueLOGResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "thefile") - .equals(reader.getName())) { - - object.setThefile( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUClusterJobQueueLOGResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUClusterJobQueueLOGResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUClusterJobQueueLOGResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueLOGResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Thefile */ + protected javax.activation.DataHandler localThefile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThefileTracker = false; + + public boolean isThefileSpecified() { + return localThefileTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getThefile() { + return localThefile; + } + + /** + * Auto generated setter method + * + * @param param Thefile + */ + public void setThefile(javax.activation.DataHandler param) { + localThefileTracker = param != null; + + this.localThefile = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUClusterJobQueueLOGResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUClusterJobQueueLOGResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localThefileTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "thefile", xmlWriter); + + if (localThefile != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localThefile, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for thefile", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUClusterJobQueueLOGResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUClusterJobQueueLOGResponse object = new WUClusterJobQueueLOGResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUClusterJobQueueLOGResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUClusterJobQueueLOGResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "thefile") + .equals(reader.getName())) { + + object.setThefile( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueXLS.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueXLS.java index 90f2809ab..f999e4c64 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueXLS.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueXLS.java @@ -1,602 +1,602 @@ -/** - * WUClusterJobQueueXLS.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUClusterJobQueueXLS bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUClusterJobQueueXLS implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueXLS", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for ShowType */ - protected java.lang.String localShowType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowTypeTracker = false; - - public boolean isShowTypeSpecified() { - return localShowTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getShowType() { - return localShowType; - } - - /** - * Auto generated setter method - * - * @param param ShowType - */ - public void setShowType(java.lang.String param) { - localShowTypeTracker = param != null; - - this.localShowType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUClusterJobQueueXLS", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUClusterJobQueueXLS", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localShowTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ShowType", xmlWriter); - - if (localShowType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ShowType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localShowType); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUClusterJobQueueXLS parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUClusterJobQueueXLS object = new WUClusterJobQueueXLS(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUClusterJobQueueXLS".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUClusterJobQueueXLS) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ShowType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUClusterJobQueueXLS.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUClusterJobQueueXLS bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUClusterJobQueueXLS implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueXLS", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for ShowType */ + protected java.lang.String localShowType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowTypeTracker = false; + + public boolean isShowTypeSpecified() { + return localShowTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getShowType() { + return localShowType; + } + + /** + * Auto generated setter method + * + * @param param ShowType + */ + public void setShowType(java.lang.String param) { + localShowTypeTracker = param != null; + + this.localShowType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUClusterJobQueueXLS", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUClusterJobQueueXLS", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localShowTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ShowType", xmlWriter); + + if (localShowType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ShowType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localShowType); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUClusterJobQueueXLS parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUClusterJobQueueXLS object = new WUClusterJobQueueXLS(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUClusterJobQueueXLS".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUClusterJobQueueXLS) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ShowType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueXLSResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueXLSResponse.java index fdbab90a9..caa2c0e33 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueXLSResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobQueueXLSResponse.java @@ -1,446 +1,446 @@ -/** - * WUClusterJobQueueXLSResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUClusterJobQueueXLSResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUClusterJobQueueXLSResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueXLSResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected javax.activation.DataHandler localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(javax.activation.DataHandler param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUClusterJobQueueXLSResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUClusterJobQueueXLSResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localResult, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for Result", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUClusterJobQueueXLSResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUClusterJobQueueXLSResponse object = new WUClusterJobQueueXLSResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUClusterJobQueueXLSResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUClusterJobQueueXLSResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - object.setResult( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUClusterJobQueueXLSResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUClusterJobQueueXLSResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUClusterJobQueueXLSResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueXLSResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected javax.activation.DataHandler localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(javax.activation.DataHandler param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUClusterJobQueueXLSResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUClusterJobQueueXLSResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localResult, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for Result", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUClusterJobQueueXLSResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUClusterJobQueueXLSResponse object = new WUClusterJobQueueXLSResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUClusterJobQueueXLSResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUClusterJobQueueXLSResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + object.setResult( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobSummaryXLS.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobSummaryXLS.java index fa9cad44c..a77df101e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobSummaryXLS.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobSummaryXLS.java @@ -1,741 +1,741 @@ -/** - * WUClusterJobSummaryXLS.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUClusterJobSummaryXLS bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUClusterJobSummaryXLS implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobSummaryXLS", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for ShowAll */ - protected boolean localShowAll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowAllTracker = false; - - public boolean isShowAllSpecified() { - return localShowAllTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getShowAll() { - return localShowAll; - } - - /** - * Auto generated setter method - * - * @param param ShowAll - */ - public void setShowAll(boolean param) { - - // setting primitive attribute tracker to true - localShowAllTracker = true; - - this.localShowAll = param; - } - - /** field for BusinessStartTime */ - protected java.lang.String localBusinessStartTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBusinessStartTimeTracker = false; - - public boolean isBusinessStartTimeSpecified() { - return localBusinessStartTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBusinessStartTime() { - return localBusinessStartTime; - } - - /** - * Auto generated setter method - * - * @param param BusinessStartTime - */ - public void setBusinessStartTime(java.lang.String param) { - localBusinessStartTimeTracker = param != null; - - this.localBusinessStartTime = param; - } - - /** field for BusinessEndTime */ - protected java.lang.String localBusinessEndTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBusinessEndTimeTracker = false; - - public boolean isBusinessEndTimeSpecified() { - return localBusinessEndTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBusinessEndTime() { - return localBusinessEndTime; - } - - /** - * Auto generated setter method - * - * @param param BusinessEndTime - */ - public void setBusinessEndTime(java.lang.String param) { - localBusinessEndTimeTracker = param != null; - - this.localBusinessEndTime = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUClusterJobSummaryXLS", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUClusterJobSummaryXLS", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localShowAllTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ShowAll", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ShowAll cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowAll)); - } - - xmlWriter.writeEndElement(); - } - if (localBusinessStartTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BusinessStartTime", xmlWriter); - - if (localBusinessStartTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BusinessStartTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBusinessStartTime); - } - - xmlWriter.writeEndElement(); - } - if (localBusinessEndTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BusinessEndTime", xmlWriter); - - if (localBusinessEndTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BusinessEndTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBusinessEndTime); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUClusterJobSummaryXLS parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUClusterJobSummaryXLS object = new WUClusterJobSummaryXLS(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUClusterJobSummaryXLS".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUClusterJobSummaryXLS) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ShowAll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowAll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowAll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BusinessStartTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BusinessStartTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBusinessStartTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BusinessEndTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BusinessEndTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBusinessEndTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUClusterJobSummaryXLS.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUClusterJobSummaryXLS bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUClusterJobSummaryXLS implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobSummaryXLS", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for ShowAll */ + protected boolean localShowAll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowAllTracker = false; + + public boolean isShowAllSpecified() { + return localShowAllTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getShowAll() { + return localShowAll; + } + + /** + * Auto generated setter method + * + * @param param ShowAll + */ + public void setShowAll(boolean param) { + + // setting primitive attribute tracker to true + localShowAllTracker = true; + + this.localShowAll = param; + } + + /** field for BusinessStartTime */ + protected java.lang.String localBusinessStartTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBusinessStartTimeTracker = false; + + public boolean isBusinessStartTimeSpecified() { + return localBusinessStartTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBusinessStartTime() { + return localBusinessStartTime; + } + + /** + * Auto generated setter method + * + * @param param BusinessStartTime + */ + public void setBusinessStartTime(java.lang.String param) { + localBusinessStartTimeTracker = param != null; + + this.localBusinessStartTime = param; + } + + /** field for BusinessEndTime */ + protected java.lang.String localBusinessEndTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBusinessEndTimeTracker = false; + + public boolean isBusinessEndTimeSpecified() { + return localBusinessEndTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBusinessEndTime() { + return localBusinessEndTime; + } + + /** + * Auto generated setter method + * + * @param param BusinessEndTime + */ + public void setBusinessEndTime(java.lang.String param) { + localBusinessEndTimeTracker = param != null; + + this.localBusinessEndTime = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUClusterJobSummaryXLS", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUClusterJobSummaryXLS", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localShowAllTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ShowAll", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ShowAll cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowAll)); + } + + xmlWriter.writeEndElement(); + } + if (localBusinessStartTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BusinessStartTime", xmlWriter); + + if (localBusinessStartTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BusinessStartTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBusinessStartTime); + } + + xmlWriter.writeEndElement(); + } + if (localBusinessEndTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BusinessEndTime", xmlWriter); + + if (localBusinessEndTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BusinessEndTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBusinessEndTime); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUClusterJobSummaryXLS parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUClusterJobSummaryXLS object = new WUClusterJobSummaryXLS(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUClusterJobSummaryXLS".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUClusterJobSummaryXLS) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ShowAll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowAll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowAll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BusinessStartTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BusinessStartTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBusinessStartTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BusinessEndTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BusinessEndTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBusinessEndTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobSummaryXLSResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobSummaryXLSResponse.java index fc0a63e95..c03b1076f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobSummaryXLSResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobSummaryXLSResponse.java @@ -1,446 +1,446 @@ -/** - * WUClusterJobSummaryXLSResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUClusterJobSummaryXLSResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUClusterJobSummaryXLSResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobSummaryXLSResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected javax.activation.DataHandler localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(javax.activation.DataHandler param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUClusterJobSummaryXLSResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUClusterJobSummaryXLSResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localResult, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for Result", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUClusterJobSummaryXLSResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUClusterJobSummaryXLSResponse object = new WUClusterJobSummaryXLSResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUClusterJobSummaryXLSResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUClusterJobSummaryXLSResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - object.setResult( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUClusterJobSummaryXLSResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUClusterJobSummaryXLSResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUClusterJobSummaryXLSResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobSummaryXLSResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected javax.activation.DataHandler localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(javax.activation.DataHandler param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUClusterJobSummaryXLSResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUClusterJobSummaryXLSResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localResult, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for Result", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUClusterJobSummaryXLSResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUClusterJobSummaryXLSResponse object = new WUClusterJobSummaryXLSResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUClusterJobSummaryXLSResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUClusterJobSummaryXLSResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + object.setResult( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobXLS.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobXLS.java index f18e1f2f3..93936b62a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobXLS.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobXLS.java @@ -1,740 +1,740 @@ -/** - * WUClusterJobXLS.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUClusterJobXLS bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUClusterJobXLS implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUClusterJobXLS", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for ShowAll */ - protected boolean localShowAll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowAllTracker = false; - - public boolean isShowAllSpecified() { - return localShowAllTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getShowAll() { - return localShowAll; - } - - /** - * Auto generated setter method - * - * @param param ShowAll - */ - public void setShowAll(boolean param) { - - // setting primitive attribute tracker to true - localShowAllTracker = true; - - this.localShowAll = param; - } - - /** field for BusinessStartTime */ - protected java.lang.String localBusinessStartTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBusinessStartTimeTracker = false; - - public boolean isBusinessStartTimeSpecified() { - return localBusinessStartTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBusinessStartTime() { - return localBusinessStartTime; - } - - /** - * Auto generated setter method - * - * @param param BusinessStartTime - */ - public void setBusinessStartTime(java.lang.String param) { - localBusinessStartTimeTracker = param != null; - - this.localBusinessStartTime = param; - } - - /** field for BusinessEndTime */ - protected java.lang.String localBusinessEndTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBusinessEndTimeTracker = false; - - public boolean isBusinessEndTimeSpecified() { - return localBusinessEndTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBusinessEndTime() { - return localBusinessEndTime; - } - - /** - * Auto generated setter method - * - * @param param BusinessEndTime - */ - public void setBusinessEndTime(java.lang.String param) { - localBusinessEndTimeTracker = param != null; - - this.localBusinessEndTime = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUClusterJobXLS", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUClusterJobXLS", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localShowAllTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ShowAll", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ShowAll cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowAll)); - } - - xmlWriter.writeEndElement(); - } - if (localBusinessStartTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BusinessStartTime", xmlWriter); - - if (localBusinessStartTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BusinessStartTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBusinessStartTime); - } - - xmlWriter.writeEndElement(); - } - if (localBusinessEndTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BusinessEndTime", xmlWriter); - - if (localBusinessEndTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BusinessEndTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBusinessEndTime); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUClusterJobXLS parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUClusterJobXLS object = new WUClusterJobXLS(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUClusterJobXLS".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUClusterJobXLS) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ShowAll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowAll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowAll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BusinessStartTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BusinessStartTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBusinessStartTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BusinessEndTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BusinessEndTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBusinessEndTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUClusterJobXLS.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUClusterJobXLS bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUClusterJobXLS implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUClusterJobXLS", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for ShowAll */ + protected boolean localShowAll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowAllTracker = false; + + public boolean isShowAllSpecified() { + return localShowAllTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getShowAll() { + return localShowAll; + } + + /** + * Auto generated setter method + * + * @param param ShowAll + */ + public void setShowAll(boolean param) { + + // setting primitive attribute tracker to true + localShowAllTracker = true; + + this.localShowAll = param; + } + + /** field for BusinessStartTime */ + protected java.lang.String localBusinessStartTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBusinessStartTimeTracker = false; + + public boolean isBusinessStartTimeSpecified() { + return localBusinessStartTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBusinessStartTime() { + return localBusinessStartTime; + } + + /** + * Auto generated setter method + * + * @param param BusinessStartTime + */ + public void setBusinessStartTime(java.lang.String param) { + localBusinessStartTimeTracker = param != null; + + this.localBusinessStartTime = param; + } + + /** field for BusinessEndTime */ + protected java.lang.String localBusinessEndTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBusinessEndTimeTracker = false; + + public boolean isBusinessEndTimeSpecified() { + return localBusinessEndTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBusinessEndTime() { + return localBusinessEndTime; + } + + /** + * Auto generated setter method + * + * @param param BusinessEndTime + */ + public void setBusinessEndTime(java.lang.String param) { + localBusinessEndTimeTracker = param != null; + + this.localBusinessEndTime = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUClusterJobXLS", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUClusterJobXLS", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localShowAllTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ShowAll", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ShowAll cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowAll)); + } + + xmlWriter.writeEndElement(); + } + if (localBusinessStartTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BusinessStartTime", xmlWriter); + + if (localBusinessStartTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BusinessStartTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBusinessStartTime); + } + + xmlWriter.writeEndElement(); + } + if (localBusinessEndTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BusinessEndTime", xmlWriter); + + if (localBusinessEndTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BusinessEndTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBusinessEndTime); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUClusterJobXLS parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUClusterJobXLS object = new WUClusterJobXLS(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUClusterJobXLS".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUClusterJobXLS) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ShowAll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowAll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowAll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BusinessStartTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BusinessStartTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBusinessStartTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BusinessEndTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BusinessEndTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBusinessEndTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobXLSResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobXLSResponse.java index 0768df2fc..d133173e9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobXLSResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUClusterJobXLSResponse.java @@ -1,446 +1,446 @@ -/** - * WUClusterJobXLSResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUClusterJobXLSResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUClusterJobXLSResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobXLSResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected javax.activation.DataHandler localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(javax.activation.DataHandler param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUClusterJobXLSResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUClusterJobXLSResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localResult, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for Result", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUClusterJobXLSResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUClusterJobXLSResponse object = new WUClusterJobXLSResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUClusterJobXLSResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUClusterJobXLSResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - object.setResult( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUClusterJobXLSResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUClusterJobXLSResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUClusterJobXLSResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobXLSResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected javax.activation.DataHandler localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(javax.activation.DataHandler param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUClusterJobXLSResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUClusterJobXLSResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localResult, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for Result", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUClusterJobXLSResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUClusterJobXLSResponse object = new WUClusterJobXLSResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUClusterJobXLSResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUClusterJobXLSResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + object.setResult( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCompileECL.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCompileECL.java index fc5cd765a..a3535ddb3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCompileECL.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCompileECL.java @@ -1,946 +1,946 @@ -/** - * WUCompileECL.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCompileECL bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCompileECL implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCompileECL", "ns1"); - - /** field for ECL */ - protected java.lang.String localECL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLTracker = false; - - public boolean isECLSpecified() { - return localECLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getECL() { - return localECL; - } - - /** - * Auto generated setter method - * - * @param param ECL - */ - public void setECL(java.lang.String param) { - localECLTracker = param != null; - - this.localECL = param; - } - - /** field for ModuleName */ - protected java.lang.String localModuleName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModuleNameTracker = false; - - public boolean isModuleNameSpecified() { - return localModuleNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getModuleName() { - return localModuleName; - } - - /** - * Auto generated setter method - * - * @param param ModuleName - */ - public void setModuleName(java.lang.String param) { - localModuleNameTracker = param != null; - - this.localModuleName = param; - } - - /** field for AttributeName */ - protected java.lang.String localAttributeName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAttributeNameTracker = false; - - public boolean isAttributeNameSpecified() { - return localAttributeNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAttributeName() { - return localAttributeName; - } - - /** - * Auto generated setter method - * - * @param param AttributeName - */ - public void setAttributeName(java.lang.String param) { - localAttributeNameTracker = param != null; - - this.localAttributeName = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Snapshot */ - protected java.lang.String localSnapshot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSnapshotTracker = false; - - public boolean isSnapshotSpecified() { - return localSnapshotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSnapshot() { - return localSnapshot; - } - - /** - * Auto generated setter method - * - * @param param Snapshot - */ - public void setSnapshot(java.lang.String param) { - localSnapshotTracker = param != null; - - this.localSnapshot = param; - } - - /** field for IncludeDependencies */ - protected boolean localIncludeDependencies = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeDependenciesTracker = false; - - public boolean isIncludeDependenciesSpecified() { - return localIncludeDependenciesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeDependencies() { - return localIncludeDependencies; - } - - /** - * Auto generated setter method - * - * @param param IncludeDependencies - */ - public void setIncludeDependencies(boolean param) { - - // setting primitive attribute tracker to true - localIncludeDependenciesTracker = true; - - this.localIncludeDependencies = param; - } - - /** field for IncludeComplexity */ - protected boolean localIncludeComplexity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeComplexityTracker = false; - - public boolean isIncludeComplexitySpecified() { - return localIncludeComplexityTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeComplexity() { - return localIncludeComplexity; - } - - /** - * Auto generated setter method - * - * @param param IncludeComplexity - */ - public void setIncludeComplexity(boolean param) { - - // setting primitive attribute tracker to true - localIncludeComplexityTracker = true; - - this.localIncludeComplexity = param; - } - - /** field for TimeToWait */ - protected int localTimeToWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("60000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeToWaitTracker = false; - - public boolean isTimeToWaitSpecified() { - return localTimeToWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTimeToWait() { - return localTimeToWait; - } - - /** - * Auto generated setter method - * - * @param param TimeToWait - */ - public void setTimeToWait(int param) { - - // setting primitive attribute tracker to true - localTimeToWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTimeToWait = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCompileECL", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUCompileECL", xmlWriter); - } - } - if (localECLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ECL", xmlWriter); - - if (localECL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localECL); - } - - xmlWriter.writeEndElement(); - } - if (localModuleNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ModuleName", xmlWriter); - - if (localModuleName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ModuleName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localModuleName); - } - - xmlWriter.writeEndElement(); - } - if (localAttributeNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AttributeName", xmlWriter); - - if (localAttributeName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AttributeName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAttributeName); - } - - xmlWriter.writeEndElement(); - } - if (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localSnapshotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Snapshot", xmlWriter); - - if (localSnapshot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSnapshot); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeDependenciesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeDependencies", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeDependencies cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeDependencies)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeComplexityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeComplexity", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeComplexity cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeComplexity)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeToWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeToWait", xmlWriter); - - if (localTimeToWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("TimeToWait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeToWait)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCompileECL parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCompileECL object = new WUCompileECL(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCompileECL".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCompileECL) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ModuleName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ModuleName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setModuleName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AttributeName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AttributeName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAttributeName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Snapshot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSnapshot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeDependencies") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeDependencies" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeDependencies( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeComplexity") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeComplexity" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeComplexity( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeToWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeToWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeToWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCompileECL.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCompileECL bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCompileECL implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCompileECL", "ns1"); + + /** field for ECL */ + protected java.lang.String localECL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLTracker = false; + + public boolean isECLSpecified() { + return localECLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getECL() { + return localECL; + } + + /** + * Auto generated setter method + * + * @param param ECL + */ + public void setECL(java.lang.String param) { + localECLTracker = param != null; + + this.localECL = param; + } + + /** field for ModuleName */ + protected java.lang.String localModuleName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModuleNameTracker = false; + + public boolean isModuleNameSpecified() { + return localModuleNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getModuleName() { + return localModuleName; + } + + /** + * Auto generated setter method + * + * @param param ModuleName + */ + public void setModuleName(java.lang.String param) { + localModuleNameTracker = param != null; + + this.localModuleName = param; + } + + /** field for AttributeName */ + protected java.lang.String localAttributeName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAttributeNameTracker = false; + + public boolean isAttributeNameSpecified() { + return localAttributeNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAttributeName() { + return localAttributeName; + } + + /** + * Auto generated setter method + * + * @param param AttributeName + */ + public void setAttributeName(java.lang.String param) { + localAttributeNameTracker = param != null; + + this.localAttributeName = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Snapshot */ + protected java.lang.String localSnapshot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSnapshotTracker = false; + + public boolean isSnapshotSpecified() { + return localSnapshotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSnapshot() { + return localSnapshot; + } + + /** + * Auto generated setter method + * + * @param param Snapshot + */ + public void setSnapshot(java.lang.String param) { + localSnapshotTracker = param != null; + + this.localSnapshot = param; + } + + /** field for IncludeDependencies */ + protected boolean localIncludeDependencies = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeDependenciesTracker = false; + + public boolean isIncludeDependenciesSpecified() { + return localIncludeDependenciesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeDependencies() { + return localIncludeDependencies; + } + + /** + * Auto generated setter method + * + * @param param IncludeDependencies + */ + public void setIncludeDependencies(boolean param) { + + // setting primitive attribute tracker to true + localIncludeDependenciesTracker = true; + + this.localIncludeDependencies = param; + } + + /** field for IncludeComplexity */ + protected boolean localIncludeComplexity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeComplexityTracker = false; + + public boolean isIncludeComplexitySpecified() { + return localIncludeComplexityTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeComplexity() { + return localIncludeComplexity; + } + + /** + * Auto generated setter method + * + * @param param IncludeComplexity + */ + public void setIncludeComplexity(boolean param) { + + // setting primitive attribute tracker to true + localIncludeComplexityTracker = true; + + this.localIncludeComplexity = param; + } + + /** field for TimeToWait */ + protected int localTimeToWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("60000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeToWaitTracker = false; + + public boolean isTimeToWaitSpecified() { + return localTimeToWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTimeToWait() { + return localTimeToWait; + } + + /** + * Auto generated setter method + * + * @param param TimeToWait + */ + public void setTimeToWait(int param) { + + // setting primitive attribute tracker to true + localTimeToWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTimeToWait = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCompileECL", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUCompileECL", xmlWriter); + } + } + if (localECLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ECL", xmlWriter); + + if (localECL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localECL); + } + + xmlWriter.writeEndElement(); + } + if (localModuleNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ModuleName", xmlWriter); + + if (localModuleName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ModuleName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localModuleName); + } + + xmlWriter.writeEndElement(); + } + if (localAttributeNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AttributeName", xmlWriter); + + if (localAttributeName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AttributeName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAttributeName); + } + + xmlWriter.writeEndElement(); + } + if (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localSnapshotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Snapshot", xmlWriter); + + if (localSnapshot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSnapshot); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeDependenciesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeDependencies", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeDependencies cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeDependencies)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeComplexityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeComplexity", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeComplexity cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeComplexity)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeToWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeToWait", xmlWriter); + + if (localTimeToWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("TimeToWait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeToWait)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCompileECL parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCompileECL object = new WUCompileECL(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCompileECL".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCompileECL) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ModuleName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ModuleName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setModuleName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AttributeName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AttributeName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAttributeName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Snapshot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSnapshot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeDependencies") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeDependencies" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeDependencies( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeComplexity") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeComplexity" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeComplexity( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeToWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeToWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeToWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCompileECLResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCompileECLResponse.java index 31942ea02..46bae54ca 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCompileECLResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCompileECLResponse.java @@ -1,559 +1,559 @@ -/** - * WUCompileECLResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCompileECLResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCompileECLResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUCompileECLResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Complexity */ - protected java.lang.String localComplexity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localComplexityTracker = false; - - public boolean isComplexitySpecified() { - return localComplexityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComplexity() { - return localComplexity; - } - - /** - * Auto generated setter method - * - * @param param Complexity - */ - public void setComplexity(java.lang.String param) { - localComplexityTracker = param != null; - - this.localComplexity = param; - } - - /** field for Errors */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException localErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorsTracker = false; - - public boolean isErrorsSpecified() { - return localErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException getErrors() { - return localErrors; - } - - /** - * Auto generated setter method - * - * @param param Errors - */ - public void setErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException param) { - localErrorsTracker = param != null; - - this.localErrors = param; - } - - /** field for Dependencies */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1 - localDependencies; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDependenciesTracker = false; - - public boolean isDependenciesSpecified() { - return localDependenciesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1 - getDependencies() { - return localDependencies; - } - - /** - * Auto generated setter method - * - * @param param Dependencies - */ - public void setDependencies( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1 param) { - localDependenciesTracker = param != null; - - this.localDependencies = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCompileECLResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCompileECLResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localComplexityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Complexity", xmlWriter); - - if (localComplexity == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Complexity cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComplexity); - } - - xmlWriter.writeEndElement(); - } - if (localErrorsTracker) { - if (localErrors == null) { - throw new org.apache.axis2.databinding.ADBException("Errors cannot be null!!"); - } - localErrors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors"), xmlWriter); - } - if (localDependenciesTracker) { - if (localDependencies == null) { - throw new org.apache.axis2.databinding.ADBException("Dependencies cannot be null!!"); - } - localDependencies.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependencies"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCompileECLResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCompileECLResponse object = new WUCompileECLResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCompileECLResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCompileECLResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Complexity") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Complexity" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComplexity( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors") - .equals(reader.getName())) { - - object.setErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependencies") - .equals(reader.getName())) { - - object.setDependencies( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCompileECLResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCompileECLResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCompileECLResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUCompileECLResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Complexity */ + protected java.lang.String localComplexity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localComplexityTracker = false; + + public boolean isComplexitySpecified() { + return localComplexityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComplexity() { + return localComplexity; + } + + /** + * Auto generated setter method + * + * @param param Complexity + */ + public void setComplexity(java.lang.String param) { + localComplexityTracker = param != null; + + this.localComplexity = param; + } + + /** field for Errors */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException localErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorsTracker = false; + + public boolean isErrorsSpecified() { + return localErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException getErrors() { + return localErrors; + } + + /** + * Auto generated setter method + * + * @param param Errors + */ + public void setErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException param) { + localErrorsTracker = param != null; + + this.localErrors = param; + } + + /** field for Dependencies */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1 + localDependencies; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDependenciesTracker = false; + + public boolean isDependenciesSpecified() { + return localDependenciesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1 + getDependencies() { + return localDependencies; + } + + /** + * Auto generated setter method + * + * @param param Dependencies + */ + public void setDependencies( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1 param) { + localDependenciesTracker = param != null; + + this.localDependencies = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCompileECLResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCompileECLResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localComplexityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Complexity", xmlWriter); + + if (localComplexity == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Complexity cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComplexity); + } + + xmlWriter.writeEndElement(); + } + if (localErrorsTracker) { + if (localErrors == null) { + throw new org.apache.axis2.databinding.ADBException("Errors cannot be null!!"); + } + localErrors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors"), xmlWriter); + } + if (localDependenciesTracker) { + if (localDependencies == null) { + throw new org.apache.axis2.databinding.ADBException("Dependencies cannot be null!!"); + } + localDependencies.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependencies"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCompileECLResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCompileECLResponse object = new WUCompileECLResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCompileECLResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCompileECLResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Complexity") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Complexity" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComplexity( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors") + .equals(reader.getName())) { + + object.setErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dependencies") + .equals(reader.getName())) { + + object.setDependencies( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Dependencies_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalClusterFileSections.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalClusterFileSections.java index bcd71c319..1e4879adb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalClusterFileSections.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalClusterFileSections.java @@ -1,617 +1,617 @@ -/** - * WUCopyLogicalClusterFileSections.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCopyLogicalClusterFileSections bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCopyLogicalClusterFileSections implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUCopyLogicalClusterFileSections - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for OnCluster */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - localOnCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnClusterTracker = false; - - public boolean isOnClusterSpecified() { - return localOnClusterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - getOnCluster() { - return localOnCluster; - } - - /** - * Auto generated setter method - * - * @param param OnCluster - */ - public void setOnCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo param) { - localOnClusterTracker = param != null; - - this.localOnCluster = param; - } - - /** field for NotOnCluster */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - localNotOnCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNotOnClusterTracker = false; - - public boolean isNotOnClusterSpecified() { - return localNotOnClusterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - getNotOnCluster() { - return localNotOnCluster; - } - - /** - * Auto generated setter method - * - * @param param NotOnCluster - */ - public void setNotOnCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo param) { - localNotOnClusterTracker = param != null; - - this.localNotOnCluster = param; - } - - /** field for Foreign */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - localForeign; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localForeignTracker = false; - - public boolean isForeignSpecified() { - return localForeignTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - getForeign() { - return localForeign; - } - - /** - * Auto generated setter method - * - * @param param Foreign - */ - public void setForeign( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo param) { - localForeignTracker = param != null; - - this.localForeign = param; - } - - /** field for NotFound */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - localNotFound; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNotFoundTracker = false; - - public boolean isNotFoundSpecified() { - return localNotFoundTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo - getNotFound() { - return localNotFound; - } - - /** - * Auto generated setter method - * - * @param param NotFound - */ - public void setNotFound( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo param) { - localNotFoundTracker = param != null; - - this.localNotFound = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCopyLogicalClusterFileSections", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCopyLogicalClusterFileSections", - xmlWriter); - } - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localOnClusterTracker) { - if (localOnCluster == null) { - throw new org.apache.axis2.databinding.ADBException("OnCluster cannot be null!!"); - } - localOnCluster.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnCluster"), xmlWriter); - } - if (localNotOnClusterTracker) { - if (localNotOnCluster == null) { - throw new org.apache.axis2.databinding.ADBException("NotOnCluster cannot be null!!"); - } - localNotOnCluster.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotOnCluster"), - xmlWriter); - } - if (localForeignTracker) { - if (localForeign == null) { - throw new org.apache.axis2.databinding.ADBException("Foreign cannot be null!!"); - } - localForeign.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Foreign"), xmlWriter); - } - if (localNotFoundTracker) { - if (localNotFound == null) { - throw new org.apache.axis2.databinding.ADBException("NotFound cannot be null!!"); - } - localNotFound.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotFound"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCopyLogicalClusterFileSections parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCopyLogicalClusterFileSections object = new WUCopyLogicalClusterFileSections(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCopyLogicalClusterFileSections".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCopyLogicalClusterFileSections) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnCluster") - .equals(reader.getName())) { - - object.setOnCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .ArrayOfWULogicalFileCopyInfo.Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotOnCluster") - .equals(reader.getName())) { - - object.setNotOnCluster( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .ArrayOfWULogicalFileCopyInfo.Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Foreign") - .equals(reader.getName())) { - - object.setForeign( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .ArrayOfWULogicalFileCopyInfo.Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotFound") - .equals(reader.getName())) { - - object.setNotFound( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .ArrayOfWULogicalFileCopyInfo.Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCopyLogicalClusterFileSections.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCopyLogicalClusterFileSections bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCopyLogicalClusterFileSections implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUCopyLogicalClusterFileSections + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for OnCluster */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + localOnCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnClusterTracker = false; + + public boolean isOnClusterSpecified() { + return localOnClusterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + getOnCluster() { + return localOnCluster; + } + + /** + * Auto generated setter method + * + * @param param OnCluster + */ + public void setOnCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo param) { + localOnClusterTracker = param != null; + + this.localOnCluster = param; + } + + /** field for NotOnCluster */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + localNotOnCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNotOnClusterTracker = false; + + public boolean isNotOnClusterSpecified() { + return localNotOnClusterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + getNotOnCluster() { + return localNotOnCluster; + } + + /** + * Auto generated setter method + * + * @param param NotOnCluster + */ + public void setNotOnCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo param) { + localNotOnClusterTracker = param != null; + + this.localNotOnCluster = param; + } + + /** field for Foreign */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + localForeign; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localForeignTracker = false; + + public boolean isForeignSpecified() { + return localForeignTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + getForeign() { + return localForeign; + } + + /** + * Auto generated setter method + * + * @param param Foreign + */ + public void setForeign( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo param) { + localForeignTracker = param != null; + + this.localForeign = param; + } + + /** field for NotFound */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + localNotFound; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNotFoundTracker = false; + + public boolean isNotFoundSpecified() { + return localNotFoundTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo + getNotFound() { + return localNotFound; + } + + /** + * Auto generated setter method + * + * @param param NotFound + */ + public void setNotFound( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWULogicalFileCopyInfo param) { + localNotFoundTracker = param != null; + + this.localNotFound = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCopyLogicalClusterFileSections", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCopyLogicalClusterFileSections", + xmlWriter); + } + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localOnClusterTracker) { + if (localOnCluster == null) { + throw new org.apache.axis2.databinding.ADBException("OnCluster cannot be null!!"); + } + localOnCluster.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnCluster"), xmlWriter); + } + if (localNotOnClusterTracker) { + if (localNotOnCluster == null) { + throw new org.apache.axis2.databinding.ADBException("NotOnCluster cannot be null!!"); + } + localNotOnCluster.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotOnCluster"), + xmlWriter); + } + if (localForeignTracker) { + if (localForeign == null) { + throw new org.apache.axis2.databinding.ADBException("Foreign cannot be null!!"); + } + localForeign.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Foreign"), xmlWriter); + } + if (localNotFoundTracker) { + if (localNotFound == null) { + throw new org.apache.axis2.databinding.ADBException("NotFound cannot be null!!"); + } + localNotFound.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotFound"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCopyLogicalClusterFileSections parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCopyLogicalClusterFileSections object = new WUCopyLogicalClusterFileSections(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCopyLogicalClusterFileSections".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCopyLogicalClusterFileSections) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnCluster") + .equals(reader.getName())) { + + object.setOnCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .ArrayOfWULogicalFileCopyInfo.Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotOnCluster") + .equals(reader.getName())) { + + object.setNotOnCluster( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .ArrayOfWULogicalFileCopyInfo.Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Foreign") + .equals(reader.getName())) { + + object.setForeign( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .ArrayOfWULogicalFileCopyInfo.Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotFound") + .equals(reader.getName())) { + + object.setNotFound( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .ArrayOfWULogicalFileCopyInfo.Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalFiles.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalFiles.java index 5615b04ab..49a034e1e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalFiles.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalFiles.java @@ -1,534 +1,534 @@ -/** - * WUCopyLogicalFiles.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCopyLogicalFiles bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCopyLogicalFiles implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCopyLogicalFiles", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for CopyLocal */ - protected boolean localCopyLocal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCopyLocalTracker = false; - - public boolean isCopyLocalSpecified() { - return localCopyLocalTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCopyLocal() { - return localCopyLocal; - } - - /** - * Auto generated setter method - * - * @param param CopyLocal - */ - public void setCopyLocal(boolean param) { - - // setting primitive attribute tracker to true - localCopyLocalTracker = true; - - this.localCopyLocal = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCopyLogicalFiles", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCopyLogicalFiles", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localCopyLocalTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CopyLocal", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CopyLocal cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCopyLocal)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCopyLogicalFiles parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCopyLogicalFiles object = new WUCopyLogicalFiles(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCopyLogicalFiles".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCopyLogicalFiles) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopyLocal") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CopyLocal" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCopyLocal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCopyLogicalFiles.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCopyLogicalFiles bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCopyLogicalFiles implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCopyLogicalFiles", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for CopyLocal */ + protected boolean localCopyLocal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCopyLocalTracker = false; + + public boolean isCopyLocalSpecified() { + return localCopyLocalTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCopyLocal() { + return localCopyLocal; + } + + /** + * Auto generated setter method + * + * @param param CopyLocal + */ + public void setCopyLocal(boolean param) { + + // setting primitive attribute tracker to true + localCopyLocalTracker = true; + + this.localCopyLocal = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCopyLogicalFiles", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCopyLogicalFiles", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localCopyLocalTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CopyLocal", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CopyLocal cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCopyLocal)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCopyLogicalFiles parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCopyLogicalFiles object = new WUCopyLogicalFiles(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCopyLogicalFiles".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCopyLogicalFiles) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopyLocal") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CopyLocal" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCopyLocal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalFilesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalFilesResponse.java index 0e219c533..ef630dc38 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalFilesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyLogicalFilesResponse.java @@ -1,507 +1,507 @@ -/** - * WUCopyLogicalFilesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCopyLogicalFilesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCopyLogicalFilesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUCopyLogicalFilesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for ClusterFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1 - localClusterFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterFilesTracker = false; - - public boolean isClusterFilesSpecified() { - return localClusterFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1 - getClusterFiles() { - return localClusterFiles; - } - - /** - * Auto generated setter method - * - * @param param ClusterFiles - */ - public void setClusterFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1 param) { - localClusterFilesTracker = param != null; - - this.localClusterFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCopyLogicalFilesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCopyLogicalFilesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localClusterFilesTracker) { - if (localClusterFiles == null) { - throw new org.apache.axis2.databinding.ADBException("ClusterFiles cannot be null!!"); - } - localClusterFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFiles"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCopyLogicalFilesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCopyLogicalFilesResponse object = new WUCopyLogicalFilesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCopyLogicalFilesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCopyLogicalFilesResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFiles") - .equals(reader.getName())) { - - object.setClusterFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCopyLogicalFilesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCopyLogicalFilesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCopyLogicalFilesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUCopyLogicalFilesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for ClusterFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1 + localClusterFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterFilesTracker = false; + + public boolean isClusterFilesSpecified() { + return localClusterFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1 + getClusterFiles() { + return localClusterFiles; + } + + /** + * Auto generated setter method + * + * @param param ClusterFiles + */ + public void setClusterFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1 param) { + localClusterFilesTracker = param != null; + + this.localClusterFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCopyLogicalFilesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCopyLogicalFilesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localClusterFilesTracker) { + if (localClusterFiles == null) { + throw new org.apache.axis2.databinding.ADBException("ClusterFiles cannot be null!!"); + } + localClusterFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFiles"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCopyLogicalFilesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCopyLogicalFilesResponse object = new WUCopyLogicalFilesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCopyLogicalFilesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCopyLogicalFilesResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFiles") + .equals(reader.getName())) { + + object.setClusterFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyQuerySet.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyQuerySet.java index 58de219f4..65654b567 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyQuerySet.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyQuerySet.java @@ -1,1731 +1,1868 @@ -/** - * WUCopyQuerySet.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCopyQuerySet bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCopyQuerySet implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCopyQuerySet", "ns1"); - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for ActiveOnly */ - protected boolean localActiveOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActiveOnlyTracker = false; - - public boolean isActiveOnlySpecified() { - return localActiveOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getActiveOnly() { - return localActiveOnly; - } - - /** - * Auto generated setter method - * - * @param param ActiveOnly - */ - public void setActiveOnly(boolean param) { - - // setting primitive attribute tracker to true - localActiveOnlyTracker = true; - - this.localActiveOnly = param; - } - - /** field for CloneActiveState */ - protected boolean localCloneActiveState = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCloneActiveStateTracker = false; - - public boolean isCloneActiveStateSpecified() { - return localCloneActiveStateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCloneActiveState() { - return localCloneActiveState; - } - - /** - * Auto generated setter method - * - * @param param CloneActiveState - */ - public void setCloneActiveState(boolean param) { - - // setting primitive attribute tracker to true - localCloneActiveStateTracker = true; - - this.localCloneActiveState = param; - } - - /** field for AllowForeignFiles */ - protected boolean localAllowForeignFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllowForeignFilesTracker = false; - - public boolean isAllowForeignFilesSpecified() { - return localAllowForeignFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllowForeignFiles() { - return localAllowForeignFiles; - } - - /** - * Auto generated setter method - * - * @param param AllowForeignFiles - */ - public void setAllowForeignFiles(boolean param) { - - // setting primitive attribute tracker to true - localAllowForeignFilesTracker = true; - - this.localAllowForeignFiles = param; - } - - /** field for DfsServer */ - protected java.lang.String localDfsServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfsServerTracker = false; - - public boolean isDfsServerSpecified() { - return localDfsServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfsServer() { - return localDfsServer; - } - - /** - * Auto generated setter method - * - * @param param DfsServer - */ - public void setDfsServer(java.lang.String param) { - localDfsServerTracker = param != null; - - this.localDfsServer = param; - } - - /** field for CopyFiles */ - protected boolean localCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCopyFilesTracker = false; - - public boolean isCopyFilesSpecified() { - return localCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCopyFiles() { - return localCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param CopyFiles - */ - public void setCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localCopyFilesTracker = true; - - this.localCopyFiles = param; - } - - /** field for OverwriteDfs */ - protected boolean localOverwriteDfs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteDfsTracker = false; - - public boolean isOverwriteDfsSpecified() { - return localOverwriteDfsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwriteDfs() { - return localOverwriteDfs; - } - - /** - * Auto generated setter method - * - * @param param OverwriteDfs - */ - public void setOverwriteDfs(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteDfsTracker = true; - - this.localOverwriteDfs = param; - } - - /** field for SourceProcess */ - protected java.lang.String localSourceProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceProcessTracker = false; - - public boolean isSourceProcessSpecified() { - return localSourceProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceProcess() { - return localSourceProcess; - } - - /** - * Auto generated setter method - * - * @param param SourceProcess - */ - public void setSourceProcess(java.lang.String param) { - localSourceProcessTracker = param != null; - - this.localSourceProcess = param; - } - - /** field for UpdateSuperFiles */ - protected boolean localUpdateSuperFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateSuperFilesTracker = false; - - public boolean isUpdateSuperFilesSpecified() { - return localUpdateSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateSuperFiles() { - return localUpdateSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param UpdateSuperFiles - */ - public void setUpdateSuperFiles(boolean param) { - - // setting primitive attribute tracker to true - localUpdateSuperFilesTracker = true; - - this.localUpdateSuperFiles = param; - } - - /** field for UpdateCloneFrom */ - protected boolean localUpdateCloneFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateCloneFromTracker = false; - - public boolean isUpdateCloneFromSpecified() { - return localUpdateCloneFromTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateCloneFrom() { - return localUpdateCloneFrom; - } - - /** - * Auto generated setter method - * - * @param param UpdateCloneFrom - */ - public void setUpdateCloneFrom(boolean param) { - - // setting primitive attribute tracker to true - localUpdateCloneFromTracker = true; - - this.localUpdateCloneFrom = param; - } - - /** field for AppendCluster */ - protected boolean localAppendCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAppendClusterTracker = false; - - public boolean isAppendClusterSpecified() { - return localAppendClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAppendCluster() { - return localAppendCluster; - } - - /** - * Auto generated setter method - * - * @param param AppendCluster - */ - public void setAppendCluster(boolean param) { - - // setting primitive attribute tracker to true - localAppendClusterTracker = true; - - this.localAppendCluster = param; - } - - /** field for IncludeFileErrors */ - protected boolean localIncludeFileErrors = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeFileErrorsTracker = false; - - public boolean isIncludeFileErrorsSpecified() { - return localIncludeFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeFileErrors() { - return localIncludeFileErrors; - } - - /** - * Auto generated setter method - * - * @param param IncludeFileErrors - */ - public void setIncludeFileErrors(boolean param) { - - // setting primitive attribute tracker to true - localIncludeFileErrorsTracker = true; - - this.localIncludeFileErrors = param; - } - - /** field for SourceSSL */ - protected boolean localSourceSSL = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceSSLTracker = false; - - public boolean isSourceSSLSpecified() { - return localSourceSSLTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSourceSSL() { - return localSourceSSL; - } - - /** - * Auto generated setter method - * - * @param param SourceSSL - */ - public void setSourceSSL(boolean param) { - - // setting primitive attribute tracker to true - localSourceSSLTracker = true; - - this.localSourceSSL = param; - } - - /** field for DfuCopyFiles */ - protected boolean localDfuCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuCopyFilesTracker = false; - - public boolean isDfuCopyFilesSpecified() { - return localDfuCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuCopyFiles() { - return localDfuCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DfuCopyFiles - */ - public void setDfuCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDfuCopyFilesTracker = true; - - this.localDfuCopyFiles = param; - } - - /** field for DfuQueue */ - protected java.lang.String localDfuQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuQueueTracker = false; - - public boolean isDfuQueueSpecified() { - return localDfuQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuQueue() { - return localDfuQueue; - } - - /** - * Auto generated setter method - * - * @param param DfuQueue - */ - public void setDfuQueue(java.lang.String param) { - localDfuQueueTracker = param != null; - - this.localDfuQueue = param; - } - - /** field for DfuWait */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuWaitTracker = false; - - public boolean isDfuWaitSpecified() { - return localDfuWaitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { - return localDfuWait; - } - - /** - * Auto generated setter method - * - * @param param DfuWait - */ - public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localDfuWaitTracker = param != null; - - this.localDfuWait = param; - } - - /** field for DfuOverwrite */ - protected boolean localDfuOverwrite = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuOverwriteTracker = false; - - public boolean isDfuOverwriteSpecified() { - return localDfuOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuOverwrite() { - return localDfuOverwrite; - } - - /** - * Auto generated setter method - * - * @param param DfuOverwrite - */ - public void setDfuOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localDfuOverwriteTracker = true; - - this.localDfuOverwrite = param; - } - - /** field for OnlyCopyFiles */ - protected boolean localOnlyCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnlyCopyFilesTracker = false; - - public boolean isOnlyCopyFilesSpecified() { - return localOnlyCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOnlyCopyFiles() { - return localOnlyCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param OnlyCopyFiles - */ - public void setOnlyCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localOnlyCopyFilesTracker = true; - - this.localOnlyCopyFiles = param; - } - - /** field for StopIfFilesCopied */ - protected boolean localStopIfFilesCopied = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStopIfFilesCopiedTracker = false; - - public boolean isStopIfFilesCopiedSpecified() { - return localStopIfFilesCopiedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getStopIfFilesCopied() { - return localStopIfFilesCopied; - } - - /** - * Auto generated setter method - * - * @param param StopIfFilesCopied - */ - public void setStopIfFilesCopied(boolean param) { - - // setting primitive attribute tracker to true - localStopIfFilesCopiedTracker = true; - - this.localStopIfFilesCopied = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCopyQuerySet", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCopyQuerySet", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localActiveOnlyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ActiveOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ActiveOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActiveOnly)); - } - - xmlWriter.writeEndElement(); - } - if (localCloneActiveStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CloneActiveState", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CloneActiveState cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localCloneActiveState)); - } - - xmlWriter.writeEndElement(); - } - if (localAllowForeignFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAllowForeignFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localDfsServerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfsServer", xmlWriter); - - if (localDfsServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfsServer cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfsServer); - } - - xmlWriter.writeEndElement(); - } - if (localCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteDfsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OverwriteDfs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OverwriteDfs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwriteDfs)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceProcess", xmlWriter); - - if (localSourceProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceProcess); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateSuperFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localUpdateSuperFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateCloneFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localAppendClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AppendCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeFileErrorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeFileErrors)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceSSLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceSSL", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SourceSSL cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceSSL)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuQueue", xmlWriter); - - if (localDfuQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuQueue); - } - - xmlWriter.writeEndElement(); - } - if (localDfuWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuWait", xmlWriter); - - if (localDfuWait == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuOverwriteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localOnlyCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localStopIfFilesCopiedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localStopIfFilesCopied)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCopyQuerySet parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCopyQuerySet object = new WUCopyQuerySet(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCopyQuerySet".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCopyQuerySet) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActiveOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ActiveOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActiveOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "CloneActiveState") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CloneActiveState" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCloneActiveState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllowForeignFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllowForeignFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfsServer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfsServer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfsServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OverwriteDfs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OverwriteDfs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwriteDfs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceProcess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateSuperFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateSuperFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateCloneFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateCloneFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AppendCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAppendCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeFileErrors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeFileErrors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceSSL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceSSL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceSSL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuOverwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OnlyCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOnlyCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StopIfFilesCopied" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStopIfFilesCopied( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCopyQuerySet.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCopyQuerySet bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCopyQuerySet implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCopyQuerySet", "ns1"); + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for ActiveOnly */ + protected boolean localActiveOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActiveOnlyTracker = false; + + public boolean isActiveOnlySpecified() { + return localActiveOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getActiveOnly() { + return localActiveOnly; + } + + /** + * Auto generated setter method + * + * @param param ActiveOnly + */ + public void setActiveOnly(boolean param) { + + // setting primitive attribute tracker to true + localActiveOnlyTracker = true; + + this.localActiveOnly = param; + } + + /** field for CloneActiveState */ + protected boolean localCloneActiveState = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCloneActiveStateTracker = false; + + public boolean isCloneActiveStateSpecified() { + return localCloneActiveStateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCloneActiveState() { + return localCloneActiveState; + } + + /** + * Auto generated setter method + * + * @param param CloneActiveState + */ + public void setCloneActiveState(boolean param) { + + // setting primitive attribute tracker to true + localCloneActiveStateTracker = true; + + this.localCloneActiveState = param; + } + + /** field for AllowForeignFiles */ + protected boolean localAllowForeignFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowForeignFilesTracker = false; + + public boolean isAllowForeignFilesSpecified() { + return localAllowForeignFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllowForeignFiles() { + return localAllowForeignFiles; + } + + /** + * Auto generated setter method + * + * @param param AllowForeignFiles + */ + public void setAllowForeignFiles(boolean param) { + + // setting primitive attribute tracker to true + localAllowForeignFilesTracker = true; + + this.localAllowForeignFiles = param; + } + + /** field for DfsServer */ + protected java.lang.String localDfsServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfsServerTracker = false; + + public boolean isDfsServerSpecified() { + return localDfsServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfsServer() { + return localDfsServer; + } + + /** + * Auto generated setter method + * + * @param param DfsServer + */ + public void setDfsServer(java.lang.String param) { + localDfsServerTracker = param != null; + + this.localDfsServer = param; + } + + /** field for CopyFiles */ + protected boolean localCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCopyFilesTracker = false; + + public boolean isCopyFilesSpecified() { + return localCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCopyFiles() { + return localCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param CopyFiles + */ + public void setCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localCopyFilesTracker = true; + + this.localCopyFiles = param; + } + + /** field for OverwriteDfs */ + protected boolean localOverwriteDfs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteDfsTracker = false; + + public boolean isOverwriteDfsSpecified() { + return localOverwriteDfsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwriteDfs() { + return localOverwriteDfs; + } + + /** + * Auto generated setter method + * + * @param param OverwriteDfs + */ + public void setOverwriteDfs(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteDfsTracker = true; + + this.localOverwriteDfs = param; + } + + /** field for SourceProcess */ + protected java.lang.String localSourceProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceProcessTracker = false; + + public boolean isSourceProcessSpecified() { + return localSourceProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceProcess() { + return localSourceProcess; + } + + /** + * Auto generated setter method + * + * @param param SourceProcess + */ + public void setSourceProcess(java.lang.String param) { + localSourceProcessTracker = param != null; + + this.localSourceProcess = param; + } + + /** field for UpdateSuperFiles */ + protected boolean localUpdateSuperFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateSuperFilesTracker = false; + + public boolean isUpdateSuperFilesSpecified() { + return localUpdateSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateSuperFiles() { + return localUpdateSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param UpdateSuperFiles + */ + public void setUpdateSuperFiles(boolean param) { + + // setting primitive attribute tracker to true + localUpdateSuperFilesTracker = true; + + this.localUpdateSuperFiles = param; + } + + /** field for UpdateCloneFrom */ + protected boolean localUpdateCloneFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateCloneFromTracker = false; + + public boolean isUpdateCloneFromSpecified() { + return localUpdateCloneFromTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateCloneFrom() { + return localUpdateCloneFrom; + } + + /** + * Auto generated setter method + * + * @param param UpdateCloneFrom + */ + public void setUpdateCloneFrom(boolean param) { + + // setting primitive attribute tracker to true + localUpdateCloneFromTracker = true; + + this.localUpdateCloneFrom = param; + } + + /** field for AppendCluster */ + protected boolean localAppendCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAppendClusterTracker = false; + + public boolean isAppendClusterSpecified() { + return localAppendClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAppendCluster() { + return localAppendCluster; + } + + /** + * Auto generated setter method + * + * @param param AppendCluster + */ + public void setAppendCluster(boolean param) { + + // setting primitive attribute tracker to true + localAppendClusterTracker = true; + + this.localAppendCluster = param; + } + + /** field for IncludeFileErrors */ + protected boolean localIncludeFileErrors = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeFileErrorsTracker = false; + + public boolean isIncludeFileErrorsSpecified() { + return localIncludeFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeFileErrors() { + return localIncludeFileErrors; + } + + /** + * Auto generated setter method + * + * @param param IncludeFileErrors + */ + public void setIncludeFileErrors(boolean param) { + + // setting primitive attribute tracker to true + localIncludeFileErrorsTracker = true; + + this.localIncludeFileErrors = param; + } + + /** field for SourceSSL */ + protected boolean localSourceSSL = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceSSLTracker = false; + + public boolean isSourceSSLSpecified() { + return localSourceSSLTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSourceSSL() { + return localSourceSSL; + } + + /** + * Auto generated setter method + * + * @param param SourceSSL + */ + public void setSourceSSL(boolean param) { + + // setting primitive attribute tracker to true + localSourceSSLTracker = true; + + this.localSourceSSL = param; + } + + /** field for DfuCopyFiles */ + protected boolean localDfuCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuCopyFilesTracker = false; + + public boolean isDfuCopyFilesSpecified() { + return localDfuCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuCopyFiles() { + return localDfuCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DfuCopyFiles + */ + public void setDfuCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDfuCopyFilesTracker = true; + + this.localDfuCopyFiles = param; + } + + /** field for DfuQueue */ + protected java.lang.String localDfuQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuQueueTracker = false; + + public boolean isDfuQueueSpecified() { + return localDfuQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuQueue() { + return localDfuQueue; + } + + /** + * Auto generated setter method + * + * @param param DfuQueue + */ + public void setDfuQueue(java.lang.String param) { + localDfuQueueTracker = param != null; + + this.localDfuQueue = param; + } + + /** field for DfuWait */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuWaitTracker = false; + + public boolean isDfuWaitSpecified() { + return localDfuWaitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { + return localDfuWait; + } + + /** + * Auto generated setter method + * + * @param param DfuWait + */ + public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localDfuWaitTracker = param != null; + + this.localDfuWait = param; + } + + /** field for DfuOverwrite */ + protected boolean localDfuOverwrite = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuOverwriteTracker = false; + + public boolean isDfuOverwriteSpecified() { + return localDfuOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuOverwrite() { + return localDfuOverwrite; + } + + /** + * Auto generated setter method + * + * @param param DfuOverwrite + */ + public void setDfuOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localDfuOverwriteTracker = true; + + this.localDfuOverwrite = param; + } + + /** field for OnlyCopyFiles */ + protected boolean localOnlyCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnlyCopyFilesTracker = false; + + public boolean isOnlyCopyFilesSpecified() { + return localOnlyCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOnlyCopyFiles() { + return localOnlyCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param OnlyCopyFiles + */ + public void setOnlyCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localOnlyCopyFilesTracker = true; + + this.localOnlyCopyFiles = param; + } + + /** field for StopIfFilesCopied */ + protected boolean localStopIfFilesCopied = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStopIfFilesCopiedTracker = false; + + public boolean isStopIfFilesCopiedSpecified() { + return localStopIfFilesCopiedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getStopIfFilesCopied() { + return localStopIfFilesCopied; + } + + /** + * Auto generated setter method + * + * @param param StopIfFilesCopied + */ + public void setStopIfFilesCopied(boolean param) { + + // setting primitive attribute tracker to true + localStopIfFilesCopiedTracker = true; + + this.localStopIfFilesCopied = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for RemoteStorage */ + protected java.lang.String localRemoteStorage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteStorageTracker = false; + + public boolean isRemoteStorageSpecified() { + return localRemoteStorageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteStorage() { + return localRemoteStorage; + } + + /** + * Auto generated setter method + * + * @param param RemoteStorage + */ + public void setRemoteStorage(java.lang.String param) { + localRemoteStorageTracker = param != null; + + this.localRemoteStorage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCopyQuerySet", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCopyQuerySet", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localActiveOnlyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ActiveOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ActiveOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActiveOnly)); + } + + xmlWriter.writeEndElement(); + } + if (localCloneActiveStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CloneActiveState", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CloneActiveState cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localCloneActiveState)); + } + + xmlWriter.writeEndElement(); + } + if (localAllowForeignFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAllowForeignFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localDfsServerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfsServer", xmlWriter); + + if (localDfsServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfsServer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfsServer); + } + + xmlWriter.writeEndElement(); + } + if (localCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteDfsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OverwriteDfs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OverwriteDfs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwriteDfs)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceProcess", xmlWriter); + + if (localSourceProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceProcess); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateSuperFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localUpdateSuperFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateCloneFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localAppendClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AppendCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeFileErrorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeFileErrors)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceSSLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceSSL", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SourceSSL cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceSSL)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuQueue", xmlWriter); + + if (localDfuQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuQueue); + } + + xmlWriter.writeEndElement(); + } + if (localDfuWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuWait", xmlWriter); + + if (localDfuWait == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuOverwriteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localOnlyCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localStopIfFilesCopiedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localStopIfFilesCopied)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteStorageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteStorage", xmlWriter); + + if (localRemoteStorage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteStorage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteStorage); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCopyQuerySet parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCopyQuerySet object = new WUCopyQuerySet(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCopyQuerySet".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCopyQuerySet) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActiveOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ActiveOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActiveOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "CloneActiveState") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CloneActiveState" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCloneActiveState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllowForeignFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllowForeignFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfsServer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfsServer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfsServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OverwriteDfs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OverwriteDfs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwriteDfs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceProcess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateSuperFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateSuperFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateCloneFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateCloneFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AppendCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAppendCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeFileErrors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeFileErrors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceSSL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceSSL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceSSL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuOverwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OnlyCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOnlyCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StopIfFilesCopied" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStopIfFilesCopied( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteStorage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteStorage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteStorage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyQuerySetResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyQuerySetResponse.java index 410b979bc..466f70bc8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyQuerySetResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCopyQuerySetResponse.java @@ -1,685 +1,685 @@ -/** - * WUCopyQuerySetResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCopyQuerySetResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCopyQuerySetResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUCopyQuerySetResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for CopiedQueries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0 - localCopiedQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCopiedQueriesTracker = false; - - public boolean isCopiedQueriesSpecified() { - return localCopiedQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0 - getCopiedQueries() { - return localCopiedQueries; - } - - /** - * Auto generated setter method - * - * @param param CopiedQueries - */ - public void setCopiedQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0 param) { - localCopiedQueriesTracker = param != null; - - this.localCopiedQueries = param; - } - - /** field for ExistingQueries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 - localExistingQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExistingQueriesTracker = false; - - public boolean isExistingQueriesSpecified() { - return localExistingQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 - getExistingQueries() { - return localExistingQueries; - } - - /** - * Auto generated setter method - * - * @param param ExistingQueries - */ - public void setExistingQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 param) { - localExistingQueriesTracker = param != null; - - this.localExistingQueries = param; - } - - /** field for FileErrors */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3 localFileErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileErrorsTracker = false; - - public boolean isFileErrorsSpecified() { - return localFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3 getFileErrors() { - return localFileErrors; - } - - /** - * Auto generated setter method - * - * @param param FileErrors - */ - public void setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3 param) { - localFileErrorsTracker = param != null; - - this.localFileErrors = param; - } - - /** field for DfuPublisherWuid */ - protected java.lang.String localDfuPublisherWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherWuidTracker = false; - - public boolean isDfuPublisherWuidSpecified() { - return localDfuPublisherWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherWuid() { - return localDfuPublisherWuid; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherWuid - */ - public void setDfuPublisherWuid(java.lang.String param) { - localDfuPublisherWuidTracker = param != null; - - this.localDfuPublisherWuid = param; - } - - /** field for DfuPublisherState */ - protected java.lang.String localDfuPublisherState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherStateTracker = false; - - public boolean isDfuPublisherStateSpecified() { - return localDfuPublisherStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherState() { - return localDfuPublisherState; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherState - */ - public void setDfuPublisherState(java.lang.String param) { - localDfuPublisherStateTracker = param != null; - - this.localDfuPublisherState = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCopyQuerySetResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCopyQuerySetResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localCopiedQueriesTracker) { - if (localCopiedQueries == null) { - throw new org.apache.axis2.databinding.ADBException("CopiedQueries cannot be null!!"); - } - localCopiedQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopiedQueries"), - xmlWriter); - } - if (localExistingQueriesTracker) { - if (localExistingQueries == null) { - throw new org.apache.axis2.databinding.ADBException("ExistingQueries cannot be null!!"); - } - localExistingQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExistingQueries"), - xmlWriter); - } - if (localFileErrorsTracker) { - if (localFileErrors == null) { - throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); - } - localFileErrors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); - } - if (localDfuPublisherWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); - - if (localDfuPublisherWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDfuPublisherStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); - - if (localDfuPublisherState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherState); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCopyQuerySetResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCopyQuerySetResponse object = new WUCopyQuerySetResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCopyQuerySetResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCopyQuerySetResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopiedQueries") - .equals(reader.getName())) { - - object.setCopiedQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ExistingQueries") - .equals(reader.getName())) { - - object.setExistingQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") - .equals(reader.getName())) { - - object.setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherState" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCopyQuerySetResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCopyQuerySetResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCopyQuerySetResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUCopyQuerySetResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for CopiedQueries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0 + localCopiedQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCopiedQueriesTracker = false; + + public boolean isCopiedQueriesSpecified() { + return localCopiedQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0 + getCopiedQueries() { + return localCopiedQueries; + } + + /** + * Auto generated setter method + * + * @param param CopiedQueries + */ + public void setCopiedQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0 param) { + localCopiedQueriesTracker = param != null; + + this.localCopiedQueries = param; + } + + /** field for ExistingQueries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 + localExistingQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExistingQueriesTracker = false; + + public boolean isExistingQueriesSpecified() { + return localExistingQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 + getExistingQueries() { + return localExistingQueries; + } + + /** + * Auto generated setter method + * + * @param param ExistingQueries + */ + public void setExistingQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 param) { + localExistingQueriesTracker = param != null; + + this.localExistingQueries = param; + } + + /** field for FileErrors */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3 localFileErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileErrorsTracker = false; + + public boolean isFileErrorsSpecified() { + return localFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3 getFileErrors() { + return localFileErrors; + } + + /** + * Auto generated setter method + * + * @param param FileErrors + */ + public void setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3 param) { + localFileErrorsTracker = param != null; + + this.localFileErrors = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for DfuPublisherState */ + protected java.lang.String localDfuPublisherState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherStateTracker = false; + + public boolean isDfuPublisherStateSpecified() { + return localDfuPublisherStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherState() { + return localDfuPublisherState; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherState + */ + public void setDfuPublisherState(java.lang.String param) { + localDfuPublisherStateTracker = param != null; + + this.localDfuPublisherState = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCopyQuerySetResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCopyQuerySetResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localCopiedQueriesTracker) { + if (localCopiedQueries == null) { + throw new org.apache.axis2.databinding.ADBException("CopiedQueries cannot be null!!"); + } + localCopiedQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopiedQueries"), + xmlWriter); + } + if (localExistingQueriesTracker) { + if (localExistingQueries == null) { + throw new org.apache.axis2.databinding.ADBException("ExistingQueries cannot be null!!"); + } + localExistingQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExistingQueries"), + xmlWriter); + } + if (localFileErrorsTracker) { + if (localFileErrors == null) { + throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); + } + localFileErrors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); + + if (localDfuPublisherState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherState); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCopyQuerySetResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCopyQuerySetResponse object = new WUCopyQuerySetResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCopyQuerySetResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCopyQuerySetResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopiedQueries") + .equals(reader.getName())) { + + object.setCopiedQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.CopiedQueries_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ExistingQueries") + .equals(reader.getName())) { + + object.setExistingQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type1 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") + .equals(reader.getName())) { + + object.setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type3.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherState" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreate.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreate.java index c56901e17..77b2358fb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreate.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreate.java @@ -1,311 +1,311 @@ -/** - * WUCreate.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCreate bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCreate implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreate", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCreate", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUCreate", xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCreate parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCreate object = new WUCreate(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCreate".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCreate) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCreate.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCreate bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCreate implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreate", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCreate", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUCreate", xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCreate parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCreate object = new WUCreate(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCreate".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCreate) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateAndUpdate.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateAndUpdate.java index 17ad4c0a3..109ac8981 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateAndUpdate.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateAndUpdate.java @@ -1,1949 +1,1949 @@ -/** - * WUCreateAndUpdate.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCreateAndUpdate bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCreateAndUpdate implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateAndUpdate", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for State */ - protected int localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(int param) { - - // setting primitive attribute tracker to true - localStateTracker = param != java.lang.Integer.MIN_VALUE; - - this.localState = param; - } - - /** field for StateOrig */ - protected int localStateOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateOrigTracker = false; - - public boolean isStateOrigSpecified() { - return localStateOrigTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getStateOrig() { - return localStateOrig; - } - - /** - * Auto generated setter method - * - * @param param StateOrig - */ - public void setStateOrig(int param) { - - // setting primitive attribute tracker to true - localStateOrigTracker = param != java.lang.Integer.MIN_VALUE; - - this.localStateOrig = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** field for JobnameOrig */ - protected java.lang.String localJobnameOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameOrigTracker = false; - - public boolean isJobnameOrigSpecified() { - return localJobnameOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobnameOrig() { - return localJobnameOrig; - } - - /** - * Auto generated setter method - * - * @param param JobnameOrig - */ - public void setJobnameOrig(java.lang.String param) { - localJobnameOrigTracker = param != null; - - this.localJobnameOrig = param; - } - - /** field for QueryText */ - protected java.lang.String localQueryText; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryTextTracker = false; - - public boolean isQueryTextSpecified() { - return localQueryTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryText() { - return localQueryText; - } - - /** - * Auto generated setter method - * - * @param param QueryText - */ - public void setQueryText(java.lang.String param) { - localQueryTextTracker = param != null; - - this.localQueryText = param; - } - - /** field for Action */ - protected int localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction(int param) { - - // setting primitive attribute tracker to true - localActionTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAction = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for DescriptionOrig */ - protected java.lang.String localDescriptionOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionOrigTracker = false; - - public boolean isDescriptionOrigSpecified() { - return localDescriptionOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescriptionOrig() { - return localDescriptionOrig; - } - - /** - * Auto generated setter method - * - * @param param DescriptionOrig - */ - public void setDescriptionOrig(java.lang.String param) { - localDescriptionOrigTracker = param != null; - - this.localDescriptionOrig = param; - } - - /** field for AddDrilldownFields */ - protected boolean localAddDrilldownFields; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAddDrilldownFieldsTracker = false; - - public boolean isAddDrilldownFieldsSpecified() { - return localAddDrilldownFieldsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAddDrilldownFields() { - return localAddDrilldownFields; - } - - /** - * Auto generated setter method - * - * @param param AddDrilldownFields - */ - public void setAddDrilldownFields(boolean param) { - - // setting primitive attribute tracker to true - localAddDrilldownFieldsTracker = true; - - this.localAddDrilldownFields = param; - } - - /** field for ResultLimit */ - protected int localResultLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultLimitTracker = false; - - public boolean isResultLimitSpecified() { - return localResultLimitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getResultLimit() { - return localResultLimit; - } - - /** - * Auto generated setter method - * - * @param param ResultLimit - */ - public void setResultLimit(int param) { - - // setting primitive attribute tracker to true - localResultLimitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localResultLimit = param; - } - - /** field for Protected */ - protected boolean localProtected; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectedTracker = false; - - public boolean isProtectedSpecified() { - return localProtectedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getProtected() { - return localProtected; - } - - /** - * Auto generated setter method - * - * @param param Protected - */ - public void setProtected(boolean param) { - - // setting primitive attribute tracker to true - localProtectedTracker = true; - - this.localProtected = param; - } - - /** field for ProtectedOrig */ - protected boolean localProtectedOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectedOrigTracker = false; - - public boolean isProtectedOrigSpecified() { - return localProtectedOrigTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getProtectedOrig() { - return localProtectedOrig; - } - - /** - * Auto generated setter method - * - * @param param ProtectedOrig - */ - public void setProtectedOrig(boolean param) { - - // setting primitive attribute tracker to true - localProtectedOrigTracker = true; - - this.localProtectedOrig = param; - } - - /** field for PriorityClass */ - protected int localPriorityClass; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityClassTracker = false; - - public boolean isPriorityClassSpecified() { - return localPriorityClassTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityClass() { - return localPriorityClass; - } - - /** - * Auto generated setter method - * - * @param param PriorityClass - */ - public void setPriorityClass(int param) { - - // setting primitive attribute tracker to true - localPriorityClassTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityClass = param; - } - - /** field for PriorityLevel */ - protected int localPriorityLevel; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityLevelTracker = false; - - public boolean isPriorityLevelSpecified() { - return localPriorityLevelTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityLevel() { - return localPriorityLevel; - } - - /** - * Auto generated setter method - * - * @param param PriorityLevel - */ - public void setPriorityLevel(int param) { - - // setting primitive attribute tracker to true - localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityLevel = param; - } - - /** field for Scope */ - protected java.lang.String localScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTracker = false; - - public boolean isScopeSpecified() { - return localScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScope() { - return localScope; - } - - /** - * Auto generated setter method - * - * @param param Scope - */ - public void setScope(java.lang.String param) { - localScopeTracker = param != null; - - this.localScope = param; - } - - /** field for ScopeOrig */ - protected java.lang.String localScopeOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeOrigTracker = false; - - public boolean isScopeOrigSpecified() { - return localScopeOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScopeOrig() { - return localScopeOrig; - } - - /** - * Auto generated setter method - * - * @param param ScopeOrig - */ - public void setScopeOrig(java.lang.String param) { - localScopeOrigTracker = param != null; - - this.localScopeOrig = param; - } - - /** field for ClusterSelection */ - protected java.lang.String localClusterSelection; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterSelectionTracker = false; - - public boolean isClusterSelectionSpecified() { - return localClusterSelectionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterSelection() { - return localClusterSelection; - } - - /** - * Auto generated setter method - * - * @param param ClusterSelection - */ - public void setClusterSelection(java.lang.String param) { - localClusterSelectionTracker = param != null; - - this.localClusterSelection = param; - } - - /** field for ClusterOrig */ - protected java.lang.String localClusterOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterOrigTracker = false; - - public boolean isClusterOrigSpecified() { - return localClusterOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterOrig() { - return localClusterOrig; - } - - /** - * Auto generated setter method - * - * @param param ClusterOrig - */ - public void setClusterOrig(java.lang.String param) { - localClusterOrigTracker = param != null; - - this.localClusterOrig = param; - } - - /** field for XmlParams */ - protected java.lang.String localXmlParams; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localXmlParamsTracker = false; - - public boolean isXmlParamsSpecified() { - return localXmlParamsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getXmlParams() { - return localXmlParams; - } - - /** - * Auto generated setter method - * - * @param param XmlParams - */ - public void setXmlParams(java.lang.String param) { - localXmlParamsTracker = param != null; - - this.localXmlParams = param; - } - - /** field for ThorSlaveIP */ - protected java.lang.String localThorSlaveIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorSlaveIPTracker = false; - - public boolean isThorSlaveIPSpecified() { - return localThorSlaveIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorSlaveIP() { - return localThorSlaveIP; - } - - /** - * Auto generated setter method - * - * @param param ThorSlaveIP - */ - public void setThorSlaveIP(java.lang.String param) { - localThorSlaveIPTracker = param != null; - - this.localThorSlaveIP = param; - } - - /** field for QueryMainDefinition */ - protected java.lang.String localQueryMainDefinition; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryMainDefinitionTracker = false; - - public boolean isQueryMainDefinitionSpecified() { - return localQueryMainDefinitionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryMainDefinition() { - return localQueryMainDefinition; - } - - /** - * Auto generated setter method - * - * @param param QueryMainDefinition - */ - public void setQueryMainDefinition(java.lang.String param) { - localQueryMainDefinitionTracker = param != null; - - this.localQueryMainDefinition = param; - } - - /** field for DebugValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue - localDebugValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValuesTracker = false; - - public boolean isDebugValuesSpecified() { - return localDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue getDebugValues() { - return localDebugValues; - } - - /** - * Auto generated setter method - * - * @param param DebugValues - */ - public void setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue param) { - localDebugValuesTracker = param != null; - - this.localDebugValues = param; - } - - /** field for ApplicationValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - localApplicationValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValuesTracker = false; - - public boolean isApplicationValuesSpecified() { - return localApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - getApplicationValues() { - return localApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValues - */ - public void setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { - localApplicationValuesTracker = param != null; - - this.localApplicationValues = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCreateAndUpdate", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCreateAndUpdate", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); - } - - xmlWriter.writeEndElement(); - } - if (localStateOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StateOrig", xmlWriter); - - if (localStateOrig == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("StateOrig cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateOrig)); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "JobnameOrig", xmlWriter); - - if (localJobnameOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobnameOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobnameOrig); - } - - xmlWriter.writeEndElement(); - } - if (localQueryTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryText", xmlWriter); - - if (localQueryText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryText); - } - - xmlWriter.writeEndElement(); - } - if (localActionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Action", xmlWriter); - - if (localAction == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); - } - - xmlWriter.writeEndElement(); - } - if (localDescriptionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localDescriptionOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DescriptionOrig", xmlWriter); - - if (localDescriptionOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DescriptionOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDescriptionOrig); - } - - xmlWriter.writeEndElement(); - } - if (localAddDrilldownFieldsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AddDrilldownFields", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AddDrilldownFields cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAddDrilldownFields)); - } - - xmlWriter.writeEndElement(); - } - if (localResultLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultLimit", xmlWriter); - - if (localResultLimit == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ResultLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localProtectedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Protected", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Protected cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtected)); - } - - xmlWriter.writeEndElement(); - } - if (localProtectedOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ProtectedOrig", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ProtectedOrig cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtectedOrig)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityClassTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityClass", xmlWriter); - - if (localPriorityClass == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityClass cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityClass)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityLevelTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityLevel", xmlWriter); - - if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Scope", xmlWriter); - - if (localScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScope); - } - - xmlWriter.writeEndElement(); - } - if (localScopeOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ScopeOrig", xmlWriter); - - if (localScopeOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ScopeOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScopeOrig); - } - - xmlWriter.writeEndElement(); - } - if (localClusterSelectionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterSelection", xmlWriter); - - if (localClusterSelection == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterSelection cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterSelection); - } - - xmlWriter.writeEndElement(); - } - if (localClusterOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterOrig", xmlWriter); - - if (localClusterOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterOrig); - } - - xmlWriter.writeEndElement(); - } - if (localXmlParamsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "XmlParams", xmlWriter); - - if (localXmlParams == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("XmlParams cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localXmlParams); - } - - xmlWriter.writeEndElement(); - } - if (localThorSlaveIPTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); - - if (localThorSlaveIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorSlaveIP); - } - - xmlWriter.writeEndElement(); - } - if (localQueryMainDefinitionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryMainDefinition", xmlWriter); - - if (localQueryMainDefinition == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryMainDefinition cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryMainDefinition); - } - - xmlWriter.writeEndElement(); - } - if (localDebugValuesTracker) { - if (localDebugValues == null) { - throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); - } - localDebugValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), - xmlWriter); - } - if (localApplicationValuesTracker) { - if (localApplicationValues == null) { - throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); - } - localApplicationValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCreateAndUpdate parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCreateAndUpdate object = new WUCreateAndUpdate(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCreateAndUpdate".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCreateAndUpdate) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobnameOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobnameOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobnameOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Action" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DescriptionOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DescriptionOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescriptionOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AddDrilldownFields") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AddDrilldownFields" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAddDrilldownFields( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Protected" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtected( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ProtectedOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProtectedOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtectedOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityClass") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityClass" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityClass( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityLevel" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityLevel( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Scope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ScopeOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScopeOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ClusterSelection") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterSelection" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterSelection( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "XmlParams") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "XmlParams" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setXmlParams( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorSlaveIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorSlaveIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QueryMainDefinition") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryMainDefinition" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryMainDefinition( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") - .equals(reader.getName())) { - - object.setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") - .equals(reader.getName())) { - - object.setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCreateAndUpdate.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCreateAndUpdate bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCreateAndUpdate implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateAndUpdate", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for State */ + protected int localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(int param) { + + // setting primitive attribute tracker to true + localStateTracker = param != java.lang.Integer.MIN_VALUE; + + this.localState = param; + } + + /** field for StateOrig */ + protected int localStateOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateOrigTracker = false; + + public boolean isStateOrigSpecified() { + return localStateOrigTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getStateOrig() { + return localStateOrig; + } + + /** + * Auto generated setter method + * + * @param param StateOrig + */ + public void setStateOrig(int param) { + + // setting primitive attribute tracker to true + localStateOrigTracker = param != java.lang.Integer.MIN_VALUE; + + this.localStateOrig = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** field for JobnameOrig */ + protected java.lang.String localJobnameOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameOrigTracker = false; + + public boolean isJobnameOrigSpecified() { + return localJobnameOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobnameOrig() { + return localJobnameOrig; + } + + /** + * Auto generated setter method + * + * @param param JobnameOrig + */ + public void setJobnameOrig(java.lang.String param) { + localJobnameOrigTracker = param != null; + + this.localJobnameOrig = param; + } + + /** field for QueryText */ + protected java.lang.String localQueryText; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryTextTracker = false; + + public boolean isQueryTextSpecified() { + return localQueryTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryText() { + return localQueryText; + } + + /** + * Auto generated setter method + * + * @param param QueryText + */ + public void setQueryText(java.lang.String param) { + localQueryTextTracker = param != null; + + this.localQueryText = param; + } + + /** field for Action */ + protected int localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction(int param) { + + // setting primitive attribute tracker to true + localActionTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAction = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for DescriptionOrig */ + protected java.lang.String localDescriptionOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionOrigTracker = false; + + public boolean isDescriptionOrigSpecified() { + return localDescriptionOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescriptionOrig() { + return localDescriptionOrig; + } + + /** + * Auto generated setter method + * + * @param param DescriptionOrig + */ + public void setDescriptionOrig(java.lang.String param) { + localDescriptionOrigTracker = param != null; + + this.localDescriptionOrig = param; + } + + /** field for AddDrilldownFields */ + protected boolean localAddDrilldownFields; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAddDrilldownFieldsTracker = false; + + public boolean isAddDrilldownFieldsSpecified() { + return localAddDrilldownFieldsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAddDrilldownFields() { + return localAddDrilldownFields; + } + + /** + * Auto generated setter method + * + * @param param AddDrilldownFields + */ + public void setAddDrilldownFields(boolean param) { + + // setting primitive attribute tracker to true + localAddDrilldownFieldsTracker = true; + + this.localAddDrilldownFields = param; + } + + /** field for ResultLimit */ + protected int localResultLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultLimitTracker = false; + + public boolean isResultLimitSpecified() { + return localResultLimitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getResultLimit() { + return localResultLimit; + } + + /** + * Auto generated setter method + * + * @param param ResultLimit + */ + public void setResultLimit(int param) { + + // setting primitive attribute tracker to true + localResultLimitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localResultLimit = param; + } + + /** field for Protected */ + protected boolean localProtected; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectedTracker = false; + + public boolean isProtectedSpecified() { + return localProtectedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getProtected() { + return localProtected; + } + + /** + * Auto generated setter method + * + * @param param Protected + */ + public void setProtected(boolean param) { + + // setting primitive attribute tracker to true + localProtectedTracker = true; + + this.localProtected = param; + } + + /** field for ProtectedOrig */ + protected boolean localProtectedOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectedOrigTracker = false; + + public boolean isProtectedOrigSpecified() { + return localProtectedOrigTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getProtectedOrig() { + return localProtectedOrig; + } + + /** + * Auto generated setter method + * + * @param param ProtectedOrig + */ + public void setProtectedOrig(boolean param) { + + // setting primitive attribute tracker to true + localProtectedOrigTracker = true; + + this.localProtectedOrig = param; + } + + /** field for PriorityClass */ + protected int localPriorityClass; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityClassTracker = false; + + public boolean isPriorityClassSpecified() { + return localPriorityClassTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityClass() { + return localPriorityClass; + } + + /** + * Auto generated setter method + * + * @param param PriorityClass + */ + public void setPriorityClass(int param) { + + // setting primitive attribute tracker to true + localPriorityClassTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityClass = param; + } + + /** field for PriorityLevel */ + protected int localPriorityLevel; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityLevelTracker = false; + + public boolean isPriorityLevelSpecified() { + return localPriorityLevelTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityLevel() { + return localPriorityLevel; + } + + /** + * Auto generated setter method + * + * @param param PriorityLevel + */ + public void setPriorityLevel(int param) { + + // setting primitive attribute tracker to true + localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityLevel = param; + } + + /** field for Scope */ + protected java.lang.String localScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTracker = false; + + public boolean isScopeSpecified() { + return localScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScope() { + return localScope; + } + + /** + * Auto generated setter method + * + * @param param Scope + */ + public void setScope(java.lang.String param) { + localScopeTracker = param != null; + + this.localScope = param; + } + + /** field for ScopeOrig */ + protected java.lang.String localScopeOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeOrigTracker = false; + + public boolean isScopeOrigSpecified() { + return localScopeOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScopeOrig() { + return localScopeOrig; + } + + /** + * Auto generated setter method + * + * @param param ScopeOrig + */ + public void setScopeOrig(java.lang.String param) { + localScopeOrigTracker = param != null; + + this.localScopeOrig = param; + } + + /** field for ClusterSelection */ + protected java.lang.String localClusterSelection; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterSelectionTracker = false; + + public boolean isClusterSelectionSpecified() { + return localClusterSelectionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterSelection() { + return localClusterSelection; + } + + /** + * Auto generated setter method + * + * @param param ClusterSelection + */ + public void setClusterSelection(java.lang.String param) { + localClusterSelectionTracker = param != null; + + this.localClusterSelection = param; + } + + /** field for ClusterOrig */ + protected java.lang.String localClusterOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterOrigTracker = false; + + public boolean isClusterOrigSpecified() { + return localClusterOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterOrig() { + return localClusterOrig; + } + + /** + * Auto generated setter method + * + * @param param ClusterOrig + */ + public void setClusterOrig(java.lang.String param) { + localClusterOrigTracker = param != null; + + this.localClusterOrig = param; + } + + /** field for XmlParams */ + protected java.lang.String localXmlParams; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localXmlParamsTracker = false; + + public boolean isXmlParamsSpecified() { + return localXmlParamsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getXmlParams() { + return localXmlParams; + } + + /** + * Auto generated setter method + * + * @param param XmlParams + */ + public void setXmlParams(java.lang.String param) { + localXmlParamsTracker = param != null; + + this.localXmlParams = param; + } + + /** field for ThorSlaveIP */ + protected java.lang.String localThorSlaveIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorSlaveIPTracker = false; + + public boolean isThorSlaveIPSpecified() { + return localThorSlaveIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorSlaveIP() { + return localThorSlaveIP; + } + + /** + * Auto generated setter method + * + * @param param ThorSlaveIP + */ + public void setThorSlaveIP(java.lang.String param) { + localThorSlaveIPTracker = param != null; + + this.localThorSlaveIP = param; + } + + /** field for QueryMainDefinition */ + protected java.lang.String localQueryMainDefinition; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryMainDefinitionTracker = false; + + public boolean isQueryMainDefinitionSpecified() { + return localQueryMainDefinitionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryMainDefinition() { + return localQueryMainDefinition; + } + + /** + * Auto generated setter method + * + * @param param QueryMainDefinition + */ + public void setQueryMainDefinition(java.lang.String param) { + localQueryMainDefinitionTracker = param != null; + + this.localQueryMainDefinition = param; + } + + /** field for DebugValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue + localDebugValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValuesTracker = false; + + public boolean isDebugValuesSpecified() { + return localDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue getDebugValues() { + return localDebugValues; + } + + /** + * Auto generated setter method + * + * @param param DebugValues + */ + public void setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue param) { + localDebugValuesTracker = param != null; + + this.localDebugValues = param; + } + + /** field for ApplicationValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + localApplicationValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValuesTracker = false; + + public boolean isApplicationValuesSpecified() { + return localApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + getApplicationValues() { + return localApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValues + */ + public void setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { + localApplicationValuesTracker = param != null; + + this.localApplicationValues = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCreateAndUpdate", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCreateAndUpdate", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); + } + + xmlWriter.writeEndElement(); + } + if (localStateOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StateOrig", xmlWriter); + + if (localStateOrig == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("StateOrig cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateOrig)); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "JobnameOrig", xmlWriter); + + if (localJobnameOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobnameOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobnameOrig); + } + + xmlWriter.writeEndElement(); + } + if (localQueryTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryText", xmlWriter); + + if (localQueryText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryText); + } + + xmlWriter.writeEndElement(); + } + if (localActionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Action", xmlWriter); + + if (localAction == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); + } + + xmlWriter.writeEndElement(); + } + if (localDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localDescriptionOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DescriptionOrig", xmlWriter); + + if (localDescriptionOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DescriptionOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDescriptionOrig); + } + + xmlWriter.writeEndElement(); + } + if (localAddDrilldownFieldsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AddDrilldownFields", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AddDrilldownFields cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAddDrilldownFields)); + } + + xmlWriter.writeEndElement(); + } + if (localResultLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultLimit", xmlWriter); + + if (localResultLimit == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ResultLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localProtectedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Protected", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Protected cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtected)); + } + + xmlWriter.writeEndElement(); + } + if (localProtectedOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ProtectedOrig", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ProtectedOrig cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtectedOrig)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityClassTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityClass", xmlWriter); + + if (localPriorityClass == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityClass cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityClass)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityLevelTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityLevel", xmlWriter); + + if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Scope", xmlWriter); + + if (localScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScope); + } + + xmlWriter.writeEndElement(); + } + if (localScopeOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ScopeOrig", xmlWriter); + + if (localScopeOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ScopeOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScopeOrig); + } + + xmlWriter.writeEndElement(); + } + if (localClusterSelectionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterSelection", xmlWriter); + + if (localClusterSelection == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterSelection cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterSelection); + } + + xmlWriter.writeEndElement(); + } + if (localClusterOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterOrig", xmlWriter); + + if (localClusterOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterOrig); + } + + xmlWriter.writeEndElement(); + } + if (localXmlParamsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "XmlParams", xmlWriter); + + if (localXmlParams == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("XmlParams cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localXmlParams); + } + + xmlWriter.writeEndElement(); + } + if (localThorSlaveIPTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); + + if (localThorSlaveIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorSlaveIP); + } + + xmlWriter.writeEndElement(); + } + if (localQueryMainDefinitionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryMainDefinition", xmlWriter); + + if (localQueryMainDefinition == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryMainDefinition cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryMainDefinition); + } + + xmlWriter.writeEndElement(); + } + if (localDebugValuesTracker) { + if (localDebugValues == null) { + throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); + } + localDebugValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), + xmlWriter); + } + if (localApplicationValuesTracker) { + if (localApplicationValues == null) { + throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); + } + localApplicationValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCreateAndUpdate parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCreateAndUpdate object = new WUCreateAndUpdate(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCreateAndUpdate".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCreateAndUpdate) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobnameOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobnameOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobnameOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Action" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DescriptionOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DescriptionOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescriptionOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AddDrilldownFields") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AddDrilldownFields" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAddDrilldownFields( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Protected" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtected( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ProtectedOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProtectedOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtectedOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityClass") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityClass" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityClass( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityLevel" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityLevel( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Scope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ScopeOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScopeOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ClusterSelection") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterSelection" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterSelection( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "XmlParams") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "XmlParams" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setXmlParams( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorSlaveIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorSlaveIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QueryMainDefinition") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryMainDefinition" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryMainDefinition( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") + .equals(reader.getName())) { + + object.setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") + .equals(reader.getName())) { + + object.setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateResponse.java index ab44259b7..dfdd5e071 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateResponse.java @@ -1,435 +1,435 @@ -/** - * WUCreateResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCreateResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCreateResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Workunit */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitTracker = false; - - public boolean isWorkunitSpecified() { - return localWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { - return localWorkunit; - } - - /** - * Auto generated setter method - * - * @param param Workunit - */ - public void setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { - localWorkunitTracker = param != null; - - this.localWorkunit = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCreateResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCreateResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWorkunitTracker) { - if (localWorkunit == null) { - throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); - } - localWorkunit.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCreateResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCreateResponse object = new WUCreateResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCreateResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCreateResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") - .equals(reader.getName())) { - - object.setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCreateResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCreateResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCreateResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Workunit */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitTracker = false; + + public boolean isWorkunitSpecified() { + return localWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { + return localWorkunit; + } + + /** + * Auto generated setter method + * + * @param param Workunit + */ + public void setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { + localWorkunitTracker = param != null; + + this.localWorkunit = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCreateResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCreateResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWorkunitTracker) { + if (localWorkunit == null) { + throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); + } + localWorkunit.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCreateResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCreateResponse object = new WUCreateResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCreateResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCreateResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") + .equals(reader.getName())) { + + object.setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateZAPInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateZAPInfo.java index 311e51c86..ef2a0a0b4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateZAPInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateZAPInfo.java @@ -1,1359 +1,1411 @@ -/** - * WUCreateZAPInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCreateZAPInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCreateZAPInfo implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateZAPInfo", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for ESPApplication */ - protected java.lang.String localESPApplication; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localESPApplicationTracker = false; - - public boolean isESPApplicationSpecified() { - return localESPApplicationTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getESPApplication() { - return localESPApplication; - } - - /** - * Auto generated setter method - * - * @param param ESPApplication - */ - public void setESPApplication(java.lang.String param) { - localESPApplicationTracker = param != null; - - this.localESPApplication = param; - } - - /** field for ThorProcesses */ - protected java.lang.String localThorProcesses; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorProcessesTracker = false; - - public boolean isThorProcessesSpecified() { - return localThorProcessesTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorProcesses() { - return localThorProcesses; - } - - /** - * Auto generated setter method - * - * @param param ThorProcesses - */ - public void setThorProcesses(java.lang.String param) { - localThorProcessesTracker = param != null; - - this.localThorProcesses = param; - } - - /** field for BuildVersion */ - protected java.lang.String localBuildVersion; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildVersionTracker = false; - - public boolean isBuildVersionSpecified() { - return localBuildVersionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuildVersion() { - return localBuildVersion; - } - - /** - * Auto generated setter method - * - * @param param BuildVersion - */ - public void setBuildVersion(java.lang.String param) { - localBuildVersionTracker = param != null; - - this.localBuildVersion = param; - } - - /** field for ProblemDescription */ - protected java.lang.String localProblemDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProblemDescriptionTracker = false; - - public boolean isProblemDescriptionSpecified() { - return localProblemDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProblemDescription() { - return localProblemDescription; - } - - /** - * Auto generated setter method - * - * @param param ProblemDescription - */ - public void setProblemDescription(java.lang.String param) { - localProblemDescriptionTracker = param != null; - - this.localProblemDescription = param; - } - - /** field for WhatChanged */ - protected java.lang.String localWhatChanged; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWhatChangedTracker = false; - - public boolean isWhatChangedSpecified() { - return localWhatChangedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWhatChanged() { - return localWhatChanged; - } - - /** - * Auto generated setter method - * - * @param param WhatChanged - */ - public void setWhatChanged(java.lang.String param) { - localWhatChangedTracker = param != null; - - this.localWhatChanged = param; - } - - /** field for WhereSlow */ - protected java.lang.String localWhereSlow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWhereSlowTracker = false; - - public boolean isWhereSlowSpecified() { - return localWhereSlowTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWhereSlow() { - return localWhereSlow; - } - - /** - * Auto generated setter method - * - * @param param WhereSlow - */ - public void setWhereSlow(java.lang.String param) { - localWhereSlowTracker = param != null; - - this.localWhereSlow = param; - } - - /** field for ZAPFileName */ - protected java.lang.String localZAPFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localZAPFileNameTracker = false; - - public boolean isZAPFileNameSpecified() { - return localZAPFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getZAPFileName() { - return localZAPFileName; - } - - /** - * Auto generated setter method - * - * @param param ZAPFileName - */ - public void setZAPFileName(java.lang.String param) { - localZAPFileNameTracker = param != null; - - this.localZAPFileName = param; - } - - /** field for IncludeThorSlaveLog */ - protected java.lang.String localIncludeThorSlaveLog = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("on"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeThorSlaveLogTracker = false; - - public boolean isIncludeThorSlaveLogSpecified() { - return localIncludeThorSlaveLogTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getIncludeThorSlaveLog() { - return localIncludeThorSlaveLog; - } - - /** - * Auto generated setter method - * - * @param param IncludeThorSlaveLog - */ - public void setIncludeThorSlaveLog(java.lang.String param) { - localIncludeThorSlaveLogTracker = param != null; - - this.localIncludeThorSlaveLog = param; - } - - /** field for ZAPPassword */ - protected java.lang.String localZAPPassword; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localZAPPasswordTracker = false; - - public boolean isZAPPasswordSpecified() { - return localZAPPasswordTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getZAPPassword() { - return localZAPPassword; - } - - /** - * Auto generated setter method - * - * @param param ZAPPassword - */ - public void setZAPPassword(java.lang.String param) { - localZAPPasswordTracker = param != null; - - this.localZAPPassword = param; - } - - /** field for SendEmail */ - protected boolean localSendEmail = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSendEmailTracker = false; - - public boolean isSendEmailSpecified() { - return localSendEmailTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSendEmail() { - return localSendEmail; - } - - /** - * Auto generated setter method - * - * @param param SendEmail - */ - public void setSendEmail(boolean param) { - - // setting primitive attribute tracker to true - localSendEmailTracker = true; - - this.localSendEmail = param; - } - - /** field for AttachZAPReportToEmail */ - protected boolean localAttachZAPReportToEmail = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAttachZAPReportToEmailTracker = false; - - public boolean isAttachZAPReportToEmailSpecified() { - return localAttachZAPReportToEmailTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAttachZAPReportToEmail() { - return localAttachZAPReportToEmail; - } - - /** - * Auto generated setter method - * - * @param param AttachZAPReportToEmail - */ - public void setAttachZAPReportToEmail(boolean param) { - - // setting primitive attribute tracker to true - localAttachZAPReportToEmailTracker = true; - - this.localAttachZAPReportToEmail = param; - } - - /** field for EmailFrom */ - protected java.lang.String localEmailFrom; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEmailFromTracker = false; - - public boolean isEmailFromSpecified() { - return localEmailFromTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEmailFrom() { - return localEmailFrom; - } - - /** - * Auto generated setter method - * - * @param param EmailFrom - */ - public void setEmailFrom(java.lang.String param) { - localEmailFromTracker = param != null; - - this.localEmailFrom = param; - } - - /** field for EmailSubject */ - protected java.lang.String localEmailSubject; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEmailSubjectTracker = false; - - public boolean isEmailSubjectSpecified() { - return localEmailSubjectTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEmailSubject() { - return localEmailSubject; - } - - /** - * Auto generated setter method - * - * @param param EmailSubject - */ - public void setEmailSubject(java.lang.String param) { - localEmailSubjectTracker = param != null; - - this.localEmailSubject = param; - } - - /** field for EmailBody */ - protected java.lang.String localEmailBody; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEmailBodyTracker = false; - - public boolean isEmailBodySpecified() { - return localEmailBodyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEmailBody() { - return localEmailBody; - } - - /** - * Auto generated setter method - * - * @param param EmailBody - */ - public void setEmailBody(java.lang.String param) { - localEmailBodyTracker = param != null; - - this.localEmailBody = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCreateZAPInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCreateZAPInfo", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localESPApplicationTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ESPApplication", xmlWriter); - - if (localESPApplication == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ESPApplication cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localESPApplication); - } - - xmlWriter.writeEndElement(); - } - if (localThorProcessesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorProcesses", xmlWriter); - - if (localThorProcesses == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorProcesses cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorProcesses); - } - - xmlWriter.writeEndElement(); - } - if (localBuildVersionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BuildVersion", xmlWriter); - - if (localBuildVersion == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BuildVersion cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuildVersion); - } - - xmlWriter.writeEndElement(); - } - if (localProblemDescriptionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ProblemDescription", xmlWriter); - - if (localProblemDescription == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ProblemDescription cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProblemDescription); - } - - xmlWriter.writeEndElement(); - } - if (localWhatChangedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WhatChanged", xmlWriter); - - if (localWhatChanged == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WhatChanged cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWhatChanged); - } - - xmlWriter.writeEndElement(); - } - if (localWhereSlowTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WhereSlow", xmlWriter); - - if (localWhereSlow == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WhereSlow cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWhereSlow); - } - - xmlWriter.writeEndElement(); - } - if (localZAPFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ZAPFileName", xmlWriter); - - if (localZAPFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ZAPFileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localZAPFileName); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeThorSlaveLogTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeThorSlaveLog", xmlWriter); - - if (localIncludeThorSlaveLog == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("IncludeThorSlaveLog cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localIncludeThorSlaveLog); - } - - xmlWriter.writeEndElement(); - } - if (localZAPPasswordTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ZAPPassword", xmlWriter); - - if (localZAPPassword == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ZAPPassword cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localZAPPassword); - } - - xmlWriter.writeEndElement(); - } - if (localSendEmailTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SendEmail", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SendEmail cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSendEmail)); - } - - xmlWriter.writeEndElement(); - } - if (localAttachZAPReportToEmailTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AttachZAPReportToEmail", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "AttachZAPReportToEmail cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAttachZAPReportToEmail)); - } - - xmlWriter.writeEndElement(); - } - if (localEmailFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EmailFrom", xmlWriter); - - if (localEmailFrom == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EmailFrom cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEmailFrom); - } - - xmlWriter.writeEndElement(); - } - if (localEmailSubjectTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EmailSubject", xmlWriter); - - if (localEmailSubject == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EmailSubject cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEmailSubject); - } - - xmlWriter.writeEndElement(); - } - if (localEmailBodyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EmailBody", xmlWriter); - - if (localEmailBody == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EmailBody cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEmailBody); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCreateZAPInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCreateZAPInfo object = new WUCreateZAPInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCreateZAPInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCreateZAPInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ESPApplication") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ESPApplication" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setESPApplication( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorProcesses") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorProcesses" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorProcesses( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BuildVersion") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BuildVersion" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuildVersion( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ProblemDescription") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProblemDescription" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProblemDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WhatChanged") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WhatChanged" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWhatChanged( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WhereSlow") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WhereSlow" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWhereSlow( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ZAPFileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ZAPFileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setZAPFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeThorSlaveLog") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeThorSlaveLog" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeThorSlaveLog( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ZAPPassword") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ZAPPassword" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setZAPPassword( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SendEmail") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SendEmail" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSendEmail( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AttachZAPReportToEmail") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AttachZAPReportToEmail" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAttachZAPReportToEmail( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EmailFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEmailFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailSubject") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EmailSubject" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEmailSubject( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailBody") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EmailBody" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEmailBody( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCreateZAPInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCreateZAPInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCreateZAPInfo implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateZAPInfo", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for ESPApplication */ + protected java.lang.String localESPApplication; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localESPApplicationTracker = false; + + public boolean isESPApplicationSpecified() { + return localESPApplicationTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getESPApplication() { + return localESPApplication; + } + + /** + * Auto generated setter method + * + * @param param ESPApplication + */ + public void setESPApplication(java.lang.String param) { + localESPApplicationTracker = param != null; + + this.localESPApplication = param; + } + + /** field for ThorProcesses */ + protected java.lang.String localThorProcesses; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorProcessesTracker = false; + + public boolean isThorProcessesSpecified() { + return localThorProcessesTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorProcesses() { + return localThorProcesses; + } + + /** + * Auto generated setter method + * + * @param param ThorProcesses + */ + public void setThorProcesses(java.lang.String param) { + localThorProcessesTracker = param != null; + + this.localThorProcesses = param; + } + + /** field for BuildVersion */ + protected java.lang.String localBuildVersion; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildVersionTracker = false; + + public boolean isBuildVersionSpecified() { + return localBuildVersionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuildVersion() { + return localBuildVersion; + } + + /** + * Auto generated setter method + * + * @param param BuildVersion + */ + public void setBuildVersion(java.lang.String param) { + localBuildVersionTracker = param != null; + + this.localBuildVersion = param; + } + + /** field for ProblemDescription */ + protected java.lang.String localProblemDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProblemDescriptionTracker = false; + + public boolean isProblemDescriptionSpecified() { + return localProblemDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProblemDescription() { + return localProblemDescription; + } + + /** + * Auto generated setter method + * + * @param param ProblemDescription + */ + public void setProblemDescription(java.lang.String param) { + localProblemDescriptionTracker = param != null; + + this.localProblemDescription = param; + } + + /** field for WhatChanged */ + protected java.lang.String localWhatChanged; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWhatChangedTracker = false; + + public boolean isWhatChangedSpecified() { + return localWhatChangedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWhatChanged() { + return localWhatChanged; + } + + /** + * Auto generated setter method + * + * @param param WhatChanged + */ + public void setWhatChanged(java.lang.String param) { + localWhatChangedTracker = param != null; + + this.localWhatChanged = param; + } + + /** field for WhereSlow */ + protected java.lang.String localWhereSlow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWhereSlowTracker = false; + + public boolean isWhereSlowSpecified() { + return localWhereSlowTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWhereSlow() { + return localWhereSlow; + } + + /** + * Auto generated setter method + * + * @param param WhereSlow + */ + public void setWhereSlow(java.lang.String param) { + localWhereSlowTracker = param != null; + + this.localWhereSlow = param; + } + + /** field for ZAPFileName */ + protected java.lang.String localZAPFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localZAPFileNameTracker = false; + + public boolean isZAPFileNameSpecified() { + return localZAPFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getZAPFileName() { + return localZAPFileName; + } + + /** + * Auto generated setter method + * + * @param param ZAPFileName + */ + public void setZAPFileName(java.lang.String param) { + localZAPFileNameTracker = param != null; + + this.localZAPFileName = param; + } + + /** field for IncludeThorSlaveLog */ + protected java.lang.String localIncludeThorSlaveLog = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("on"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeThorSlaveLogTracker = false; + + public boolean isIncludeThorSlaveLogSpecified() { + return localIncludeThorSlaveLogTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getIncludeThorSlaveLog() { + return localIncludeThorSlaveLog; + } + + /** + * Auto generated setter method + * + * @param param IncludeThorSlaveLog + */ + public void setIncludeThorSlaveLog(java.lang.String param) { + localIncludeThorSlaveLogTracker = param != null; + + this.localIncludeThorSlaveLog = param; + } + + /** field for ZAPPassword */ + protected java.lang.String localZAPPassword; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localZAPPasswordTracker = false; + + public boolean isZAPPasswordSpecified() { + return localZAPPasswordTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getZAPPassword() { + return localZAPPassword; + } + + /** + * Auto generated setter method + * + * @param param ZAPPassword + */ + public void setZAPPassword(java.lang.String param) { + localZAPPasswordTracker = param != null; + + this.localZAPPassword = param; + } + + /** field for SendEmail */ + protected boolean localSendEmail = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSendEmailTracker = false; + + public boolean isSendEmailSpecified() { + return localSendEmailTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSendEmail() { + return localSendEmail; + } + + /** + * Auto generated setter method + * + * @param param SendEmail + */ + public void setSendEmail(boolean param) { + + // setting primitive attribute tracker to true + localSendEmailTracker = true; + + this.localSendEmail = param; + } + + /** field for AttachZAPReportToEmail */ + protected boolean localAttachZAPReportToEmail = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAttachZAPReportToEmailTracker = false; + + public boolean isAttachZAPReportToEmailSpecified() { + return localAttachZAPReportToEmailTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAttachZAPReportToEmail() { + return localAttachZAPReportToEmail; + } + + /** + * Auto generated setter method + * + * @param param AttachZAPReportToEmail + */ + public void setAttachZAPReportToEmail(boolean param) { + + // setting primitive attribute tracker to true + localAttachZAPReportToEmailTracker = true; + + this.localAttachZAPReportToEmail = param; + } + + /** field for EmailFrom */ + protected java.lang.String localEmailFrom; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEmailFromTracker = false; + + public boolean isEmailFromSpecified() { + return localEmailFromTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEmailFrom() { + return localEmailFrom; + } + + /** + * Auto generated setter method + * + * @param param EmailFrom + */ + public void setEmailFrom(java.lang.String param) { + localEmailFromTracker = param != null; + + this.localEmailFrom = param; + } + + /** field for EmailSubject */ + protected java.lang.String localEmailSubject; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEmailSubjectTracker = false; + + public boolean isEmailSubjectSpecified() { + return localEmailSubjectTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEmailSubject() { + return localEmailSubject; + } + + /** + * Auto generated setter method + * + * @param param EmailSubject + */ + public void setEmailSubject(java.lang.String param) { + localEmailSubjectTracker = param != null; + + this.localEmailSubject = param; + } + + /** field for EmailBody */ + protected java.lang.String localEmailBody; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEmailBodyTracker = false; + + public boolean isEmailBodySpecified() { + return localEmailBodyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEmailBody() { + return localEmailBody; + } + + /** + * Auto generated setter method + * + * @param param EmailBody + */ + public void setEmailBody(java.lang.String param) { + localEmailBodyTracker = param != null; + + this.localEmailBody = param; + } + + /** field for LogFilter */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessFilter localLogFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogFilterTracker = false; + + public boolean isLogFilterSpecified() { + return localLogFilterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessFilter + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessFilter getLogFilter() { + return localLogFilter; + } + + /** + * Auto generated setter method + * + * @param param LogFilter + */ + public void setLogFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessFilter param) { + localLogFilterTracker = param != null; + + this.localLogFilter = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCreateZAPInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCreateZAPInfo", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localESPApplicationTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ESPApplication", xmlWriter); + + if (localESPApplication == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ESPApplication cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localESPApplication); + } + + xmlWriter.writeEndElement(); + } + if (localThorProcessesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorProcesses", xmlWriter); + + if (localThorProcesses == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorProcesses cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorProcesses); + } + + xmlWriter.writeEndElement(); + } + if (localBuildVersionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BuildVersion", xmlWriter); + + if (localBuildVersion == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BuildVersion cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuildVersion); + } + + xmlWriter.writeEndElement(); + } + if (localProblemDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ProblemDescription", xmlWriter); + + if (localProblemDescription == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ProblemDescription cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProblemDescription); + } + + xmlWriter.writeEndElement(); + } + if (localWhatChangedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WhatChanged", xmlWriter); + + if (localWhatChanged == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WhatChanged cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWhatChanged); + } + + xmlWriter.writeEndElement(); + } + if (localWhereSlowTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WhereSlow", xmlWriter); + + if (localWhereSlow == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WhereSlow cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWhereSlow); + } + + xmlWriter.writeEndElement(); + } + if (localZAPFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ZAPFileName", xmlWriter); + + if (localZAPFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ZAPFileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localZAPFileName); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeThorSlaveLogTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeThorSlaveLog", xmlWriter); + + if (localIncludeThorSlaveLog == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("IncludeThorSlaveLog cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localIncludeThorSlaveLog); + } + + xmlWriter.writeEndElement(); + } + if (localZAPPasswordTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ZAPPassword", xmlWriter); + + if (localZAPPassword == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ZAPPassword cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localZAPPassword); + } + + xmlWriter.writeEndElement(); + } + if (localSendEmailTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SendEmail", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SendEmail cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSendEmail)); + } + + xmlWriter.writeEndElement(); + } + if (localAttachZAPReportToEmailTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AttachZAPReportToEmail", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "AttachZAPReportToEmail cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAttachZAPReportToEmail)); + } + + xmlWriter.writeEndElement(); + } + if (localEmailFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EmailFrom", xmlWriter); + + if (localEmailFrom == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EmailFrom cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEmailFrom); + } + + xmlWriter.writeEndElement(); + } + if (localEmailSubjectTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EmailSubject", xmlWriter); + + if (localEmailSubject == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EmailSubject cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEmailSubject); + } + + xmlWriter.writeEndElement(); + } + if (localEmailBodyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EmailBody", xmlWriter); + + if (localEmailBody == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EmailBody cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEmailBody); + } + + xmlWriter.writeEndElement(); + } + if (localLogFilterTracker) { + if (localLogFilter == null) { + throw new org.apache.axis2.databinding.ADBException("LogFilter cannot be null!!"); + } + localLogFilter.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogFilter"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCreateZAPInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCreateZAPInfo object = new WUCreateZAPInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCreateZAPInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCreateZAPInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ESPApplication") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ESPApplication" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setESPApplication( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorProcesses") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorProcesses" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorProcesses( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BuildVersion") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BuildVersion" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuildVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ProblemDescription") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProblemDescription" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProblemDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WhatChanged") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WhatChanged" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWhatChanged( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WhereSlow") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WhereSlow" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWhereSlow( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ZAPFileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ZAPFileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setZAPFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeThorSlaveLog") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeThorSlaveLog" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeThorSlaveLog( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ZAPPassword") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ZAPPassword" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setZAPPassword( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SendEmail") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SendEmail" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSendEmail( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AttachZAPReportToEmail") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AttachZAPReportToEmail" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAttachZAPReportToEmail( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EmailFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEmailFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailSubject") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EmailSubject" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEmailSubject( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailBody") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EmailBody" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEmailBody( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogFilter") + .equals(reader.getName())) { + + object.setLogFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessFilter.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateZAPInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateZAPInfoResponse.java index 5ed804076..4a275c71e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateZAPInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUCreateZAPInfoResponse.java @@ -1,514 +1,514 @@ -/** - * WUCreateZAPInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUCreateZAPInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUCreateZAPInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUCreateZAPInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Thefile */ - protected javax.activation.DataHandler localThefile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThefileTracker = false; - - public boolean isThefileSpecified() { - return localThefileTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getThefile() { - return localThefile; - } - - /** - * Auto generated setter method - * - * @param param Thefile - */ - public void setThefile(javax.activation.DataHandler param) { - localThefileTracker = param != null; - - this.localThefile = param; - } - - /** field for ZAPFileName */ - protected java.lang.String localZAPFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localZAPFileNameTracker = false; - - public boolean isZAPFileNameSpecified() { - return localZAPFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getZAPFileName() { - return localZAPFileName; - } - - /** - * Auto generated setter method - * - * @param param ZAPFileName - */ - public void setZAPFileName(java.lang.String param) { - localZAPFileNameTracker = param != null; - - this.localZAPFileName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUCreateZAPInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUCreateZAPInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localThefileTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "thefile", xmlWriter); - - if (localThefile != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localThefile, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for thefile", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - if (localZAPFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ZAPFileName", xmlWriter); - - if (localZAPFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ZAPFileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localZAPFileName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUCreateZAPInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUCreateZAPInfoResponse object = new WUCreateZAPInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUCreateZAPInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUCreateZAPInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "thefile") - .equals(reader.getName())) { - - object.setThefile( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ZAPFileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ZAPFileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setZAPFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUCreateZAPInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUCreateZAPInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUCreateZAPInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUCreateZAPInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Thefile */ + protected javax.activation.DataHandler localThefile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThefileTracker = false; + + public boolean isThefileSpecified() { + return localThefileTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getThefile() { + return localThefile; + } + + /** + * Auto generated setter method + * + * @param param Thefile + */ + public void setThefile(javax.activation.DataHandler param) { + localThefileTracker = param != null; + + this.localThefile = param; + } + + /** field for ZAPFileName */ + protected java.lang.String localZAPFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localZAPFileNameTracker = false; + + public boolean isZAPFileNameSpecified() { + return localZAPFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getZAPFileName() { + return localZAPFileName; + } + + /** + * Auto generated setter method + * + * @param param ZAPFileName + */ + public void setZAPFileName(java.lang.String param) { + localZAPFileNameTracker = param != null; + + this.localZAPFileName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUCreateZAPInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUCreateZAPInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localThefileTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "thefile", xmlWriter); + + if (localThefile != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localThefile, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for thefile", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + if (localZAPFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ZAPFileName", xmlWriter); + + if (localZAPFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ZAPFileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localZAPFileName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUCreateZAPInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUCreateZAPInfoResponse object = new WUCreateZAPInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUCreateZAPInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUCreateZAPInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "thefile") + .equals(reader.getName())) { + + object.setThefile( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ZAPFileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ZAPFileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setZAPFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDebugResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDebugResponse.java index c48f97cce..9397fb463 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDebugResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDebugResponse.java @@ -1,451 +1,451 @@ -/** - * WUDebugResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDebugResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDebugResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDebugResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDebugResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDebugResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDebugResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDebugResponse object = new WUDebugResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDebugResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDebugResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDebugResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDebugResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDebugResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDebugResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDebugResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDebugResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDebugResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDebugResponse object = new WUDebugResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDebugResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDebugResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDelete.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDelete.java index 06e47ba66..e6196b566 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDelete.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDelete.java @@ -1,449 +1,450 @@ -/** - * WUDelete.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDelete bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDelete implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDelete", "ns1"); - - /** field for Wuids */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidsTracker = false; - - public boolean isWuidsSpecified() { - return localWuidsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { - return localWuids; - } - - /** - * Auto generated setter method - * - * @param param Wuids - */ - public void setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localWuidsTracker = param != null; - - this.localWuids = param; - } - - /** field for BlockTillFinishTimer */ - protected int localBlockTillFinishTimer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBlockTillFinishTimerTracker = false; - - public boolean isBlockTillFinishTimerSpecified() { - return localBlockTillFinishTimerTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBlockTillFinishTimer() { - return localBlockTillFinishTimer; - } - - /** - * Auto generated setter method - * - * @param param BlockTillFinishTimer - */ - public void setBlockTillFinishTimer(int param) { - - // setting primitive attribute tracker to true - localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBlockTillFinishTimer = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDelete", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUDelete", xmlWriter); - } - } - if (localWuidsTracker) { - if (localWuids == null) { - throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); - } - localWuids.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); - } - if (localBlockTillFinishTimerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); - - if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "BlockTillFinishTimer cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBlockTillFinishTimer)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDelete parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDelete object = new WUDelete(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDelete".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDelete) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") - .equals(reader.getName())) { - - object.setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BlockTillFinishTimer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBlockTillFinishTimer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDelete.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDelete bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDelete implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDelete", "ns1"); + + /** field for Wuids */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidsTracker = false; + + public boolean isWuidsSpecified() { + return localWuidsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { + return localWuids; + } + + /** + * Auto generated setter method + * + * @param param Wuids + */ + public void setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localWuidsTracker = param != null; + + this.localWuids = param; + } + + /** field for BlockTillFinishTimer */ + protected int localBlockTillFinishTimer = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBlockTillFinishTimerTracker = false; + + public boolean isBlockTillFinishTimerSpecified() { + return localBlockTillFinishTimerTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBlockTillFinishTimer() { + return localBlockTillFinishTimer; + } + + /** + * Auto generated setter method + * + * @param param BlockTillFinishTimer + */ + public void setBlockTillFinishTimer(int param) { + + // setting primitive attribute tracker to true + localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBlockTillFinishTimer = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDelete", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUDelete", xmlWriter); + } + } + if (localWuidsTracker) { + if (localWuids == null) { + throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); + } + localWuids.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); + } + if (localBlockTillFinishTimerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); + + if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "BlockTillFinishTimer cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBlockTillFinishTimer)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDelete parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDelete object = new WUDelete(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDelete".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDelete) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") + .equals(reader.getName())) { + + object.setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BlockTillFinishTimer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBlockTillFinishTimer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeleteResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeleteResponse.java index 98674bc62..73e21651b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeleteResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeleteResponse.java @@ -1,438 +1,438 @@ -/** - * WUDeleteResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDeleteResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDeleteResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDeleteResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ActionResults */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - localActionResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionResultsTracker = false; - - public boolean isActionResultsSpecified() { - return localActionResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - getActionResults() { - return localActionResults; - } - - /** - * Auto generated setter method - * - * @param param ActionResults - */ - public void setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult param) { - localActionResultsTracker = param != null; - - this.localActionResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDeleteResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDeleteResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localActionResultsTracker) { - if (localActionResults == null) { - throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); - } - localActionResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDeleteResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDeleteResponse object = new WUDeleteResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDeleteResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDeleteResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") - .equals(reader.getName())) { - - object.setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDeleteResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDeleteResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDeleteResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDeleteResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ActionResults */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + localActionResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionResultsTracker = false; + + public boolean isActionResultsSpecified() { + return localActionResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + getActionResults() { + return localActionResults; + } + + /** + * Auto generated setter method + * + * @param param ActionResults + */ + public void setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult param) { + localActionResultsTracker = param != null; + + this.localActionResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDeleteResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDeleteResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localActionResultsTracker) { + if (localActionResults == null) { + throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); + } + localActionResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDeleteResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDeleteResponse object = new WUDeleteResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDeleteResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDeleteResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") + .equals(reader.getName())) { + + object.setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeployWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeployWorkunit.java index b2fff9afc..82b75afe4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeployWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeployWorkunit.java @@ -1,1062 +1,1062 @@ -/** - * WUDeployWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDeployWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDeployWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDeployWorkunit", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Wait */ - protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** field for ObjType */ - protected java.lang.String localObjType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localObjTypeTracker = false; - - public boolean isObjTypeSpecified() { - return localObjTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getObjType() { - return localObjType; - } - - /** - * Auto generated setter method - * - * @param param ObjType - */ - public void setObjType(java.lang.String param) { - localObjTypeTracker = param != null; - - this.localObjType = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for Object */ - protected javax.activation.DataHandler localObject; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localObjectTracker = false; - - public boolean isObjectSpecified() { - return localObjectTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getObject() { - return localObject; - } - - /** - * Auto generated setter method - * - * @param param Object - */ - public void setObject(javax.activation.DataHandler param) { - localObjectTracker = param != null; - - this.localObject = param; - } - - /** field for ResultLimit */ - protected int localResultLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultLimitTracker = false; - - public boolean isResultLimitSpecified() { - return localResultLimitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getResultLimit() { - return localResultLimit; - } - - /** - * Auto generated setter method - * - * @param param ResultLimit - */ - public void setResultLimit(int param) { - - // setting primitive attribute tracker to true - localResultLimitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localResultLimit = param; - } - - /** field for QueryMainDefinition */ - protected java.lang.String localQueryMainDefinition; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryMainDefinitionTracker = false; - - public boolean isQueryMainDefinitionSpecified() { - return localQueryMainDefinitionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryMainDefinition() { - return localQueryMainDefinition; - } - - /** - * Auto generated setter method - * - * @param param QueryMainDefinition - */ - public void setQueryMainDefinition(java.lang.String param) { - localQueryMainDefinitionTracker = param != null; - - this.localQueryMainDefinition = param; - } - - /** field for Snapshot */ - protected java.lang.String localSnapshot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSnapshotTracker = false; - - public boolean isSnapshotSpecified() { - return localSnapshotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSnapshot() { - return localSnapshot; - } - - /** - * Auto generated setter method - * - * @param param Snapshot - */ - public void setSnapshot(java.lang.String param) { - localSnapshotTracker = param != null; - - this.localSnapshot = param; - } - - /** field for DebugValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - localDebugValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValuesTracker = false; - - public boolean isDebugValuesSpecified() { - return localDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getDebugValues() { - return localDebugValues; - } - - /** - * Auto generated setter method - * - * @param param DebugValues - */ - public void setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { - localDebugValuesTracker = param != null; - - this.localDebugValues = param; - } - - /** field for Protect */ - protected boolean localProtect = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectTracker = false; - - public boolean isProtectSpecified() { - return localProtectTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getProtect() { - return localProtect; - } - - /** - * Auto generated setter method - * - * @param param Protect - */ - public void setProtect(boolean param) { - - // setting primitive attribute tracker to true - localProtectTracker = true; - - this.localProtect = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDeployWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDeployWorkunit", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - if (localObjTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ObjType", xmlWriter); - - if (localObjType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ObjType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localObjType); - } - - xmlWriter.writeEndElement(); - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localObjectTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Object", xmlWriter); - - if (localObject != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localObject, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for Object", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - if (localResultLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultLimit", xmlWriter); - - if (localResultLimit == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ResultLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localQueryMainDefinitionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryMainDefinition", xmlWriter); - - if (localQueryMainDefinition == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryMainDefinition cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryMainDefinition); - } - - xmlWriter.writeEndElement(); - } - if (localSnapshotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Snapshot", xmlWriter); - - if (localSnapshot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSnapshot); - } - - xmlWriter.writeEndElement(); - } - if (localDebugValuesTracker) { - if (localDebugValues == null) { - throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); - } - localDebugValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), - xmlWriter); - } - if (localProtectTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Protect", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Protect cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtect)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDeployWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDeployWorkunit object = new WUDeployWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDeployWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDeployWorkunit) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ObjType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ObjType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setObjType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Object") - .equals(reader.getName())) { - - object.setObject( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QueryMainDefinition") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryMainDefinition" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryMainDefinition( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Snapshot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSnapshot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") - .equals(reader.getName())) { - - object.setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protect") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Protect" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtect( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDeployWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDeployWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDeployWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDeployWorkunit", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Wait */ + protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** field for ObjType */ + protected java.lang.String localObjType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localObjTypeTracker = false; + + public boolean isObjTypeSpecified() { + return localObjTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getObjType() { + return localObjType; + } + + /** + * Auto generated setter method + * + * @param param ObjType + */ + public void setObjType(java.lang.String param) { + localObjTypeTracker = param != null; + + this.localObjType = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for Object */ + protected javax.activation.DataHandler localObject; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localObjectTracker = false; + + public boolean isObjectSpecified() { + return localObjectTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getObject() { + return localObject; + } + + /** + * Auto generated setter method + * + * @param param Object + */ + public void setObject(javax.activation.DataHandler param) { + localObjectTracker = param != null; + + this.localObject = param; + } + + /** field for ResultLimit */ + protected int localResultLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultLimitTracker = false; + + public boolean isResultLimitSpecified() { + return localResultLimitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getResultLimit() { + return localResultLimit; + } + + /** + * Auto generated setter method + * + * @param param ResultLimit + */ + public void setResultLimit(int param) { + + // setting primitive attribute tracker to true + localResultLimitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localResultLimit = param; + } + + /** field for QueryMainDefinition */ + protected java.lang.String localQueryMainDefinition; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryMainDefinitionTracker = false; + + public boolean isQueryMainDefinitionSpecified() { + return localQueryMainDefinitionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryMainDefinition() { + return localQueryMainDefinition; + } + + /** + * Auto generated setter method + * + * @param param QueryMainDefinition + */ + public void setQueryMainDefinition(java.lang.String param) { + localQueryMainDefinitionTracker = param != null; + + this.localQueryMainDefinition = param; + } + + /** field for Snapshot */ + protected java.lang.String localSnapshot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSnapshotTracker = false; + + public boolean isSnapshotSpecified() { + return localSnapshotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSnapshot() { + return localSnapshot; + } + + /** + * Auto generated setter method + * + * @param param Snapshot + */ + public void setSnapshot(java.lang.String param) { + localSnapshotTracker = param != null; + + this.localSnapshot = param; + } + + /** field for DebugValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + localDebugValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValuesTracker = false; + + public boolean isDebugValuesSpecified() { + return localDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getDebugValues() { + return localDebugValues; + } + + /** + * Auto generated setter method + * + * @param param DebugValues + */ + public void setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { + localDebugValuesTracker = param != null; + + this.localDebugValues = param; + } + + /** field for Protect */ + protected boolean localProtect = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectTracker = false; + + public boolean isProtectSpecified() { + return localProtectTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getProtect() { + return localProtect; + } + + /** + * Auto generated setter method + * + * @param param Protect + */ + public void setProtect(boolean param) { + + // setting primitive attribute tracker to true + localProtectTracker = true; + + this.localProtect = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDeployWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDeployWorkunit", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + if (localObjTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ObjType", xmlWriter); + + if (localObjType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ObjType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localObjType); + } + + xmlWriter.writeEndElement(); + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localObjectTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Object", xmlWriter); + + if (localObject != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localObject, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for Object", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + if (localResultLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultLimit", xmlWriter); + + if (localResultLimit == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ResultLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localQueryMainDefinitionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryMainDefinition", xmlWriter); + + if (localQueryMainDefinition == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryMainDefinition cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryMainDefinition); + } + + xmlWriter.writeEndElement(); + } + if (localSnapshotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Snapshot", xmlWriter); + + if (localSnapshot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSnapshot); + } + + xmlWriter.writeEndElement(); + } + if (localDebugValuesTracker) { + if (localDebugValues == null) { + throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); + } + localDebugValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), + xmlWriter); + } + if (localProtectTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Protect", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Protect cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtect)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDeployWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDeployWorkunit object = new WUDeployWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDeployWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDeployWorkunit) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ObjType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ObjType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setObjType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Object") + .equals(reader.getName())) { + + object.setObject( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QueryMainDefinition") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryMainDefinition" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryMainDefinition( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Snapshot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSnapshot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") + .equals(reader.getName())) { + + object.setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protect") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Protect" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtect( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeployWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeployWorkunitResponse.java index 08357e5fe..97a738f1b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeployWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDeployWorkunitResponse.java @@ -1,436 +1,436 @@ -/** - * WUDeployWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDeployWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDeployWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUDeployWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Workunit */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitTracker = false; - - public boolean isWorkunitSpecified() { - return localWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { - return localWorkunit; - } - - /** - * Auto generated setter method - * - * @param param Workunit - */ - public void setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { - localWorkunitTracker = param != null; - - this.localWorkunit = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDeployWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDeployWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWorkunitTracker) { - if (localWorkunit == null) { - throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); - } - localWorkunit.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDeployWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDeployWorkunitResponse object = new WUDeployWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDeployWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDeployWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") - .equals(reader.getName())) { - - object.setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDeployWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDeployWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDeployWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUDeployWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Workunit */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitTracker = false; + + public boolean isWorkunitSpecified() { + return localWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { + return localWorkunit; + } + + /** + * Auto generated setter method + * + * @param param Workunit + */ + public void setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { + localWorkunitTracker = param != null; + + this.localWorkunit = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDeployWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDeployWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWorkunitTracker) { + if (localWorkunit == null) { + throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); + } + localWorkunit.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDeployWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDeployWorkunitResponse object = new WUDeployWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDeployWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDeployWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") + .equals(reader.getName())) { + + object.setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetails.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetails.java index a02ed863e..c39a4e989 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetails.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetails.java @@ -1,732 +1,732 @@ -/** - * WUDetails.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDetails bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDetails implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetails", "ns1"); - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for ScopeFilter */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter localScopeFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeFilterTracker = false; - - public boolean isScopeFilterSpecified() { - return localScopeFilterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter getScopeFilter() { - return localScopeFilter; - } - - /** - * Auto generated setter method - * - * @param param ScopeFilter - */ - public void setScopeFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter param) { - localScopeFilterTracker = param != null; - - this.localScopeFilter = param; - } - - /** field for NestedFilter */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter localNestedFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNestedFilterTracker = false; - - public boolean isNestedFilterSpecified() { - return localNestedFilterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter getNestedFilter() { - return localNestedFilter; - } - - /** - * Auto generated setter method - * - * @param param NestedFilter - */ - public void setNestedFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter param) { - localNestedFilterTracker = param != null; - - this.localNestedFilter = param; - } - - /** field for PropertiesToReturn */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn - localPropertiesToReturn; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertiesToReturnTracker = false; - - public boolean isPropertiesToReturnSpecified() { - return localPropertiesToReturnTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn - getPropertiesToReturn() { - return localPropertiesToReturn; - } - - /** - * Auto generated setter method - * - * @param param PropertiesToReturn - */ - public void setPropertiesToReturn( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn param) { - localPropertiesToReturnTracker = param != null; - - this.localPropertiesToReturn = param; - } - - /** field for Filter */ - protected java.lang.String localFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTracker = false; - - public boolean isFilterSpecified() { - return localFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFilter() { - return localFilter; - } - - /** - * Auto generated setter method - * - * @param param Filter - */ - public void setFilter(java.lang.String param) { - localFilterTracker = param != null; - - this.localFilter = param; - } - - /** field for ScopeOptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions localScopeOptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeOptionsTracker = false; - - public boolean isScopeOptionsSpecified() { - return localScopeOptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions getScopeOptions() { - return localScopeOptions; - } - - /** - * Auto generated setter method - * - * @param param ScopeOptions - */ - public void setScopeOptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions param) { - localScopeOptionsTracker = param != null; - - this.localScopeOptions = param; - } - - /** field for PropertyOptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions - localPropertyOptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertyOptionsTracker = false; - - public boolean isPropertyOptionsSpecified() { - return localPropertyOptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions - getPropertyOptions() { - return localPropertyOptions; - } - - /** - * Auto generated setter method - * - * @param param PropertyOptions - */ - public void setPropertyOptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions param) { - localPropertyOptionsTracker = param != null; - - this.localPropertyOptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDetails", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUDetails", xmlWriter); - } - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localScopeFilterTracker) { - if (localScopeFilter == null) { - throw new org.apache.axis2.databinding.ADBException("ScopeFilter cannot be null!!"); - } - localScopeFilter.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeFilter"), - xmlWriter); - } - if (localNestedFilterTracker) { - if (localNestedFilter == null) { - throw new org.apache.axis2.databinding.ADBException("NestedFilter cannot be null!!"); - } - localNestedFilter.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NestedFilter"), - xmlWriter); - } - if (localPropertiesToReturnTracker) { - if (localPropertiesToReturn == null) { - throw new org.apache.axis2.databinding.ADBException("PropertiesToReturn cannot be null!!"); - } - localPropertiesToReturn.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertiesToReturn"), - xmlWriter); - } - if (localFilterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Filter", xmlWriter); - - if (localFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFilter); - } - - xmlWriter.writeEndElement(); - } - if (localScopeOptionsTracker) { - if (localScopeOptions == null) { - throw new org.apache.axis2.databinding.ADBException("ScopeOptions cannot be null!!"); - } - localScopeOptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeOptions"), - xmlWriter); - } - if (localPropertyOptionsTracker) { - if (localPropertyOptions == null) { - throw new org.apache.axis2.databinding.ADBException("PropertyOptions cannot be null!!"); - } - localPropertyOptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyOptions"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDetails parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDetails object = new WUDetails(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDetails".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDetails) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeFilter") - .equals(reader.getName())) { - - object.setScopeFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NestedFilter") - .equals(reader.getName())) { - - object.setNestedFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "PropertiesToReturn") - .equals(reader.getName())) { - - object.setPropertiesToReturn( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Filter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeOptions") - .equals(reader.getName())) { - - object.setScopeOptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "PropertyOptions") - .equals(reader.getName())) { - - object.setPropertyOptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDetails.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDetails bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDetails implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetails", "ns1"); + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for ScopeFilter */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter localScopeFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeFilterTracker = false; + + public boolean isScopeFilterSpecified() { + return localScopeFilterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter getScopeFilter() { + return localScopeFilter; + } + + /** + * Auto generated setter method + * + * @param param ScopeFilter + */ + public void setScopeFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter param) { + localScopeFilterTracker = param != null; + + this.localScopeFilter = param; + } + + /** field for NestedFilter */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter localNestedFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNestedFilterTracker = false; + + public boolean isNestedFilterSpecified() { + return localNestedFilterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter getNestedFilter() { + return localNestedFilter; + } + + /** + * Auto generated setter method + * + * @param param NestedFilter + */ + public void setNestedFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter param) { + localNestedFilterTracker = param != null; + + this.localNestedFilter = param; + } + + /** field for PropertiesToReturn */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn + localPropertiesToReturn; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertiesToReturnTracker = false; + + public boolean isPropertiesToReturnSpecified() { + return localPropertiesToReturnTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn + getPropertiesToReturn() { + return localPropertiesToReturn; + } + + /** + * Auto generated setter method + * + * @param param PropertiesToReturn + */ + public void setPropertiesToReturn( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn param) { + localPropertiesToReturnTracker = param != null; + + this.localPropertiesToReturn = param; + } + + /** field for Filter */ + protected java.lang.String localFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTracker = false; + + public boolean isFilterSpecified() { + return localFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFilter() { + return localFilter; + } + + /** + * Auto generated setter method + * + * @param param Filter + */ + public void setFilter(java.lang.String param) { + localFilterTracker = param != null; + + this.localFilter = param; + } + + /** field for ScopeOptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions localScopeOptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeOptionsTracker = false; + + public boolean isScopeOptionsSpecified() { + return localScopeOptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions getScopeOptions() { + return localScopeOptions; + } + + /** + * Auto generated setter method + * + * @param param ScopeOptions + */ + public void setScopeOptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions param) { + localScopeOptionsTracker = param != null; + + this.localScopeOptions = param; + } + + /** field for PropertyOptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions + localPropertyOptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertyOptionsTracker = false; + + public boolean isPropertyOptionsSpecified() { + return localPropertyOptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions + getPropertyOptions() { + return localPropertyOptions; + } + + /** + * Auto generated setter method + * + * @param param PropertyOptions + */ + public void setPropertyOptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions param) { + localPropertyOptionsTracker = param != null; + + this.localPropertyOptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDetails", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUDetails", xmlWriter); + } + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localScopeFilterTracker) { + if (localScopeFilter == null) { + throw new org.apache.axis2.databinding.ADBException("ScopeFilter cannot be null!!"); + } + localScopeFilter.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeFilter"), + xmlWriter); + } + if (localNestedFilterTracker) { + if (localNestedFilter == null) { + throw new org.apache.axis2.databinding.ADBException("NestedFilter cannot be null!!"); + } + localNestedFilter.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NestedFilter"), + xmlWriter); + } + if (localPropertiesToReturnTracker) { + if (localPropertiesToReturn == null) { + throw new org.apache.axis2.databinding.ADBException("PropertiesToReturn cannot be null!!"); + } + localPropertiesToReturn.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertiesToReturn"), + xmlWriter); + } + if (localFilterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Filter", xmlWriter); + + if (localFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFilter); + } + + xmlWriter.writeEndElement(); + } + if (localScopeOptionsTracker) { + if (localScopeOptions == null) { + throw new org.apache.axis2.databinding.ADBException("ScopeOptions cannot be null!!"); + } + localScopeOptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeOptions"), + xmlWriter); + } + if (localPropertyOptionsTracker) { + if (localPropertyOptions == null) { + throw new org.apache.axis2.databinding.ADBException("PropertyOptions cannot be null!!"); + } + localPropertyOptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyOptions"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDetails parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDetails object = new WUDetails(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDetails".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDetails) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeFilter") + .equals(reader.getName())) { + + object.setScopeFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeFilter.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NestedFilter") + .equals(reader.getName())) { + + object.setNestedFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUNestedFilter.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "PropertiesToReturn") + .equals(reader.getName())) { + + object.setPropertiesToReturn( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Filter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeOptions") + .equals(reader.getName())) { + + object.setScopeOptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScopeOptions.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "PropertyOptions") + .equals(reader.getName())) { + + object.setPropertyOptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertyOptions.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsActivityInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsActivityInfo.java index 7c6d18c9d..0b35de907 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsActivityInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsActivityInfo.java @@ -1,607 +1,607 @@ -/** - * WUDetailsActivityInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDetailsActivityInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDetailsActivityInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUDetailsActivityInfo - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Kind */ - protected org.apache.axis2.databinding.types.UnsignedInt localKind; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKindTracker = false; - - public boolean isKindSpecified() { - return localKindTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getKind() { - return localKind; - } - - /** - * Auto generated setter method - * - * @param param Kind - */ - public void setKind(org.apache.axis2.databinding.types.UnsignedInt param) { - localKindTracker = param != null; - - this.localKind = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for IsSink */ - protected boolean localIsSink; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsSinkTracker = false; - - public boolean isIsSinkSpecified() { - return localIsSinkTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsSink() { - return localIsSink; - } - - /** - * Auto generated setter method - * - * @param param IsSink - */ - public void setIsSink(boolean param) { - - // setting primitive attribute tracker to true - localIsSinkTracker = true; - - this.localIsSink = param; - } - - /** field for IsSource */ - protected boolean localIsSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsSourceTracker = false; - - public boolean isIsSourceSpecified() { - return localIsSourceTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsSource() { - return localIsSource; - } - - /** - * Auto generated setter method - * - * @param param IsSource - */ - public void setIsSource(boolean param) { - - // setting primitive attribute tracker to true - localIsSourceTracker = true; - - this.localIsSource = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDetailsActivityInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDetailsActivityInfo", - xmlWriter); - } - } - if (localKindTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Kind", xmlWriter); - - if (localKind == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKind)); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localIsSinkTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsSink", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsSink cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSink)); - } - - xmlWriter.writeEndElement(); - } - if (localIsSourceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsSource", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsSource cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSource)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDetailsActivityInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDetailsActivityInfo object = new WUDetailsActivityInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDetailsActivityInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDetailsActivityInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Kind") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Kind" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKind( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSink") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsSink" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsSink( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSource") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsSource" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDetailsActivityInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDetailsActivityInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDetailsActivityInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUDetailsActivityInfo + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Kind */ + protected org.apache.axis2.databinding.types.UnsignedInt localKind; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKindTracker = false; + + public boolean isKindSpecified() { + return localKindTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getKind() { + return localKind; + } + + /** + * Auto generated setter method + * + * @param param Kind + */ + public void setKind(org.apache.axis2.databinding.types.UnsignedInt param) { + localKindTracker = param != null; + + this.localKind = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for IsSink */ + protected boolean localIsSink; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsSinkTracker = false; + + public boolean isIsSinkSpecified() { + return localIsSinkTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsSink() { + return localIsSink; + } + + /** + * Auto generated setter method + * + * @param param IsSink + */ + public void setIsSink(boolean param) { + + // setting primitive attribute tracker to true + localIsSinkTracker = true; + + this.localIsSink = param; + } + + /** field for IsSource */ + protected boolean localIsSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsSourceTracker = false; + + public boolean isIsSourceSpecified() { + return localIsSourceTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsSource() { + return localIsSource; + } + + /** + * Auto generated setter method + * + * @param param IsSource + */ + public void setIsSource(boolean param) { + + // setting primitive attribute tracker to true + localIsSourceTracker = true; + + this.localIsSource = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDetailsActivityInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDetailsActivityInfo", + xmlWriter); + } + } + if (localKindTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Kind", xmlWriter); + + if (localKind == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localKind)); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localIsSinkTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsSink", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsSink cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSink)); + } + + xmlWriter.writeEndElement(); + } + if (localIsSourceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsSource", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsSource cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSource)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDetailsActivityInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDetailsActivityInfo object = new WUDetailsActivityInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDetailsActivityInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDetailsActivityInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Kind") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Kind" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKind( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSink") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsSink" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsSink( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSource") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsSource" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsAttrValueType.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsAttrValueType.java index eeb10a9cf..a6f2f7110 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsAttrValueType.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsAttrValueType.java @@ -1,417 +1,417 @@ -/** - * WUDetailsAttrValueType.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDetailsAttrValueType bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDetailsAttrValueType implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUDetailsAttrValueType", "ns1"); - - /** field for WUDetailsAttrValueType */ - protected java.lang.String localWUDetailsAttrValueType; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected WUDetailsAttrValueType(java.lang.String value, boolean isRegisterValue) { - localWUDetailsAttrValueType = value; - if (isRegisterValue) { - - _table_.put(localWUDetailsAttrValueType, this); - } - } - - public static final java.lang.String _Single = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Single"); - - public static final java.lang.String _List = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("List"); - - public static final java.lang.String _Multi = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Multi"); - - public static final WUDetailsAttrValueType Single = new WUDetailsAttrValueType(_Single, true); - - public static final WUDetailsAttrValueType List = new WUDetailsAttrValueType(_List, true); - - public static final WUDetailsAttrValueType Multi = new WUDetailsAttrValueType(_Multi, true); - - public java.lang.String getValue() { - return localWUDetailsAttrValueType; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localWUDetailsAttrValueType.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDetailsAttrValueType", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDetailsAttrValueType", - xmlWriter); - } - } - - if (localWUDetailsAttrValueType == null) { - - throw new org.apache.axis2.databinding.ADBException( - "WUDetailsAttrValueType cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localWUDetailsAttrValueType); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static WUDetailsAttrValueType fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - WUDetailsAttrValueType enumeration = (WUDetailsAttrValueType) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static WUDetailsAttrValueType fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static WUDetailsAttrValueType fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return WUDetailsAttrValueType.Factory.fromString(content, namespaceUri); - } else { - return WUDetailsAttrValueType.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDetailsAttrValueType parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDetailsAttrValueType object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUDetailsAttrValueType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = WUDetailsAttrValueType.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = WUDetailsAttrValueType.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDetailsAttrValueType.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDetailsAttrValueType bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDetailsAttrValueType implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUDetailsAttrValueType", "ns1"); + + /** field for WUDetailsAttrValueType */ + protected java.lang.String localWUDetailsAttrValueType; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected WUDetailsAttrValueType(java.lang.String value, boolean isRegisterValue) { + localWUDetailsAttrValueType = value; + if (isRegisterValue) { + + _table_.put(localWUDetailsAttrValueType, this); + } + } + + public static final java.lang.String _Single = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Single"); + + public static final java.lang.String _List = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("List"); + + public static final java.lang.String _Multi = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Multi"); + + public static final WUDetailsAttrValueType Single = new WUDetailsAttrValueType(_Single, true); + + public static final WUDetailsAttrValueType List = new WUDetailsAttrValueType(_List, true); + + public static final WUDetailsAttrValueType Multi = new WUDetailsAttrValueType(_Multi, true); + + public java.lang.String getValue() { + return localWUDetailsAttrValueType; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localWUDetailsAttrValueType.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDetailsAttrValueType", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDetailsAttrValueType", + xmlWriter); + } + } + + if (localWUDetailsAttrValueType == null) { + + throw new org.apache.axis2.databinding.ADBException( + "WUDetailsAttrValueType cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localWUDetailsAttrValueType); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static WUDetailsAttrValueType fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + WUDetailsAttrValueType enumeration = (WUDetailsAttrValueType) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static WUDetailsAttrValueType fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static WUDetailsAttrValueType fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return WUDetailsAttrValueType.Factory.fromString(content, namespaceUri); + } else { + return WUDetailsAttrValueType.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDetailsAttrValueType parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDetailsAttrValueType object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUDetailsAttrValueType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = WUDetailsAttrValueType.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = WUDetailsAttrValueType.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMeta.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMeta.java index ea8c6c9ae..e78150b70 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMeta.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMeta.java @@ -1,311 +1,311 @@ -/** - * WUDetailsMeta.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDetailsMeta bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDetailsMeta implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetailsMeta", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDetailsMeta", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUDetailsMeta", xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDetailsMeta parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDetailsMeta object = new WUDetailsMeta(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDetailsMeta".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDetailsMeta) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDetailsMeta.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDetailsMeta bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDetailsMeta implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetailsMeta", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDetailsMeta", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUDetailsMeta", xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDetailsMeta parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDetailsMeta object = new WUDetailsMeta(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDetailsMeta".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDetailsMeta) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMetaProperty.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMetaProperty.java index ae0d62747..2c4ad0546 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMetaProperty.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMetaProperty.java @@ -1,454 +1,522 @@ -/** - * WUDetailsMetaProperty.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDetailsMetaProperty bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDetailsMetaProperty implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUDetailsMetaProperty - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for ValueType */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType - localValueType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValueTypeTracker = false; - - public boolean isValueTypeSpecified() { - return localValueTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType - getValueType() { - return localValueType; - } - - /** - * Auto generated setter method - * - * @param param ValueType - */ - public void setValueType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType param) { - localValueTypeTracker = param != null; - - this.localValueType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDetailsMetaProperty", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDetailsMetaProperty", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localValueTypeTracker) { - if (localValueType == null) { - throw new org.apache.axis2.databinding.ADBException("ValueType cannot be null!!"); - } - localValueType.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ValueType"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDetailsMetaProperty parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDetailsMetaProperty object = new WUDetailsMetaProperty(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDetailsMetaProperty".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDetailsMetaProperty) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ValueType") - .equals(reader.getName())) { - - object.setValueType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDetailsMetaProperty.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDetailsMetaProperty bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDetailsMetaProperty implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUDetailsMetaProperty + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for ValueType */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType + localValueType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValueTypeTracker = false; + + public boolean isValueTypeSpecified() { + return localValueTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType + getValueType() { + return localValueType; + } + + /** + * Auto generated setter method + * + * @param param ValueType + */ + public void setValueType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType param) { + localValueTypeTracker = param != null; + + this.localValueType = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDetailsMetaProperty", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDetailsMetaProperty", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localValueTypeTracker) { + if (localValueType == null) { + throw new org.apache.axis2.databinding.ADBException("ValueType cannot be null!!"); + } + localValueType.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ValueType"), xmlWriter); + } + if (localDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDetailsMetaProperty parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDetailsMetaProperty object = new WUDetailsMetaProperty(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDetailsMetaProperty".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDetailsMetaProperty) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ValueType") + .equals(reader.getName())) { + + object.setValueType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsAttrValueType + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMetaResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMetaResponse.java index b15b49d80..5cd1d5047 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMetaResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsMetaResponse.java @@ -1,592 +1,592 @@ -/** - * WUDetailsMetaResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDetailsMetaResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDetailsMetaResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUDetailsMetaResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Properties */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3 localProperties; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertiesTracker = false; - - public boolean isPropertiesSpecified() { - return localPropertiesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3 getProperties() { - return localProperties; - } - - /** - * Auto generated setter method - * - * @param param Properties - */ - public void setProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3 param) { - localPropertiesTracker = param != null; - - this.localProperties = param; - } - - /** field for ScopeTypes */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2 localScopeTypes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypesTracker = false; - - public boolean isScopeTypesSpecified() { - return localScopeTypesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2 getScopeTypes() { - return localScopeTypes; - } - - /** - * Auto generated setter method - * - * @param param ScopeTypes - */ - public void setScopeTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2 param) { - localScopeTypesTracker = param != null; - - this.localScopeTypes = param; - } - - /** field for Measures */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0 localMeasures; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMeasuresTracker = false; - - public boolean isMeasuresSpecified() { - return localMeasuresTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0 getMeasures() { - return localMeasures; - } - - /** - * Auto generated setter method - * - * @param param Measures - */ - public void setMeasures( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0 param) { - localMeasuresTracker = param != null; - - this.localMeasures = param; - } - - /** field for Activities */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1 localActivities; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivitiesTracker = false; - - public boolean isActivitiesSpecified() { - return localActivitiesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1 getActivities() { - return localActivities; - } - - /** - * Auto generated setter method - * - * @param param Activities - */ - public void setActivities( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1 param) { - localActivitiesTracker = param != null; - - this.localActivities = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDetailsMetaResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDetailsMetaResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localPropertiesTracker) { - if (localProperties == null) { - throw new org.apache.axis2.databinding.ADBException("Properties cannot be null!!"); - } - localProperties.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties"), xmlWriter); - } - if (localScopeTypesTracker) { - if (localScopeTypes == null) { - throw new org.apache.axis2.databinding.ADBException("ScopeTypes cannot be null!!"); - } - localScopeTypes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes"), xmlWriter); - } - if (localMeasuresTracker) { - if (localMeasures == null) { - throw new org.apache.axis2.databinding.ADBException("Measures cannot be null!!"); - } - localMeasures.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measures"), xmlWriter); - } - if (localActivitiesTracker) { - if (localActivities == null) { - throw new org.apache.axis2.databinding.ADBException("Activities cannot be null!!"); - } - localActivities.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activities"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDetailsMetaResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDetailsMetaResponse object = new WUDetailsMetaResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDetailsMetaResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDetailsMetaResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties") - .equals(reader.getName())) { - - object.setProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes") - .equals(reader.getName())) { - - object.setScopeTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measures") - .equals(reader.getName())) { - - object.setMeasures( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activities") - .equals(reader.getName())) { - - object.setActivities( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDetailsMetaResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDetailsMetaResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDetailsMetaResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUDetailsMetaResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Properties */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3 localProperties; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertiesTracker = false; + + public boolean isPropertiesSpecified() { + return localPropertiesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3 getProperties() { + return localProperties; + } + + /** + * Auto generated setter method + * + * @param param Properties + */ + public void setProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3 param) { + localPropertiesTracker = param != null; + + this.localProperties = param; + } + + /** field for ScopeTypes */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2 localScopeTypes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypesTracker = false; + + public boolean isScopeTypesSpecified() { + return localScopeTypesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2 getScopeTypes() { + return localScopeTypes; + } + + /** + * Auto generated setter method + * + * @param param ScopeTypes + */ + public void setScopeTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2 param) { + localScopeTypesTracker = param != null; + + this.localScopeTypes = param; + } + + /** field for Measures */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0 localMeasures; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMeasuresTracker = false; + + public boolean isMeasuresSpecified() { + return localMeasuresTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0 getMeasures() { + return localMeasures; + } + + /** + * Auto generated setter method + * + * @param param Measures + */ + public void setMeasures( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0 param) { + localMeasuresTracker = param != null; + + this.localMeasures = param; + } + + /** field for Activities */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1 localActivities; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivitiesTracker = false; + + public boolean isActivitiesSpecified() { + return localActivitiesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1 getActivities() { + return localActivities; + } + + /** + * Auto generated setter method + * + * @param param Activities + */ + public void setActivities( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1 param) { + localActivitiesTracker = param != null; + + this.localActivities = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDetailsMetaResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDetailsMetaResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localPropertiesTracker) { + if (localProperties == null) { + throw new org.apache.axis2.databinding.ADBException("Properties cannot be null!!"); + } + localProperties.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties"), xmlWriter); + } + if (localScopeTypesTracker) { + if (localScopeTypes == null) { + throw new org.apache.axis2.databinding.ADBException("ScopeTypes cannot be null!!"); + } + localScopeTypes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes"), xmlWriter); + } + if (localMeasuresTracker) { + if (localMeasures == null) { + throw new org.apache.axis2.databinding.ADBException("Measures cannot be null!!"); + } + localMeasures.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measures"), xmlWriter); + } + if (localActivitiesTracker) { + if (localActivities == null) { + throw new org.apache.axis2.databinding.ADBException("Activities cannot be null!!"); + } + localActivities.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activities"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDetailsMetaResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDetailsMetaResponse object = new WUDetailsMetaResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDetailsMetaResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDetailsMetaResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties") + .equals(reader.getName())) { + + object.setProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type3.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes") + .equals(reader.getName())) { + + object.setScopeTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type2.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measures") + .equals(reader.getName())) { + + object.setMeasures( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Measures_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activities") + .equals(reader.getName())) { + + object.setActivities( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Activities_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsResponse.java index e62e9808a..83c8162c6 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUDetailsResponse.java @@ -1,570 +1,570 @@ -/** - * WUDetailsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUDetailsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUDetailsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetailsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for MaxVersion */ - protected java.lang.String localMaxVersion; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxVersionTracker = false; - - public boolean isMaxVersionSpecified() { - return localMaxVersionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMaxVersion() { - return localMaxVersion; - } - - /** - * Auto generated setter method - * - * @param param MaxVersion - */ - public void setMaxVersion(java.lang.String param) { - localMaxVersionTracker = param != null; - - this.localMaxVersion = param; - } - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for Scopes */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1 localScopes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopesTracker = false; - - public boolean isScopesSpecified() { - return localScopesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1 getScopes() { - return localScopes; - } - - /** - * Auto generated setter method - * - * @param param Scopes - */ - public void setScopes(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1 param) { - localScopesTracker = param != null; - - this.localScopes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUDetailsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUDetailsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localMaxVersionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxVersion", xmlWriter); - - if (localMaxVersion == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MaxVersion cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMaxVersion); - } - - xmlWriter.writeEndElement(); - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localScopesTracker) { - if (localScopes == null) { - throw new org.apache.axis2.databinding.ADBException("Scopes cannot be null!!"); - } - localScopes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scopes"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUDetailsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUDetailsResponse object = new WUDetailsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUDetailsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUDetailsResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxVersion") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxVersion" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxVersion( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scopes") - .equals(reader.getName())) { - - object.setScopes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUDetailsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUDetailsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUDetailsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetailsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for MaxVersion */ + protected java.lang.String localMaxVersion; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxVersionTracker = false; + + public boolean isMaxVersionSpecified() { + return localMaxVersionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMaxVersion() { + return localMaxVersion; + } + + /** + * Auto generated setter method + * + * @param param MaxVersion + */ + public void setMaxVersion(java.lang.String param) { + localMaxVersionTracker = param != null; + + this.localMaxVersion = param; + } + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for Scopes */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1 localScopes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopesTracker = false; + + public boolean isScopesSpecified() { + return localScopesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1 getScopes() { + return localScopes; + } + + /** + * Auto generated setter method + * + * @param param Scopes + */ + public void setScopes(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1 param) { + localScopesTracker = param != null; + + this.localScopes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUDetailsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUDetailsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localMaxVersionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxVersion", xmlWriter); + + if (localMaxVersion == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MaxVersion cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMaxVersion); + } + + xmlWriter.writeEndElement(); + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localScopesTracker) { + if (localScopes == null) { + throw new org.apache.axis2.databinding.ADBException("Scopes cannot be null!!"); + } + localScopes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scopes"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUDetailsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUDetailsResponse object = new WUDetailsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUDetailsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUDetailsResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxVersion") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxVersion" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scopes") + .equals(reader.getName())) { + + object.setScopes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type1.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUECLAttribute.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUECLAttribute.java index 6ed83b234..fa7fa2b13 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUECLAttribute.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUECLAttribute.java @@ -1,744 +1,744 @@ -/** - * WUECLAttribute.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUECLAttribute bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUECLAttribute implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUECLAttribute - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ModuleName */ - protected java.lang.String localModuleName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModuleNameTracker = false; - - public boolean isModuleNameSpecified() { - return localModuleNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getModuleName() { - return localModuleName; - } - - /** - * Auto generated setter method - * - * @param param ModuleName - */ - public void setModuleName(java.lang.String param) { - localModuleNameTracker = param != null; - - this.localModuleName = param; - } - - /** field for AttributeName */ - protected java.lang.String localAttributeName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAttributeNameTracker = false; - - public boolean isAttributeNameSpecified() { - return localAttributeNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAttributeName() { - return localAttributeName; - } - - /** - * Auto generated setter method - * - * @param param AttributeName - */ - public void setAttributeName(java.lang.String param) { - localAttributeNameTracker = param != null; - - this.localAttributeName = param; - } - - /** field for IsLocked */ - protected boolean localIsLocked; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsLockedTracker = false; - - public boolean isIsLockedSpecified() { - return localIsLockedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsLocked() { - return localIsLocked; - } - - /** - * Auto generated setter method - * - * @param param IsLocked - */ - public void setIsLocked(boolean param) { - - // setting primitive attribute tracker to true - localIsLockedTracker = true; - - this.localIsLocked = param; - } - - /** field for IsCheckedOut */ - protected boolean localIsCheckedOut; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsCheckedOutTracker = false; - - public boolean isIsCheckedOutSpecified() { - return localIsCheckedOutTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsCheckedOut() { - return localIsCheckedOut; - } - - /** - * Auto generated setter method - * - * @param param IsCheckedOut - */ - public void setIsCheckedOut(boolean param) { - - // setting primitive attribute tracker to true - localIsCheckedOutTracker = true; - - this.localIsCheckedOut = param; - } - - /** field for IsSandbox */ - protected boolean localIsSandbox; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsSandboxTracker = false; - - public boolean isIsSandboxSpecified() { - return localIsSandboxTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsSandbox() { - return localIsSandbox; - } - - /** - * Auto generated setter method - * - * @param param IsSandbox - */ - public void setIsSandbox(boolean param) { - - // setting primitive attribute tracker to true - localIsSandboxTracker = true; - - this.localIsSandbox = param; - } - - /** field for IsOrphaned */ - protected boolean localIsOrphaned; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsOrphanedTracker = false; - - public boolean isIsOrphanedSpecified() { - return localIsOrphanedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsOrphaned() { - return localIsOrphaned; - } - - /** - * Auto generated setter method - * - * @param param IsOrphaned - */ - public void setIsOrphaned(boolean param) { - - // setting primitive attribute tracker to true - localIsOrphanedTracker = true; - - this.localIsOrphaned = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUECLAttribute", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUECLAttribute", - xmlWriter); - } - } - if (localModuleNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ModuleName", xmlWriter); - - if (localModuleName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ModuleName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localModuleName); - } - - xmlWriter.writeEndElement(); - } - if (localAttributeNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AttributeName", xmlWriter); - - if (localAttributeName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AttributeName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAttributeName); - } - - xmlWriter.writeEndElement(); - } - if (localIsLockedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsLocked", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsLocked cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsLocked)); - } - - xmlWriter.writeEndElement(); - } - if (localIsCheckedOutTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsCheckedOut", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsCheckedOut cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsCheckedOut)); - } - - xmlWriter.writeEndElement(); - } - if (localIsSandboxTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsSandbox", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsSandbox cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSandbox)); - } - - xmlWriter.writeEndElement(); - } - if (localIsOrphanedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsOrphaned", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsOrphaned cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsOrphaned)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUECLAttribute parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUECLAttribute object = new WUECLAttribute(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUECLAttribute".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUECLAttribute) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ModuleName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ModuleName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setModuleName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AttributeName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AttributeName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAttributeName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsLocked") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsLocked" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsLocked( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsCheckedOut") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsCheckedOut" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsCheckedOut( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSandbox") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsSandbox" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsSandbox( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsOrphaned") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsOrphaned" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsOrphaned( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUECLAttribute.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUECLAttribute bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUECLAttribute implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUECLAttribute + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ModuleName */ + protected java.lang.String localModuleName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModuleNameTracker = false; + + public boolean isModuleNameSpecified() { + return localModuleNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getModuleName() { + return localModuleName; + } + + /** + * Auto generated setter method + * + * @param param ModuleName + */ + public void setModuleName(java.lang.String param) { + localModuleNameTracker = param != null; + + this.localModuleName = param; + } + + /** field for AttributeName */ + protected java.lang.String localAttributeName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAttributeNameTracker = false; + + public boolean isAttributeNameSpecified() { + return localAttributeNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAttributeName() { + return localAttributeName; + } + + /** + * Auto generated setter method + * + * @param param AttributeName + */ + public void setAttributeName(java.lang.String param) { + localAttributeNameTracker = param != null; + + this.localAttributeName = param; + } + + /** field for IsLocked */ + protected boolean localIsLocked; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsLockedTracker = false; + + public boolean isIsLockedSpecified() { + return localIsLockedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsLocked() { + return localIsLocked; + } + + /** + * Auto generated setter method + * + * @param param IsLocked + */ + public void setIsLocked(boolean param) { + + // setting primitive attribute tracker to true + localIsLockedTracker = true; + + this.localIsLocked = param; + } + + /** field for IsCheckedOut */ + protected boolean localIsCheckedOut; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsCheckedOutTracker = false; + + public boolean isIsCheckedOutSpecified() { + return localIsCheckedOutTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsCheckedOut() { + return localIsCheckedOut; + } + + /** + * Auto generated setter method + * + * @param param IsCheckedOut + */ + public void setIsCheckedOut(boolean param) { + + // setting primitive attribute tracker to true + localIsCheckedOutTracker = true; + + this.localIsCheckedOut = param; + } + + /** field for IsSandbox */ + protected boolean localIsSandbox; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsSandboxTracker = false; + + public boolean isIsSandboxSpecified() { + return localIsSandboxTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsSandbox() { + return localIsSandbox; + } + + /** + * Auto generated setter method + * + * @param param IsSandbox + */ + public void setIsSandbox(boolean param) { + + // setting primitive attribute tracker to true + localIsSandboxTracker = true; + + this.localIsSandbox = param; + } + + /** field for IsOrphaned */ + protected boolean localIsOrphaned; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsOrphanedTracker = false; + + public boolean isIsOrphanedSpecified() { + return localIsOrphanedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsOrphaned() { + return localIsOrphaned; + } + + /** + * Auto generated setter method + * + * @param param IsOrphaned + */ + public void setIsOrphaned(boolean param) { + + // setting primitive attribute tracker to true + localIsOrphanedTracker = true; + + this.localIsOrphaned = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUECLAttribute", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUECLAttribute", + xmlWriter); + } + } + if (localModuleNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ModuleName", xmlWriter); + + if (localModuleName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ModuleName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localModuleName); + } + + xmlWriter.writeEndElement(); + } + if (localAttributeNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AttributeName", xmlWriter); + + if (localAttributeName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AttributeName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAttributeName); + } + + xmlWriter.writeEndElement(); + } + if (localIsLockedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsLocked", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsLocked cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsLocked)); + } + + xmlWriter.writeEndElement(); + } + if (localIsCheckedOutTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsCheckedOut", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsCheckedOut cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsCheckedOut)); + } + + xmlWriter.writeEndElement(); + } + if (localIsSandboxTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsSandbox", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsSandbox cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsSandbox)); + } + + xmlWriter.writeEndElement(); + } + if (localIsOrphanedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsOrphaned", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsOrphaned cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsOrphaned)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUECLAttribute parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUECLAttribute object = new WUECLAttribute(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUECLAttribute".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUECLAttribute) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ModuleName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ModuleName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setModuleName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AttributeName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AttributeName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAttributeName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsLocked") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsLocked" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsLocked( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsCheckedOut") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsCheckedOut" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsCheckedOut( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsSandbox") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsSandbox" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsSandbox( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsOrphaned") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsOrphaned" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsOrphaned( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionAction.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionAction.java index ac05ab62d..fdd80be35 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionAction.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionAction.java @@ -1,2111 +1,2248 @@ -/** - * WUEclDefinitionAction.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUEclDefinitionAction bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUEclDefinitionAction implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionAction", "ns1"); - - /** field for EclDefinitions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - localEclDefinitions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEclDefinitionsTracker = false; - - public boolean isEclDefinitionsSpecified() { - return localEclDefinitionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getEclDefinitions() { - return localEclDefinitions; - } - - /** - * Auto generated setter method - * - * @param param EclDefinitions - */ - public void setEclDefinitions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localEclDefinitionsTracker = param != null; - - this.localEclDefinitions = param; - } - - /** field for ActionType */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions - localActionType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTypeTracker = false; - - public boolean isActionTypeSpecified() { - return localActionTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions - getActionType() { - return localActionType; - } - - /** - * Auto generated setter method - * - * @param param ActionType - */ - public void setActionType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions param) { - localActionTypeTracker = param != null; - - this.localActionType = param; - } - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for RemoteDali */ - protected java.lang.String localRemoteDali; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRemoteDaliTracker = false; - - public boolean isRemoteDaliSpecified() { - return localRemoteDaliTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRemoteDali() { - return localRemoteDali; - } - - /** - * Auto generated setter method - * - * @param param RemoteDali - */ - public void setRemoteDali(java.lang.String param) { - localRemoteDaliTracker = param != null; - - this.localRemoteDali = param; - } - - /** field for SourceProcess */ - protected java.lang.String localSourceProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceProcessTracker = false; - - public boolean isSourceProcessSpecified() { - return localSourceProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceProcess() { - return localSourceProcess; - } - - /** - * Auto generated setter method - * - * @param param SourceProcess - */ - public void setSourceProcess(java.lang.String param) { - localSourceProcessTracker = param != null; - - this.localSourceProcess = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for MemoryLimit */ - protected java.lang.String localMemoryLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitTracker = false; - - public boolean isMemoryLimitSpecified() { - return localMemoryLimitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemoryLimit() { - return localMemoryLimit; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimit - */ - public void setMemoryLimit(java.lang.String param) { - localMemoryLimitTracker = param != null; - - this.localMemoryLimit = param; - } - - /** field for DeletePrevious */ - protected boolean localDeletePrevious = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDeletePreviousTracker = false; - - public boolean isDeletePreviousSpecified() { - return localDeletePreviousTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDeletePrevious() { - return localDeletePrevious; - } - - /** - * Auto generated setter method - * - * @param param DeletePrevious - */ - public void setDeletePrevious(boolean param) { - - // setting primitive attribute tracker to true - localDeletePreviousTracker = true; - - this.localDeletePrevious = param; - } - - /** field for SuspendPrevious */ - protected boolean localSuspendPrevious = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendPreviousTracker = false; - - public boolean isSuspendPreviousSpecified() { - return localSuspendPreviousTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuspendPrevious() { - return localSuspendPrevious; - } - - /** - * Auto generated setter method - * - * @param param SuspendPrevious - */ - public void setSuspendPrevious(boolean param) { - - // setting primitive attribute tracker to true - localSuspendPreviousTracker = true; - - this.localSuspendPrevious = param; - } - - /** field for NoActivate */ - protected boolean localNoActivate = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoActivateTracker = false; - - public boolean isNoActivateSpecified() { - return localNoActivateTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoActivate() { - return localNoActivate; - } - - /** - * Auto generated setter method - * - * @param param NoActivate - */ - public void setNoActivate(boolean param) { - - // setting primitive attribute tracker to true - localNoActivateTracker = true; - - this.localNoActivate = param; - } - - /** field for NoReload */ - protected boolean localNoReload = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoReloadTracker = false; - - public boolean isNoReloadSpecified() { - return localNoReloadTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoReload() { - return localNoReload; - } - - /** - * Auto generated setter method - * - * @param param NoReload - */ - public void setNoReload(boolean param) { - - // setting primitive attribute tracker to true - localNoReloadTracker = true; - - this.localNoReload = param; - } - - /** field for DontCopyFiles */ - protected boolean localDontCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDontCopyFilesTracker = false; - - public boolean isDontCopyFilesSpecified() { - return localDontCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDontCopyFiles() { - return localDontCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DontCopyFiles - */ - public void setDontCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDontCopyFilesTracker = true; - - this.localDontCopyFiles = param; - } - - /** field for AllowForeign */ - protected boolean localAllowForeign = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllowForeignTracker = false; - - public boolean isAllowForeignSpecified() { - return localAllowForeignTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllowForeign() { - return localAllowForeign; - } - - /** - * Auto generated setter method - * - * @param param AllowForeign - */ - public void setAllowForeign(boolean param) { - - // setting primitive attribute tracker to true - localAllowForeignTracker = true; - - this.localAllowForeign = param; - } - - /** field for UpdateDfs */ - protected boolean localUpdateDfs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateDfsTracker = false; - - public boolean isUpdateDfsSpecified() { - return localUpdateDfsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateDfs() { - return localUpdateDfs; - } - - /** - * Auto generated setter method - * - * @param param UpdateDfs - */ - public void setUpdateDfs(boolean param) { - - // setting primitive attribute tracker to true - localUpdateDfsTracker = true; - - this.localUpdateDfs = param; - } - - /** field for UpdateSuperfiles */ - protected boolean localUpdateSuperfiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateSuperfilesTracker = false; - - public boolean isUpdateSuperfilesSpecified() { - return localUpdateSuperfilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateSuperfiles() { - return localUpdateSuperfiles; - } - - /** - * Auto generated setter method - * - * @param param UpdateSuperfiles - */ - public void setUpdateSuperfiles(boolean param) { - - // setting primitive attribute tracker to true - localUpdateSuperfilesTracker = true; - - this.localUpdateSuperfiles = param; - } - - /** field for UpdateCloneFrom */ - protected boolean localUpdateCloneFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateCloneFromTracker = false; - - public boolean isUpdateCloneFromSpecified() { - return localUpdateCloneFromTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateCloneFrom() { - return localUpdateCloneFrom; - } - - /** - * Auto generated setter method - * - * @param param UpdateCloneFrom - */ - public void setUpdateCloneFrom(boolean param) { - - // setting primitive attribute tracker to true - localUpdateCloneFromTracker = true; - - this.localUpdateCloneFrom = param; - } - - /** field for DontAppendCluster */ - protected boolean localDontAppendCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDontAppendClusterTracker = false; - - public boolean isDontAppendClusterSpecified() { - return localDontAppendClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDontAppendCluster() { - return localDontAppendCluster; - } - - /** - * Auto generated setter method - * - * @param param DontAppendCluster - */ - public void setDontAppendCluster(boolean param) { - - // setting primitive attribute tracker to true - localDontAppendClusterTracker = true; - - this.localDontAppendCluster = param; - } - - /** field for MsToWait */ - protected int localMsToWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMsToWaitTracker = false; - - public boolean isMsToWaitSpecified() { - return localMsToWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMsToWait() { - return localMsToWait; - } - - /** - * Auto generated setter method - * - * @param param MsToWait - */ - public void setMsToWait(int param) { - - // setting primitive attribute tracker to true - localMsToWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMsToWait = param; - } - - /** field for TimeLimit */ - protected int localTimeLimit = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitTracker = false; - - public boolean isTimeLimitSpecified() { - return localTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTimeLimit() { - return localTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param TimeLimit - */ - public void setTimeLimit(int param) { - - // setting primitive attribute tracker to true - localTimeLimitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTimeLimit = param; - } - - /** field for WarnTimeLimit */ - protected int localWarnTimeLimit = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitTracker = false; - - public boolean isWarnTimeLimitSpecified() { - return localWarnTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWarnTimeLimit() { - return localWarnTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimit - */ - public void setWarnTimeLimit(int param) { - - // setting primitive attribute tracker to true - localWarnTimeLimitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWarnTimeLimit = param; - } - - /** field for DfuCopyFiles */ - protected boolean localDfuCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuCopyFilesTracker = false; - - public boolean isDfuCopyFilesSpecified() { - return localDfuCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuCopyFiles() { - return localDfuCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DfuCopyFiles - */ - public void setDfuCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDfuCopyFilesTracker = true; - - this.localDfuCopyFiles = param; - } - - /** field for DfuOverwrite */ - protected boolean localDfuOverwrite = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuOverwriteTracker = false; - - public boolean isDfuOverwriteSpecified() { - return localDfuOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuOverwrite() { - return localDfuOverwrite; - } - - /** - * Auto generated setter method - * - * @param param DfuOverwrite - */ - public void setDfuOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localDfuOverwriteTracker = true; - - this.localDfuOverwrite = param; - } - - /** field for DfuQueue */ - protected java.lang.String localDfuQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuQueueTracker = false; - - public boolean isDfuQueueSpecified() { - return localDfuQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuQueue() { - return localDfuQueue; - } - - /** - * Auto generated setter method - * - * @param param DfuQueue - */ - public void setDfuQueue(java.lang.String param) { - localDfuQueueTracker = param != null; - - this.localDfuQueue = param; - } - - /** field for OnlyCopyFiles */ - protected boolean localOnlyCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnlyCopyFilesTracker = false; - - public boolean isOnlyCopyFilesSpecified() { - return localOnlyCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOnlyCopyFiles() { - return localOnlyCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param OnlyCopyFiles - */ - public void setOnlyCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localOnlyCopyFilesTracker = true; - - this.localOnlyCopyFiles = param; - } - - /** field for StopIfFilesCopied */ - protected boolean localStopIfFilesCopied = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStopIfFilesCopiedTracker = false; - - public boolean isStopIfFilesCopiedSpecified() { - return localStopIfFilesCopiedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getStopIfFilesCopied() { - return localStopIfFilesCopied; - } - - /** - * Auto generated setter method - * - * @param param StopIfFilesCopied - */ - public void setStopIfFilesCopied(boolean param) { - - // setting primitive attribute tracker to true - localStopIfFilesCopiedTracker = true; - - this.localStopIfFilesCopied = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUEclDefinitionAction", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUEclDefinitionAction", - xmlWriter); - } - } - if (localEclDefinitionsTracker) { - if (localEclDefinitions == null) { - throw new org.apache.axis2.databinding.ADBException("EclDefinitions cannot be null!!"); - } - localEclDefinitions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EclDefinitions"), - xmlWriter); - } - if (localActionTypeTracker) { - if (localActionType == null) { - throw new org.apache.axis2.databinding.ADBException("ActionType cannot be null!!"); - } - localActionType.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionType"), xmlWriter); - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localRemoteDaliTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RemoteDali", xmlWriter); - - if (localRemoteDali == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RemoteDali cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRemoteDali); - } - - xmlWriter.writeEndElement(); - } - if (localSourceProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceProcess", xmlWriter); - - if (localSourceProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceProcess); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MemoryLimit", xmlWriter); - - if (localMemoryLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MemoryLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemoryLimit); - } - - xmlWriter.writeEndElement(); - } - if (localDeletePreviousTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DeletePrevious", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DeletePrevious cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDeletePrevious)); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendPreviousTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SuspendPrevious", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SuspendPrevious cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspendPrevious)); - } - - xmlWriter.writeEndElement(); - } - if (localNoActivateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoActivate", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoActivate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoActivate)); - } - - xmlWriter.writeEndElement(); - } - if (localNoReloadTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoReload", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); - } - - xmlWriter.writeEndElement(); - } - if (localDontCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DontCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DontCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDontCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localAllowForeignTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllowForeign", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllowForeign cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllowForeign)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateDfsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateDfs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateDfs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateDfs)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateSuperfilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateSuperfiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateSuperfiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localUpdateSuperfiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateCloneFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localDontAppendClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DontAppendCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DontAppendCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localDontAppendCluster)); - } - - xmlWriter.writeEndElement(); - } - if (localMsToWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MsToWait", xmlWriter); - - if (localMsToWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MsToWait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMsToWait)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeLimit", xmlWriter); - - if (localTimeLimit == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); - - if (localWarnTimeLimit == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuOverwriteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuQueue", xmlWriter); - - if (localDfuQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuQueue); - } - - xmlWriter.writeEndElement(); - } - if (localOnlyCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localStopIfFilesCopiedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localStopIfFilesCopied)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUEclDefinitionAction parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUEclDefinitionAction object = new WUEclDefinitionAction(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUEclDefinitionAction".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUEclDefinitionAction) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EclDefinitions") - .equals(reader.getName())) { - - object.setEclDefinitions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionType") - .equals(reader.getName())) { - - object.setActionType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteDali") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RemoteDali" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRemoteDali( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceProcess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemoryLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DeletePrevious") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DeletePrevious" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDeletePrevious( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SuspendPrevious") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SuspendPrevious" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspendPrevious( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoActivate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoActivate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoActivate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoReload" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoReload( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DontCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DontCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDontCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllowForeign") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllowForeign" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllowForeign( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "UpdateDfs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateDfs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateDfs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateSuperfiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateSuperfiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateSuperfiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateCloneFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateCloneFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DontAppendCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DontAppendCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDontAppendCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MsToWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MsToWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMsToWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarnTimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuOverwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OnlyCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOnlyCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StopIfFilesCopied" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStopIfFilesCopied( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUEclDefinitionAction.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUEclDefinitionAction bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUEclDefinitionAction implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionAction", "ns1"); + + /** field for EclDefinitions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + localEclDefinitions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEclDefinitionsTracker = false; + + public boolean isEclDefinitionsSpecified() { + return localEclDefinitionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getEclDefinitions() { + return localEclDefinitions; + } + + /** + * Auto generated setter method + * + * @param param EclDefinitions + */ + public void setEclDefinitions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localEclDefinitionsTracker = param != null; + + this.localEclDefinitions = param; + } + + /** field for ActionType */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions + localActionType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTypeTracker = false; + + public boolean isActionTypeSpecified() { + return localActionTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions + getActionType() { + return localActionType; + } + + /** + * Auto generated setter method + * + * @param param ActionType + */ + public void setActionType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions param) { + localActionTypeTracker = param != null; + + this.localActionType = param; + } + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for RemoteDali */ + protected java.lang.String localRemoteDali; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteDaliTracker = false; + + public boolean isRemoteDaliSpecified() { + return localRemoteDaliTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteDali() { + return localRemoteDali; + } + + /** + * Auto generated setter method + * + * @param param RemoteDali + */ + public void setRemoteDali(java.lang.String param) { + localRemoteDaliTracker = param != null; + + this.localRemoteDali = param; + } + + /** field for SourceProcess */ + protected java.lang.String localSourceProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceProcessTracker = false; + + public boolean isSourceProcessSpecified() { + return localSourceProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceProcess() { + return localSourceProcess; + } + + /** + * Auto generated setter method + * + * @param param SourceProcess + */ + public void setSourceProcess(java.lang.String param) { + localSourceProcessTracker = param != null; + + this.localSourceProcess = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for MemoryLimit */ + protected java.lang.String localMemoryLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitTracker = false; + + public boolean isMemoryLimitSpecified() { + return localMemoryLimitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemoryLimit() { + return localMemoryLimit; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimit + */ + public void setMemoryLimit(java.lang.String param) { + localMemoryLimitTracker = param != null; + + this.localMemoryLimit = param; + } + + /** field for DeletePrevious */ + protected boolean localDeletePrevious = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDeletePreviousTracker = false; + + public boolean isDeletePreviousSpecified() { + return localDeletePreviousTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDeletePrevious() { + return localDeletePrevious; + } + + /** + * Auto generated setter method + * + * @param param DeletePrevious + */ + public void setDeletePrevious(boolean param) { + + // setting primitive attribute tracker to true + localDeletePreviousTracker = true; + + this.localDeletePrevious = param; + } + + /** field for SuspendPrevious */ + protected boolean localSuspendPrevious = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendPreviousTracker = false; + + public boolean isSuspendPreviousSpecified() { + return localSuspendPreviousTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuspendPrevious() { + return localSuspendPrevious; + } + + /** + * Auto generated setter method + * + * @param param SuspendPrevious + */ + public void setSuspendPrevious(boolean param) { + + // setting primitive attribute tracker to true + localSuspendPreviousTracker = true; + + this.localSuspendPrevious = param; + } + + /** field for NoActivate */ + protected boolean localNoActivate = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoActivateTracker = false; + + public boolean isNoActivateSpecified() { + return localNoActivateTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoActivate() { + return localNoActivate; + } + + /** + * Auto generated setter method + * + * @param param NoActivate + */ + public void setNoActivate(boolean param) { + + // setting primitive attribute tracker to true + localNoActivateTracker = true; + + this.localNoActivate = param; + } + + /** field for NoReload */ + protected boolean localNoReload = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoReloadTracker = false; + + public boolean isNoReloadSpecified() { + return localNoReloadTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoReload() { + return localNoReload; + } + + /** + * Auto generated setter method + * + * @param param NoReload + */ + public void setNoReload(boolean param) { + + // setting primitive attribute tracker to true + localNoReloadTracker = true; + + this.localNoReload = param; + } + + /** field for DontCopyFiles */ + protected boolean localDontCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDontCopyFilesTracker = false; + + public boolean isDontCopyFilesSpecified() { + return localDontCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDontCopyFiles() { + return localDontCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DontCopyFiles + */ + public void setDontCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDontCopyFilesTracker = true; + + this.localDontCopyFiles = param; + } + + /** field for AllowForeign */ + protected boolean localAllowForeign = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowForeignTracker = false; + + public boolean isAllowForeignSpecified() { + return localAllowForeignTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllowForeign() { + return localAllowForeign; + } + + /** + * Auto generated setter method + * + * @param param AllowForeign + */ + public void setAllowForeign(boolean param) { + + // setting primitive attribute tracker to true + localAllowForeignTracker = true; + + this.localAllowForeign = param; + } + + /** field for UpdateDfs */ + protected boolean localUpdateDfs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateDfsTracker = false; + + public boolean isUpdateDfsSpecified() { + return localUpdateDfsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateDfs() { + return localUpdateDfs; + } + + /** + * Auto generated setter method + * + * @param param UpdateDfs + */ + public void setUpdateDfs(boolean param) { + + // setting primitive attribute tracker to true + localUpdateDfsTracker = true; + + this.localUpdateDfs = param; + } + + /** field for UpdateSuperfiles */ + protected boolean localUpdateSuperfiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateSuperfilesTracker = false; + + public boolean isUpdateSuperfilesSpecified() { + return localUpdateSuperfilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateSuperfiles() { + return localUpdateSuperfiles; + } + + /** + * Auto generated setter method + * + * @param param UpdateSuperfiles + */ + public void setUpdateSuperfiles(boolean param) { + + // setting primitive attribute tracker to true + localUpdateSuperfilesTracker = true; + + this.localUpdateSuperfiles = param; + } + + /** field for UpdateCloneFrom */ + protected boolean localUpdateCloneFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateCloneFromTracker = false; + + public boolean isUpdateCloneFromSpecified() { + return localUpdateCloneFromTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateCloneFrom() { + return localUpdateCloneFrom; + } + + /** + * Auto generated setter method + * + * @param param UpdateCloneFrom + */ + public void setUpdateCloneFrom(boolean param) { + + // setting primitive attribute tracker to true + localUpdateCloneFromTracker = true; + + this.localUpdateCloneFrom = param; + } + + /** field for DontAppendCluster */ + protected boolean localDontAppendCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDontAppendClusterTracker = false; + + public boolean isDontAppendClusterSpecified() { + return localDontAppendClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDontAppendCluster() { + return localDontAppendCluster; + } + + /** + * Auto generated setter method + * + * @param param DontAppendCluster + */ + public void setDontAppendCluster(boolean param) { + + // setting primitive attribute tracker to true + localDontAppendClusterTracker = true; + + this.localDontAppendCluster = param; + } + + /** field for MsToWait */ + protected int localMsToWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMsToWaitTracker = false; + + public boolean isMsToWaitSpecified() { + return localMsToWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMsToWait() { + return localMsToWait; + } + + /** + * Auto generated setter method + * + * @param param MsToWait + */ + public void setMsToWait(int param) { + + // setting primitive attribute tracker to true + localMsToWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMsToWait = param; + } + + /** field for TimeLimit */ + protected int localTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitTracker = false; + + public boolean isTimeLimitSpecified() { + return localTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTimeLimit() { + return localTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param TimeLimit + */ + public void setTimeLimit(int param) { + + // setting primitive attribute tracker to true + localTimeLimitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTimeLimit = param; + } + + /** field for WarnTimeLimit */ + protected int localWarnTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitTracker = false; + + public boolean isWarnTimeLimitSpecified() { + return localWarnTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWarnTimeLimit() { + return localWarnTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimit + */ + public void setWarnTimeLimit(int param) { + + // setting primitive attribute tracker to true + localWarnTimeLimitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWarnTimeLimit = param; + } + + /** field for DfuCopyFiles */ + protected boolean localDfuCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuCopyFilesTracker = false; + + public boolean isDfuCopyFilesSpecified() { + return localDfuCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuCopyFiles() { + return localDfuCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DfuCopyFiles + */ + public void setDfuCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDfuCopyFilesTracker = true; + + this.localDfuCopyFiles = param; + } + + /** field for DfuOverwrite */ + protected boolean localDfuOverwrite = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuOverwriteTracker = false; + + public boolean isDfuOverwriteSpecified() { + return localDfuOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuOverwrite() { + return localDfuOverwrite; + } + + /** + * Auto generated setter method + * + * @param param DfuOverwrite + */ + public void setDfuOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localDfuOverwriteTracker = true; + + this.localDfuOverwrite = param; + } + + /** field for DfuQueue */ + protected java.lang.String localDfuQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuQueueTracker = false; + + public boolean isDfuQueueSpecified() { + return localDfuQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuQueue() { + return localDfuQueue; + } + + /** + * Auto generated setter method + * + * @param param DfuQueue + */ + public void setDfuQueue(java.lang.String param) { + localDfuQueueTracker = param != null; + + this.localDfuQueue = param; + } + + /** field for OnlyCopyFiles */ + protected boolean localOnlyCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnlyCopyFilesTracker = false; + + public boolean isOnlyCopyFilesSpecified() { + return localOnlyCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOnlyCopyFiles() { + return localOnlyCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param OnlyCopyFiles + */ + public void setOnlyCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localOnlyCopyFilesTracker = true; + + this.localOnlyCopyFiles = param; + } + + /** field for StopIfFilesCopied */ + protected boolean localStopIfFilesCopied = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStopIfFilesCopiedTracker = false; + + public boolean isStopIfFilesCopiedSpecified() { + return localStopIfFilesCopiedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getStopIfFilesCopied() { + return localStopIfFilesCopied; + } + + /** + * Auto generated setter method + * + * @param param StopIfFilesCopied + */ + public void setStopIfFilesCopied(boolean param) { + + // setting primitive attribute tracker to true + localStopIfFilesCopiedTracker = true; + + this.localStopIfFilesCopied = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for RemoteStorage */ + protected java.lang.String localRemoteStorage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteStorageTracker = false; + + public boolean isRemoteStorageSpecified() { + return localRemoteStorageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteStorage() { + return localRemoteStorage; + } + + /** + * Auto generated setter method + * + * @param param RemoteStorage + */ + public void setRemoteStorage(java.lang.String param) { + localRemoteStorageTracker = param != null; + + this.localRemoteStorage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUEclDefinitionAction", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUEclDefinitionAction", + xmlWriter); + } + } + if (localEclDefinitionsTracker) { + if (localEclDefinitions == null) { + throw new org.apache.axis2.databinding.ADBException("EclDefinitions cannot be null!!"); + } + localEclDefinitions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EclDefinitions"), + xmlWriter); + } + if (localActionTypeTracker) { + if (localActionType == null) { + throw new org.apache.axis2.databinding.ADBException("ActionType cannot be null!!"); + } + localActionType.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionType"), xmlWriter); + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteDaliTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteDali", xmlWriter); + + if (localRemoteDali == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteDali cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteDali); + } + + xmlWriter.writeEndElement(); + } + if (localSourceProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceProcess", xmlWriter); + + if (localSourceProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceProcess); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MemoryLimit", xmlWriter); + + if (localMemoryLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MemoryLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemoryLimit); + } + + xmlWriter.writeEndElement(); + } + if (localDeletePreviousTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DeletePrevious", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DeletePrevious cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDeletePrevious)); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendPreviousTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SuspendPrevious", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SuspendPrevious cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspendPrevious)); + } + + xmlWriter.writeEndElement(); + } + if (localNoActivateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoActivate", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoActivate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoActivate)); + } + + xmlWriter.writeEndElement(); + } + if (localNoReloadTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoReload", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); + } + + xmlWriter.writeEndElement(); + } + if (localDontCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DontCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DontCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDontCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localAllowForeignTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllowForeign", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllowForeign cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllowForeign)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateDfsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateDfs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateDfs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateDfs)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateSuperfilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateSuperfiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateSuperfiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localUpdateSuperfiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateCloneFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localDontAppendClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DontAppendCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DontAppendCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localDontAppendCluster)); + } + + xmlWriter.writeEndElement(); + } + if (localMsToWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MsToWait", xmlWriter); + + if (localMsToWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MsToWait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMsToWait)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeLimit", xmlWriter); + + if (localTimeLimit == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); + + if (localWarnTimeLimit == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuOverwriteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuQueue", xmlWriter); + + if (localDfuQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuQueue); + } + + xmlWriter.writeEndElement(); + } + if (localOnlyCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localStopIfFilesCopiedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localStopIfFilesCopied)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteStorageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteStorage", xmlWriter); + + if (localRemoteStorage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteStorage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteStorage); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUEclDefinitionAction parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUEclDefinitionAction object = new WUEclDefinitionAction(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUEclDefinitionAction".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUEclDefinitionAction) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EclDefinitions") + .equals(reader.getName())) { + + object.setEclDefinitions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionType") + .equals(reader.getName())) { + + object.setActionType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EclDefinitionActions + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteDali") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteDali" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteDali( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceProcess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemoryLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DeletePrevious") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DeletePrevious" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDeletePrevious( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SuspendPrevious") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SuspendPrevious" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspendPrevious( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoActivate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoActivate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoActivate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoReload" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoReload( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DontCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DontCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDontCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllowForeign") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllowForeign" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllowForeign( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "UpdateDfs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateDfs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateDfs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateSuperfiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateSuperfiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateSuperfiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateCloneFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateCloneFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DontAppendCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DontAppendCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDontAppendCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MsToWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MsToWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMsToWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarnTimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuOverwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OnlyCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOnlyCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StopIfFilesCopied" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStopIfFilesCopied( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteStorage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteStorage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteStorage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionActionResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionActionResponse.java index bc88e9708..0e0e1b0a0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionActionResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionActionResponse.java @@ -1,580 +1,580 @@ -/** - * WUEclDefinitionActionResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUEclDefinitionActionResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUEclDefinitionActionResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionActionResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ActionResults */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .ArrayOfWUEclDefinitionActionResult - localActionResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionResultsTracker = false; - - public boolean isActionResultsSpecified() { - return localActionResultsTracker; - } - - /** - * Auto generated getter method - * - * @return - * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclDefinitionActionResult - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclDefinitionActionResult - getActionResults() { - return localActionResults; - } - - /** - * Auto generated setter method - * - * @param param ActionResults - */ - public void setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclDefinitionActionResult - param) { - localActionResultsTracker = param != null; - - this.localActionResults = param; - } - - /** field for DfuPublisherWuid */ - protected java.lang.String localDfuPublisherWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherWuidTracker = false; - - public boolean isDfuPublisherWuidSpecified() { - return localDfuPublisherWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherWuid() { - return localDfuPublisherWuid; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherWuid - */ - public void setDfuPublisherWuid(java.lang.String param) { - localDfuPublisherWuidTracker = param != null; - - this.localDfuPublisherWuid = param; - } - - /** field for DfuPublisherState */ - protected java.lang.String localDfuPublisherState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherStateTracker = false; - - public boolean isDfuPublisherStateSpecified() { - return localDfuPublisherStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherState() { - return localDfuPublisherState; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherState - */ - public void setDfuPublisherState(java.lang.String param) { - localDfuPublisherStateTracker = param != null; - - this.localDfuPublisherState = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUEclDefinitionActionResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUEclDefinitionActionResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localActionResultsTracker) { - if (localActionResults == null) { - throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); - } - localActionResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), - xmlWriter); - } - if (localDfuPublisherWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); - - if (localDfuPublisherWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDfuPublisherStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); - - if (localDfuPublisherState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherState); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUEclDefinitionActionResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUEclDefinitionActionResponse object = new WUEclDefinitionActionResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUEclDefinitionActionResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUEclDefinitionActionResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") - .equals(reader.getName())) { - - object.setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .ArrayOfWUEclDefinitionActionResult.Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherState" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUEclDefinitionActionResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUEclDefinitionActionResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUEclDefinitionActionResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionActionResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ActionResults */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .ArrayOfWUEclDefinitionActionResult + localActionResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionResultsTracker = false; + + public boolean isActionResultsSpecified() { + return localActionResultsTracker; + } + + /** + * Auto generated getter method + * + * @return + * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclDefinitionActionResult + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclDefinitionActionResult + getActionResults() { + return localActionResults; + } + + /** + * Auto generated setter method + * + * @param param ActionResults + */ + public void setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclDefinitionActionResult + param) { + localActionResultsTracker = param != null; + + this.localActionResults = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for DfuPublisherState */ + protected java.lang.String localDfuPublisherState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherStateTracker = false; + + public boolean isDfuPublisherStateSpecified() { + return localDfuPublisherStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherState() { + return localDfuPublisherState; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherState + */ + public void setDfuPublisherState(java.lang.String param) { + localDfuPublisherStateTracker = param != null; + + this.localDfuPublisherState = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUEclDefinitionActionResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUEclDefinitionActionResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localActionResultsTracker) { + if (localActionResults == null) { + throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); + } + localActionResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), + xmlWriter); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); + + if (localDfuPublisherState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherState); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUEclDefinitionActionResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUEclDefinitionActionResponse object = new WUEclDefinitionActionResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUEclDefinitionActionResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUEclDefinitionActionResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") + .equals(reader.getName())) { + + object.setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .ArrayOfWUEclDefinitionActionResult.Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherState" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionActionResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionActionResult.java index d8a831a4a..84a343678 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionActionResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclDefinitionActionResult.java @@ -1,672 +1,672 @@ -/** - * WUEclDefinitionActionResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUEclDefinitionActionResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUEclDefinitionActionResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUEclDefinitionActionResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for EclDefinition */ - protected java.lang.String localEclDefinition; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEclDefinitionTracker = false; - - public boolean isEclDefinitionSpecified() { - return localEclDefinitionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEclDefinition() { - return localEclDefinition; - } - - /** - * Auto generated setter method - * - * @param param EclDefinition - */ - public void setEclDefinition(java.lang.String param) { - localEclDefinitionTracker = param != null; - - this.localEclDefinition = param; - } - - /** field for Action */ - protected java.lang.String localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction(java.lang.String param) { - localActionTracker = param != null; - - this.localAction = param; - } - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for QueryID */ - protected java.lang.String localQueryID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIDTracker = false; - - public boolean isQueryIDSpecified() { - return localQueryIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryID() { - return localQueryID; - } - - /** - * Auto generated setter method - * - * @param param QueryID - */ - public void setQueryID(java.lang.String param) { - localQueryIDTracker = param != null; - - this.localQueryID = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUEclDefinitionActionResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUEclDefinitionActionResult", - xmlWriter); - } - } - if (localEclDefinitionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EclDefinition", xmlWriter); - - if (localEclDefinition == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EclDefinition cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEclDefinition); - } - - xmlWriter.writeEndElement(); - } - if (localActionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Action", xmlWriter); - - if (localAction == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAction); - } - - xmlWriter.writeEndElement(); - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryID", xmlWriter); - - if (localQueryID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryID); - } - - xmlWriter.writeEndElement(); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUEclDefinitionActionResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUEclDefinitionActionResult object = new WUEclDefinitionActionResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUEclDefinitionActionResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUEclDefinitionActionResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EclDefinition") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EclDefinition" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEclDefinition( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Action" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUEclDefinitionActionResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUEclDefinitionActionResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUEclDefinitionActionResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUEclDefinitionActionResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for EclDefinition */ + protected java.lang.String localEclDefinition; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEclDefinitionTracker = false; + + public boolean isEclDefinitionSpecified() { + return localEclDefinitionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEclDefinition() { + return localEclDefinition; + } + + /** + * Auto generated setter method + * + * @param param EclDefinition + */ + public void setEclDefinition(java.lang.String param) { + localEclDefinitionTracker = param != null; + + this.localEclDefinition = param; + } + + /** field for Action */ + protected java.lang.String localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction(java.lang.String param) { + localActionTracker = param != null; + + this.localAction = param; + } + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for QueryID */ + protected java.lang.String localQueryID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIDTracker = false; + + public boolean isQueryIDSpecified() { + return localQueryIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryID() { + return localQueryID; + } + + /** + * Auto generated setter method + * + * @param param QueryID + */ + public void setQueryID(java.lang.String param) { + localQueryIDTracker = param != null; + + this.localQueryID = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUEclDefinitionActionResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUEclDefinitionActionResult", + xmlWriter); + } + } + if (localEclDefinitionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EclDefinition", xmlWriter); + + if (localEclDefinition == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EclDefinition cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEclDefinition); + } + + xmlWriter.writeEndElement(); + } + if (localActionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Action", xmlWriter); + + if (localAction == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAction); + } + + xmlWriter.writeEndElement(); + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryID", xmlWriter); + + if (localQueryID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryID); + } + + xmlWriter.writeEndElement(); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUEclDefinitionActionResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUEclDefinitionActionResult object = new WUEclDefinitionActionResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUEclDefinitionActionResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUEclDefinitionActionResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EclDefinition") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EclDefinition" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEclDefinition( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Action" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclPluginsInFolder.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclPluginsInFolder.java index f2c96de91..e69164974 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclPluginsInFolder.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUEclPluginsInFolder.java @@ -1,452 +1,452 @@ -/** - * WUEclPluginsInFolder.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUEclPluginsInFolder bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUEclPluginsInFolder implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUEclPluginsInFolder - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** field for Plugins */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0 localPlugins; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPluginsTracker = false; - - public boolean isPluginsSpecified() { - return localPluginsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0 getPlugins() { - return localPlugins; - } - - /** - * Auto generated setter method - * - * @param param Plugins - */ - public void setPlugins( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0 param) { - localPluginsTracker = param != null; - - this.localPlugins = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUEclPluginsInFolder", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUEclPluginsInFolder", - xmlWriter); - } - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - if (localPluginsTracker) { - if (localPlugins == null) { - throw new org.apache.axis2.databinding.ADBException("Plugins cannot be null!!"); - } - localPlugins.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugins"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUEclPluginsInFolder parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUEclPluginsInFolder object = new WUEclPluginsInFolder(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUEclPluginsInFolder".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUEclPluginsInFolder) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugins") - .equals(reader.getName())) { - - object.setPlugins( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUEclPluginsInFolder.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUEclPluginsInFolder bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUEclPluginsInFolder implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUEclPluginsInFolder + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** field for Plugins */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0 localPlugins; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPluginsTracker = false; + + public boolean isPluginsSpecified() { + return localPluginsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0 getPlugins() { + return localPlugins; + } + + /** + * Auto generated setter method + * + * @param param Plugins + */ + public void setPlugins( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0 param) { + localPluginsTracker = param != null; + + this.localPlugins = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUEclPluginsInFolder", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUEclPluginsInFolder", + xmlWriter); + } + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + if (localPluginsTracker) { + if (localPlugins == null) { + throw new org.apache.axis2.databinding.ADBException("Plugins cannot be null!!"); + } + localPlugins.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugins"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUEclPluginsInFolder parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUEclPluginsInFolder object = new WUEclPluginsInFolder(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUEclPluginsInFolder".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUEclPluginsInFolder) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugins") + .equals(reader.getName())) { + + object.setPlugins( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Plugins_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExceptionSeverity.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExceptionSeverity.java index a6f30b34c..a4c061f59 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExceptionSeverity.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExceptionSeverity.java @@ -1,420 +1,420 @@ -/** - * WUExceptionSeverity.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUExceptionSeverity bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUExceptionSeverity implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUExceptionSeverity", "ns1"); - - /** field for WUExceptionSeverity */ - protected java.lang.String localWUExceptionSeverity; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected WUExceptionSeverity(java.lang.String value, boolean isRegisterValue) { - localWUExceptionSeverity = value; - if (isRegisterValue) { - - _table_.put(localWUExceptionSeverity, this); - } - } - - public static final java.lang.String _info = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("info"); - - public static final java.lang.String _warning = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("warning"); - - public static final java.lang.String _error = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("error"); - - public static final java.lang.String _alert = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("alert"); - - public static final WUExceptionSeverity info = new WUExceptionSeverity(_info, true); - - public static final WUExceptionSeverity warning = new WUExceptionSeverity(_warning, true); - - public static final WUExceptionSeverity error = new WUExceptionSeverity(_error, true); - - public static final WUExceptionSeverity alert = new WUExceptionSeverity(_alert, true); - - public java.lang.String getValue() { - return localWUExceptionSeverity; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localWUExceptionSeverity.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUExceptionSeverity", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUExceptionSeverity", - xmlWriter); - } - } - - if (localWUExceptionSeverity == null) { - - throw new org.apache.axis2.databinding.ADBException("WUExceptionSeverity cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localWUExceptionSeverity); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static WUExceptionSeverity fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - WUExceptionSeverity enumeration = (WUExceptionSeverity) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static WUExceptionSeverity fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static WUExceptionSeverity fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return WUExceptionSeverity.Factory.fromString(content, namespaceUri); - } else { - return WUExceptionSeverity.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUExceptionSeverity parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUExceptionSeverity object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUExceptionSeverity" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = WUExceptionSeverity.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = WUExceptionSeverity.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUExceptionSeverity.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUExceptionSeverity bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUExceptionSeverity implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUExceptionSeverity", "ns1"); + + /** field for WUExceptionSeverity */ + protected java.lang.String localWUExceptionSeverity; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected WUExceptionSeverity(java.lang.String value, boolean isRegisterValue) { + localWUExceptionSeverity = value; + if (isRegisterValue) { + + _table_.put(localWUExceptionSeverity, this); + } + } + + public static final java.lang.String _info = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("info"); + + public static final java.lang.String _warning = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("warning"); + + public static final java.lang.String _error = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("error"); + + public static final java.lang.String _alert = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("alert"); + + public static final WUExceptionSeverity info = new WUExceptionSeverity(_info, true); + + public static final WUExceptionSeverity warning = new WUExceptionSeverity(_warning, true); + + public static final WUExceptionSeverity error = new WUExceptionSeverity(_error, true); + + public static final WUExceptionSeverity alert = new WUExceptionSeverity(_alert, true); + + public java.lang.String getValue() { + return localWUExceptionSeverity; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localWUExceptionSeverity.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUExceptionSeverity", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUExceptionSeverity", + xmlWriter); + } + } + + if (localWUExceptionSeverity == null) { + + throw new org.apache.axis2.databinding.ADBException("WUExceptionSeverity cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localWUExceptionSeverity); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static WUExceptionSeverity fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + WUExceptionSeverity enumeration = (WUExceptionSeverity) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static WUExceptionSeverity fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static WUExceptionSeverity fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return WUExceptionSeverity.Factory.fromString(content, namespaceUri); + } else { + return WUExceptionSeverity.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUExceptionSeverity parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUExceptionSeverity object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUExceptionSeverity" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = WUExceptionSeverity.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = WUExceptionSeverity.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExport.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExport.java index 093be5249..7ca483f60 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExport.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExport.java @@ -1,733 +1,733 @@ -/** - * WUExport.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUExport bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUExport implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUExport", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUExport", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUExport", xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUExport parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUExport object = new WUExport(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUExport".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUExport) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUExport.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUExport bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUExport implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUExport", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUExport", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUExport", xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUExport parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUExport object = new WUExport(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUExport".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUExport) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExportResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExportResponse.java index a9f972c4b..7ec1c6aa4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExportResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExportResponse.java @@ -1,445 +1,445 @@ -/** - * WUExportResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUExportResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUExportResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUExportResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ExportData */ - protected javax.activation.DataHandler localExportData; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExportDataTracker = false; - - public boolean isExportDataSpecified() { - return localExportDataTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getExportData() { - return localExportData; - } - - /** - * Auto generated setter method - * - * @param param ExportData - */ - public void setExportData(javax.activation.DataHandler param) { - localExportDataTracker = param != null; - - this.localExportData = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUExportResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUExportResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localExportDataTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ExportData", xmlWriter); - - if (localExportData != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localExportData, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for ExportData", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUExportResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUExportResponse object = new WUExportResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUExportResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUExportResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExportData") - .equals(reader.getName())) { - - object.setExportData( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUExportResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUExportResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUExportResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUExportResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ExportData */ + protected javax.activation.DataHandler localExportData; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExportDataTracker = false; + + public boolean isExportDataSpecified() { + return localExportDataTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getExportData() { + return localExportData; + } + + /** + * Auto generated setter method + * + * @param param ExportData + */ + public void setExportData(javax.activation.DataHandler param) { + localExportDataTracker = param != null; + + this.localExportData = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUExportResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUExportResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localExportDataTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ExportData", xmlWriter); + + if (localExportData != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localExportData, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for ExportData", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUExportResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUExportResponse object = new WUExportResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUExportResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUExportResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExportData") + .equals(reader.getName())) { + + object.setExportData( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExtraProperties.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExtraProperties.java index 7e63a263e..389535f2a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExtraProperties.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUExtraProperties.java @@ -1,452 +1,452 @@ -/** - * WUExtraProperties.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUExtraProperties bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUExtraProperties implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUExtraProperties - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ScopeType */ - protected java.lang.String localScopeType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypeTracker = false; - - public boolean isScopeTypeSpecified() { - return localScopeTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScopeType() { - return localScopeType; - } - - /** - * Auto generated setter method - * - * @param param ScopeType - */ - public void setScopeType(java.lang.String param) { - localScopeTypeTracker = param != null; - - this.localScopeType = param; - } - - /** field for Properties */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1 localProperties; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertiesTracker = false; - - public boolean isPropertiesSpecified() { - return localPropertiesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1 getProperties() { - return localProperties; - } - - /** - * Auto generated setter method - * - * @param param Properties - */ - public void setProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1 param) { - localPropertiesTracker = param != null; - - this.localProperties = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUExtraProperties", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUExtraProperties", - xmlWriter); - } - } - if (localScopeTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "scopeType", xmlWriter); - - if (localScopeType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("scopeType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScopeType); - } - - xmlWriter.writeEndElement(); - } - if (localPropertiesTracker) { - if (localProperties == null) { - throw new org.apache.axis2.databinding.ADBException("Properties cannot be null!!"); - } - localProperties.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUExtraProperties parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUExtraProperties object = new WUExtraProperties(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUExtraProperties".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUExtraProperties) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "scopeType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "scopeType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScopeType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties") - .equals(reader.getName())) { - - object.setProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUExtraProperties.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUExtraProperties bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUExtraProperties implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUExtraProperties + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ScopeType */ + protected java.lang.String localScopeType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypeTracker = false; + + public boolean isScopeTypeSpecified() { + return localScopeTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScopeType() { + return localScopeType; + } + + /** + * Auto generated setter method + * + * @param param ScopeType + */ + public void setScopeType(java.lang.String param) { + localScopeTypeTracker = param != null; + + this.localScopeType = param; + } + + /** field for Properties */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1 localProperties; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertiesTracker = false; + + public boolean isPropertiesSpecified() { + return localPropertiesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1 getProperties() { + return localProperties; + } + + /** + * Auto generated setter method + * + * @param param Properties + */ + public void setProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1 param) { + localPropertiesTracker = param != null; + + this.localProperties = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUExtraProperties", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUExtraProperties", + xmlWriter); + } + } + if (localScopeTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "scopeType", xmlWriter); + + if (localScopeType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("scopeType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScopeType); + } + + xmlWriter.writeEndElement(); + } + if (localPropertiesTracker) { + if (localProperties == null) { + throw new org.apache.axis2.databinding.ADBException("Properties cannot be null!!"); + } + localProperties.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUExtraProperties parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUExtraProperties object = new WUExtraProperties(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUExtraProperties".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUExtraProperties) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "scopeType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "scopeType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScopeType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties") + .equals(reader.getName())) { + + object.setProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFile.java index c2dab8980..459efa568 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFile.java @@ -1,1706 +1,1707 @@ -/** - * WUFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUFile implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUFile", "ns1"); - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Option */ - protected int localOption; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOptionTracker = false; - - public boolean isOptionSpecified() { - return localOptionTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getOption() { - return localOption; - } - - /** - * Auto generated setter method - * - * @param param Option - */ - public void setOption(int param) { - - // setting primitive attribute tracker to true - localOptionTracker = param != java.lang.Integer.MIN_VALUE; - - this.localOption = param; - } - - /** field for SlaveIP */ - protected java.lang.String localSlaveIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSlaveIPTracker = false; - - public boolean isSlaveIPSpecified() { - return localSlaveIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSlaveIP() { - return localSlaveIP; - } - - /** - * Auto generated setter method - * - * @param param SlaveIP - */ - public void setSlaveIP(java.lang.String param) { - localSlaveIPTracker = param != null; - - this.localSlaveIP = param; - } - - /** field for IPAddress */ - protected java.lang.String localIPAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIPAddressTracker = false; - - public boolean isIPAddressSpecified() { - return localIPAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getIPAddress() { - return localIPAddress; - } - - /** - * Auto generated setter method - * - * @param param IPAddress - */ - public void setIPAddress(java.lang.String param) { - localIPAddressTracker = param != null; - - this.localIPAddress = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for Query */ - protected java.lang.String localQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryTracker = false; - - public boolean isQuerySpecified() { - return localQueryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuery() { - return localQuery; - } - - /** - * Auto generated setter method - * - * @param param Query - */ - public void setQuery(java.lang.String param) { - localQueryTracker = param != null; - - this.localQuery = param; - } - - /** field for Process */ - protected java.lang.String localProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessTracker = false; - - public boolean isProcessSpecified() { - return localProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProcess() { - return localProcess; - } - - /** - * Auto generated setter method - * - * @param param Process - */ - public void setProcess(java.lang.String param) { - localProcessTracker = param != null; - - this.localProcess = param; - } - - /** field for ClusterGroup */ - protected java.lang.String localClusterGroup; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterGroupTracker = false; - - public boolean isClusterGroupSpecified() { - return localClusterGroupTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterGroup() { - return localClusterGroup; - } - - /** - * Auto generated setter method - * - * @param param ClusterGroup - */ - public void setClusterGroup(java.lang.String param) { - localClusterGroupTracker = param != null; - - this.localClusterGroup = param; - } - - /** field for LogDate */ - protected java.lang.String localLogDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogDateTracker = false; - - public boolean isLogDateSpecified() { - return localLogDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogDate() { - return localLogDate; - } - - /** - * Auto generated setter method - * - * @param param LogDate - */ - public void setLogDate(java.lang.String param) { - localLogDateTracker = param != null; - - this.localLogDate = param; - } - - /** field for SlaveNumber */ - protected int localSlaveNumber = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSlaveNumberTracker = false; - - public boolean isSlaveNumberSpecified() { - return localSlaveNumberTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSlaveNumber() { - return localSlaveNumber; - } - - /** - * Auto generated setter method - * - * @param param SlaveNumber - */ - public void setSlaveNumber(int param) { - - // setting primitive attribute tracker to true - localSlaveNumberTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSlaveNumber = param; - } - - /** field for SizeLimit */ - protected long localSizeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSizeLimitTracker = false; - - public boolean isSizeLimitSpecified() { - return localSizeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getSizeLimit() { - return localSizeLimit; - } - - /** - * Auto generated setter method - * - * @param param SizeLimit - */ - public void setSizeLimit(long param) { - - // setting primitive attribute tracker to true - localSizeLimitTracker = param != java.lang.Long.MIN_VALUE; - - this.localSizeLimit = param; - } - - /** field for ErrorMessageFormat */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat - localErrorMessageFormat; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorMessageFormatTracker = false; - - public boolean isErrorMessageFormatSpecified() { - return localErrorMessageFormatTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat - getErrorMessageFormat() { - return localErrorMessageFormat; - } - - /** - * Auto generated setter method - * - * @param param ErrorMessageFormat - */ - public void setErrorMessageFormat( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat param) { - localErrorMessageFormatTracker = param != null; - - this.localErrorMessageFormat = param; - } - - /** field for PlainText */ - protected java.lang.String localPlainText; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPlainTextTracker = false; - - public boolean isPlainTextSpecified() { - return localPlainTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPlainText() { - return localPlainText; - } - - /** - * Auto generated setter method - * - * @param param PlainText - */ - public void setPlainText(java.lang.String param) { - localPlainTextTracker = param != null; - - this.localPlainText = param; - } - - /** field for MaxLogRecords */ - protected org.apache.axis2.databinding.types.UnsignedInt localMaxLogRecords; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxLogRecordsTracker = false; - - public boolean isMaxLogRecordsSpecified() { - return localMaxLogRecordsTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getMaxLogRecords() { - return localMaxLogRecords; - } - - /** - * Auto generated setter method - * - * @param param MaxLogRecords - */ - public void setMaxLogRecords(org.apache.axis2.databinding.types.UnsignedInt param) { - localMaxLogRecordsTracker = param != null; - - this.localMaxLogRecords = param; - } - - /** field for LogSelectColumnMode */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode - localLogSelectColumnMode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogSelectColumnModeTracker = false; - - public boolean isLogSelectColumnModeSpecified() { - return localLogSelectColumnModeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode - getLogSelectColumnMode() { - return localLogSelectColumnMode; - } - - /** - * Auto generated setter method - * - * @param param LogSelectColumnMode - */ - public void setLogSelectColumnMode( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode param) { - localLogSelectColumnModeTracker = param != null; - - this.localLogSelectColumnMode = param; - } - - /** field for LogFormat */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat - localLogFormat; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogFormatTracker = false; - - public boolean isLogFormatSpecified() { - return localLogFormatTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat getLogFormat() { - return localLogFormat; - } - - /** - * Auto generated setter method - * - * @param param LogFormat - */ - public void setLogFormat( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat param) { - localLogFormatTracker = param != null; - - this.localLogFormat = param; - } - - /** field for LogSearchTimeBuffSecs */ - protected org.apache.axis2.databinding.types.UnsignedInt localLogSearchTimeBuffSecs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogSearchTimeBuffSecsTracker = false; - - public boolean isLogSearchTimeBuffSecsSpecified() { - return localLogSearchTimeBuffSecsTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getLogSearchTimeBuffSecs() { - return localLogSearchTimeBuffSecs; - } - - /** - * Auto generated setter method - * - * @param param LogSearchTimeBuffSecs - */ - public void setLogSearchTimeBuffSecs(org.apache.axis2.databinding.types.UnsignedInt param) { - localLogSearchTimeBuffSecsTracker = param != null; - - this.localLogSearchTimeBuffSecs = param; - } - - /** field for LogColumns */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localLogColumns; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogColumnsTracker = false; - - public boolean isLogColumnsSpecified() { - return localLogColumnsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getLogColumns() { - return localLogColumns; - } - - /** - * Auto generated setter method - * - * @param param LogColumns - */ - public void setLogColumns( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localLogColumnsTracker = param != null; - - this.localLogColumns = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUFile", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUFile", xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localOptionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Option", xmlWriter); - - if (localOption == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Option cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOption)); - } - - xmlWriter.writeEndElement(); - } - if (localSlaveIPTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SlaveIP", xmlWriter); - - if (localSlaveIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SlaveIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSlaveIP); - } - - xmlWriter.writeEndElement(); - } - if (localIPAddressTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IPAddress", xmlWriter); - - if (localIPAddress == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("IPAddress cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localIPAddress); - } - - xmlWriter.writeEndElement(); - } - if (localDescriptionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localQueryTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Query", xmlWriter); - - if (localQuery == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuery); - } - - xmlWriter.writeEndElement(); - } - if (localProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Process", xmlWriter); - - if (localProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProcess); - } - - xmlWriter.writeEndElement(); - } - if (localClusterGroupTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterGroup", xmlWriter); - - if (localClusterGroup == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterGroup cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterGroup); - } - - xmlWriter.writeEndElement(); - } - if (localLogDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogDate", xmlWriter); - - if (localLogDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogDate); - } - - xmlWriter.writeEndElement(); - } - if (localSlaveNumberTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SlaveNumber", xmlWriter); - - if (localSlaveNumber == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SlaveNumber cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSlaveNumber)); - } - - xmlWriter.writeEndElement(); - } - if (localSizeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SizeLimit", xmlWriter); - - if (localSizeLimit == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SizeLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSizeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localErrorMessageFormatTracker) { - if (localErrorMessageFormat == null) { - throw new org.apache.axis2.databinding.ADBException("ErrorMessageFormat cannot be null!!"); - } - localErrorMessageFormat.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorMessageFormat"), - xmlWriter); - } - if (localPlainTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PlainText", xmlWriter); - - if (localPlainText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PlainText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPlainText); - } - - xmlWriter.writeEndElement(); - } - if (localMaxLogRecordsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxLogRecords", xmlWriter); - - if (localMaxLogRecords == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MaxLogRecords cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxLogRecords)); - } - - xmlWriter.writeEndElement(); - } - if (localLogSelectColumnModeTracker) { - if (localLogSelectColumnMode == null) { - throw new org.apache.axis2.databinding.ADBException("LogSelectColumnMode cannot be null!!"); - } - localLogSelectColumnMode.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogSelectColumnMode"), - xmlWriter); - } - if (localLogFormatTracker) { - if (localLogFormat == null) { - throw new org.apache.axis2.databinding.ADBException("LogFormat cannot be null!!"); - } - localLogFormat.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogFormat"), xmlWriter); - } - if (localLogSearchTimeBuffSecsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogSearchTimeBuffSecs", xmlWriter); - - if (localLogSearchTimeBuffSecs == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "LogSearchTimeBuffSecs cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localLogSearchTimeBuffSecs)); - } - - xmlWriter.writeEndElement(); - } - if (localLogColumnsTracker) { - if (localLogColumns == null) { - throw new org.apache.axis2.databinding.ADBException("LogColumns cannot be null!!"); - } - localLogColumns.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogColumns"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUFile parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - WUFile object = new WUFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Option") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Option" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOption( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SlaveIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SlaveIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSlaveIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IPAddress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IPAddress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIPAddress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Query" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuery( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Process") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Process" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterGroup") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterGroup" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterGroup( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SlaveNumber") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SlaveNumber" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSlaveNumber( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SizeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SizeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSizeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ErrorMessageFormat") - .equals(reader.getName())) { - - object.setErrorMessageFormat( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PlainText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PlainText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPlainText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxLogRecords") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxLogRecords" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxLogRecords( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "LogSelectColumnMode") - .equals(reader.getName())) { - - object.setLogSelectColumnMode( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogFormat") - .equals(reader.getName())) { - - object.setLogFormat( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "LogSearchTimeBuffSecs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogSearchTimeBuffSecs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogSearchTimeBuffSecs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogColumns") - .equals(reader.getName())) { - - object.setLogColumns( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUFile implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUFile", "ns1"); + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Option */ + protected int localOption; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOptionTracker = false; + + public boolean isOptionSpecified() { + return localOptionTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getOption() { + return localOption; + } + + /** + * Auto generated setter method + * + * @param param Option + */ + public void setOption(int param) { + + // setting primitive attribute tracker to true + localOptionTracker = param != java.lang.Integer.MIN_VALUE; + + this.localOption = param; + } + + /** field for SlaveIP */ + protected java.lang.String localSlaveIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSlaveIPTracker = false; + + public boolean isSlaveIPSpecified() { + return localSlaveIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSlaveIP() { + return localSlaveIP; + } + + /** + * Auto generated setter method + * + * @param param SlaveIP + */ + public void setSlaveIP(java.lang.String param) { + localSlaveIPTracker = param != null; + + this.localSlaveIP = param; + } + + /** field for IPAddress */ + protected java.lang.String localIPAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIPAddressTracker = false; + + public boolean isIPAddressSpecified() { + return localIPAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getIPAddress() { + return localIPAddress; + } + + /** + * Auto generated setter method + * + * @param param IPAddress + */ + public void setIPAddress(java.lang.String param) { + localIPAddressTracker = param != null; + + this.localIPAddress = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for Query */ + protected java.lang.String localQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryTracker = false; + + public boolean isQuerySpecified() { + return localQueryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuery() { + return localQuery; + } + + /** + * Auto generated setter method + * + * @param param Query + */ + public void setQuery(java.lang.String param) { + localQueryTracker = param != null; + + this.localQuery = param; + } + + /** field for Process */ + protected java.lang.String localProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessTracker = false; + + public boolean isProcessSpecified() { + return localProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProcess() { + return localProcess; + } + + /** + * Auto generated setter method + * + * @param param Process + */ + public void setProcess(java.lang.String param) { + localProcessTracker = param != null; + + this.localProcess = param; + } + + /** field for ClusterGroup */ + protected java.lang.String localClusterGroup; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterGroupTracker = false; + + public boolean isClusterGroupSpecified() { + return localClusterGroupTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterGroup() { + return localClusterGroup; + } + + /** + * Auto generated setter method + * + * @param param ClusterGroup + */ + public void setClusterGroup(java.lang.String param) { + localClusterGroupTracker = param != null; + + this.localClusterGroup = param; + } + + /** field for LogDate */ + protected java.lang.String localLogDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogDateTracker = false; + + public boolean isLogDateSpecified() { + return localLogDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogDate() { + return localLogDate; + } + + /** + * Auto generated setter method + * + * @param param LogDate + */ + public void setLogDate(java.lang.String param) { + localLogDateTracker = param != null; + + this.localLogDate = param; + } + + /** field for SlaveNumber */ + protected int localSlaveNumber = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSlaveNumberTracker = false; + + public boolean isSlaveNumberSpecified() { + return localSlaveNumberTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSlaveNumber() { + return localSlaveNumber; + } + + /** + * Auto generated setter method + * + * @param param SlaveNumber + */ + public void setSlaveNumber(int param) { + + // setting primitive attribute tracker to true + localSlaveNumberTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSlaveNumber = param; + } + + /** field for SizeLimit */ + protected long localSizeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSizeLimitTracker = false; + + public boolean isSizeLimitSpecified() { + return localSizeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getSizeLimit() { + return localSizeLimit; + } + + /** + * Auto generated setter method + * + * @param param SizeLimit + */ + public void setSizeLimit(long param) { + + // setting primitive attribute tracker to true + localSizeLimitTracker = param != java.lang.Long.MIN_VALUE; + + this.localSizeLimit = param; + } + + /** field for ErrorMessageFormat */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat + localErrorMessageFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorMessageFormatTracker = false; + + public boolean isErrorMessageFormatSpecified() { + return localErrorMessageFormatTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat + getErrorMessageFormat() { + return localErrorMessageFormat; + } + + /** + * Auto generated setter method + * + * @param param ErrorMessageFormat + */ + public void setErrorMessageFormat( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat param) { + localErrorMessageFormatTracker = param != null; + + this.localErrorMessageFormat = param; + } + + /** field for PlainText */ + protected java.lang.String localPlainText; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPlainTextTracker = false; + + public boolean isPlainTextSpecified() { + return localPlainTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPlainText() { + return localPlainText; + } + + /** + * Auto generated setter method + * + * @param param PlainText + */ + public void setPlainText(java.lang.String param) { + localPlainTextTracker = param != null; + + this.localPlainText = param; + } + + /** field for MaxLogRecords */ + protected org.apache.axis2.databinding.types.UnsignedInt localMaxLogRecords; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxLogRecordsTracker = false; + + public boolean isMaxLogRecordsSpecified() { + return localMaxLogRecordsTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getMaxLogRecords() { + return localMaxLogRecords; + } + + /** + * Auto generated setter method + * + * @param param MaxLogRecords + */ + public void setMaxLogRecords(org.apache.axis2.databinding.types.UnsignedInt param) { + localMaxLogRecordsTracker = param != null; + + this.localMaxLogRecords = param; + } + + /** field for LogSelectColumnMode */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode + localLogSelectColumnMode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogSelectColumnModeTracker = false; + + public boolean isLogSelectColumnModeSpecified() { + return localLogSelectColumnModeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode + getLogSelectColumnMode() { + return localLogSelectColumnMode; + } + + /** + * Auto generated setter method + * + * @param param LogSelectColumnMode + */ + public void setLogSelectColumnMode( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode param) { + localLogSelectColumnModeTracker = param != null; + + this.localLogSelectColumnMode = param; + } + + /** field for LogFormat */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat + localLogFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogFormatTracker = false; + + public boolean isLogFormatSpecified() { + return localLogFormatTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat getLogFormat() { + return localLogFormat; + } + + /** + * Auto generated setter method + * + * @param param LogFormat + */ + public void setLogFormat( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat param) { + localLogFormatTracker = param != null; + + this.localLogFormat = param; + } + + /** field for LogSearchTimeBuffSecs */ + protected org.apache.axis2.databinding.types.UnsignedInt localLogSearchTimeBuffSecs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogSearchTimeBuffSecsTracker = false; + + public boolean isLogSearchTimeBuffSecsSpecified() { + return localLogSearchTimeBuffSecsTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getLogSearchTimeBuffSecs() { + return localLogSearchTimeBuffSecs; + } + + /** + * Auto generated setter method + * + * @param param LogSearchTimeBuffSecs + */ + public void setLogSearchTimeBuffSecs(org.apache.axis2.databinding.types.UnsignedInt param) { + localLogSearchTimeBuffSecsTracker = param != null; + + this.localLogSearchTimeBuffSecs = param; + } + + /** field for LogColumns */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localLogColumns; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogColumnsTracker = false; + + public boolean isLogColumnsSpecified() { + return localLogColumnsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getLogColumns() { + return localLogColumns; + } + + /** + * Auto generated setter method + * + * @param param LogColumns + */ + public void setLogColumns( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localLogColumnsTracker = param != null; + + this.localLogColumns = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUFile", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUFile", xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localOptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Option", xmlWriter); + + if (localOption == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Option cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOption)); + } + + xmlWriter.writeEndElement(); + } + if (localSlaveIPTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SlaveIP", xmlWriter); + + if (localSlaveIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SlaveIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSlaveIP); + } + + xmlWriter.writeEndElement(); + } + if (localIPAddressTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IPAddress", xmlWriter); + + if (localIPAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("IPAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localIPAddress); + } + + xmlWriter.writeEndElement(); + } + if (localDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localQueryTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Query", xmlWriter); + + if (localQuery == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuery); + } + + xmlWriter.writeEndElement(); + } + if (localProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Process", xmlWriter); + + if (localProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProcess); + } + + xmlWriter.writeEndElement(); + } + if (localClusterGroupTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterGroup", xmlWriter); + + if (localClusterGroup == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterGroup cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterGroup); + } + + xmlWriter.writeEndElement(); + } + if (localLogDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogDate", xmlWriter); + + if (localLogDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogDate); + } + + xmlWriter.writeEndElement(); + } + if (localSlaveNumberTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SlaveNumber", xmlWriter); + + if (localSlaveNumber == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SlaveNumber cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSlaveNumber)); + } + + xmlWriter.writeEndElement(); + } + if (localSizeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SizeLimit", xmlWriter); + + if (localSizeLimit == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SizeLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSizeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localErrorMessageFormatTracker) { + if (localErrorMessageFormat == null) { + throw new org.apache.axis2.databinding.ADBException("ErrorMessageFormat cannot be null!!"); + } + localErrorMessageFormat.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorMessageFormat"), + xmlWriter); + } + if (localPlainTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PlainText", xmlWriter); + + if (localPlainText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PlainText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPlainText); + } + + xmlWriter.writeEndElement(); + } + if (localMaxLogRecordsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxLogRecords", xmlWriter); + + if (localMaxLogRecords == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MaxLogRecords cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxLogRecords)); + } + + xmlWriter.writeEndElement(); + } + if (localLogSelectColumnModeTracker) { + if (localLogSelectColumnMode == null) { + throw new org.apache.axis2.databinding.ADBException("LogSelectColumnMode cannot be null!!"); + } + localLogSelectColumnMode.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogSelectColumnMode"), + xmlWriter); + } + if (localLogFormatTracker) { + if (localLogFormat == null) { + throw new org.apache.axis2.databinding.ADBException("LogFormat cannot be null!!"); + } + localLogFormat.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogFormat"), xmlWriter); + } + if (localLogSearchTimeBuffSecsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogSearchTimeBuffSecs", xmlWriter); + + if (localLogSearchTimeBuffSecs == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "LogSearchTimeBuffSecs cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localLogSearchTimeBuffSecs)); + } + + xmlWriter.writeEndElement(); + } + if (localLogColumnsTracker) { + if (localLogColumns == null) { + throw new org.apache.axis2.databinding.ADBException("LogColumns cannot be null!!"); + } + localLogColumns.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogColumns"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUFile parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + WUFile object = new WUFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Option") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Option" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOption( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SlaveIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SlaveIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSlaveIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IPAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IPAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIPAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Query" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuery( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Process") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Process" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterGroup") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterGroup" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterGroup( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SlaveNumber") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SlaveNumber" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSlaveNumber( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SizeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SizeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSizeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ErrorMessageFormat") + .equals(reader.getName())) { + + object.setErrorMessageFormat( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ErrorMessageFormat.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PlainText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PlainText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPlainText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxLogRecords") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxLogRecords" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxLogRecords( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "LogSelectColumnMode") + .equals(reader.getName())) { + + object.setLogSelectColumnMode( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogSelectColumnMode.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogFormat") + .equals(reader.getName())) { + + object.setLogFormat( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.LogAccessLogFormat.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "LogSearchTimeBuffSecs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogSearchTimeBuffSecs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogSearchTimeBuffSecs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogColumns") + .equals(reader.getName())) { + + object.setLogColumns( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFullResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFullResult.java index c3d9c0157..cde3df70c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFullResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFullResult.java @@ -1,519 +1,519 @@ -/** - * WUFullResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUFullResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUFullResult implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUFullResult", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for NoRootTag */ - protected boolean localNoRootTag = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoRootTagTracker = false; - - public boolean isNoRootTagSpecified() { - return localNoRootTagTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoRootTag() { - return localNoRootTag; - } - - /** - * Auto generated setter method - * - * @param param NoRootTag - */ - public void setNoRootTag(boolean param) { - - // setting primitive attribute tracker to true - localNoRootTagTracker = true; - - this.localNoRootTag = param; - } - - /** field for ExceptionSeverity */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity - localExceptionSeverity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionSeverityTracker = false; - - public boolean isExceptionSeveritySpecified() { - return localExceptionSeverityTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity - getExceptionSeverity() { - return localExceptionSeverity; - } - - /** - * Auto generated setter method - * - * @param param ExceptionSeverity - */ - public void setExceptionSeverity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity param) { - localExceptionSeverityTracker = param != null; - - this.localExceptionSeverity = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUFullResult", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUFullResult", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localNoRootTagTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoRootTag", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoRootTag cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoRootTag)); - } - - xmlWriter.writeEndElement(); - } - if (localExceptionSeverityTracker) { - if (localExceptionSeverity == null) { - throw new org.apache.axis2.databinding.ADBException("ExceptionSeverity cannot be null!!"); - } - localExceptionSeverity.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExceptionSeverity"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUFullResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUFullResult object = new WUFullResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUFullResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUFullResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoRootTag") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoRootTag" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoRootTag( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ExceptionSeverity") - .equals(reader.getName())) { - - object.setExceptionSeverity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUFullResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUFullResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUFullResult implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUFullResult", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for NoRootTag */ + protected boolean localNoRootTag = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoRootTagTracker = false; + + public boolean isNoRootTagSpecified() { + return localNoRootTagTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoRootTag() { + return localNoRootTag; + } + + /** + * Auto generated setter method + * + * @param param NoRootTag + */ + public void setNoRootTag(boolean param) { + + // setting primitive attribute tracker to true + localNoRootTagTracker = true; + + this.localNoRootTag = param; + } + + /** field for ExceptionSeverity */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity + localExceptionSeverity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionSeverityTracker = false; + + public boolean isExceptionSeveritySpecified() { + return localExceptionSeverityTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity + getExceptionSeverity() { + return localExceptionSeverity; + } + + /** + * Auto generated setter method + * + * @param param ExceptionSeverity + */ + public void setExceptionSeverity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity param) { + localExceptionSeverityTracker = param != null; + + this.localExceptionSeverity = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUFullResult", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUFullResult", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localNoRootTagTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoRootTag", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoRootTag cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoRootTag)); + } + + xmlWriter.writeEndElement(); + } + if (localExceptionSeverityTracker) { + if (localExceptionSeverity == null) { + throw new org.apache.axis2.databinding.ADBException("ExceptionSeverity cannot be null!!"); + } + localExceptionSeverity.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExceptionSeverity"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUFullResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUFullResult object = new WUFullResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUFullResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUFullResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoRootTag") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoRootTag" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoRootTag( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ExceptionSeverity") + .equals(reader.getName())) { + + object.setExceptionSeverity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFullResultResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFullResultResponse.java index b9f4c6024..516ca1155 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFullResultResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUFullResultResponse.java @@ -1,520 +1,520 @@ -/** - * WUFullResultResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUFullResultResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUFullResultResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUFullResultResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Results */ - protected java.lang.String localResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultsTracker = false; - - public boolean isResultsSpecified() { - return localResultsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResults() { - return localResults; - } - - /** - * Auto generated setter method - * - * @param param Results - */ - public void setResults(java.lang.String param) { - localResultsTracker = param != null; - - this.localResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUFullResultResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUFullResultResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localResultsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Results", xmlWriter); - - if (localResults == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResults); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUFullResultResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUFullResultResponse object = new WUFullResultResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUFullResultResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUFullResultResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Results" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResults( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUFullResultResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUFullResultResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUFullResultResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUFullResultResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Results */ + protected java.lang.String localResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultsTracker = false; + + public boolean isResultsSpecified() { + return localResultsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResults() { + return localResults; + } + + /** + * Auto generated setter method + * + * @param param Results + */ + public void setResults(java.lang.String param) { + localResultsTracker = param != null; + + this.localResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUFullResultResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUFullResultResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localResultsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Results", xmlWriter); + + if (localResults == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResults); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUFullResultResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUFullResultResponse object = new WUFullResultResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUFullResultResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUFullResultResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Results" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResults( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGVCGraphInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGVCGraphInfo.java index 3737eb0f0..d8c417578 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGVCGraphInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGVCGraphInfo.java @@ -1,671 +1,671 @@ -/** - * WUGVCGraphInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGVCGraphInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGVCGraphInfo implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGVCGraphInfo", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for GID */ - protected java.lang.String localGID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGIDTracker = false; - - public boolean isGIDSpecified() { - return localGIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGID() { - return localGID; - } - - /** - * Auto generated setter method - * - * @param param GID - */ - public void setGID(java.lang.String param) { - localGIDTracker = param != null; - - this.localGID = param; - } - - /** field for BatchWU */ - protected int localBatchWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBatchWUTracker = false; - - public boolean isBatchWUSpecified() { - return localBatchWUTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBatchWU() { - return localBatchWU; - } - - /** - * Auto generated setter method - * - * @param param BatchWU - */ - public void setBatchWU(int param) { - - // setting primitive attribute tracker to true - localBatchWUTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBatchWU = param; - } - - /** field for SubgraphId */ - protected int localSubgraphId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubgraphIdTracker = false; - - public boolean isSubgraphIdSpecified() { - return localSubgraphIdTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSubgraphId() { - return localSubgraphId; - } - - /** - * Auto generated setter method - * - * @param param SubgraphId - */ - public void setSubgraphId(int param) { - - // setting primitive attribute tracker to true - localSubgraphIdTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSubgraphId = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGVCGraphInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGVCGraphInfo", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localGIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GID", xmlWriter); - - if (localGID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGID); - } - - xmlWriter.writeEndElement(); - } - if (localBatchWUTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BatchWU", xmlWriter); - - if (localBatchWU == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BatchWU cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBatchWU)); - } - - xmlWriter.writeEndElement(); - } - if (localSubgraphIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubgraphId", xmlWriter); - - if (localSubgraphId == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("SubgraphId cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubgraphId)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGVCGraphInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGVCGraphInfo object = new WUGVCGraphInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGVCGraphInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGVCGraphInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BatchWU") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BatchWU" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBatchWU( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubgraphId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubgraphId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubgraphId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGVCGraphInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGVCGraphInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGVCGraphInfo implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGVCGraphInfo", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for GID */ + protected java.lang.String localGID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGIDTracker = false; + + public boolean isGIDSpecified() { + return localGIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGID() { + return localGID; + } + + /** + * Auto generated setter method + * + * @param param GID + */ + public void setGID(java.lang.String param) { + localGIDTracker = param != null; + + this.localGID = param; + } + + /** field for BatchWU */ + protected int localBatchWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBatchWUTracker = false; + + public boolean isBatchWUSpecified() { + return localBatchWUTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBatchWU() { + return localBatchWU; + } + + /** + * Auto generated setter method + * + * @param param BatchWU + */ + public void setBatchWU(int param) { + + // setting primitive attribute tracker to true + localBatchWUTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBatchWU = param; + } + + /** field for SubgraphId */ + protected int localSubgraphId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubgraphIdTracker = false; + + public boolean isSubgraphIdSpecified() { + return localSubgraphIdTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSubgraphId() { + return localSubgraphId; + } + + /** + * Auto generated setter method + * + * @param param SubgraphId + */ + public void setSubgraphId(int param) { + + // setting primitive attribute tracker to true + localSubgraphIdTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSubgraphId = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGVCGraphInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGVCGraphInfo", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localGIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GID", xmlWriter); + + if (localGID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGID); + } + + xmlWriter.writeEndElement(); + } + if (localBatchWUTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BatchWU", xmlWriter); + + if (localBatchWU == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BatchWU cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBatchWU)); + } + + xmlWriter.writeEndElement(); + } + if (localSubgraphIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubgraphId", xmlWriter); + + if (localSubgraphId == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("SubgraphId cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSubgraphId)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGVCGraphInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGVCGraphInfo object = new WUGVCGraphInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGVCGraphInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGVCGraphInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BatchWU") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BatchWU" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBatchWU( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubgraphId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubgraphId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubgraphId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGVCGraphInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGVCGraphInfoResponse.java index f223c15af..a80b0c7fd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGVCGraphInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGVCGraphInfoResponse.java @@ -1,794 +1,794 @@ -/** - * WUGVCGraphInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGVCGraphInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGVCGraphInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGVCGraphInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for GID */ - protected java.lang.String localGID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGIDTracker = false; - - public boolean isGIDSpecified() { - return localGIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGID() { - return localGID; - } - - /** - * Auto generated setter method - * - * @param param GID - */ - public void setGID(java.lang.String param) { - localGIDTracker = param != null; - - this.localGID = param; - } - - /** field for Running */ - protected boolean localRunning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningTracker = false; - - public boolean isRunningSpecified() { - return localRunningTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRunning() { - return localRunning; - } - - /** - * Auto generated setter method - * - * @param param Running - */ - public void setRunning(boolean param) { - - // setting primitive attribute tracker to true - localRunningTracker = true; - - this.localRunning = param; - } - - /** field for TheGraph */ - protected java.lang.String localTheGraph; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTheGraphTracker = false; - - public boolean isTheGraphSpecified() { - return localTheGraphTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTheGraph() { - return localTheGraph; - } - - /** - * Auto generated setter method - * - * @param param TheGraph - */ - public void setTheGraph(java.lang.String param) { - localTheGraphTracker = param != null; - - this.localTheGraph = param; - } - - /** field for BatchWU */ - protected int localBatchWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBatchWUTracker = false; - - public boolean isBatchWUSpecified() { - return localBatchWUTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBatchWU() { - return localBatchWU; - } - - /** - * Auto generated setter method - * - * @param param BatchWU - */ - public void setBatchWU(int param) { - - // setting primitive attribute tracker to true - localBatchWUTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBatchWU = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGVCGraphInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGVCGraphInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localGIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GID", xmlWriter); - - if (localGID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGID); - } - - xmlWriter.writeEndElement(); - } - if (localRunningTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Running", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunning)); - } - - xmlWriter.writeEndElement(); - } - if (localTheGraphTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TheGraph", xmlWriter); - - if (localTheGraph == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TheGraph cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTheGraph); - } - - xmlWriter.writeEndElement(); - } - if (localBatchWUTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BatchWU", xmlWriter); - - if (localBatchWU == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BatchWU cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBatchWU)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGVCGraphInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGVCGraphInfoResponse object = new WUGVCGraphInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGVCGraphInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGVCGraphInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Running") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Running" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TheGraph") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TheGraph" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTheGraph( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BatchWU") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BatchWU" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBatchWU( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGVCGraphInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGVCGraphInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGVCGraphInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGVCGraphInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for GID */ + protected java.lang.String localGID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGIDTracker = false; + + public boolean isGIDSpecified() { + return localGIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGID() { + return localGID; + } + + /** + * Auto generated setter method + * + * @param param GID + */ + public void setGID(java.lang.String param) { + localGIDTracker = param != null; + + this.localGID = param; + } + + /** field for Running */ + protected boolean localRunning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningTracker = false; + + public boolean isRunningSpecified() { + return localRunningTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRunning() { + return localRunning; + } + + /** + * Auto generated setter method + * + * @param param Running + */ + public void setRunning(boolean param) { + + // setting primitive attribute tracker to true + localRunningTracker = true; + + this.localRunning = param; + } + + /** field for TheGraph */ + protected java.lang.String localTheGraph; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTheGraphTracker = false; + + public boolean isTheGraphSpecified() { + return localTheGraphTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTheGraph() { + return localTheGraph; + } + + /** + * Auto generated setter method + * + * @param param TheGraph + */ + public void setTheGraph(java.lang.String param) { + localTheGraphTracker = param != null; + + this.localTheGraph = param; + } + + /** field for BatchWU */ + protected int localBatchWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBatchWUTracker = false; + + public boolean isBatchWUSpecified() { + return localBatchWUTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBatchWU() { + return localBatchWU; + } + + /** + * Auto generated setter method + * + * @param param BatchWU + */ + public void setBatchWU(int param) { + + // setting primitive attribute tracker to true + localBatchWUTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBatchWU = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGVCGraphInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGVCGraphInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localGIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GID", xmlWriter); + + if (localGID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGID); + } + + xmlWriter.writeEndElement(); + } + if (localRunningTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Running", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunning)); + } + + xmlWriter.writeEndElement(); + } + if (localTheGraphTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TheGraph", xmlWriter); + + if (localTheGraph == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TheGraph cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTheGraph); + } + + xmlWriter.writeEndElement(); + } + if (localBatchWUTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BatchWU", xmlWriter); + + if (localBatchWU == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BatchWU cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBatchWU)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGVCGraphInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGVCGraphInfoResponse object = new WUGVCGraphInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGVCGraphInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGVCGraphInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Running") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Running" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TheGraph") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TheGraph" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTheGraph( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BatchWU") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BatchWU" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBatchWU( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetArchiveFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetArchiveFile.java index 274f4cdf1..31ffac1a0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetArchiveFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetArchiveFile.java @@ -1,601 +1,601 @@ -/** - * WUGetArchiveFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetArchiveFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetArchiveFile implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetArchiveFile", "ns1"); - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for ModuleName */ - protected java.lang.String localModuleName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModuleNameTracker = false; - - public boolean isModuleNameSpecified() { - return localModuleNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getModuleName() { - return localModuleName; - } - - /** - * Auto generated setter method - * - * @param param ModuleName - */ - public void setModuleName(java.lang.String param) { - localModuleNameTracker = param != null; - - this.localModuleName = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for Path */ - protected java.lang.String localPath; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPathTracker = false; - - public boolean isPathSpecified() { - return localPathTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPath() { - return localPath; - } - - /** - * Auto generated setter method - * - * @param param Path - */ - public void setPath(java.lang.String param) { - localPathTracker = param != null; - - this.localPath = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetArchiveFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetArchiveFile", - xmlWriter); - } - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localModuleNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ModuleName", xmlWriter); - - if (localModuleName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ModuleName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localModuleName); - } - - xmlWriter.writeEndElement(); - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localPathTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Path", xmlWriter); - - if (localPath == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPath); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetArchiveFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetArchiveFile object = new WUGetArchiveFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetArchiveFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetArchiveFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ModuleName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ModuleName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setModuleName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Path") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Path" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPath( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetArchiveFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetArchiveFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetArchiveFile implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetArchiveFile", "ns1"); + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for ModuleName */ + protected java.lang.String localModuleName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModuleNameTracker = false; + + public boolean isModuleNameSpecified() { + return localModuleNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getModuleName() { + return localModuleName; + } + + /** + * Auto generated setter method + * + * @param param ModuleName + */ + public void setModuleName(java.lang.String param) { + localModuleNameTracker = param != null; + + this.localModuleName = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for Path */ + protected java.lang.String localPath; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPathTracker = false; + + public boolean isPathSpecified() { + return localPathTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPath() { + return localPath; + } + + /** + * Auto generated setter method + * + * @param param Path + */ + public void setPath(java.lang.String param) { + localPathTracker = param != null; + + this.localPath = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetArchiveFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetArchiveFile", + xmlWriter); + } + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localModuleNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ModuleName", xmlWriter); + + if (localModuleName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ModuleName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localModuleName); + } + + xmlWriter.writeEndElement(); + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localPathTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Path", xmlWriter); + + if (localPath == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Path cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPath); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetArchiveFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetArchiveFile object = new WUGetArchiveFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetArchiveFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetArchiveFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ModuleName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ModuleName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setModuleName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Path") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Path" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPath( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetArchiveFileResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetArchiveFileResponse.java index 41c6ce276..6c8e08237 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetArchiveFileResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetArchiveFileResponse.java @@ -1,520 +1,520 @@ -/** - * WUGetArchiveFileResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetArchiveFileResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetArchiveFileResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetArchiveFileResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for File */ - protected java.lang.String localFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileTracker = false; - - public boolean isFileSpecified() { - return localFileTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFile() { - return localFile; - } - - /** - * Auto generated setter method - * - * @param param File - */ - public void setFile(java.lang.String param) { - localFileTracker = param != null; - - this.localFile = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetArchiveFileResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetArchiveFileResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localFileTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "File", xmlWriter); - - if (localFile == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFile); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetArchiveFileResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetArchiveFileResponse object = new WUGetArchiveFileResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetArchiveFileResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetArchiveFileResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "File" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetArchiveFileResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetArchiveFileResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetArchiveFileResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetArchiveFileResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for File */ + protected java.lang.String localFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileTracker = false; + + public boolean isFileSpecified() { + return localFileTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFile() { + return localFile; + } + + /** + * Auto generated setter method + * + * @param param File + */ + public void setFile(java.lang.String param) { + localFileTracker = param != null; + + this.localFile = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetArchiveFileResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetArchiveFileResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localFileTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "File", xmlWriter); + + if (localFile == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("File cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFile); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetArchiveFileResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetArchiveFileResponse object = new WUGetArchiveFileResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetArchiveFileResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetArchiveFileResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "File") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "File" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetDependancyTrees.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetDependancyTrees.java index d3ba6d072..6aebd5842 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetDependancyTrees.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetDependancyTrees.java @@ -1,671 +1,671 @@ -/** - * WUGetDependancyTrees.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetDependancyTrees bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetDependancyTrees implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetDependancyTrees", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for Snapshot */ - protected java.lang.String localSnapshot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSnapshotTracker = false; - - public boolean isSnapshotSpecified() { - return localSnapshotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSnapshot() { - return localSnapshot; - } - - /** - * Auto generated setter method - * - * @param param Snapshot - */ - public void setSnapshot(java.lang.String param) { - localSnapshotTracker = param != null; - - this.localSnapshot = param; - } - - /** field for Items */ - protected java.lang.String localItems; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localItemsTracker = false; - - public boolean isItemsSpecified() { - return localItemsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getItems() { - return localItems; - } - - /** - * Auto generated setter method - * - * @param param Items - */ - public void setItems(java.lang.String param) { - localItemsTracker = param != null; - - this.localItems = param; - } - - /** field for TimeoutMilliSec */ - protected java.lang.String localTimeoutMilliSec; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeoutMilliSecTracker = false; - - public boolean isTimeoutMilliSecSpecified() { - return localTimeoutMilliSecTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeoutMilliSec() { - return localTimeoutMilliSec; - } - - /** - * Auto generated setter method - * - * @param param TimeoutMilliSec - */ - public void setTimeoutMilliSec(java.lang.String param) { - localTimeoutMilliSecTracker = param != null; - - this.localTimeoutMilliSec = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetDependancyTrees", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetDependancyTrees", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localSnapshotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Snapshot", xmlWriter); - - if (localSnapshot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSnapshot); - } - - xmlWriter.writeEndElement(); - } - if (localItemsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Items", xmlWriter); - - if (localItems == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Items cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localItems); - } - - xmlWriter.writeEndElement(); - } - if (localTimeoutMilliSecTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeoutMilliSec", xmlWriter); - - if (localTimeoutMilliSec == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeoutMilliSec cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeoutMilliSec); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetDependancyTrees parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetDependancyTrees object = new WUGetDependancyTrees(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetDependancyTrees".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetDependancyTrees) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Snapshot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSnapshot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Items") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Items" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setItems( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TimeoutMilliSec") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeoutMilliSec" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeoutMilliSec( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetDependancyTrees.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetDependancyTrees bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetDependancyTrees implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetDependancyTrees", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for Snapshot */ + protected java.lang.String localSnapshot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSnapshotTracker = false; + + public boolean isSnapshotSpecified() { + return localSnapshotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSnapshot() { + return localSnapshot; + } + + /** + * Auto generated setter method + * + * @param param Snapshot + */ + public void setSnapshot(java.lang.String param) { + localSnapshotTracker = param != null; + + this.localSnapshot = param; + } + + /** field for Items */ + protected java.lang.String localItems; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localItemsTracker = false; + + public boolean isItemsSpecified() { + return localItemsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getItems() { + return localItems; + } + + /** + * Auto generated setter method + * + * @param param Items + */ + public void setItems(java.lang.String param) { + localItemsTracker = param != null; + + this.localItems = param; + } + + /** field for TimeoutMilliSec */ + protected java.lang.String localTimeoutMilliSec; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeoutMilliSecTracker = false; + + public boolean isTimeoutMilliSecSpecified() { + return localTimeoutMilliSecTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeoutMilliSec() { + return localTimeoutMilliSec; + } + + /** + * Auto generated setter method + * + * @param param TimeoutMilliSec + */ + public void setTimeoutMilliSec(java.lang.String param) { + localTimeoutMilliSecTracker = param != null; + + this.localTimeoutMilliSec = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetDependancyTrees", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetDependancyTrees", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localSnapshotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Snapshot", xmlWriter); + + if (localSnapshot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSnapshot); + } + + xmlWriter.writeEndElement(); + } + if (localItemsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Items", xmlWriter); + + if (localItems == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Items cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localItems); + } + + xmlWriter.writeEndElement(); + } + if (localTimeoutMilliSecTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeoutMilliSec", xmlWriter); + + if (localTimeoutMilliSec == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeoutMilliSec cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeoutMilliSec); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetDependancyTrees parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetDependancyTrees object = new WUGetDependancyTrees(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetDependancyTrees".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetDependancyTrees) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Snapshot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSnapshot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Items") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Items" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setItems( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TimeoutMilliSec") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeoutMilliSec" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeoutMilliSec( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetDependancyTreesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetDependancyTreesResponse.java index c518817c3..b885e4ebe 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetDependancyTreesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetDependancyTreesResponse.java @@ -1,499 +1,499 @@ -/** - * WUGetDependancyTreesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetDependancyTreesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetDependancyTreesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetDependancyTreesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Errors */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException localErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorsTracker = false; - - public boolean isErrorsSpecified() { - return localErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException getErrors() { - return localErrors; - } - - /** - * Auto generated setter method - * - * @param param Errors - */ - public void setErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException param) { - localErrorsTracker = param != null; - - this.localErrors = param; - } - - /** field for DependancyTrees */ - protected javax.activation.DataHandler localDependancyTrees; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDependancyTreesTracker = false; - - public boolean isDependancyTreesSpecified() { - return localDependancyTreesTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getDependancyTrees() { - return localDependancyTrees; - } - - /** - * Auto generated setter method - * - * @param param DependancyTrees - */ - public void setDependancyTrees(javax.activation.DataHandler param) { - localDependancyTreesTracker = param != null; - - this.localDependancyTrees = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetDependancyTreesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetDependancyTreesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localErrorsTracker) { - if (localErrors == null) { - throw new org.apache.axis2.databinding.ADBException("Errors cannot be null!!"); - } - localErrors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors"), xmlWriter); - } - if (localDependancyTreesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DependancyTrees", xmlWriter); - - if (localDependancyTrees != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localDependancyTrees, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for DependancyTrees", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetDependancyTreesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetDependancyTreesResponse object = new WUGetDependancyTreesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetDependancyTreesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetDependancyTreesResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors") - .equals(reader.getName())) { - - object.setErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DependancyTrees") - .equals(reader.getName())) { - - object.setDependancyTrees( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetDependancyTreesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetDependancyTreesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetDependancyTreesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetDependancyTreesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Errors */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException localErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorsTracker = false; + + public boolean isErrorsSpecified() { + return localErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException getErrors() { + return localErrors; + } + + /** + * Auto generated setter method + * + * @param param Errors + */ + public void setErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException param) { + localErrorsTracker = param != null; + + this.localErrors = param; + } + + /** field for DependancyTrees */ + protected javax.activation.DataHandler localDependancyTrees; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDependancyTreesTracker = false; + + public boolean isDependancyTreesSpecified() { + return localDependancyTreesTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getDependancyTrees() { + return localDependancyTrees; + } + + /** + * Auto generated setter method + * + * @param param DependancyTrees + */ + public void setDependancyTrees(javax.activation.DataHandler param) { + localDependancyTreesTracker = param != null; + + this.localDependancyTrees = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetDependancyTreesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetDependancyTreesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localErrorsTracker) { + if (localErrors == null) { + throw new org.apache.axis2.databinding.ADBException("Errors cannot be null!!"); + } + localErrors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors"), xmlWriter); + } + if (localDependancyTreesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DependancyTrees", xmlWriter); + + if (localDependancyTrees != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localDependancyTrees, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for DependancyTrees", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetDependancyTreesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetDependancyTreesResponse object = new WUGetDependancyTreesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetDependancyTreesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetDependancyTreesResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors") + .equals(reader.getName())) { + + object.setErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DependancyTrees") + .equals(reader.getName())) { + + object.setDependancyTrees( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraph.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraph.java index c3e34a95f..0d2b23d50 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraph.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraph.java @@ -1,529 +1,529 @@ -/** - * WUGetGraph.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetGraph bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetGraph implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetGraph", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for GraphName */ - protected java.lang.String localGraphName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNameTracker = false; - - public boolean isGraphNameSpecified() { - return localGraphNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphName() { - return localGraphName; - } - - /** - * Auto generated setter method - * - * @param param GraphName - */ - public void setGraphName(java.lang.String param) { - localGraphNameTracker = param != null; - - this.localGraphName = param; - } - - /** field for SubGraphId */ - protected java.lang.String localSubGraphId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphIdTracker = false; - - public boolean isSubGraphIdSpecified() { - return localSubGraphIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSubGraphId() { - return localSubGraphId; - } - - /** - * Auto generated setter method - * - * @param param SubGraphId - */ - public void setSubGraphId(java.lang.String param) { - localSubGraphIdTracker = param != null; - - this.localSubGraphId = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetGraph", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGetGraph", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localGraphNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphName", xmlWriter); - - if (localGraphName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphName); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphId", xmlWriter); - - if (localSubGraphId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSubGraphId); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetGraph parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetGraph object = new WUGetGraph(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetGraph".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetGraph) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetGraph.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetGraph bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetGraph implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetGraph", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for GraphName */ + protected java.lang.String localGraphName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNameTracker = false; + + public boolean isGraphNameSpecified() { + return localGraphNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphName() { + return localGraphName; + } + + /** + * Auto generated setter method + * + * @param param GraphName + */ + public void setGraphName(java.lang.String param) { + localGraphNameTracker = param != null; + + this.localGraphName = param; + } + + /** field for SubGraphId */ + protected java.lang.String localSubGraphId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphIdTracker = false; + + public boolean isSubGraphIdSpecified() { + return localSubGraphIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSubGraphId() { + return localSubGraphId; + } + + /** + * Auto generated setter method + * + * @param param SubGraphId + */ + public void setSubGraphId(java.lang.String param) { + localSubGraphIdTracker = param != null; + + this.localSubGraphId = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetGraph", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGetGraph", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localGraphNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphName", xmlWriter); + + if (localGraphName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphName); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphId", xmlWriter); + + if (localSubGraphId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSubGraphId); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetGraph parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetGraph object = new WUGetGraph(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetGraph".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetGraph) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphNameAndTypes.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphNameAndTypes.java index 7fee16543..5f5228281 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphNameAndTypes.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphNameAndTypes.java @@ -1,466 +1,466 @@ -/** - * WUGetGraphNameAndTypes.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetGraphNameAndTypes bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetGraphNameAndTypes implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetGraphNameAndTypes", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetGraphNameAndTypes", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetGraphNameAndTypes", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetGraphNameAndTypes parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetGraphNameAndTypes object = new WUGetGraphNameAndTypes(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetGraphNameAndTypes".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetGraphNameAndTypes) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetGraphNameAndTypes.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetGraphNameAndTypes bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetGraphNameAndTypes implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetGraphNameAndTypes", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetGraphNameAndTypes", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetGraphNameAndTypes", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetGraphNameAndTypes parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetGraphNameAndTypes object = new WUGetGraphNameAndTypes(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetGraphNameAndTypes".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetGraphNameAndTypes) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphNameAndTypesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphNameAndTypesResponse.java index 532d0acfe..3efe75229 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphNameAndTypesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphNameAndTypesResponse.java @@ -1,440 +1,440 @@ -/** - * WUGetGraphNameAndTypesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetGraphNameAndTypesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetGraphNameAndTypesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetGraphNameAndTypesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for GraphNameAndTypes */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 - localGraphNameAndTypes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNameAndTypesTracker = false; - - public boolean isGraphNameAndTypesSpecified() { - return localGraphNameAndTypesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 - getGraphNameAndTypes() { - return localGraphNameAndTypes; - } - - /** - * Auto generated setter method - * - * @param param GraphNameAndTypes - */ - public void setGraphNameAndTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 param) { - localGraphNameAndTypesTracker = param != null; - - this.localGraphNameAndTypes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetGraphNameAndTypesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetGraphNameAndTypesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localGraphNameAndTypesTracker) { - if (localGraphNameAndTypes == null) { - throw new org.apache.axis2.databinding.ADBException("GraphNameAndTypes cannot be null!!"); - } - localGraphNameAndTypes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNameAndTypes"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetGraphNameAndTypesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetGraphNameAndTypesResponse object = new WUGetGraphNameAndTypesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetGraphNameAndTypesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetGraphNameAndTypesResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "GraphNameAndTypes") - .equals(reader.getName())) { - - object.setGraphNameAndTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetGraphNameAndTypesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetGraphNameAndTypesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetGraphNameAndTypesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetGraphNameAndTypesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for GraphNameAndTypes */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 + localGraphNameAndTypes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNameAndTypesTracker = false; + + public boolean isGraphNameAndTypesSpecified() { + return localGraphNameAndTypesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 + getGraphNameAndTypes() { + return localGraphNameAndTypes; + } + + /** + * Auto generated setter method + * + * @param param GraphNameAndTypes + */ + public void setGraphNameAndTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 param) { + localGraphNameAndTypesTracker = param != null; + + this.localGraphNameAndTypes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetGraphNameAndTypesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetGraphNameAndTypesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localGraphNameAndTypesTracker) { + if (localGraphNameAndTypes == null) { + throw new org.apache.axis2.databinding.ADBException("GraphNameAndTypes cannot be null!!"); + } + localGraphNameAndTypes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphNameAndTypes"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetGraphNameAndTypesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetGraphNameAndTypesResponse object = new WUGetGraphNameAndTypesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetGraphNameAndTypesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetGraphNameAndTypesResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "GraphNameAndTypes") + .equals(reader.getName())) { + + object.setGraphNameAndTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GraphNameAndTypes_type0 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphResponse.java index a33bee559..c4164107b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetGraphResponse.java @@ -1,435 +1,435 @@ -/** - * WUGetGraphResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetGraphResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetGraphResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetGraphResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Graphs */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx localGraphs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphsTracker = false; - - public boolean isGraphsSpecified() { - return localGraphsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx getGraphs() { - return localGraphs; - } - - /** - * Auto generated setter method - * - * @param param Graphs - */ - public void setGraphs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx param) { - localGraphsTracker = param != null; - - this.localGraphs = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetGraphResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetGraphResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localGraphsTracker) { - if (localGraphs == null) { - throw new org.apache.axis2.databinding.ADBException("Graphs cannot be null!!"); - } - localGraphs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetGraphResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetGraphResponse object = new WUGetGraphResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetGraphResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetGraphResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs") - .equals(reader.getName())) { - - object.setGraphs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetGraphResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetGraphResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetGraphResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetGraphResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Graphs */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx localGraphs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphsTracker = false; + + public boolean isGraphsSpecified() { + return localGraphsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx getGraphs() { + return localGraphs; + } + + /** + * Auto generated setter method + * + * @param param Graphs + */ + public void setGraphs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx param) { + localGraphsTracker = param != null; + + this.localGraphs = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetGraphResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetGraphResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localGraphsTracker) { + if (localGraphs == null) { + throw new org.apache.axis2.databinding.ADBException("Graphs cannot be null!!"); + } + localGraphs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetGraphResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetGraphResponse object = new WUGetGraphResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetGraphResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetGraphResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs") + .equals(reader.getName())) { + + object.setGraphs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetNumFileToCopy.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetNumFileToCopy.java index 04a8bff89..905ed0376 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetNumFileToCopy.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetNumFileToCopy.java @@ -1,810 +1,812 @@ -/** - * WUGetNumFileToCopy.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetNumFileToCopy bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetNumFileToCopy implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetNumFileToCopy", "ns1"); - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for TargetName */ - protected java.lang.String localTargetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetNameTracker = false; - - public boolean isTargetNameSpecified() { - return localTargetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTargetName() { - return localTargetName; - } - - /** - * Auto generated setter method - * - * @param param TargetName - */ - public void setTargetName(java.lang.String param) { - localTargetNameTracker = param != null; - - this.localTargetName = param; - } - - /** field for PageSize */ - protected long localPageSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageSizeTracker = false; - - public boolean isPageSizeSpecified() { - return localPageSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageSize() { - return localPageSize; - } - - /** - * Auto generated setter method - * - * @param param PageSize - */ - public void setPageSize(long param) { - - // setting primitive attribute tracker to true - localPageSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageSize = param; - } - - /** field for PageStartFrom */ - protected long localPageStartFrom; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageStartFromTracker = false; - - public boolean isPageStartFromSpecified() { - return localPageStartFromTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageStartFrom() { - return localPageStartFrom; - } - - /** - * Auto generated setter method - * - * @param param PageStartFrom - */ - public void setPageStartFrom(long param) { - - // setting primitive attribute tracker to true - localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageStartFrom = param; - } - - /** field for Sortby */ - protected java.lang.String localSortby; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortbyTracker = false; - - public boolean isSortbySpecified() { - return localSortbyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortby() { - return localSortby; - } - - /** - * Auto generated setter method - * - * @param param Sortby - */ - public void setSortby(java.lang.String param) { - localSortbyTracker = param != null; - - this.localSortby = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetNumFileToCopy", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetNumFileToCopy", - xmlWriter); - } - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localTargetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TargetName", xmlWriter); - - if (localTargetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TargetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTargetName); - } - - xmlWriter.writeEndElement(); - } - if (localPageSizeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageSize", xmlWriter); - - if (localPageSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPageStartFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageStartFrom", xmlWriter); - - if (localPageStartFrom == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localSortbyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sortby", xmlWriter); - - if (localSortby == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortby); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetNumFileToCopy parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetNumFileToCopy object = new WUGetNumFileToCopy(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetNumFileToCopy".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetNumFileToCopy) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TargetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TargetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTargetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageStartFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageStartFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sortby" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortby( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetNumFileToCopy.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetNumFileToCopy bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetNumFileToCopy implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetNumFileToCopy", "ns1"); + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for TargetName */ + protected java.lang.String localTargetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetNameTracker = false; + + public boolean isTargetNameSpecified() { + return localTargetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTargetName() { + return localTargetName; + } + + /** + * Auto generated setter method + * + * @param param TargetName + */ + public void setTargetName(java.lang.String param) { + localTargetNameTracker = param != null; + + this.localTargetName = param; + } + + /** field for PageSize */ + protected long localPageSize = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageSizeTracker = false; + + public boolean isPageSizeSpecified() { + return localPageSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageSize() { + return localPageSize; + } + + /** + * Auto generated setter method + * + * @param param PageSize + */ + public void setPageSize(long param) { + + // setting primitive attribute tracker to true + localPageSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageSize = param; + } + + /** field for PageStartFrom */ + protected long localPageStartFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageStartFromTracker = false; + + public boolean isPageStartFromSpecified() { + return localPageStartFromTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageStartFrom() { + return localPageStartFrom; + } + + /** + * Auto generated setter method + * + * @param param PageStartFrom + */ + public void setPageStartFrom(long param) { + + // setting primitive attribute tracker to true + localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageStartFrom = param; + } + + /** field for Sortby */ + protected java.lang.String localSortby; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortbyTracker = false; + + public boolean isSortbySpecified() { + return localSortbyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortby() { + return localSortby; + } + + /** + * Auto generated setter method + * + * @param param Sortby + */ + public void setSortby(java.lang.String param) { + localSortbyTracker = param != null; + + this.localSortby = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetNumFileToCopy", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetNumFileToCopy", + xmlWriter); + } + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localTargetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TargetName", xmlWriter); + + if (localTargetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TargetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTargetName); + } + + xmlWriter.writeEndElement(); + } + if (localPageSizeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageSize", xmlWriter); + + if (localPageSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPageStartFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageStartFrom", xmlWriter); + + if (localPageStartFrom == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localSortbyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sortby", xmlWriter); + + if (localSortby == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortby); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetNumFileToCopy parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetNumFileToCopy object = new WUGetNumFileToCopy(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetNumFileToCopy".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetNumFileToCopy) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TargetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TargetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTargetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageStartFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageStartFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sortby" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortby( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetNumFileToCopyResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetNumFileToCopyResponse.java index 6421bcba4..2c8f57c88 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetNumFileToCopyResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetNumFileToCopyResponse.java @@ -1,574 +1,574 @@ -/** - * WUGetNumFileToCopyResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetNumFileToCopyResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetNumFileToCopyResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetNumFileToCopyResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Endpoints */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0 localEndpoints; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndpointsTracker = false; - - public boolean isEndpointsSpecified() { - return localEndpointsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0 getEndpoints() { - return localEndpoints; - } - - /** - * Auto generated setter method - * - * @param param Endpoints - */ - public void setEndpoints( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0 param) { - localEndpointsTracker = param != null; - - this.localEndpoints = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** field for Total */ - protected long localTotal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalTracker = false; - - public boolean isTotalSpecified() { - return localTotalTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getTotal() { - return localTotal; - } - - /** - * Auto generated setter method - * - * @param param Total - */ - public void setTotal(long param) { - - // setting primitive attribute tracker to true - localTotalTracker = param != java.lang.Long.MIN_VALUE; - - this.localTotal = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetNumFileToCopyResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetNumFileToCopyResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localEndpointsTracker) { - if (localEndpoints == null) { - throw new org.apache.axis2.databinding.ADBException("Endpoints cannot be null!!"); - } - localEndpoints.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoints"), xmlWriter); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - if (localTotalTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Total", xmlWriter); - - if (localTotal == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetNumFileToCopyResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetNumFileToCopyResponse object = new WUGetNumFileToCopyResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetNumFileToCopyResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetNumFileToCopyResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoints") - .equals(reader.getName())) { - - object.setEndpoints( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Total") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Total" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetNumFileToCopyResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetNumFileToCopyResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetNumFileToCopyResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetNumFileToCopyResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Endpoints */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0 localEndpoints; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndpointsTracker = false; + + public boolean isEndpointsSpecified() { + return localEndpointsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0 getEndpoints() { + return localEndpoints; + } + + /** + * Auto generated setter method + * + * @param param Endpoints + */ + public void setEndpoints( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0 param) { + localEndpointsTracker = param != null; + + this.localEndpoints = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** field for Total */ + protected long localTotal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalTracker = false; + + public boolean isTotalSpecified() { + return localTotalTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getTotal() { + return localTotal; + } + + /** + * Auto generated setter method + * + * @param param Total + */ + public void setTotal(long param) { + + // setting primitive attribute tracker to true + localTotalTracker = param != java.lang.Long.MIN_VALUE; + + this.localTotal = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetNumFileToCopyResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetNumFileToCopyResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localEndpointsTracker) { + if (localEndpoints == null) { + throw new org.apache.axis2.databinding.ADBException("Endpoints cannot be null!!"); + } + localEndpoints.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoints"), xmlWriter); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + if (localTotalTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Total", xmlWriter); + + if (localTotal == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetNumFileToCopyResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetNumFileToCopyResponse object = new WUGetNumFileToCopyResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetNumFileToCopyResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetNumFileToCopyResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Endpoints") + .equals(reader.getName())) { + + object.setEndpoints( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Endpoints_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Total") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Total" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetPlugins.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetPlugins.java index a25d283dd..10b2830b5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetPlugins.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetPlugins.java @@ -1,311 +1,311 @@ -/** - * WUGetPlugins.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetPlugins bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetPlugins implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetPlugins", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetPlugins", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGetPlugins", xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetPlugins parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetPlugins object = new WUGetPlugins(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetPlugins".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetPlugins) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetPlugins.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetPlugins bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetPlugins implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetPlugins", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetPlugins", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGetPlugins", xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetPlugins parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetPlugins object = new WUGetPlugins(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetPlugins".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetPlugins) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetPluginsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetPluginsResponse.java index 7c56d3740..e24aedd7e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetPluginsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetPluginsResponse.java @@ -1,438 +1,438 @@ -/** - * WUGetPluginsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetPluginsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetPluginsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetPluginsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Plugins */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder - localPlugins; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPluginsTracker = false; - - public boolean isPluginsSpecified() { - return localPluginsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder - getPlugins() { - return localPlugins; - } - - /** - * Auto generated setter method - * - * @param param Plugins - */ - public void setPlugins( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder param) { - localPluginsTracker = param != null; - - this.localPlugins = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetPluginsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetPluginsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localPluginsTracker) { - if (localPlugins == null) { - throw new org.apache.axis2.databinding.ADBException("Plugins cannot be null!!"); - } - localPlugins.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugins"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetPluginsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetPluginsResponse object = new WUGetPluginsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetPluginsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetPluginsResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugins") - .equals(reader.getName())) { - - object.setPlugins( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetPluginsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetPluginsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetPluginsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetPluginsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Plugins */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder + localPlugins; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPluginsTracker = false; + + public boolean isPluginsSpecified() { + return localPluginsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder + getPlugins() { + return localPlugins; + } + + /** + * Auto generated setter method + * + * @param param Plugins + */ + public void setPlugins( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder param) { + localPluginsTracker = param != null; + + this.localPlugins = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetPluginsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetPluginsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localPluginsTracker) { + if (localPlugins == null) { + throw new org.apache.axis2.databinding.ADBException("Plugins cannot be null!!"); + } + localPlugins.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugins"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetPluginsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetPluginsResponse object = new WUGetPluginsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetPluginsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetPluginsResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Plugins") + .equals(reader.getName())) { + + object.setPlugins( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUEclPluginsInFolder + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetStats.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetStats.java index c1896b06a..71f085b2e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetStats.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetStats.java @@ -1,1285 +1,1285 @@ -/** - * WUGetStats.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetStats bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetStats implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetStats", "ns1"); - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for CreatorType */ - protected java.lang.String localCreatorType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCreatorTypeTracker = false; - - public boolean isCreatorTypeSpecified() { - return localCreatorTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCreatorType() { - return localCreatorType; - } - - /** - * Auto generated setter method - * - * @param param CreatorType - */ - public void setCreatorType(java.lang.String param) { - localCreatorTypeTracker = param != null; - - this.localCreatorType = param; - } - - /** field for Creator */ - protected java.lang.String localCreator; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCreatorTracker = false; - - public boolean isCreatorSpecified() { - return localCreatorTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCreator() { - return localCreator; - } - - /** - * Auto generated setter method - * - * @param param Creator - */ - public void setCreator(java.lang.String param) { - localCreatorTracker = param != null; - - this.localCreator = param; - } - - /** field for ScopeType */ - protected java.lang.String localScopeType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypeTracker = false; - - public boolean isScopeTypeSpecified() { - return localScopeTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScopeType() { - return localScopeType; - } - - /** - * Auto generated setter method - * - * @param param ScopeType - */ - public void setScopeType(java.lang.String param) { - localScopeTypeTracker = param != null; - - this.localScopeType = param; - } - - /** field for Scope */ - protected java.lang.String localScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTracker = false; - - public boolean isScopeSpecified() { - return localScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScope() { - return localScope; - } - - /** - * Auto generated setter method - * - * @param param Scope - */ - public void setScope(java.lang.String param) { - localScopeTracker = param != null; - - this.localScope = param; - } - - /** field for Kind */ - protected java.lang.String localKind; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKindTracker = false; - - public boolean isKindSpecified() { - return localKindTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getKind() { - return localKind; - } - - /** - * Auto generated setter method - * - * @param param Kind - */ - public void setKind(java.lang.String param) { - localKindTracker = param != null; - - this.localKind = param; - } - - /** field for Measure */ - protected java.lang.String localMeasure; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMeasureTracker = false; - - public boolean isMeasureSpecified() { - return localMeasureTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMeasure() { - return localMeasure; - } - - /** - * Auto generated setter method - * - * @param param Measure - */ - public void setMeasure(java.lang.String param) { - localMeasureTracker = param != null; - - this.localMeasure = param; - } - - /** field for MinScopeDepth */ - protected org.apache.axis2.databinding.types.UnsignedInt localMinScopeDepth; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMinScopeDepthTracker = false; - - public boolean isMinScopeDepthSpecified() { - return localMinScopeDepthTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getMinScopeDepth() { - return localMinScopeDepth; - } - - /** - * Auto generated setter method - * - * @param param MinScopeDepth - */ - public void setMinScopeDepth(org.apache.axis2.databinding.types.UnsignedInt param) { - localMinScopeDepthTracker = param != null; - - this.localMinScopeDepth = param; - } - - /** field for MaxScopeDepth */ - protected org.apache.axis2.databinding.types.UnsignedInt localMaxScopeDepth; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxScopeDepthTracker = false; - - public boolean isMaxScopeDepthSpecified() { - return localMaxScopeDepthTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getMaxScopeDepth() { - return localMaxScopeDepth; - } - - /** - * Auto generated setter method - * - * @param param MaxScopeDepth - */ - public void setMaxScopeDepth(org.apache.axis2.databinding.types.UnsignedInt param) { - localMaxScopeDepthTracker = param != null; - - this.localMaxScopeDepth = param; - } - - /** field for IncludeGraphs */ - protected boolean localIncludeGraphs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeGraphsTracker = false; - - public boolean isIncludeGraphsSpecified() { - return localIncludeGraphsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeGraphs() { - return localIncludeGraphs; - } - - /** - * Auto generated setter method - * - * @param param IncludeGraphs - */ - public void setIncludeGraphs(boolean param) { - - // setting primitive attribute tracker to true - localIncludeGraphsTracker = true; - - this.localIncludeGraphs = param; - } - - /** field for CreateDescriptions */ - protected boolean localCreateDescriptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCreateDescriptionsTracker = false; - - public boolean isCreateDescriptionsSpecified() { - return localCreateDescriptionsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCreateDescriptions() { - return localCreateDescriptions; - } - - /** - * Auto generated setter method - * - * @param param CreateDescriptions - */ - public void setCreateDescriptions(boolean param) { - - // setting primitive attribute tracker to true - localCreateDescriptionsTracker = true; - - this.localCreateDescriptions = param; - } - - /** field for MinValue */ - protected long localMinValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMinValueTracker = false; - - public boolean isMinValueSpecified() { - return localMinValueTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getMinValue() { - return localMinValue; - } - - /** - * Auto generated setter method - * - * @param param MinValue - */ - public void setMinValue(long param) { - - // setting primitive attribute tracker to true - localMinValueTracker = param != java.lang.Long.MIN_VALUE; - - this.localMinValue = param; - } - - /** field for MaxValue */ - protected long localMaxValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxValueTracker = false; - - public boolean isMaxValueSpecified() { - return localMaxValueTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getMaxValue() { - return localMaxValue; - } - - /** - * Auto generated setter method - * - * @param param MaxValue - */ - public void setMaxValue(long param) { - - // setting primitive attribute tracker to true - localMaxValueTracker = param != java.lang.Long.MIN_VALUE; - - this.localMaxValue = param; - } - - /** field for Filter */ - protected java.lang.String localFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTracker = false; - - public boolean isFilterSpecified() { - return localFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFilter() { - return localFilter; - } - - /** - * Auto generated setter method - * - * @param param Filter - */ - public void setFilter(java.lang.String param) { - localFilterTracker = param != null; - - this.localFilter = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetStats", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGetStats", xmlWriter); - } - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localCreatorTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CreatorType", xmlWriter); - - if (localCreatorType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("CreatorType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCreatorType); - } - - xmlWriter.writeEndElement(); - } - if (localCreatorTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Creator", xmlWriter); - - if (localCreator == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Creator cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCreator); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ScopeType", xmlWriter); - - if (localScopeType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScopeType); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Scope", xmlWriter); - - if (localScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScope); - } - - xmlWriter.writeEndElement(); - } - if (localKindTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Kind", xmlWriter); - - if (localKind == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localKind); - } - - xmlWriter.writeEndElement(); - } - if (localMeasureTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Measure", xmlWriter); - - if (localMeasure == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMeasure); - } - - xmlWriter.writeEndElement(); - } - if (localMinScopeDepthTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MinScopeDepth", xmlWriter); - - if (localMinScopeDepth == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MinScopeDepth cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMinScopeDepth)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxScopeDepthTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxScopeDepth", xmlWriter); - - if (localMaxScopeDepth == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MaxScopeDepth cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxScopeDepth)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeGraphsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeGraphs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeGraphs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeGraphs)); - } - - xmlWriter.writeEndElement(); - } - if (localCreateDescriptionsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CreateDescriptions", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CreateDescriptions cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localCreateDescriptions)); - } - - xmlWriter.writeEndElement(); - } - if (localMinValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MinValue", xmlWriter); - - if (localMinValue == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MinValue cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMinValue)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxValue", xmlWriter); - - if (localMaxValue == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MaxValue cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxValue)); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Filter", xmlWriter); - - if (localFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFilter); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetStats parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetStats object = new WUGetStats(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetStats".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetStats) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CreatorType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CreatorType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCreatorType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Creator") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Creator" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCreator( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ScopeType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScopeType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Scope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Kind") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Kind" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKind( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Measure" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMeasure( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MinScopeDepth") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MinScopeDepth" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMinScopeDepth( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxScopeDepth") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxScopeDepth" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxScopeDepth( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeGraphs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeGraphs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeGraphs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "CreateDescriptions") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CreateDescriptions" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCreateDescriptions( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MinValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MinValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMinValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Filter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetStats.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetStats bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetStats implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetStats", "ns1"); + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for CreatorType */ + protected java.lang.String localCreatorType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCreatorTypeTracker = false; + + public boolean isCreatorTypeSpecified() { + return localCreatorTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCreatorType() { + return localCreatorType; + } + + /** + * Auto generated setter method + * + * @param param CreatorType + */ + public void setCreatorType(java.lang.String param) { + localCreatorTypeTracker = param != null; + + this.localCreatorType = param; + } + + /** field for Creator */ + protected java.lang.String localCreator; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCreatorTracker = false; + + public boolean isCreatorSpecified() { + return localCreatorTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCreator() { + return localCreator; + } + + /** + * Auto generated setter method + * + * @param param Creator + */ + public void setCreator(java.lang.String param) { + localCreatorTracker = param != null; + + this.localCreator = param; + } + + /** field for ScopeType */ + protected java.lang.String localScopeType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypeTracker = false; + + public boolean isScopeTypeSpecified() { + return localScopeTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScopeType() { + return localScopeType; + } + + /** + * Auto generated setter method + * + * @param param ScopeType + */ + public void setScopeType(java.lang.String param) { + localScopeTypeTracker = param != null; + + this.localScopeType = param; + } + + /** field for Scope */ + protected java.lang.String localScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTracker = false; + + public boolean isScopeSpecified() { + return localScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScope() { + return localScope; + } + + /** + * Auto generated setter method + * + * @param param Scope + */ + public void setScope(java.lang.String param) { + localScopeTracker = param != null; + + this.localScope = param; + } + + /** field for Kind */ + protected java.lang.String localKind; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKindTracker = false; + + public boolean isKindSpecified() { + return localKindTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getKind() { + return localKind; + } + + /** + * Auto generated setter method + * + * @param param Kind + */ + public void setKind(java.lang.String param) { + localKindTracker = param != null; + + this.localKind = param; + } + + /** field for Measure */ + protected java.lang.String localMeasure; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMeasureTracker = false; + + public boolean isMeasureSpecified() { + return localMeasureTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMeasure() { + return localMeasure; + } + + /** + * Auto generated setter method + * + * @param param Measure + */ + public void setMeasure(java.lang.String param) { + localMeasureTracker = param != null; + + this.localMeasure = param; + } + + /** field for MinScopeDepth */ + protected org.apache.axis2.databinding.types.UnsignedInt localMinScopeDepth; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMinScopeDepthTracker = false; + + public boolean isMinScopeDepthSpecified() { + return localMinScopeDepthTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getMinScopeDepth() { + return localMinScopeDepth; + } + + /** + * Auto generated setter method + * + * @param param MinScopeDepth + */ + public void setMinScopeDepth(org.apache.axis2.databinding.types.UnsignedInt param) { + localMinScopeDepthTracker = param != null; + + this.localMinScopeDepth = param; + } + + /** field for MaxScopeDepth */ + protected org.apache.axis2.databinding.types.UnsignedInt localMaxScopeDepth; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxScopeDepthTracker = false; + + public boolean isMaxScopeDepthSpecified() { + return localMaxScopeDepthTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getMaxScopeDepth() { + return localMaxScopeDepth; + } + + /** + * Auto generated setter method + * + * @param param MaxScopeDepth + */ + public void setMaxScopeDepth(org.apache.axis2.databinding.types.UnsignedInt param) { + localMaxScopeDepthTracker = param != null; + + this.localMaxScopeDepth = param; + } + + /** field for IncludeGraphs */ + protected boolean localIncludeGraphs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeGraphsTracker = false; + + public boolean isIncludeGraphsSpecified() { + return localIncludeGraphsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeGraphs() { + return localIncludeGraphs; + } + + /** + * Auto generated setter method + * + * @param param IncludeGraphs + */ + public void setIncludeGraphs(boolean param) { + + // setting primitive attribute tracker to true + localIncludeGraphsTracker = true; + + this.localIncludeGraphs = param; + } + + /** field for CreateDescriptions */ + protected boolean localCreateDescriptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCreateDescriptionsTracker = false; + + public boolean isCreateDescriptionsSpecified() { + return localCreateDescriptionsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCreateDescriptions() { + return localCreateDescriptions; + } + + /** + * Auto generated setter method + * + * @param param CreateDescriptions + */ + public void setCreateDescriptions(boolean param) { + + // setting primitive attribute tracker to true + localCreateDescriptionsTracker = true; + + this.localCreateDescriptions = param; + } + + /** field for MinValue */ + protected long localMinValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMinValueTracker = false; + + public boolean isMinValueSpecified() { + return localMinValueTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getMinValue() { + return localMinValue; + } + + /** + * Auto generated setter method + * + * @param param MinValue + */ + public void setMinValue(long param) { + + // setting primitive attribute tracker to true + localMinValueTracker = param != java.lang.Long.MIN_VALUE; + + this.localMinValue = param; + } + + /** field for MaxValue */ + protected long localMaxValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxValueTracker = false; + + public boolean isMaxValueSpecified() { + return localMaxValueTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getMaxValue() { + return localMaxValue; + } + + /** + * Auto generated setter method + * + * @param param MaxValue + */ + public void setMaxValue(long param) { + + // setting primitive attribute tracker to true + localMaxValueTracker = param != java.lang.Long.MIN_VALUE; + + this.localMaxValue = param; + } + + /** field for Filter */ + protected java.lang.String localFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTracker = false; + + public boolean isFilterSpecified() { + return localFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFilter() { + return localFilter; + } + + /** + * Auto generated setter method + * + * @param param Filter + */ + public void setFilter(java.lang.String param) { + localFilterTracker = param != null; + + this.localFilter = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetStats", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGetStats", xmlWriter); + } + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localCreatorTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CreatorType", xmlWriter); + + if (localCreatorType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("CreatorType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCreatorType); + } + + xmlWriter.writeEndElement(); + } + if (localCreatorTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Creator", xmlWriter); + + if (localCreator == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Creator cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCreator); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ScopeType", xmlWriter); + + if (localScopeType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScopeType); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Scope", xmlWriter); + + if (localScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScope); + } + + xmlWriter.writeEndElement(); + } + if (localKindTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Kind", xmlWriter); + + if (localKind == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localKind); + } + + xmlWriter.writeEndElement(); + } + if (localMeasureTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Measure", xmlWriter); + + if (localMeasure == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMeasure); + } + + xmlWriter.writeEndElement(); + } + if (localMinScopeDepthTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MinScopeDepth", xmlWriter); + + if (localMinScopeDepth == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MinScopeDepth cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMinScopeDepth)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxScopeDepthTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxScopeDepth", xmlWriter); + + if (localMaxScopeDepth == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MaxScopeDepth cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxScopeDepth)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeGraphsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeGraphs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeGraphs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeGraphs)); + } + + xmlWriter.writeEndElement(); + } + if (localCreateDescriptionsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CreateDescriptions", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CreateDescriptions cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localCreateDescriptions)); + } + + xmlWriter.writeEndElement(); + } + if (localMinValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MinValue", xmlWriter); + + if (localMinValue == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MinValue cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMinValue)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxValue", xmlWriter); + + if (localMaxValue == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MaxValue cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxValue)); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Filter", xmlWriter); + + if (localFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFilter); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetStats parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetStats object = new WUGetStats(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetStats".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetStats) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CreatorType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CreatorType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCreatorType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Creator") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Creator" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCreator( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ScopeType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScopeType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Scope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Kind") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Kind" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKind( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Measure" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMeasure( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MinScopeDepth") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MinScopeDepth" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMinScopeDepth( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxScopeDepth") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxScopeDepth" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxScopeDepth( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeGraphs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeGraphs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeGraphs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "CreateDescriptions") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CreateDescriptions" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCreateDescriptions( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MinValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MinValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMinValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Filter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetStatsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetStatsResponse.java index cee906097..d27bdfb56 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetStatsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetStatsResponse.java @@ -1,505 +1,505 @@ -/** - * WUGetStatsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetStatsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetStatsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetStatsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for Statistics */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem - localStatistics; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatisticsTracker = false; - - public boolean isStatisticsSpecified() { - return localStatisticsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem - getStatistics() { - return localStatistics; - } - - /** - * Auto generated setter method - * - * @param param Statistics - */ - public void setStatistics( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem param) { - localStatisticsTracker = param != null; - - this.localStatistics = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetStatsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetStatsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localStatisticsTracker) { - if (localStatistics == null) { - throw new org.apache.axis2.databinding.ADBException("Statistics cannot be null!!"); - } - localStatistics.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Statistics"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetStatsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetStatsResponse object = new WUGetStatsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetStatsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetStatsResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Statistics") - .equals(reader.getName())) { - - object.setStatistics( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetStatsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetStatsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetStatsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetStatsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for Statistics */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem + localStatistics; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatisticsTracker = false; + + public boolean isStatisticsSpecified() { + return localStatisticsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem + getStatistics() { + return localStatistics; + } + + /** + * Auto generated setter method + * + * @param param Statistics + */ + public void setStatistics( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem param) { + localStatisticsTracker = param != null; + + this.localStatistics = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetStatsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetStatsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localStatisticsTracker) { + if (localStatistics == null) { + throw new org.apache.axis2.databinding.ADBException("Statistics cannot be null!!"); + } + localStatistics.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Statistics"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetStatsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetStatsResponse object = new WUGetStatsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetStatsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetStatsResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Statistics") + .equals(reader.getName())) { + + object.setStatistics( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUStatisticItem + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobList.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobList.java index d9631d836..765d38f3e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobList.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobList.java @@ -1,603 +1,604 @@ -/** - * WUGetThorJobList.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetThorJobList bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetThorJobList implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetThorJobList", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for MaxJobsToReturn */ - protected org.apache.axis2.databinding.types.UnsignedInt localMaxJobsToReturn; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxJobsToReturnTracker = false; - - public boolean isMaxJobsToReturnSpecified() { - return localMaxJobsToReturnTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getMaxJobsToReturn() { - return localMaxJobsToReturn; - } - - /** - * Auto generated setter method - * - * @param param MaxJobsToReturn - */ - public void setMaxJobsToReturn(org.apache.axis2.databinding.types.UnsignedInt param) { - localMaxJobsToReturnTracker = param != null; - - this.localMaxJobsToReturn = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetThorJobList", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetThorJobList", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localMaxJobsToReturnTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxJobsToReturn", xmlWriter); - - if (localMaxJobsToReturn == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MaxJobsToReturn cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxJobsToReturn)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetThorJobList parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetThorJobList object = new WUGetThorJobList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetThorJobList".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetThorJobList) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "MaxJobsToReturn") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxJobsToReturn" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxJobsToReturn( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetThorJobList.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetThorJobList bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetThorJobList implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetThorJobList", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for MaxJobsToReturn */ + protected org.apache.axis2.databinding.types.UnsignedInt localMaxJobsToReturn = + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxJobsToReturnTracker = false; + + public boolean isMaxJobsToReturnSpecified() { + return localMaxJobsToReturnTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getMaxJobsToReturn() { + return localMaxJobsToReturn; + } + + /** + * Auto generated setter method + * + * @param param MaxJobsToReturn + */ + public void setMaxJobsToReturn(org.apache.axis2.databinding.types.UnsignedInt param) { + localMaxJobsToReturnTracker = param != null; + + this.localMaxJobsToReturn = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetThorJobList", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetThorJobList", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localMaxJobsToReturnTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxJobsToReturn", xmlWriter); + + if (localMaxJobsToReturn == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MaxJobsToReturn cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxJobsToReturn)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetThorJobList parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetThorJobList object = new WUGetThorJobList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetThorJobList".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetThorJobList) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "MaxJobsToReturn") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxJobsToReturn" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxJobsToReturn( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobListResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobListResponse.java index 9f6be8b06..51d513da4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobListResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobListResponse.java @@ -1,560 +1,560 @@ -/** - * WUGetThorJobListResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetThorJobListResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetThorJobListResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetThorJobListResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for JobList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob localJobList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobListTracker = false; - - public boolean isJobListSpecified() { - return localJobListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob getJobList() { - return localJobList; - } - - /** - * Auto generated setter method - * - * @param param JobList - */ - public void setJobList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob param) { - localJobListTracker = param != null; - - this.localJobList = param; - } - - /** field for InProgressJobList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob - localInProgressJobList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localInProgressJobListTracker = false; - - public boolean isInProgressJobListSpecified() { - return localInProgressJobListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob - getInProgressJobList() { - return localInProgressJobList; - } - - /** - * Auto generated setter method - * - * @param param InProgressJobList - */ - public void setInProgressJobList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob param) { - localInProgressJobListTracker = param != null; - - this.localInProgressJobList = param; - } - - /** field for Warning */ - protected java.lang.String localWarning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarningTracker = false; - - public boolean isWarningSpecified() { - return localWarningTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWarning() { - return localWarning; - } - - /** - * Auto generated setter method - * - * @param param Warning - */ - public void setWarning(java.lang.String param) { - localWarningTracker = param != null; - - this.localWarning = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetThorJobListResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetThorJobListResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localJobListTracker) { - if (localJobList == null) { - throw new org.apache.axis2.databinding.ADBException("JobList cannot be null!!"); - } - localJobList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobList"), xmlWriter); - } - if (localInProgressJobListTracker) { - if (localInProgressJobList == null) { - throw new org.apache.axis2.databinding.ADBException("InProgressJobList cannot be null!!"); - } - localInProgressJobList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "InProgressJobList"), - xmlWriter); - } - if (localWarningTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Warning", xmlWriter); - - if (localWarning == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWarning); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetThorJobListResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetThorJobListResponse object = new WUGetThorJobListResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetThorJobListResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetThorJobListResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobList") - .equals(reader.getName())) { - - object.setJobList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "InProgressJobList") - .equals(reader.getName())) { - - object.setInProgressJobList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Warning") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Warning" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetThorJobListResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetThorJobListResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetThorJobListResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetThorJobListResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for JobList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob localJobList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobListTracker = false; + + public boolean isJobListSpecified() { + return localJobListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob getJobList() { + return localJobList; + } + + /** + * Auto generated setter method + * + * @param param JobList + */ + public void setJobList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob param) { + localJobListTracker = param != null; + + this.localJobList = param; + } + + /** field for InProgressJobList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob + localInProgressJobList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localInProgressJobListTracker = false; + + public boolean isInProgressJobListSpecified() { + return localInProgressJobListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob + getInProgressJobList() { + return localInProgressJobList; + } + + /** + * Auto generated setter method + * + * @param param InProgressJobList + */ + public void setInProgressJobList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob param) { + localInProgressJobListTracker = param != null; + + this.localInProgressJobList = param; + } + + /** field for Warning */ + protected java.lang.String localWarning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarningTracker = false; + + public boolean isWarningSpecified() { + return localWarningTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWarning() { + return localWarning; + } + + /** + * Auto generated setter method + * + * @param param Warning + */ + public void setWarning(java.lang.String param) { + localWarningTracker = param != null; + + this.localWarning = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetThorJobListResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetThorJobListResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localJobListTracker) { + if (localJobList == null) { + throw new org.apache.axis2.databinding.ADBException("JobList cannot be null!!"); + } + localJobList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobList"), xmlWriter); + } + if (localInProgressJobListTracker) { + if (localInProgressJobList == null) { + throw new org.apache.axis2.databinding.ADBException("InProgressJobList cannot be null!!"); + } + localInProgressJobList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "InProgressJobList"), + xmlWriter); + } + if (localWarningTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Warning", xmlWriter); + + if (localWarning == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWarning); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetThorJobListResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetThorJobListResponse object = new WUGetThorJobListResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetThorJobListResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetThorJobListResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobList") + .equals(reader.getName())) { + + object.setJobList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "InProgressJobList") + .equals(reader.getName())) { + + object.setInProgressJobList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Warning") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Warning" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobQueue.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobQueue.java index 5b1f20f08..535c9a996 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobQueue.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobQueue.java @@ -1,605 +1,606 @@ -/** - * WUGetThorJobQueue.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetThorJobQueue bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetThorJobQueue implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetThorJobQueue", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for MaxJobQueueItemsToReturn */ - protected org.apache.axis2.databinding.types.UnsignedInt localMaxJobQueueItemsToReturn; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxJobQueueItemsToReturnTracker = false; - - public boolean isMaxJobQueueItemsToReturnSpecified() { - return localMaxJobQueueItemsToReturnTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getMaxJobQueueItemsToReturn() { - return localMaxJobQueueItemsToReturn; - } - - /** - * Auto generated setter method - * - * @param param MaxJobQueueItemsToReturn - */ - public void setMaxJobQueueItemsToReturn(org.apache.axis2.databinding.types.UnsignedInt param) { - localMaxJobQueueItemsToReturnTracker = param != null; - - this.localMaxJobQueueItemsToReturn = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetThorJobQueue", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetThorJobQueue", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localMaxJobQueueItemsToReturnTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxJobQueueItemsToReturn", xmlWriter); - - if (localMaxJobQueueItemsToReturn == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "MaxJobQueueItemsToReturn cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localMaxJobQueueItemsToReturn)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetThorJobQueue parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetThorJobQueue object = new WUGetThorJobQueue(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetThorJobQueue".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetThorJobQueue) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "MaxJobQueueItemsToReturn") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxJobQueueItemsToReturn" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxJobQueueItemsToReturn( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetThorJobQueue.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetThorJobQueue bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetThorJobQueue implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetThorJobQueue", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for MaxJobQueueItemsToReturn */ + protected org.apache.axis2.databinding.types.UnsignedInt localMaxJobQueueItemsToReturn = + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxJobQueueItemsToReturnTracker = false; + + public boolean isMaxJobQueueItemsToReturnSpecified() { + return localMaxJobQueueItemsToReturnTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getMaxJobQueueItemsToReturn() { + return localMaxJobQueueItemsToReturn; + } + + /** + * Auto generated setter method + * + * @param param MaxJobQueueItemsToReturn + */ + public void setMaxJobQueueItemsToReturn(org.apache.axis2.databinding.types.UnsignedInt param) { + localMaxJobQueueItemsToReturnTracker = param != null; + + this.localMaxJobQueueItemsToReturn = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetThorJobQueue", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetThorJobQueue", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localMaxJobQueueItemsToReturnTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxJobQueueItemsToReturn", xmlWriter); + + if (localMaxJobQueueItemsToReturn == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "MaxJobQueueItemsToReturn cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localMaxJobQueueItemsToReturn)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetThorJobQueue parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetThorJobQueue object = new WUGetThorJobQueue(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetThorJobQueue".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetThorJobQueue) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "MaxJobQueueItemsToReturn") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxJobQueueItemsToReturn" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxJobQueueItemsToReturn( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobQueueResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobQueueResponse.java index 882b86cfe..9e8e77318 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobQueueResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetThorJobQueueResponse.java @@ -1,644 +1,644 @@ -/** - * WUGetThorJobQueueResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetThorJobQueueResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetThorJobQueueResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetThorJobQueueResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for LongestQueue */ - protected int localLongestQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLongestQueueTracker = false; - - public boolean isLongestQueueSpecified() { - return localLongestQueueTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getLongestQueue() { - return localLongestQueue; - } - - /** - * Auto generated setter method - * - * @param param LongestQueue - */ - public void setLongestQueue(int param) { - - // setting primitive attribute tracker to true - localLongestQueueTracker = param != java.lang.Integer.MIN_VALUE; - - this.localLongestQueue = param; - } - - /** field for MaxThorConnected */ - protected int localMaxThorConnected; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxThorConnectedTracker = false; - - public boolean isMaxThorConnectedSpecified() { - return localMaxThorConnectedTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMaxThorConnected() { - return localMaxThorConnected; - } - - /** - * Auto generated setter method - * - * @param param MaxThorConnected - */ - public void setMaxThorConnected(int param) { - - // setting primitive attribute tracker to true - localMaxThorConnectedTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMaxThorConnected = param; - } - - /** field for QueueList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue localQueueList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueListTracker = false; - - public boolean isQueueListSpecified() { - return localQueueListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue getQueueList() { - return localQueueList; - } - - /** - * Auto generated setter method - * - * @param param QueueList - */ - public void setQueueList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue param) { - localQueueListTracker = param != null; - - this.localQueueList = param; - } - - /** field for Warning */ - protected java.lang.String localWarning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarningTracker = false; - - public boolean isWarningSpecified() { - return localWarningTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWarning() { - return localWarning; - } - - /** - * Auto generated setter method - * - * @param param Warning - */ - public void setWarning(java.lang.String param) { - localWarningTracker = param != null; - - this.localWarning = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetThorJobQueueResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetThorJobQueueResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localLongestQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LongestQueue", xmlWriter); - - if (localLongestQueue == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("LongestQueue cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLongestQueue)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxThorConnectedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxThorConnected", xmlWriter); - - if (localMaxThorConnected == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MaxThorConnected cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localMaxThorConnected)); - } - - xmlWriter.writeEndElement(); - } - if (localQueueListTracker) { - if (localQueueList == null) { - throw new org.apache.axis2.databinding.ADBException("QueueList cannot be null!!"); - } - localQueueList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueueList"), xmlWriter); - } - if (localWarningTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Warning", xmlWriter); - - if (localWarning == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWarning); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetThorJobQueueResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetThorJobQueueResponse object = new WUGetThorJobQueueResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetThorJobQueueResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetThorJobQueueResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LongestQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LongestQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLongestQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "MaxThorConnected") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxThorConnected" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxThorConnected( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueueList") - .equals(reader.getName())) { - - object.setQueueList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Warning") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Warning" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetThorJobQueueResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetThorJobQueueResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetThorJobQueueResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetThorJobQueueResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for LongestQueue */ + protected int localLongestQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLongestQueueTracker = false; + + public boolean isLongestQueueSpecified() { + return localLongestQueueTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getLongestQueue() { + return localLongestQueue; + } + + /** + * Auto generated setter method + * + * @param param LongestQueue + */ + public void setLongestQueue(int param) { + + // setting primitive attribute tracker to true + localLongestQueueTracker = param != java.lang.Integer.MIN_VALUE; + + this.localLongestQueue = param; + } + + /** field for MaxThorConnected */ + protected int localMaxThorConnected; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxThorConnectedTracker = false; + + public boolean isMaxThorConnectedSpecified() { + return localMaxThorConnectedTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMaxThorConnected() { + return localMaxThorConnected; + } + + /** + * Auto generated setter method + * + * @param param MaxThorConnected + */ + public void setMaxThorConnected(int param) { + + // setting primitive attribute tracker to true + localMaxThorConnectedTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMaxThorConnected = param; + } + + /** field for QueueList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue localQueueList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueListTracker = false; + + public boolean isQueueListSpecified() { + return localQueueListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue getQueueList() { + return localQueueList; + } + + /** + * Auto generated setter method + * + * @param param QueueList + */ + public void setQueueList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue param) { + localQueueListTracker = param != null; + + this.localQueueList = param; + } + + /** field for Warning */ + protected java.lang.String localWarning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarningTracker = false; + + public boolean isWarningSpecified() { + return localWarningTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWarning() { + return localWarning; + } + + /** + * Auto generated setter method + * + * @param param Warning + */ + public void setWarning(java.lang.String param) { + localWarningTracker = param != null; + + this.localWarning = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetThorJobQueueResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetThorJobQueueResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localLongestQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LongestQueue", xmlWriter); + + if (localLongestQueue == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LongestQueue cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLongestQueue)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxThorConnectedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxThorConnected", xmlWriter); + + if (localMaxThorConnected == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MaxThorConnected cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localMaxThorConnected)); + } + + xmlWriter.writeEndElement(); + } + if (localQueueListTracker) { + if (localQueueList == null) { + throw new org.apache.axis2.databinding.ADBException("QueueList cannot be null!!"); + } + localQueueList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueueList"), xmlWriter); + } + if (localWarningTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Warning", xmlWriter); + + if (localWarning == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Warning cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWarning); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetThorJobQueueResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetThorJobQueueResponse object = new WUGetThorJobQueueResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetThorJobQueueResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetThorJobQueueResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LongestQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LongestQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLongestQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "MaxThorConnected") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxThorConnected" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxThorConnected( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueueList") + .equals(reader.getName())) { + + object.setQueueList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfThorQueue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Warning") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Warning" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetZAPInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetZAPInfo.java index e6b1c4d3c..a45625902 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetZAPInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetZAPInfo.java @@ -1,393 +1,393 @@ -/** - * WUGetZAPInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetZAPInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetZAPInfo implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetZAPInfo", "ns1"); - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetZAPInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGetZAPInfo", xmlWriter); - } - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetZAPInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetZAPInfo object = new WUGetZAPInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetZAPInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetZAPInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetZAPInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetZAPInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetZAPInfo implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetZAPInfo", "ns1"); + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetZAPInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGetZAPInfo", xmlWriter); + } + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetZAPInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetZAPInfo object = new WUGetZAPInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetZAPInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetZAPInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetZAPInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetZAPInfoResponse.java index 6f9162095..36b0add2f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetZAPInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGetZAPInfoResponse.java @@ -1,928 +1,928 @@ -/** - * WUGetZAPInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGetZAPInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGetZAPInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetZAPInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for ESPApplication */ - protected java.lang.String localESPApplication; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localESPApplicationTracker = false; - - public boolean isESPApplicationSpecified() { - return localESPApplicationTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getESPApplication() { - return localESPApplication; - } - - /** - * Auto generated setter method - * - * @param param ESPApplication - */ - public void setESPApplication(java.lang.String param) { - localESPApplicationTracker = param != null; - - this.localESPApplication = param; - } - - /** field for ThorProcesses */ - protected java.lang.String localThorProcesses; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorProcessesTracker = false; - - public boolean isThorProcessesSpecified() { - return localThorProcessesTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorProcesses() { - return localThorProcesses; - } - - /** - * Auto generated setter method - * - * @param param ThorProcesses - */ - public void setThorProcesses(java.lang.String param) { - localThorProcessesTracker = param != null; - - this.localThorProcesses = param; - } - - /** field for BuildVersion */ - protected java.lang.String localBuildVersion; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBuildVersionTracker = false; - - public boolean isBuildVersionSpecified() { - return localBuildVersionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBuildVersion() { - return localBuildVersion; - } - - /** - * Auto generated setter method - * - * @param param BuildVersion - */ - public void setBuildVersion(java.lang.String param) { - localBuildVersionTracker = param != null; - - this.localBuildVersion = param; - } - - /** field for Archive */ - protected java.lang.String localArchive; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localArchiveTracker = false; - - public boolean isArchiveSpecified() { - return localArchiveTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getArchive() { - return localArchive; - } - - /** - * Auto generated setter method - * - * @param param Archive - */ - public void setArchive(java.lang.String param) { - localArchiveTracker = param != null; - - this.localArchive = param; - } - - /** field for EmailTo */ - protected java.lang.String localEmailTo; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEmailToTracker = false; - - public boolean isEmailToSpecified() { - return localEmailToTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEmailTo() { - return localEmailTo; - } - - /** - * Auto generated setter method - * - * @param param EmailTo - */ - public void setEmailTo(java.lang.String param) { - localEmailToTracker = param != null; - - this.localEmailTo = param; - } - - /** field for EmailFrom */ - protected java.lang.String localEmailFrom; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEmailFromTracker = false; - - public boolean isEmailFromSpecified() { - return localEmailFromTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEmailFrom() { - return localEmailFrom; - } - - /** - * Auto generated setter method - * - * @param param EmailFrom - */ - public void setEmailFrom(java.lang.String param) { - localEmailFromTracker = param != null; - - this.localEmailFrom = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGetZAPInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGetZAPInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localESPApplicationTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ESPApplication", xmlWriter); - - if (localESPApplication == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ESPApplication cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localESPApplication); - } - - xmlWriter.writeEndElement(); - } - if (localThorProcessesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorProcesses", xmlWriter); - - if (localThorProcesses == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorProcesses cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorProcesses); - } - - xmlWriter.writeEndElement(); - } - if (localBuildVersionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BuildVersion", xmlWriter); - - if (localBuildVersion == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BuildVersion cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBuildVersion); - } - - xmlWriter.writeEndElement(); - } - if (localArchiveTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Archive", xmlWriter); - - if (localArchive == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Archive cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localArchive); - } - - xmlWriter.writeEndElement(); - } - if (localEmailToTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EmailTo", xmlWriter); - - if (localEmailTo == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EmailTo cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEmailTo); - } - - xmlWriter.writeEndElement(); - } - if (localEmailFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EmailFrom", xmlWriter); - - if (localEmailFrom == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EmailFrom cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEmailFrom); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGetZAPInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGetZAPInfoResponse object = new WUGetZAPInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGetZAPInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGetZAPInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ESPApplication") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ESPApplication" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setESPApplication( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorProcesses") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorProcesses" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorProcesses( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BuildVersion") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BuildVersion" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBuildVersion( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Archive") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Archive" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setArchive( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailTo") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EmailTo" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEmailTo( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EmailFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEmailFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGetZAPInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGetZAPInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGetZAPInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetZAPInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for ESPApplication */ + protected java.lang.String localESPApplication; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localESPApplicationTracker = false; + + public boolean isESPApplicationSpecified() { + return localESPApplicationTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getESPApplication() { + return localESPApplication; + } + + /** + * Auto generated setter method + * + * @param param ESPApplication + */ + public void setESPApplication(java.lang.String param) { + localESPApplicationTracker = param != null; + + this.localESPApplication = param; + } + + /** field for ThorProcesses */ + protected java.lang.String localThorProcesses; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorProcessesTracker = false; + + public boolean isThorProcessesSpecified() { + return localThorProcessesTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorProcesses() { + return localThorProcesses; + } + + /** + * Auto generated setter method + * + * @param param ThorProcesses + */ + public void setThorProcesses(java.lang.String param) { + localThorProcessesTracker = param != null; + + this.localThorProcesses = param; + } + + /** field for BuildVersion */ + protected java.lang.String localBuildVersion; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBuildVersionTracker = false; + + public boolean isBuildVersionSpecified() { + return localBuildVersionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBuildVersion() { + return localBuildVersion; + } + + /** + * Auto generated setter method + * + * @param param BuildVersion + */ + public void setBuildVersion(java.lang.String param) { + localBuildVersionTracker = param != null; + + this.localBuildVersion = param; + } + + /** field for Archive */ + protected java.lang.String localArchive; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localArchiveTracker = false; + + public boolean isArchiveSpecified() { + return localArchiveTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getArchive() { + return localArchive; + } + + /** + * Auto generated setter method + * + * @param param Archive + */ + public void setArchive(java.lang.String param) { + localArchiveTracker = param != null; + + this.localArchive = param; + } + + /** field for EmailTo */ + protected java.lang.String localEmailTo; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEmailToTracker = false; + + public boolean isEmailToSpecified() { + return localEmailToTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEmailTo() { + return localEmailTo; + } + + /** + * Auto generated setter method + * + * @param param EmailTo + */ + public void setEmailTo(java.lang.String param) { + localEmailToTracker = param != null; + + this.localEmailTo = param; + } + + /** field for EmailFrom */ + protected java.lang.String localEmailFrom; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEmailFromTracker = false; + + public boolean isEmailFromSpecified() { + return localEmailFromTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEmailFrom() { + return localEmailFrom; + } + + /** + * Auto generated setter method + * + * @param param EmailFrom + */ + public void setEmailFrom(java.lang.String param) { + localEmailFromTracker = param != null; + + this.localEmailFrom = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGetZAPInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGetZAPInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localESPApplicationTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ESPApplication", xmlWriter); + + if (localESPApplication == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ESPApplication cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localESPApplication); + } + + xmlWriter.writeEndElement(); + } + if (localThorProcessesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorProcesses", xmlWriter); + + if (localThorProcesses == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorProcesses cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorProcesses); + } + + xmlWriter.writeEndElement(); + } + if (localBuildVersionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BuildVersion", xmlWriter); + + if (localBuildVersion == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BuildVersion cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBuildVersion); + } + + xmlWriter.writeEndElement(); + } + if (localArchiveTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Archive", xmlWriter); + + if (localArchive == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Archive cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localArchive); + } + + xmlWriter.writeEndElement(); + } + if (localEmailToTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EmailTo", xmlWriter); + + if (localEmailTo == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EmailTo cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEmailTo); + } + + xmlWriter.writeEndElement(); + } + if (localEmailFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EmailFrom", xmlWriter); + + if (localEmailFrom == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EmailFrom cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEmailFrom); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGetZAPInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGetZAPInfoResponse object = new WUGetZAPInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGetZAPInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGetZAPInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ESPApplication") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ESPApplication" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setESPApplication( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorProcesses") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorProcesses" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorProcesses( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BuildVersion") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BuildVersion" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBuildVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Archive") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Archive" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setArchive( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailTo") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EmailTo" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEmailTo( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EmailFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EmailFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEmailFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphInfo.java index 0268315e0..d04e28976 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphInfo.java @@ -1,598 +1,598 @@ -/** - * WUGraphInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGraphInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGraphInfo implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphInfo", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for GID */ - protected java.lang.String localGID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGIDTracker = false; - - public boolean isGIDSpecified() { - return localGIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGID() { - return localGID; - } - - /** - * Auto generated setter method - * - * @param param GID - */ - public void setGID(java.lang.String param) { - localGIDTracker = param != null; - - this.localGID = param; - } - - /** field for BatchWU */ - protected int localBatchWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBatchWUTracker = false; - - public boolean isBatchWUSpecified() { - return localBatchWUTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBatchWU() { - return localBatchWU; - } - - /** - * Auto generated setter method - * - * @param param BatchWU - */ - public void setBatchWU(int param) { - - // setting primitive attribute tracker to true - localBatchWUTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBatchWU = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGraphInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGraphInfo", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localGIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GID", xmlWriter); - - if (localGID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGID); - } - - xmlWriter.writeEndElement(); - } - if (localBatchWUTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BatchWU", xmlWriter); - - if (localBatchWU == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BatchWU cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBatchWU)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGraphInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGraphInfo object = new WUGraphInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGraphInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGraphInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BatchWU") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BatchWU" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBatchWU( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGraphInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGraphInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGraphInfo implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphInfo", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for GID */ + protected java.lang.String localGID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGIDTracker = false; + + public boolean isGIDSpecified() { + return localGIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGID() { + return localGID; + } + + /** + * Auto generated setter method + * + * @param param GID + */ + public void setGID(java.lang.String param) { + localGIDTracker = param != null; + + this.localGID = param; + } + + /** field for BatchWU */ + protected int localBatchWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBatchWUTracker = false; + + public boolean isBatchWUSpecified() { + return localBatchWUTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBatchWU() { + return localBatchWU; + } + + /** + * Auto generated setter method + * + * @param param BatchWU + */ + public void setBatchWU(int param) { + + // setting primitive attribute tracker to true + localBatchWUTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBatchWU = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGraphInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGraphInfo", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localGIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GID", xmlWriter); + + if (localGID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGID); + } + + xmlWriter.writeEndElement(); + } + if (localBatchWUTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BatchWU", xmlWriter); + + if (localBatchWU == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BatchWU cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBatchWU)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGraphInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGraphInfo object = new WUGraphInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGraphInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGraphInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BatchWU") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BatchWU" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBatchWU( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphInfoResponse.java index 06b20c57e..b2c0eba73 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphInfoResponse.java @@ -1,725 +1,725 @@ -/** - * WUGraphInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGraphInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGraphInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for GID */ - protected java.lang.String localGID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGIDTracker = false; - - public boolean isGIDSpecified() { - return localGIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGID() { - return localGID; - } - - /** - * Auto generated setter method - * - * @param param GID - */ - public void setGID(java.lang.String param) { - localGIDTracker = param != null; - - this.localGID = param; - } - - /** field for BatchWU */ - protected int localBatchWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBatchWUTracker = false; - - public boolean isBatchWUSpecified() { - return localBatchWUTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBatchWU() { - return localBatchWU; - } - - /** - * Auto generated setter method - * - * @param param BatchWU - */ - public void setBatchWU(int param) { - - // setting primitive attribute tracker to true - localBatchWUTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBatchWU = param; - } - - /** field for Running */ - protected boolean localRunning; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRunningTracker = false; - - public boolean isRunningSpecified() { - return localRunningTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRunning() { - return localRunning; - } - - /** - * Auto generated setter method - * - * @param param Running - */ - public void setRunning(boolean param) { - - // setting primitive attribute tracker to true - localRunningTracker = true; - - this.localRunning = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGraphInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGraphInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localGIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GID", xmlWriter); - - if (localGID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGID); - } - - xmlWriter.writeEndElement(); - } - if (localBatchWUTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BatchWU", xmlWriter); - - if (localBatchWU == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BatchWU cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBatchWU)); - } - - xmlWriter.writeEndElement(); - } - if (localRunningTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Running", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunning)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGraphInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGraphInfoResponse object = new WUGraphInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGraphInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGraphInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BatchWU") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BatchWU" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBatchWU( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Running") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Running" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRunning( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGraphInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGraphInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGraphInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for GID */ + protected java.lang.String localGID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGIDTracker = false; + + public boolean isGIDSpecified() { + return localGIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGID() { + return localGID; + } + + /** + * Auto generated setter method + * + * @param param GID + */ + public void setGID(java.lang.String param) { + localGIDTracker = param != null; + + this.localGID = param; + } + + /** field for BatchWU */ + protected int localBatchWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBatchWUTracker = false; + + public boolean isBatchWUSpecified() { + return localBatchWUTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBatchWU() { + return localBatchWU; + } + + /** + * Auto generated setter method + * + * @param param BatchWU + */ + public void setBatchWU(int param) { + + // setting primitive attribute tracker to true + localBatchWUTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBatchWU = param; + } + + /** field for Running */ + protected boolean localRunning; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRunningTracker = false; + + public boolean isRunningSpecified() { + return localRunningTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRunning() { + return localRunning; + } + + /** + * Auto generated setter method + * + * @param param Running + */ + public void setRunning(boolean param) { + + // setting primitive attribute tracker to true + localRunningTracker = true; + + this.localRunning = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGraphInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGraphInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localGIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GID", xmlWriter); + + if (localGID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGID); + } + + xmlWriter.writeEndElement(); + } + if (localBatchWUTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BatchWU", xmlWriter); + + if (localBatchWU == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BatchWU cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBatchWU)); + } + + xmlWriter.writeEndElement(); + } + if (localRunningTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Running", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Running cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRunning)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGraphInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGraphInfoResponse object = new WUGraphInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGraphInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGraphInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BatchWU") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BatchWU" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBatchWU( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Running") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Running" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRunning( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphTiming.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphTiming.java index d53009f9f..d1ae07415 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphTiming.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphTiming.java @@ -1,393 +1,393 @@ -/** - * WUGraphTiming.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGraphTiming bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGraphTiming implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphTiming", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGraphTiming", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGraphTiming", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGraphTiming parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGraphTiming object = new WUGraphTiming(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGraphTiming".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGraphTiming) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGraphTiming.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGraphTiming bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGraphTiming implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphTiming", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGraphTiming", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUGraphTiming", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGraphTiming parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGraphTiming object = new WUGraphTiming(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGraphTiming".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGraphTiming) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphTimingResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphTimingResponse.java index 758d37141..4785ffd99 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphTimingResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUGraphTimingResponse.java @@ -1,436 +1,436 @@ -/** - * WUGraphTimingResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUGraphTimingResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUGraphTimingResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGraphTimingResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Workunit */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitTracker = false; - - public boolean isWorkunitSpecified() { - return localWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { - return localWorkunit; - } - - /** - * Auto generated setter method - * - * @param param Workunit - */ - public void setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { - localWorkunitTracker = param != null; - - this.localWorkunit = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUGraphTimingResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUGraphTimingResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWorkunitTracker) { - if (localWorkunit == null) { - throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); - } - localWorkunit.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUGraphTimingResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUGraphTimingResponse object = new WUGraphTimingResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUGraphTimingResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUGraphTimingResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") - .equals(reader.getName())) { - - object.setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUGraphTimingResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUGraphTimingResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUGraphTimingResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGraphTimingResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Workunit */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitTracker = false; + + public boolean isWorkunitSpecified() { + return localWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { + return localWorkunit; + } + + /** + * Auto generated setter method + * + * @param param Workunit + */ + public void setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { + localWorkunitTracker = param != null; + + this.localWorkunit = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUGraphTimingResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUGraphTimingResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWorkunitTracker) { + if (localWorkunit == null) { + throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); + } + localWorkunit.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUGraphTimingResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUGraphTimingResponse object = new WUGraphTimingResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUGraphTimingResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUGraphTimingResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") + .equals(reader.getName())) { + + object.setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfo.java index e44dbbc2b..e6ab9104e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfo.java @@ -1,1891 +1,1963 @@ -/** - * WUInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUInfo implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfo", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for TruncateEclTo64K */ - protected boolean localTruncateEclTo64K = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTruncateEclTo64KTracker = false; - - public boolean isTruncateEclTo64KSpecified() { - return localTruncateEclTo64KTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getTruncateEclTo64K() { - return localTruncateEclTo64K; - } - - /** - * Auto generated setter method - * - * @param param TruncateEclTo64K - */ - public void setTruncateEclTo64K(boolean param) { - - // setting primitive attribute tracker to true - localTruncateEclTo64KTracker = true; - - this.localTruncateEclTo64K = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for IncludeExceptions */ - protected boolean localIncludeExceptions = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeExceptionsTracker = false; - - public boolean isIncludeExceptionsSpecified() { - return localIncludeExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeExceptions() { - return localIncludeExceptions; - } - - /** - * Auto generated setter method - * - * @param param IncludeExceptions - */ - public void setIncludeExceptions(boolean param) { - - // setting primitive attribute tracker to true - localIncludeExceptionsTracker = true; - - this.localIncludeExceptions = param; - } - - /** field for IncludeGraphs */ - protected boolean localIncludeGraphs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeGraphsTracker = false; - - public boolean isIncludeGraphsSpecified() { - return localIncludeGraphsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeGraphs() { - return localIncludeGraphs; - } - - /** - * Auto generated setter method - * - * @param param IncludeGraphs - */ - public void setIncludeGraphs(boolean param) { - - // setting primitive attribute tracker to true - localIncludeGraphsTracker = true; - - this.localIncludeGraphs = param; - } - - /** field for IncludeSourceFiles */ - protected boolean localIncludeSourceFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeSourceFilesTracker = false; - - public boolean isIncludeSourceFilesSpecified() { - return localIncludeSourceFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeSourceFiles() { - return localIncludeSourceFiles; - } - - /** - * Auto generated setter method - * - * @param param IncludeSourceFiles - */ - public void setIncludeSourceFiles(boolean param) { - - // setting primitive attribute tracker to true - localIncludeSourceFilesTracker = true; - - this.localIncludeSourceFiles = param; - } - - /** field for IncludeResults */ - protected boolean localIncludeResults = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeResultsTracker = false; - - public boolean isIncludeResultsSpecified() { - return localIncludeResultsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeResults() { - return localIncludeResults; - } - - /** - * Auto generated setter method - * - * @param param IncludeResults - */ - public void setIncludeResults(boolean param) { - - // setting primitive attribute tracker to true - localIncludeResultsTracker = true; - - this.localIncludeResults = param; - } - - /** field for IncludeResultsViewNames */ - protected boolean localIncludeResultsViewNames = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeResultsViewNamesTracker = false; - - public boolean isIncludeResultsViewNamesSpecified() { - return localIncludeResultsViewNamesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeResultsViewNames() { - return localIncludeResultsViewNames; - } - - /** - * Auto generated setter method - * - * @param param IncludeResultsViewNames - */ - public void setIncludeResultsViewNames(boolean param) { - - // setting primitive attribute tracker to true - localIncludeResultsViewNamesTracker = true; - - this.localIncludeResultsViewNames = param; - } - - /** field for IncludeVariables */ - protected boolean localIncludeVariables = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeVariablesTracker = false; - - public boolean isIncludeVariablesSpecified() { - return localIncludeVariablesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeVariables() { - return localIncludeVariables; - } - - /** - * Auto generated setter method - * - * @param param IncludeVariables - */ - public void setIncludeVariables(boolean param) { - - // setting primitive attribute tracker to true - localIncludeVariablesTracker = true; - - this.localIncludeVariables = param; - } - - /** field for IncludeTimers */ - protected boolean localIncludeTimers = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeTimersTracker = false; - - public boolean isIncludeTimersSpecified() { - return localIncludeTimersTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeTimers() { - return localIncludeTimers; - } - - /** - * Auto generated setter method - * - * @param param IncludeTimers - */ - public void setIncludeTimers(boolean param) { - - // setting primitive attribute tracker to true - localIncludeTimersTracker = true; - - this.localIncludeTimers = param; - } - - /** field for IncludeDebugValues */ - protected boolean localIncludeDebugValues = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeDebugValuesTracker = false; - - public boolean isIncludeDebugValuesSpecified() { - return localIncludeDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeDebugValues() { - return localIncludeDebugValues; - } - - /** - * Auto generated setter method - * - * @param param IncludeDebugValues - */ - public void setIncludeDebugValues(boolean param) { - - // setting primitive attribute tracker to true - localIncludeDebugValuesTracker = true; - - this.localIncludeDebugValues = param; - } - - /** field for IncludeApplicationValues */ - protected boolean localIncludeApplicationValues = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeApplicationValuesTracker = false; - - public boolean isIncludeApplicationValuesSpecified() { - return localIncludeApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeApplicationValues() { - return localIncludeApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param IncludeApplicationValues - */ - public void setIncludeApplicationValues(boolean param) { - - // setting primitive attribute tracker to true - localIncludeApplicationValuesTracker = true; - - this.localIncludeApplicationValues = param; - } - - /** field for IncludeWorkflows */ - protected boolean localIncludeWorkflows = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeWorkflowsTracker = false; - - public boolean isIncludeWorkflowsSpecified() { - return localIncludeWorkflowsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeWorkflows() { - return localIncludeWorkflows; - } - - /** - * Auto generated setter method - * - * @param param IncludeWorkflows - */ - public void setIncludeWorkflows(boolean param) { - - // setting primitive attribute tracker to true - localIncludeWorkflowsTracker = true; - - this.localIncludeWorkflows = param; - } - - /** field for IncludeXmlSchemas */ - protected boolean localIncludeXmlSchemas = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeXmlSchemasTracker = false; - - public boolean isIncludeXmlSchemasSpecified() { - return localIncludeXmlSchemasTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeXmlSchemas() { - return localIncludeXmlSchemas; - } - - /** - * Auto generated setter method - * - * @param param IncludeXmlSchemas - */ - public void setIncludeXmlSchemas(boolean param) { - - // setting primitive attribute tracker to true - localIncludeXmlSchemasTracker = true; - - this.localIncludeXmlSchemas = param; - } - - /** field for IncludeResourceURLs */ - protected boolean localIncludeResourceURLs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeResourceURLsTracker = false; - - public boolean isIncludeResourceURLsSpecified() { - return localIncludeResourceURLsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeResourceURLs() { - return localIncludeResourceURLs; - } - - /** - * Auto generated setter method - * - * @param param IncludeResourceURLs - */ - public void setIncludeResourceURLs(boolean param) { - - // setting primitive attribute tracker to true - localIncludeResourceURLsTracker = true; - - this.localIncludeResourceURLs = param; - } - - /** field for IncludeECL */ - protected boolean localIncludeECL = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeECLTracker = false; - - public boolean isIncludeECLSpecified() { - return localIncludeECLTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeECL() { - return localIncludeECL; - } - - /** - * Auto generated setter method - * - * @param param IncludeECL - */ - public void setIncludeECL(boolean param) { - - // setting primitive attribute tracker to true - localIncludeECLTracker = true; - - this.localIncludeECL = param; - } - - /** field for IncludeHelpers */ - protected boolean localIncludeHelpers = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeHelpersTracker = false; - - public boolean isIncludeHelpersSpecified() { - return localIncludeHelpersTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeHelpers() { - return localIncludeHelpers; - } - - /** - * Auto generated setter method - * - * @param param IncludeHelpers - */ - public void setIncludeHelpers(boolean param) { - - // setting primitive attribute tracker to true - localIncludeHelpersTracker = true; - - this.localIncludeHelpers = param; - } - - /** field for IncludeAllowedClusters */ - protected boolean localIncludeAllowedClusters = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeAllowedClustersTracker = false; - - public boolean isIncludeAllowedClustersSpecified() { - return localIncludeAllowedClustersTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeAllowedClusters() { - return localIncludeAllowedClusters; - } - - /** - * Auto generated setter method - * - * @param param IncludeAllowedClusters - */ - public void setIncludeAllowedClusters(boolean param) { - - // setting primitive attribute tracker to true - localIncludeAllowedClustersTracker = true; - - this.localIncludeAllowedClusters = param; - } - - /** field for IncludeTotalClusterTime */ - protected boolean localIncludeTotalClusterTime = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeTotalClusterTimeTracker = false; - - public boolean isIncludeTotalClusterTimeSpecified() { - return localIncludeTotalClusterTimeTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeTotalClusterTime() { - return localIncludeTotalClusterTime; - } - - /** - * Auto generated setter method - * - * @param param IncludeTotalClusterTime - */ - public void setIncludeTotalClusterTime(boolean param) { - - // setting primitive attribute tracker to true - localIncludeTotalClusterTimeTracker = true; - - this.localIncludeTotalClusterTime = param; - } - - /** field for IncludeServiceNames */ - protected boolean localIncludeServiceNames = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeServiceNamesTracker = false; - - public boolean isIncludeServiceNamesSpecified() { - return localIncludeServiceNamesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeServiceNames() { - return localIncludeServiceNames; - } - - /** - * Auto generated setter method - * - * @param param IncludeServiceNames - */ - public void setIncludeServiceNames(boolean param) { - - // setting primitive attribute tracker to true - localIncludeServiceNamesTracker = true; - - this.localIncludeServiceNames = param; - } - - /** field for SuppressResultSchemas */ - protected boolean localSuppressResultSchemas = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuppressResultSchemasTracker = false; - - public boolean isSuppressResultSchemasSpecified() { - return localSuppressResultSchemasTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuppressResultSchemas() { - return localSuppressResultSchemas; - } - - /** - * Auto generated setter method - * - * @param param SuppressResultSchemas - */ - public void setSuppressResultSchemas(boolean param) { - - // setting primitive attribute tracker to true - localSuppressResultSchemasTracker = true; - - this.localSuppressResultSchemas = param; - } - - /** field for ThorSlaveIP */ - protected java.lang.String localThorSlaveIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorSlaveIPTracker = false; - - public boolean isThorSlaveIPSpecified() { - return localThorSlaveIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorSlaveIP() { - return localThorSlaveIP; - } - - /** - * Auto generated setter method - * - * @param param ThorSlaveIP - */ - public void setThorSlaveIP(java.lang.String param) { - localThorSlaveIPTracker = param != null; - - this.localThorSlaveIP = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUInfo", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localTruncateEclTo64KTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TruncateEclTo64k", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("TruncateEclTo64k cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTruncateEclTo64K)); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeExceptionsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeExceptions", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeExceptions cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeExceptions)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeGraphsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeGraphs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeGraphs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeGraphs)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeSourceFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeSourceFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeSourceFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeSourceFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeResultsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeResults", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeResults cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeResults)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeResultsViewNamesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeResultsViewNames", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeResultsViewNames cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeResultsViewNames)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeVariablesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeVariables", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeVariables cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeVariables)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeTimersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeTimers", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeTimers cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeTimers)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeDebugValuesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeDebugValues", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeDebugValues cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeDebugValues)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeApplicationValuesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeApplicationValues", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeApplicationValues cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeApplicationValues)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeWorkflowsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeWorkflows", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeWorkflows cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeWorkflows)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeXmlSchemasTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeXmlSchemas", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeXmlSchemas cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeXmlSchemas)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeResourceURLsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeResourceURLs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeResourceURLs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeResourceURLs)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeECLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeECL", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeECL cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeECL)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeHelpersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeHelpers", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeHelpers cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeHelpers)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeAllowedClustersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeAllowedClusters", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeAllowedClusters cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeAllowedClusters)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeTotalClusterTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeTotalClusterTime", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeTotalClusterTime cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeTotalClusterTime)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeServiceNamesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeServiceNames", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeServiceNames cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeServiceNames)); - } - - xmlWriter.writeEndElement(); - } - if (localSuppressResultSchemasTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SuppressResultSchemas", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "SuppressResultSchemas cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSuppressResultSchemas)); - } - - xmlWriter.writeEndElement(); - } - if (localThorSlaveIPTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); - - if (localThorSlaveIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorSlaveIP); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - WUInfo object = new WUInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TruncateEclTo64k") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TruncateEclTo64k" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTruncateEclTo64K( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeExceptions") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeExceptions" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeExceptions( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeGraphs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeGraphs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeGraphs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeSourceFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeSourceFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeSourceFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeResults") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeResults" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeResults( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeResultsViewNames") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeResultsViewNames" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeResultsViewNames( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeVariables") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeVariables" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeVariables( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeTimers") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeTimers" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeTimers( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeDebugValues") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeDebugValues" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeDebugValues( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeApplicationValues") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeApplicationValues" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeApplicationValues( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeWorkflows") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeWorkflows" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeWorkflows( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeXmlSchemas") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeXmlSchemas" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeXmlSchemas( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeResourceURLs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeResourceURLs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeResourceURLs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeECL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeECL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeECL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeHelpers") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeHelpers" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeHelpers( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeAllowedClusters") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeAllowedClusters" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeAllowedClusters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeTotalClusterTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeTotalClusterTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeTotalClusterTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeServiceNames") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeServiceNames" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeServiceNames( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SuppressResultSchemas") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SuppressResultSchemas" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuppressResultSchemas( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorSlaveIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorSlaveIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUInfo implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfo", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for TruncateEclTo64K */ + protected boolean localTruncateEclTo64K = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTruncateEclTo64KTracker = false; + + public boolean isTruncateEclTo64KSpecified() { + return localTruncateEclTo64KTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getTruncateEclTo64K() { + return localTruncateEclTo64K; + } + + /** + * Auto generated setter method + * + * @param param TruncateEclTo64K + */ + public void setTruncateEclTo64K(boolean param) { + + // setting primitive attribute tracker to true + localTruncateEclTo64KTracker = true; + + this.localTruncateEclTo64K = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for IncludeExceptions */ + protected boolean localIncludeExceptions = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeExceptionsTracker = false; + + public boolean isIncludeExceptionsSpecified() { + return localIncludeExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeExceptions() { + return localIncludeExceptions; + } + + /** + * Auto generated setter method + * + * @param param IncludeExceptions + */ + public void setIncludeExceptions(boolean param) { + + // setting primitive attribute tracker to true + localIncludeExceptionsTracker = true; + + this.localIncludeExceptions = param; + } + + /** field for IncludeGraphs */ + protected boolean localIncludeGraphs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeGraphsTracker = false; + + public boolean isIncludeGraphsSpecified() { + return localIncludeGraphsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeGraphs() { + return localIncludeGraphs; + } + + /** + * Auto generated setter method + * + * @param param IncludeGraphs + */ + public void setIncludeGraphs(boolean param) { + + // setting primitive attribute tracker to true + localIncludeGraphsTracker = true; + + this.localIncludeGraphs = param; + } + + /** field for IncludeSourceFiles */ + protected boolean localIncludeSourceFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeSourceFilesTracker = false; + + public boolean isIncludeSourceFilesSpecified() { + return localIncludeSourceFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeSourceFiles() { + return localIncludeSourceFiles; + } + + /** + * Auto generated setter method + * + * @param param IncludeSourceFiles + */ + public void setIncludeSourceFiles(boolean param) { + + // setting primitive attribute tracker to true + localIncludeSourceFilesTracker = true; + + this.localIncludeSourceFiles = param; + } + + /** field for IncludeResults */ + protected boolean localIncludeResults = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeResultsTracker = false; + + public boolean isIncludeResultsSpecified() { + return localIncludeResultsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeResults() { + return localIncludeResults; + } + + /** + * Auto generated setter method + * + * @param param IncludeResults + */ + public void setIncludeResults(boolean param) { + + // setting primitive attribute tracker to true + localIncludeResultsTracker = true; + + this.localIncludeResults = param; + } + + /** field for IncludeResultsViewNames */ + protected boolean localIncludeResultsViewNames = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeResultsViewNamesTracker = false; + + public boolean isIncludeResultsViewNamesSpecified() { + return localIncludeResultsViewNamesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeResultsViewNames() { + return localIncludeResultsViewNames; + } + + /** + * Auto generated setter method + * + * @param param IncludeResultsViewNames + */ + public void setIncludeResultsViewNames(boolean param) { + + // setting primitive attribute tracker to true + localIncludeResultsViewNamesTracker = true; + + this.localIncludeResultsViewNames = param; + } + + /** field for IncludeVariables */ + protected boolean localIncludeVariables = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeVariablesTracker = false; + + public boolean isIncludeVariablesSpecified() { + return localIncludeVariablesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeVariables() { + return localIncludeVariables; + } + + /** + * Auto generated setter method + * + * @param param IncludeVariables + */ + public void setIncludeVariables(boolean param) { + + // setting primitive attribute tracker to true + localIncludeVariablesTracker = true; + + this.localIncludeVariables = param; + } + + /** field for IncludeTimers */ + protected boolean localIncludeTimers = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeTimersTracker = false; + + public boolean isIncludeTimersSpecified() { + return localIncludeTimersTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeTimers() { + return localIncludeTimers; + } + + /** + * Auto generated setter method + * + * @param param IncludeTimers + */ + public void setIncludeTimers(boolean param) { + + // setting primitive attribute tracker to true + localIncludeTimersTracker = true; + + this.localIncludeTimers = param; + } + + /** field for IncludeDebugValues */ + protected boolean localIncludeDebugValues = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeDebugValuesTracker = false; + + public boolean isIncludeDebugValuesSpecified() { + return localIncludeDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeDebugValues() { + return localIncludeDebugValues; + } + + /** + * Auto generated setter method + * + * @param param IncludeDebugValues + */ + public void setIncludeDebugValues(boolean param) { + + // setting primitive attribute tracker to true + localIncludeDebugValuesTracker = true; + + this.localIncludeDebugValues = param; + } + + /** field for IncludeApplicationValues */ + protected boolean localIncludeApplicationValues = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeApplicationValuesTracker = false; + + public boolean isIncludeApplicationValuesSpecified() { + return localIncludeApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeApplicationValues() { + return localIncludeApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param IncludeApplicationValues + */ + public void setIncludeApplicationValues(boolean param) { + + // setting primitive attribute tracker to true + localIncludeApplicationValuesTracker = true; + + this.localIncludeApplicationValues = param; + } + + /** field for IncludeWorkflows */ + protected boolean localIncludeWorkflows = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeWorkflowsTracker = false; + + public boolean isIncludeWorkflowsSpecified() { + return localIncludeWorkflowsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeWorkflows() { + return localIncludeWorkflows; + } + + /** + * Auto generated setter method + * + * @param param IncludeWorkflows + */ + public void setIncludeWorkflows(boolean param) { + + // setting primitive attribute tracker to true + localIncludeWorkflowsTracker = true; + + this.localIncludeWorkflows = param; + } + + /** field for IncludeXmlSchemas */ + protected boolean localIncludeXmlSchemas = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeXmlSchemasTracker = false; + + public boolean isIncludeXmlSchemasSpecified() { + return localIncludeXmlSchemasTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeXmlSchemas() { + return localIncludeXmlSchemas; + } + + /** + * Auto generated setter method + * + * @param param IncludeXmlSchemas + */ + public void setIncludeXmlSchemas(boolean param) { + + // setting primitive attribute tracker to true + localIncludeXmlSchemasTracker = true; + + this.localIncludeXmlSchemas = param; + } + + /** field for IncludeResourceURLs */ + protected boolean localIncludeResourceURLs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeResourceURLsTracker = false; + + public boolean isIncludeResourceURLsSpecified() { + return localIncludeResourceURLsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeResourceURLs() { + return localIncludeResourceURLs; + } + + /** + * Auto generated setter method + * + * @param param IncludeResourceURLs + */ + public void setIncludeResourceURLs(boolean param) { + + // setting primitive attribute tracker to true + localIncludeResourceURLsTracker = true; + + this.localIncludeResourceURLs = param; + } + + /** field for IncludeECL */ + protected boolean localIncludeECL = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeECLTracker = false; + + public boolean isIncludeECLSpecified() { + return localIncludeECLTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeECL() { + return localIncludeECL; + } + + /** + * Auto generated setter method + * + * @param param IncludeECL + */ + public void setIncludeECL(boolean param) { + + // setting primitive attribute tracker to true + localIncludeECLTracker = true; + + this.localIncludeECL = param; + } + + /** field for IncludeHelpers */ + protected boolean localIncludeHelpers = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeHelpersTracker = false; + + public boolean isIncludeHelpersSpecified() { + return localIncludeHelpersTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeHelpers() { + return localIncludeHelpers; + } + + /** + * Auto generated setter method + * + * @param param IncludeHelpers + */ + public void setIncludeHelpers(boolean param) { + + // setting primitive attribute tracker to true + localIncludeHelpersTracker = true; + + this.localIncludeHelpers = param; + } + + /** field for IncludeAllowedClusters */ + protected boolean localIncludeAllowedClusters = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeAllowedClustersTracker = false; + + public boolean isIncludeAllowedClustersSpecified() { + return localIncludeAllowedClustersTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeAllowedClusters() { + return localIncludeAllowedClusters; + } + + /** + * Auto generated setter method + * + * @param param IncludeAllowedClusters + */ + public void setIncludeAllowedClusters(boolean param) { + + // setting primitive attribute tracker to true + localIncludeAllowedClustersTracker = true; + + this.localIncludeAllowedClusters = param; + } + + /** field for IncludeTotalClusterTime */ + protected boolean localIncludeTotalClusterTime = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeTotalClusterTimeTracker = false; + + public boolean isIncludeTotalClusterTimeSpecified() { + return localIncludeTotalClusterTimeTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeTotalClusterTime() { + return localIncludeTotalClusterTime; + } + + /** + * Auto generated setter method + * + * @param param IncludeTotalClusterTime + */ + public void setIncludeTotalClusterTime(boolean param) { + + // setting primitive attribute tracker to true + localIncludeTotalClusterTimeTracker = true; + + this.localIncludeTotalClusterTime = param; + } + + /** field for IncludeServiceNames */ + protected boolean localIncludeServiceNames = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeServiceNamesTracker = false; + + public boolean isIncludeServiceNamesSpecified() { + return localIncludeServiceNamesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeServiceNames() { + return localIncludeServiceNames; + } + + /** + * Auto generated setter method + * + * @param param IncludeServiceNames + */ + public void setIncludeServiceNames(boolean param) { + + // setting primitive attribute tracker to true + localIncludeServiceNamesTracker = true; + + this.localIncludeServiceNames = param; + } + + /** field for IncludeProcesses */ + protected boolean localIncludeProcesses = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeProcessesTracker = false; + + public boolean isIncludeProcessesSpecified() { + return localIncludeProcessesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeProcesses() { + return localIncludeProcesses; + } + + /** + * Auto generated setter method + * + * @param param IncludeProcesses + */ + public void setIncludeProcesses(boolean param) { + + // setting primitive attribute tracker to true + localIncludeProcessesTracker = true; + + this.localIncludeProcesses = param; + } + + /** field for SuppressResultSchemas */ + protected boolean localSuppressResultSchemas = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuppressResultSchemasTracker = false; + + public boolean isSuppressResultSchemasSpecified() { + return localSuppressResultSchemasTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuppressResultSchemas() { + return localSuppressResultSchemas; + } + + /** + * Auto generated setter method + * + * @param param SuppressResultSchemas + */ + public void setSuppressResultSchemas(boolean param) { + + // setting primitive attribute tracker to true + localSuppressResultSchemasTracker = true; + + this.localSuppressResultSchemas = param; + } + + /** field for ThorSlaveIP */ + protected java.lang.String localThorSlaveIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorSlaveIPTracker = false; + + public boolean isThorSlaveIPSpecified() { + return localThorSlaveIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorSlaveIP() { + return localThorSlaveIP; + } + + /** + * Auto generated setter method + * + * @param param ThorSlaveIP + */ + public void setThorSlaveIP(java.lang.String param) { + localThorSlaveIPTracker = param != null; + + this.localThorSlaveIP = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUInfo", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localTruncateEclTo64KTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TruncateEclTo64k", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("TruncateEclTo64k cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTruncateEclTo64K)); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeExceptionsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeExceptions", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeExceptions cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeExceptions)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeGraphsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeGraphs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeGraphs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeGraphs)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeSourceFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeSourceFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeSourceFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeSourceFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeResultsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeResults", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeResults cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeResults)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeResultsViewNamesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeResultsViewNames", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeResultsViewNames cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeResultsViewNames)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeVariablesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeVariables", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeVariables cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeVariables)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeTimersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeTimers", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeTimers cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeTimers)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeDebugValuesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeDebugValues", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeDebugValues cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeDebugValues)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeApplicationValuesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeApplicationValues", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeApplicationValues cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeApplicationValues)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeWorkflowsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeWorkflows", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeWorkflows cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeWorkflows)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeXmlSchemasTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeXmlSchemas", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeXmlSchemas cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeXmlSchemas)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeResourceURLsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeResourceURLs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeResourceURLs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeResourceURLs)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeECLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeECL", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeECL cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeECL)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeHelpersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeHelpers", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeHelpers cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeHelpers)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeAllowedClustersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeAllowedClusters", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeAllowedClusters cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeAllowedClusters)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeTotalClusterTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeTotalClusterTime", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeTotalClusterTime cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeTotalClusterTime)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeServiceNamesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeServiceNames", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeServiceNames cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeServiceNames)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeProcessesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeProcesses", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeProcesses cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeProcesses)); + } + + xmlWriter.writeEndElement(); + } + if (localSuppressResultSchemasTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SuppressResultSchemas", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "SuppressResultSchemas cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSuppressResultSchemas)); + } + + xmlWriter.writeEndElement(); + } + if (localThorSlaveIPTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); + + if (localThorSlaveIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorSlaveIP); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUInfo parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + WUInfo object = new WUInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TruncateEclTo64k") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TruncateEclTo64k" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTruncateEclTo64K( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeExceptions") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeExceptions" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeExceptions( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeGraphs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeGraphs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeGraphs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeSourceFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeSourceFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeSourceFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeResults") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeResults" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeResults( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeResultsViewNames") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeResultsViewNames" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeResultsViewNames( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeVariables") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeVariables" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeVariables( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeTimers") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeTimers" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeTimers( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeDebugValues") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeDebugValues" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeDebugValues( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeApplicationValues") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeApplicationValues" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeApplicationValues( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeWorkflows") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeWorkflows" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeWorkflows( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeXmlSchemas") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeXmlSchemas" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeXmlSchemas( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeResourceURLs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeResourceURLs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeResourceURLs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeECL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeECL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeECL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeHelpers") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeHelpers" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeHelpers( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeAllowedClusters") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeAllowedClusters" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeAllowedClusters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeTotalClusterTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeTotalClusterTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeTotalClusterTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeServiceNames") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeServiceNames" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeServiceNames( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeProcesses") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeProcesses" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeProcesses( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SuppressResultSchemas") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SuppressResultSchemas" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuppressResultSchemas( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorSlaveIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorSlaveIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfoDetails.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfoDetails.java index 67ecd812f..2368c1ccf 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfoDetails.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfoDetails.java @@ -1,1892 +1,1964 @@ -/** - * WUInfoDetails.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUInfoDetails bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUInfoDetails implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfoDetails", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for TruncateEclTo64K */ - protected boolean localTruncateEclTo64K = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTruncateEclTo64KTracker = false; - - public boolean isTruncateEclTo64KSpecified() { - return localTruncateEclTo64KTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getTruncateEclTo64K() { - return localTruncateEclTo64K; - } - - /** - * Auto generated setter method - * - * @param param TruncateEclTo64K - */ - public void setTruncateEclTo64K(boolean param) { - - // setting primitive attribute tracker to true - localTruncateEclTo64KTracker = true; - - this.localTruncateEclTo64K = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for IncludeExceptions */ - protected boolean localIncludeExceptions = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeExceptionsTracker = false; - - public boolean isIncludeExceptionsSpecified() { - return localIncludeExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeExceptions() { - return localIncludeExceptions; - } - - /** - * Auto generated setter method - * - * @param param IncludeExceptions - */ - public void setIncludeExceptions(boolean param) { - - // setting primitive attribute tracker to true - localIncludeExceptionsTracker = true; - - this.localIncludeExceptions = param; - } - - /** field for IncludeGraphs */ - protected boolean localIncludeGraphs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeGraphsTracker = false; - - public boolean isIncludeGraphsSpecified() { - return localIncludeGraphsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeGraphs() { - return localIncludeGraphs; - } - - /** - * Auto generated setter method - * - * @param param IncludeGraphs - */ - public void setIncludeGraphs(boolean param) { - - // setting primitive attribute tracker to true - localIncludeGraphsTracker = true; - - this.localIncludeGraphs = param; - } - - /** field for IncludeSourceFiles */ - protected boolean localIncludeSourceFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeSourceFilesTracker = false; - - public boolean isIncludeSourceFilesSpecified() { - return localIncludeSourceFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeSourceFiles() { - return localIncludeSourceFiles; - } - - /** - * Auto generated setter method - * - * @param param IncludeSourceFiles - */ - public void setIncludeSourceFiles(boolean param) { - - // setting primitive attribute tracker to true - localIncludeSourceFilesTracker = true; - - this.localIncludeSourceFiles = param; - } - - /** field for IncludeResults */ - protected boolean localIncludeResults = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeResultsTracker = false; - - public boolean isIncludeResultsSpecified() { - return localIncludeResultsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeResults() { - return localIncludeResults; - } - - /** - * Auto generated setter method - * - * @param param IncludeResults - */ - public void setIncludeResults(boolean param) { - - // setting primitive attribute tracker to true - localIncludeResultsTracker = true; - - this.localIncludeResults = param; - } - - /** field for IncludeResultsViewNames */ - protected boolean localIncludeResultsViewNames = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeResultsViewNamesTracker = false; - - public boolean isIncludeResultsViewNamesSpecified() { - return localIncludeResultsViewNamesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeResultsViewNames() { - return localIncludeResultsViewNames; - } - - /** - * Auto generated setter method - * - * @param param IncludeResultsViewNames - */ - public void setIncludeResultsViewNames(boolean param) { - - // setting primitive attribute tracker to true - localIncludeResultsViewNamesTracker = true; - - this.localIncludeResultsViewNames = param; - } - - /** field for IncludeVariables */ - protected boolean localIncludeVariables = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeVariablesTracker = false; - - public boolean isIncludeVariablesSpecified() { - return localIncludeVariablesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeVariables() { - return localIncludeVariables; - } - - /** - * Auto generated setter method - * - * @param param IncludeVariables - */ - public void setIncludeVariables(boolean param) { - - // setting primitive attribute tracker to true - localIncludeVariablesTracker = true; - - this.localIncludeVariables = param; - } - - /** field for IncludeTimers */ - protected boolean localIncludeTimers = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeTimersTracker = false; - - public boolean isIncludeTimersSpecified() { - return localIncludeTimersTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeTimers() { - return localIncludeTimers; - } - - /** - * Auto generated setter method - * - * @param param IncludeTimers - */ - public void setIncludeTimers(boolean param) { - - // setting primitive attribute tracker to true - localIncludeTimersTracker = true; - - this.localIncludeTimers = param; - } - - /** field for IncludeDebugValues */ - protected boolean localIncludeDebugValues = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeDebugValuesTracker = false; - - public boolean isIncludeDebugValuesSpecified() { - return localIncludeDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeDebugValues() { - return localIncludeDebugValues; - } - - /** - * Auto generated setter method - * - * @param param IncludeDebugValues - */ - public void setIncludeDebugValues(boolean param) { - - // setting primitive attribute tracker to true - localIncludeDebugValuesTracker = true; - - this.localIncludeDebugValues = param; - } - - /** field for IncludeApplicationValues */ - protected boolean localIncludeApplicationValues = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeApplicationValuesTracker = false; - - public boolean isIncludeApplicationValuesSpecified() { - return localIncludeApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeApplicationValues() { - return localIncludeApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param IncludeApplicationValues - */ - public void setIncludeApplicationValues(boolean param) { - - // setting primitive attribute tracker to true - localIncludeApplicationValuesTracker = true; - - this.localIncludeApplicationValues = param; - } - - /** field for IncludeWorkflows */ - protected boolean localIncludeWorkflows = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeWorkflowsTracker = false; - - public boolean isIncludeWorkflowsSpecified() { - return localIncludeWorkflowsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeWorkflows() { - return localIncludeWorkflows; - } - - /** - * Auto generated setter method - * - * @param param IncludeWorkflows - */ - public void setIncludeWorkflows(boolean param) { - - // setting primitive attribute tracker to true - localIncludeWorkflowsTracker = true; - - this.localIncludeWorkflows = param; - } - - /** field for IncludeXmlSchemas */ - protected boolean localIncludeXmlSchemas = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeXmlSchemasTracker = false; - - public boolean isIncludeXmlSchemasSpecified() { - return localIncludeXmlSchemasTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeXmlSchemas() { - return localIncludeXmlSchemas; - } - - /** - * Auto generated setter method - * - * @param param IncludeXmlSchemas - */ - public void setIncludeXmlSchemas(boolean param) { - - // setting primitive attribute tracker to true - localIncludeXmlSchemasTracker = true; - - this.localIncludeXmlSchemas = param; - } - - /** field for IncludeResourceURLs */ - protected boolean localIncludeResourceURLs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeResourceURLsTracker = false; - - public boolean isIncludeResourceURLsSpecified() { - return localIncludeResourceURLsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeResourceURLs() { - return localIncludeResourceURLs; - } - - /** - * Auto generated setter method - * - * @param param IncludeResourceURLs - */ - public void setIncludeResourceURLs(boolean param) { - - // setting primitive attribute tracker to true - localIncludeResourceURLsTracker = true; - - this.localIncludeResourceURLs = param; - } - - /** field for IncludeECL */ - protected boolean localIncludeECL = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeECLTracker = false; - - public boolean isIncludeECLSpecified() { - return localIncludeECLTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeECL() { - return localIncludeECL; - } - - /** - * Auto generated setter method - * - * @param param IncludeECL - */ - public void setIncludeECL(boolean param) { - - // setting primitive attribute tracker to true - localIncludeECLTracker = true; - - this.localIncludeECL = param; - } - - /** field for IncludeHelpers */ - protected boolean localIncludeHelpers = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeHelpersTracker = false; - - public boolean isIncludeHelpersSpecified() { - return localIncludeHelpersTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeHelpers() { - return localIncludeHelpers; - } - - /** - * Auto generated setter method - * - * @param param IncludeHelpers - */ - public void setIncludeHelpers(boolean param) { - - // setting primitive attribute tracker to true - localIncludeHelpersTracker = true; - - this.localIncludeHelpers = param; - } - - /** field for IncludeAllowedClusters */ - protected boolean localIncludeAllowedClusters = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeAllowedClustersTracker = false; - - public boolean isIncludeAllowedClustersSpecified() { - return localIncludeAllowedClustersTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeAllowedClusters() { - return localIncludeAllowedClusters; - } - - /** - * Auto generated setter method - * - * @param param IncludeAllowedClusters - */ - public void setIncludeAllowedClusters(boolean param) { - - // setting primitive attribute tracker to true - localIncludeAllowedClustersTracker = true; - - this.localIncludeAllowedClusters = param; - } - - /** field for IncludeTotalClusterTime */ - protected boolean localIncludeTotalClusterTime = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeTotalClusterTimeTracker = false; - - public boolean isIncludeTotalClusterTimeSpecified() { - return localIncludeTotalClusterTimeTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeTotalClusterTime() { - return localIncludeTotalClusterTime; - } - - /** - * Auto generated setter method - * - * @param param IncludeTotalClusterTime - */ - public void setIncludeTotalClusterTime(boolean param) { - - // setting primitive attribute tracker to true - localIncludeTotalClusterTimeTracker = true; - - this.localIncludeTotalClusterTime = param; - } - - /** field for IncludeServiceNames */ - protected boolean localIncludeServiceNames = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeServiceNamesTracker = false; - - public boolean isIncludeServiceNamesSpecified() { - return localIncludeServiceNamesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeServiceNames() { - return localIncludeServiceNames; - } - - /** - * Auto generated setter method - * - * @param param IncludeServiceNames - */ - public void setIncludeServiceNames(boolean param) { - - // setting primitive attribute tracker to true - localIncludeServiceNamesTracker = true; - - this.localIncludeServiceNames = param; - } - - /** field for SuppressResultSchemas */ - protected boolean localSuppressResultSchemas = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuppressResultSchemasTracker = false; - - public boolean isSuppressResultSchemasSpecified() { - return localSuppressResultSchemasTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuppressResultSchemas() { - return localSuppressResultSchemas; - } - - /** - * Auto generated setter method - * - * @param param SuppressResultSchemas - */ - public void setSuppressResultSchemas(boolean param) { - - // setting primitive attribute tracker to true - localSuppressResultSchemasTracker = true; - - this.localSuppressResultSchemas = param; - } - - /** field for ThorSlaveIP */ - protected java.lang.String localThorSlaveIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorSlaveIPTracker = false; - - public boolean isThorSlaveIPSpecified() { - return localThorSlaveIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorSlaveIP() { - return localThorSlaveIP; - } - - /** - * Auto generated setter method - * - * @param param ThorSlaveIP - */ - public void setThorSlaveIP(java.lang.String param) { - localThorSlaveIPTracker = param != null; - - this.localThorSlaveIP = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUInfoDetails", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUInfoDetails", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localTruncateEclTo64KTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TruncateEclTo64k", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("TruncateEclTo64k cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTruncateEclTo64K)); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeExceptionsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeExceptions", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeExceptions cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeExceptions)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeGraphsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeGraphs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeGraphs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeGraphs)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeSourceFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeSourceFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeSourceFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeSourceFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeResultsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeResults", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeResults cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeResults)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeResultsViewNamesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeResultsViewNames", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeResultsViewNames cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeResultsViewNames)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeVariablesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeVariables", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeVariables cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeVariables)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeTimersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeTimers", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeTimers cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeTimers)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeDebugValuesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeDebugValues", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeDebugValues cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeDebugValues)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeApplicationValuesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeApplicationValues", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeApplicationValues cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeApplicationValues)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeWorkflowsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeWorkflows", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeWorkflows cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeWorkflows)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeXmlSchemasTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeXmlSchemas", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeXmlSchemas cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeXmlSchemas)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeResourceURLsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeResourceURLs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeResourceURLs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeResourceURLs)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeECLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeECL", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeECL cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeECL)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeHelpersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeHelpers", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeHelpers cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeHelpers)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeAllowedClustersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeAllowedClusters", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeAllowedClusters cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeAllowedClusters)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeTotalClusterTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeTotalClusterTime", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeTotalClusterTime cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeTotalClusterTime)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeServiceNamesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeServiceNames", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeServiceNames cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeServiceNames)); - } - - xmlWriter.writeEndElement(); - } - if (localSuppressResultSchemasTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SuppressResultSchemas", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "SuppressResultSchemas cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSuppressResultSchemas)); - } - - xmlWriter.writeEndElement(); - } - if (localThorSlaveIPTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); - - if (localThorSlaveIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorSlaveIP); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUInfoDetails parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUInfoDetails object = new WUInfoDetails(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUInfoDetails".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUInfoDetails) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TruncateEclTo64k") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TruncateEclTo64k" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTruncateEclTo64K( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeExceptions") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeExceptions" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeExceptions( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeGraphs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeGraphs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeGraphs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeSourceFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeSourceFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeSourceFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeResults") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeResults" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeResults( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeResultsViewNames") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeResultsViewNames" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeResultsViewNames( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeVariables") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeVariables" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeVariables( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeTimers") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeTimers" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeTimers( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeDebugValues") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeDebugValues" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeDebugValues( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeApplicationValues") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeApplicationValues" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeApplicationValues( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeWorkflows") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeWorkflows" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeWorkflows( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeXmlSchemas") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeXmlSchemas" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeXmlSchemas( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeResourceURLs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeResourceURLs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeResourceURLs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeECL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeECL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeECL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeHelpers") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeHelpers" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeHelpers( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeAllowedClusters") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeAllowedClusters" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeAllowedClusters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeTotalClusterTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeTotalClusterTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeTotalClusterTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeServiceNames") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeServiceNames" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeServiceNames( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SuppressResultSchemas") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SuppressResultSchemas" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuppressResultSchemas( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorSlaveIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorSlaveIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUInfoDetails.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUInfoDetails bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUInfoDetails implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfoDetails", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for TruncateEclTo64K */ + protected boolean localTruncateEclTo64K = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTruncateEclTo64KTracker = false; + + public boolean isTruncateEclTo64KSpecified() { + return localTruncateEclTo64KTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getTruncateEclTo64K() { + return localTruncateEclTo64K; + } + + /** + * Auto generated setter method + * + * @param param TruncateEclTo64K + */ + public void setTruncateEclTo64K(boolean param) { + + // setting primitive attribute tracker to true + localTruncateEclTo64KTracker = true; + + this.localTruncateEclTo64K = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for IncludeExceptions */ + protected boolean localIncludeExceptions = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeExceptionsTracker = false; + + public boolean isIncludeExceptionsSpecified() { + return localIncludeExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeExceptions() { + return localIncludeExceptions; + } + + /** + * Auto generated setter method + * + * @param param IncludeExceptions + */ + public void setIncludeExceptions(boolean param) { + + // setting primitive attribute tracker to true + localIncludeExceptionsTracker = true; + + this.localIncludeExceptions = param; + } + + /** field for IncludeGraphs */ + protected boolean localIncludeGraphs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeGraphsTracker = false; + + public boolean isIncludeGraphsSpecified() { + return localIncludeGraphsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeGraphs() { + return localIncludeGraphs; + } + + /** + * Auto generated setter method + * + * @param param IncludeGraphs + */ + public void setIncludeGraphs(boolean param) { + + // setting primitive attribute tracker to true + localIncludeGraphsTracker = true; + + this.localIncludeGraphs = param; + } + + /** field for IncludeSourceFiles */ + protected boolean localIncludeSourceFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeSourceFilesTracker = false; + + public boolean isIncludeSourceFilesSpecified() { + return localIncludeSourceFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeSourceFiles() { + return localIncludeSourceFiles; + } + + /** + * Auto generated setter method + * + * @param param IncludeSourceFiles + */ + public void setIncludeSourceFiles(boolean param) { + + // setting primitive attribute tracker to true + localIncludeSourceFilesTracker = true; + + this.localIncludeSourceFiles = param; + } + + /** field for IncludeResults */ + protected boolean localIncludeResults = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeResultsTracker = false; + + public boolean isIncludeResultsSpecified() { + return localIncludeResultsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeResults() { + return localIncludeResults; + } + + /** + * Auto generated setter method + * + * @param param IncludeResults + */ + public void setIncludeResults(boolean param) { + + // setting primitive attribute tracker to true + localIncludeResultsTracker = true; + + this.localIncludeResults = param; + } + + /** field for IncludeResultsViewNames */ + protected boolean localIncludeResultsViewNames = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeResultsViewNamesTracker = false; + + public boolean isIncludeResultsViewNamesSpecified() { + return localIncludeResultsViewNamesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeResultsViewNames() { + return localIncludeResultsViewNames; + } + + /** + * Auto generated setter method + * + * @param param IncludeResultsViewNames + */ + public void setIncludeResultsViewNames(boolean param) { + + // setting primitive attribute tracker to true + localIncludeResultsViewNamesTracker = true; + + this.localIncludeResultsViewNames = param; + } + + /** field for IncludeVariables */ + protected boolean localIncludeVariables = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeVariablesTracker = false; + + public boolean isIncludeVariablesSpecified() { + return localIncludeVariablesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeVariables() { + return localIncludeVariables; + } + + /** + * Auto generated setter method + * + * @param param IncludeVariables + */ + public void setIncludeVariables(boolean param) { + + // setting primitive attribute tracker to true + localIncludeVariablesTracker = true; + + this.localIncludeVariables = param; + } + + /** field for IncludeTimers */ + protected boolean localIncludeTimers = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeTimersTracker = false; + + public boolean isIncludeTimersSpecified() { + return localIncludeTimersTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeTimers() { + return localIncludeTimers; + } + + /** + * Auto generated setter method + * + * @param param IncludeTimers + */ + public void setIncludeTimers(boolean param) { + + // setting primitive attribute tracker to true + localIncludeTimersTracker = true; + + this.localIncludeTimers = param; + } + + /** field for IncludeDebugValues */ + protected boolean localIncludeDebugValues = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeDebugValuesTracker = false; + + public boolean isIncludeDebugValuesSpecified() { + return localIncludeDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeDebugValues() { + return localIncludeDebugValues; + } + + /** + * Auto generated setter method + * + * @param param IncludeDebugValues + */ + public void setIncludeDebugValues(boolean param) { + + // setting primitive attribute tracker to true + localIncludeDebugValuesTracker = true; + + this.localIncludeDebugValues = param; + } + + /** field for IncludeApplicationValues */ + protected boolean localIncludeApplicationValues = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeApplicationValuesTracker = false; + + public boolean isIncludeApplicationValuesSpecified() { + return localIncludeApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeApplicationValues() { + return localIncludeApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param IncludeApplicationValues + */ + public void setIncludeApplicationValues(boolean param) { + + // setting primitive attribute tracker to true + localIncludeApplicationValuesTracker = true; + + this.localIncludeApplicationValues = param; + } + + /** field for IncludeWorkflows */ + protected boolean localIncludeWorkflows = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeWorkflowsTracker = false; + + public boolean isIncludeWorkflowsSpecified() { + return localIncludeWorkflowsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeWorkflows() { + return localIncludeWorkflows; + } + + /** + * Auto generated setter method + * + * @param param IncludeWorkflows + */ + public void setIncludeWorkflows(boolean param) { + + // setting primitive attribute tracker to true + localIncludeWorkflowsTracker = true; + + this.localIncludeWorkflows = param; + } + + /** field for IncludeXmlSchemas */ + protected boolean localIncludeXmlSchemas = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeXmlSchemasTracker = false; + + public boolean isIncludeXmlSchemasSpecified() { + return localIncludeXmlSchemasTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeXmlSchemas() { + return localIncludeXmlSchemas; + } + + /** + * Auto generated setter method + * + * @param param IncludeXmlSchemas + */ + public void setIncludeXmlSchemas(boolean param) { + + // setting primitive attribute tracker to true + localIncludeXmlSchemasTracker = true; + + this.localIncludeXmlSchemas = param; + } + + /** field for IncludeResourceURLs */ + protected boolean localIncludeResourceURLs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeResourceURLsTracker = false; + + public boolean isIncludeResourceURLsSpecified() { + return localIncludeResourceURLsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeResourceURLs() { + return localIncludeResourceURLs; + } + + /** + * Auto generated setter method + * + * @param param IncludeResourceURLs + */ + public void setIncludeResourceURLs(boolean param) { + + // setting primitive attribute tracker to true + localIncludeResourceURLsTracker = true; + + this.localIncludeResourceURLs = param; + } + + /** field for IncludeECL */ + protected boolean localIncludeECL = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeECLTracker = false; + + public boolean isIncludeECLSpecified() { + return localIncludeECLTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeECL() { + return localIncludeECL; + } + + /** + * Auto generated setter method + * + * @param param IncludeECL + */ + public void setIncludeECL(boolean param) { + + // setting primitive attribute tracker to true + localIncludeECLTracker = true; + + this.localIncludeECL = param; + } + + /** field for IncludeHelpers */ + protected boolean localIncludeHelpers = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeHelpersTracker = false; + + public boolean isIncludeHelpersSpecified() { + return localIncludeHelpersTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeHelpers() { + return localIncludeHelpers; + } + + /** + * Auto generated setter method + * + * @param param IncludeHelpers + */ + public void setIncludeHelpers(boolean param) { + + // setting primitive attribute tracker to true + localIncludeHelpersTracker = true; + + this.localIncludeHelpers = param; + } + + /** field for IncludeAllowedClusters */ + protected boolean localIncludeAllowedClusters = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeAllowedClustersTracker = false; + + public boolean isIncludeAllowedClustersSpecified() { + return localIncludeAllowedClustersTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeAllowedClusters() { + return localIncludeAllowedClusters; + } + + /** + * Auto generated setter method + * + * @param param IncludeAllowedClusters + */ + public void setIncludeAllowedClusters(boolean param) { + + // setting primitive attribute tracker to true + localIncludeAllowedClustersTracker = true; + + this.localIncludeAllowedClusters = param; + } + + /** field for IncludeTotalClusterTime */ + protected boolean localIncludeTotalClusterTime = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeTotalClusterTimeTracker = false; + + public boolean isIncludeTotalClusterTimeSpecified() { + return localIncludeTotalClusterTimeTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeTotalClusterTime() { + return localIncludeTotalClusterTime; + } + + /** + * Auto generated setter method + * + * @param param IncludeTotalClusterTime + */ + public void setIncludeTotalClusterTime(boolean param) { + + // setting primitive attribute tracker to true + localIncludeTotalClusterTimeTracker = true; + + this.localIncludeTotalClusterTime = param; + } + + /** field for IncludeServiceNames */ + protected boolean localIncludeServiceNames = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeServiceNamesTracker = false; + + public boolean isIncludeServiceNamesSpecified() { + return localIncludeServiceNamesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeServiceNames() { + return localIncludeServiceNames; + } + + /** + * Auto generated setter method + * + * @param param IncludeServiceNames + */ + public void setIncludeServiceNames(boolean param) { + + // setting primitive attribute tracker to true + localIncludeServiceNamesTracker = true; + + this.localIncludeServiceNames = param; + } + + /** field for IncludeProcesses */ + protected boolean localIncludeProcesses = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeProcessesTracker = false; + + public boolean isIncludeProcessesSpecified() { + return localIncludeProcessesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeProcesses() { + return localIncludeProcesses; + } + + /** + * Auto generated setter method + * + * @param param IncludeProcesses + */ + public void setIncludeProcesses(boolean param) { + + // setting primitive attribute tracker to true + localIncludeProcessesTracker = true; + + this.localIncludeProcesses = param; + } + + /** field for SuppressResultSchemas */ + protected boolean localSuppressResultSchemas = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuppressResultSchemasTracker = false; + + public boolean isSuppressResultSchemasSpecified() { + return localSuppressResultSchemasTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuppressResultSchemas() { + return localSuppressResultSchemas; + } + + /** + * Auto generated setter method + * + * @param param SuppressResultSchemas + */ + public void setSuppressResultSchemas(boolean param) { + + // setting primitive attribute tracker to true + localSuppressResultSchemasTracker = true; + + this.localSuppressResultSchemas = param; + } + + /** field for ThorSlaveIP */ + protected java.lang.String localThorSlaveIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorSlaveIPTracker = false; + + public boolean isThorSlaveIPSpecified() { + return localThorSlaveIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorSlaveIP() { + return localThorSlaveIP; + } + + /** + * Auto generated setter method + * + * @param param ThorSlaveIP + */ + public void setThorSlaveIP(java.lang.String param) { + localThorSlaveIPTracker = param != null; + + this.localThorSlaveIP = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUInfoDetails", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUInfoDetails", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localTruncateEclTo64KTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TruncateEclTo64k", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("TruncateEclTo64k cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTruncateEclTo64K)); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeExceptionsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeExceptions", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeExceptions cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeExceptions)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeGraphsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeGraphs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeGraphs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeGraphs)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeSourceFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeSourceFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeSourceFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeSourceFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeResultsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeResults", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeResults cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeResults)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeResultsViewNamesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeResultsViewNames", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeResultsViewNames cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeResultsViewNames)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeVariablesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeVariables", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeVariables cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeVariables)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeTimersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeTimers", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeTimers cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeTimers)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeDebugValuesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeDebugValues", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeDebugValues cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeDebugValues)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeApplicationValuesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeApplicationValues", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeApplicationValues cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeApplicationValues)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeWorkflowsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeWorkflows", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeWorkflows cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeWorkflows)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeXmlSchemasTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeXmlSchemas", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeXmlSchemas cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeXmlSchemas)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeResourceURLsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeResourceURLs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeResourceURLs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeResourceURLs)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeECLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeECL", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeECL cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeECL)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeHelpersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeHelpers", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeHelpers cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeHelpers)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeAllowedClustersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeAllowedClusters", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeAllowedClusters cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeAllowedClusters)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeTotalClusterTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeTotalClusterTime", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeTotalClusterTime cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeTotalClusterTime)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeServiceNamesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeServiceNames", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeServiceNames cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeServiceNames)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeProcessesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeProcesses", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeProcesses cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeProcesses)); + } + + xmlWriter.writeEndElement(); + } + if (localSuppressResultSchemasTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SuppressResultSchemas", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "SuppressResultSchemas cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSuppressResultSchemas)); + } + + xmlWriter.writeEndElement(); + } + if (localThorSlaveIPTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); + + if (localThorSlaveIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorSlaveIP); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUInfoDetails parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUInfoDetails object = new WUInfoDetails(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUInfoDetails".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUInfoDetails) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TruncateEclTo64k") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TruncateEclTo64k" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTruncateEclTo64K( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeExceptions") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeExceptions" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeExceptions( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeGraphs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeGraphs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeGraphs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeSourceFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeSourceFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeSourceFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeResults") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeResults" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeResults( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeResultsViewNames") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeResultsViewNames" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeResultsViewNames( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeVariables") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeVariables" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeVariables( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeTimers") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeTimers" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeTimers( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeDebugValues") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeDebugValues" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeDebugValues( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeApplicationValues") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeApplicationValues" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeApplicationValues( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeWorkflows") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeWorkflows" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeWorkflows( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeXmlSchemas") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeXmlSchemas" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeXmlSchemas( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeResourceURLs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeResourceURLs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeResourceURLs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeECL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeECL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeECL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeHelpers") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeHelpers" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeHelpers( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeAllowedClusters") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeAllowedClusters" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeAllowedClusters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeTotalClusterTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeTotalClusterTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeTotalClusterTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeServiceNames") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeServiceNames" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeServiceNames( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeProcesses") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeProcesses" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeProcesses( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SuppressResultSchemas") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SuppressResultSchemas" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuppressResultSchemas( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorSlaveIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorSlaveIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfoResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfoResponse.java index 4d4eae41b..8fc0a4c33 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfoResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUInfoResponse.java @@ -1,763 +1,764 @@ -/** - * WUInfoResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUInfoResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUInfoResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfoResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Workunit */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitTracker = false; - - public boolean isWorkunitSpecified() { - return localWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { - return localWorkunit; - } - - /** - * Auto generated setter method - * - * @param param Workunit - */ - public void setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { - localWorkunitTracker = param != null; - - this.localWorkunit = param; - } - - /** field for AutoRefresh */ - protected int localAutoRefresh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAutoRefreshTracker = false; - - public boolean isAutoRefreshSpecified() { - return localAutoRefreshTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAutoRefresh() { - return localAutoRefresh; - } - - /** - * Auto generated setter method - * - * @param param AutoRefresh - */ - public void setAutoRefresh(int param) { - - // setting primitive attribute tracker to true - localAutoRefreshTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAutoRefresh = param; - } - - /** field for CanCompile */ - protected boolean localCanCompile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCanCompileTracker = false; - - public boolean isCanCompileSpecified() { - return localCanCompileTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCanCompile() { - return localCanCompile; - } - - /** - * Auto generated setter method - * - * @param param CanCompile - */ - public void setCanCompile(boolean param) { - - // setting primitive attribute tracker to true - localCanCompileTracker = true; - - this.localCanCompile = param; - } - - /** field for ThorSlaveIP */ - protected java.lang.String localThorSlaveIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorSlaveIPTracker = false; - - public boolean isThorSlaveIPSpecified() { - return localThorSlaveIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorSlaveIP() { - return localThorSlaveIP; - } - - /** - * Auto generated setter method - * - * @param param ThorSlaveIP - */ - public void setThorSlaveIP(java.lang.String param) { - localThorSlaveIPTracker = param != null; - - this.localThorSlaveIP = param; - } - - /** field for ResultViews */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0 - localResultViews; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultViewsTracker = false; - - public boolean isResultViewsSpecified() { - return localResultViewsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0 getResultViews() { - return localResultViews; - } - - /** - * Auto generated setter method - * - * @param param ResultViews - */ - public void setResultViews( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0 param) { - localResultViewsTracker = param != null; - - this.localResultViews = param; - } - - /** field for SecMethod */ - protected java.lang.String localSecMethod; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSecMethodTracker = false; - - public boolean isSecMethodSpecified() { - return localSecMethodTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSecMethod() { - return localSecMethod; - } - - /** - * Auto generated setter method - * - * @param param SecMethod - */ - public void setSecMethod(java.lang.String param) { - localSecMethodTracker = param != null; - - this.localSecMethod = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUInfoResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUInfoResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWorkunitTracker) { - if (localWorkunit == null) { - throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); - } - localWorkunit.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); - } - if (localAutoRefreshTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AutoRefresh", xmlWriter); - - if (localAutoRefresh == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("AutoRefresh cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAutoRefresh)); - } - - xmlWriter.writeEndElement(); - } - if (localCanCompileTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CanCompile", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CanCompile cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCanCompile)); - } - - xmlWriter.writeEndElement(); - } - if (localThorSlaveIPTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); - - if (localThorSlaveIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorSlaveIP); - } - - xmlWriter.writeEndElement(); - } - if (localResultViewsTracker) { - if (localResultViews == null) { - throw new org.apache.axis2.databinding.ADBException("ResultViews cannot be null!!"); - } - localResultViews.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultViews"), - xmlWriter); - } - if (localSecMethodTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SecMethod", xmlWriter); - - if (localSecMethod == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SecMethod cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSecMethod); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUInfoResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUInfoResponse object = new WUInfoResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUInfoResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUInfoResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") - .equals(reader.getName())) { - - object.setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AutoRefresh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AutoRefresh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAutoRefresh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CanCompile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CanCompile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCanCompile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorSlaveIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorSlaveIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultViews") - .equals(reader.getName())) { - - object.setResultViews( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SecMethod") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SecMethod" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSecMethod( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUInfoResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUInfoResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUInfoResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfoResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Workunit */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitTracker = false; + + public boolean isWorkunitSpecified() { + return localWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { + return localWorkunit; + } + + /** + * Auto generated setter method + * + * @param param Workunit + */ + public void setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { + localWorkunitTracker = param != null; + + this.localWorkunit = param; + } + + /** field for AutoRefresh */ + protected int localAutoRefresh = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAutoRefreshTracker = false; + + public boolean isAutoRefreshSpecified() { + return localAutoRefreshTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAutoRefresh() { + return localAutoRefresh; + } + + /** + * Auto generated setter method + * + * @param param AutoRefresh + */ + public void setAutoRefresh(int param) { + + // setting primitive attribute tracker to true + localAutoRefreshTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAutoRefresh = param; + } + + /** field for CanCompile */ + protected boolean localCanCompile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCanCompileTracker = false; + + public boolean isCanCompileSpecified() { + return localCanCompileTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCanCompile() { + return localCanCompile; + } + + /** + * Auto generated setter method + * + * @param param CanCompile + */ + public void setCanCompile(boolean param) { + + // setting primitive attribute tracker to true + localCanCompileTracker = true; + + this.localCanCompile = param; + } + + /** field for ThorSlaveIP */ + protected java.lang.String localThorSlaveIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorSlaveIPTracker = false; + + public boolean isThorSlaveIPSpecified() { + return localThorSlaveIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorSlaveIP() { + return localThorSlaveIP; + } + + /** + * Auto generated setter method + * + * @param param ThorSlaveIP + */ + public void setThorSlaveIP(java.lang.String param) { + localThorSlaveIPTracker = param != null; + + this.localThorSlaveIP = param; + } + + /** field for ResultViews */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0 + localResultViews; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultViewsTracker = false; + + public boolean isResultViewsSpecified() { + return localResultViewsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0 getResultViews() { + return localResultViews; + } + + /** + * Auto generated setter method + * + * @param param ResultViews + */ + public void setResultViews( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0 param) { + localResultViewsTracker = param != null; + + this.localResultViews = param; + } + + /** field for SecMethod */ + protected java.lang.String localSecMethod; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSecMethodTracker = false; + + public boolean isSecMethodSpecified() { + return localSecMethodTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSecMethod() { + return localSecMethod; + } + + /** + * Auto generated setter method + * + * @param param SecMethod + */ + public void setSecMethod(java.lang.String param) { + localSecMethodTracker = param != null; + + this.localSecMethod = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUInfoResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUInfoResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWorkunitTracker) { + if (localWorkunit == null) { + throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); + } + localWorkunit.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); + } + if (localAutoRefreshTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AutoRefresh", xmlWriter); + + if (localAutoRefresh == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("AutoRefresh cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAutoRefresh)); + } + + xmlWriter.writeEndElement(); + } + if (localCanCompileTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CanCompile", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CanCompile cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCanCompile)); + } + + xmlWriter.writeEndElement(); + } + if (localThorSlaveIPTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); + + if (localThorSlaveIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorSlaveIP); + } + + xmlWriter.writeEndElement(); + } + if (localResultViewsTracker) { + if (localResultViews == null) { + throw new org.apache.axis2.databinding.ADBException("ResultViews cannot be null!!"); + } + localResultViews.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultViews"), + xmlWriter); + } + if (localSecMethodTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SecMethod", xmlWriter); + + if (localSecMethod == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SecMethod cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSecMethod); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUInfoResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUInfoResponse object = new WUInfoResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUInfoResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUInfoResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") + .equals(reader.getName())) { + + object.setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AutoRefresh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AutoRefresh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAutoRefresh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CanCompile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CanCompile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCanCompile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorSlaveIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorSlaveIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultViews") + .equals(reader.getName())) { + + object.setResultViews( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResultViews_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SecMethod") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SecMethod" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSecMethod( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUJobList.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUJobList.java index 7580bf8a5..8b5824b82 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUJobList.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUJobList.java @@ -1,807 +1,807 @@ -/** - * WUJobList.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUJobList bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUJobList implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUJobList", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Process */ - protected java.lang.String localProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessTracker = false; - - public boolean isProcessSpecified() { - return localProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProcess() { - return localProcess; - } - - /** - * Auto generated setter method - * - * @param param Process - */ - public void setProcess(java.lang.String param) { - localProcessTracker = param != null; - - this.localProcess = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for ShowAll */ - protected boolean localShowAll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localShowAllTracker = false; - - public boolean isShowAllSpecified() { - return localShowAllTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getShowAll() { - return localShowAll; - } - - /** - * Auto generated setter method - * - * @param param ShowAll - */ - public void setShowAll(boolean param) { - - // setting primitive attribute tracker to true - localShowAllTracker = true; - - this.localShowAll = param; - } - - /** field for BusinessStartHour */ - protected int localBusinessStartHour; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBusinessStartHourTracker = false; - - public boolean isBusinessStartHourSpecified() { - return localBusinessStartHourTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBusinessStartHour() { - return localBusinessStartHour; - } - - /** - * Auto generated setter method - * - * @param param BusinessStartHour - */ - public void setBusinessStartHour(int param) { - - // setting primitive attribute tracker to true - localBusinessStartHourTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBusinessStartHour = param; - } - - /** field for BusinessEndHour */ - protected int localBusinessEndHour; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBusinessEndHourTracker = false; - - public boolean isBusinessEndHourSpecified() { - return localBusinessEndHourTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBusinessEndHour() { - return localBusinessEndHour; - } - - /** - * Auto generated setter method - * - * @param param BusinessEndHour - */ - public void setBusinessEndHour(int param) { - - // setting primitive attribute tracker to true - localBusinessEndHourTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBusinessEndHour = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUJobList", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUJobList", xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Process", xmlWriter); - - if (localProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProcess); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localShowAllTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ShowAll", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ShowAll cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowAll)); - } - - xmlWriter.writeEndElement(); - } - if (localBusinessStartHourTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BusinessStartHour", xmlWriter); - - if (localBusinessStartHour == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BusinessStartHour cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBusinessStartHour)); - } - - xmlWriter.writeEndElement(); - } - if (localBusinessEndHourTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BusinessEndHour", xmlWriter); - - if (localBusinessEndHour == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("BusinessEndHour cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBusinessEndHour)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUJobList parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUJobList object = new WUJobList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUJobList".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUJobList) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Process") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Process" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ShowAll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ShowAll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setShowAll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BusinessStartHour") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BusinessStartHour" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBusinessStartHour( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BusinessEndHour") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BusinessEndHour" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBusinessEndHour( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUJobList.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUJobList bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUJobList implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUJobList", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Process */ + protected java.lang.String localProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessTracker = false; + + public boolean isProcessSpecified() { + return localProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProcess() { + return localProcess; + } + + /** + * Auto generated setter method + * + * @param param Process + */ + public void setProcess(java.lang.String param) { + localProcessTracker = param != null; + + this.localProcess = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for ShowAll */ + protected boolean localShowAll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localShowAllTracker = false; + + public boolean isShowAllSpecified() { + return localShowAllTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getShowAll() { + return localShowAll; + } + + /** + * Auto generated setter method + * + * @param param ShowAll + */ + public void setShowAll(boolean param) { + + // setting primitive attribute tracker to true + localShowAllTracker = true; + + this.localShowAll = param; + } + + /** field for BusinessStartHour */ + protected int localBusinessStartHour; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBusinessStartHourTracker = false; + + public boolean isBusinessStartHourSpecified() { + return localBusinessStartHourTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBusinessStartHour() { + return localBusinessStartHour; + } + + /** + * Auto generated setter method + * + * @param param BusinessStartHour + */ + public void setBusinessStartHour(int param) { + + // setting primitive attribute tracker to true + localBusinessStartHourTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBusinessStartHour = param; + } + + /** field for BusinessEndHour */ + protected int localBusinessEndHour; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBusinessEndHourTracker = false; + + public boolean isBusinessEndHourSpecified() { + return localBusinessEndHourTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBusinessEndHour() { + return localBusinessEndHour; + } + + /** + * Auto generated setter method + * + * @param param BusinessEndHour + */ + public void setBusinessEndHour(int param) { + + // setting primitive attribute tracker to true + localBusinessEndHourTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBusinessEndHour = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUJobList", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUJobList", xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Process", xmlWriter); + + if (localProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProcess); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localShowAllTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ShowAll", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ShowAll cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localShowAll)); + } + + xmlWriter.writeEndElement(); + } + if (localBusinessStartHourTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BusinessStartHour", xmlWriter); + + if (localBusinessStartHour == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BusinessStartHour cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBusinessStartHour)); + } + + xmlWriter.writeEndElement(); + } + if (localBusinessEndHourTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BusinessEndHour", xmlWriter); + + if (localBusinessEndHour == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("BusinessEndHour cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBusinessEndHour)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUJobList parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUJobList object = new WUJobList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUJobList".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUJobList) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Process") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Process" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ShowAll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ShowAll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setShowAll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BusinessStartHour") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BusinessStartHour" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBusinessStartHour( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BusinessEndHour") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BusinessEndHour" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBusinessEndHour( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUJobListResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUJobListResponse.java index 008d723d9..320bf6ba5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUJobListResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUJobListResponse.java @@ -1,570 +1,570 @@ -/** - * WUJobListResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUJobListResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUJobListResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUJobListResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for Jobs */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob localJobs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobsTracker = false; - - public boolean isJobsSpecified() { - return localJobsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob getJobs() { - return localJobs; - } - - /** - * Auto generated setter method - * - * @param param Jobs - */ - public void setJobs(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob param) { - localJobsTracker = param != null; - - this.localJobs = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUJobListResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUJobListResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localJobsTracker) { - if (localJobs == null) { - throw new org.apache.axis2.databinding.ADBException("Jobs cannot be null!!"); - } - localJobs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobs"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUJobListResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUJobListResponse object = new WUJobListResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUJobListResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUJobListResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobs") - .equals(reader.getName())) { - - object.setJobs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUJobListResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUJobListResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUJobListResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUJobListResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for Jobs */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob localJobs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobsTracker = false; + + public boolean isJobsSpecified() { + return localJobsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob getJobs() { + return localJobs; + } + + /** + * Auto generated setter method + * + * @param param Jobs + */ + public void setJobs(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob param) { + localJobsTracker = param != null; + + this.localJobs = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUJobListResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUJobListResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localJobsTracker) { + if (localJobs == null) { + throw new org.apache.axis2.databinding.ADBException("Jobs cannot be null!!"); + } + localJobs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobs"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUJobListResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUJobListResponse object = new WUJobListResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUJobListResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUJobListResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobs") + .equals(reader.getName())) { + + object.setJobs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLJob.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULightWeightQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULightWeightQuery.java index 26a8637a1..24992dfd2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULightWeightQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULightWeightQuery.java @@ -1,1410 +1,1410 @@ -/** - * WULightWeightQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WULightWeightQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WULightWeightQuery implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WULightWeightQuery", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for JobName */ - protected java.lang.String localJobName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobNameTracker = false; - - public boolean isJobNameSpecified() { - return localJobNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobName() { - return localJobName; - } - - /** - * Auto generated setter method - * - * @param param JobName - */ - public void setJobName(java.lang.String param) { - localJobNameTracker = param != null; - - this.localJobName = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for BeforeWU */ - protected java.lang.String localBeforeWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBeforeWUTracker = false; - - public boolean isBeforeWUSpecified() { - return localBeforeWUTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBeforeWU() { - return localBeforeWU; - } - - /** - * Auto generated setter method - * - * @param param BeforeWU - */ - public void setBeforeWU(java.lang.String param) { - localBeforeWUTracker = param != null; - - this.localBeforeWU = param; - } - - /** field for AfterWU */ - protected java.lang.String localAfterWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAfterWUTracker = false; - - public boolean isAfterWUSpecified() { - return localAfterWUTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAfterWU() { - return localAfterWU; - } - - /** - * Auto generated setter method - * - * @param param AfterWU - */ - public void setAfterWU(java.lang.String param) { - localAfterWUTracker = param != null; - - this.localAfterWU = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for ApplicationValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - localApplicationValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValuesTracker = false; - - public boolean isApplicationValuesSpecified() { - return localApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - getApplicationValues() { - return localApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValues - */ - public void setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { - localApplicationValuesTracker = param != null; - - this.localApplicationValues = param; - } - - /** field for PageStartFrom */ - protected long localPageStartFrom; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageStartFromTracker = false; - - public boolean isPageStartFromSpecified() { - return localPageStartFromTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageStartFrom() { - return localPageStartFrom; - } - - /** - * Auto generated setter method - * - * @param param PageStartFrom - */ - public void setPageStartFrom(long param) { - - // setting primitive attribute tracker to true - localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageStartFrom = param; - } - - /** field for PageSize */ - protected org.apache.axis2.databinding.types.UnsignedInt localPageSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageSizeTracker = false; - - public boolean isPageSizeSpecified() { - return localPageSizeTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getPageSize() { - return localPageSize; - } - - /** - * Auto generated setter method - * - * @param param PageSize - */ - public void setPageSize(org.apache.axis2.databinding.types.UnsignedInt param) { - localPageSizeTracker = param != null; - - this.localPageSize = param; - } - - /** field for SortBy */ - protected java.lang.String localSortBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortByTracker = false; - - public boolean isSortBySpecified() { - return localSortByTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortBy() { - return localSortBy; - } - - /** - * Auto generated setter method - * - * @param param SortBy - */ - public void setSortBy(java.lang.String param) { - localSortByTracker = param != null; - - this.localSortBy = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WULightWeightQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WULightWeightQuery", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localJobNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "JobName", xmlWriter); - - if (localJobName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobName); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localBeforeWUTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BeforeWU", xmlWriter); - - if (localBeforeWU == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BeforeWU cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBeforeWU); - } - - xmlWriter.writeEndElement(); - } - if (localAfterWUTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AfterWU", xmlWriter); - - if (localAfterWU == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AfterWU cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAfterWU); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localApplicationValuesTracker) { - if (localApplicationValues == null) { - throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); - } - localApplicationValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), - xmlWriter); - } - if (localPageStartFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageStartFrom", xmlWriter); - - if (localPageStartFrom == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localPageSizeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageSize", xmlWriter); - - if (localPageSize == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); - } - - xmlWriter.writeEndElement(); - } - if (localSortByTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SortBy", xmlWriter); - - if (localSortBy == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SortBy cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortBy); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WULightWeightQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WULightWeightQuery object = new WULightWeightQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WULightWeightQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WULightWeightQuery) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BeforeWU") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BeforeWU" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBeforeWU( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AfterWU") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AfterWU" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAfterWU( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") - .equals(reader.getName())) { - - object.setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageStartFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageStartFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SortBy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SortBy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortBy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WULightWeightQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WULightWeightQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WULightWeightQuery implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WULightWeightQuery", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for JobName */ + protected java.lang.String localJobName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobNameTracker = false; + + public boolean isJobNameSpecified() { + return localJobNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobName() { + return localJobName; + } + + /** + * Auto generated setter method + * + * @param param JobName + */ + public void setJobName(java.lang.String param) { + localJobNameTracker = param != null; + + this.localJobName = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for BeforeWU */ + protected java.lang.String localBeforeWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBeforeWUTracker = false; + + public boolean isBeforeWUSpecified() { + return localBeforeWUTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBeforeWU() { + return localBeforeWU; + } + + /** + * Auto generated setter method + * + * @param param BeforeWU + */ + public void setBeforeWU(java.lang.String param) { + localBeforeWUTracker = param != null; + + this.localBeforeWU = param; + } + + /** field for AfterWU */ + protected java.lang.String localAfterWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAfterWUTracker = false; + + public boolean isAfterWUSpecified() { + return localAfterWUTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAfterWU() { + return localAfterWU; + } + + /** + * Auto generated setter method + * + * @param param AfterWU + */ + public void setAfterWU(java.lang.String param) { + localAfterWUTracker = param != null; + + this.localAfterWU = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for ApplicationValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + localApplicationValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValuesTracker = false; + + public boolean isApplicationValuesSpecified() { + return localApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + getApplicationValues() { + return localApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValues + */ + public void setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { + localApplicationValuesTracker = param != null; + + this.localApplicationValues = param; + } + + /** field for PageStartFrom */ + protected long localPageStartFrom; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageStartFromTracker = false; + + public boolean isPageStartFromSpecified() { + return localPageStartFromTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageStartFrom() { + return localPageStartFrom; + } + + /** + * Auto generated setter method + * + * @param param PageStartFrom + */ + public void setPageStartFrom(long param) { + + // setting primitive attribute tracker to true + localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageStartFrom = param; + } + + /** field for PageSize */ + protected org.apache.axis2.databinding.types.UnsignedInt localPageSize; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageSizeTracker = false; + + public boolean isPageSizeSpecified() { + return localPageSizeTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getPageSize() { + return localPageSize; + } + + /** + * Auto generated setter method + * + * @param param PageSize + */ + public void setPageSize(org.apache.axis2.databinding.types.UnsignedInt param) { + localPageSizeTracker = param != null; + + this.localPageSize = param; + } + + /** field for SortBy */ + protected java.lang.String localSortBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortByTracker = false; + + public boolean isSortBySpecified() { + return localSortByTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortBy() { + return localSortBy; + } + + /** + * Auto generated setter method + * + * @param param SortBy + */ + public void setSortBy(java.lang.String param) { + localSortByTracker = param != null; + + this.localSortBy = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WULightWeightQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WULightWeightQuery", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localJobNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "JobName", xmlWriter); + + if (localJobName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobName); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localBeforeWUTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BeforeWU", xmlWriter); + + if (localBeforeWU == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BeforeWU cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBeforeWU); + } + + xmlWriter.writeEndElement(); + } + if (localAfterWUTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AfterWU", xmlWriter); + + if (localAfterWU == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AfterWU cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAfterWU); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localApplicationValuesTracker) { + if (localApplicationValues == null) { + throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); + } + localApplicationValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), + xmlWriter); + } + if (localPageStartFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageStartFrom", xmlWriter); + + if (localPageStartFrom == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localPageSizeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageSize", xmlWriter); + + if (localPageSize == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); + } + + xmlWriter.writeEndElement(); + } + if (localSortByTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SortBy", xmlWriter); + + if (localSortBy == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SortBy cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortBy); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WULightWeightQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WULightWeightQuery object = new WULightWeightQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WULightWeightQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WULightWeightQuery) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BeforeWU") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BeforeWU" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBeforeWU( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AfterWU") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AfterWU" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAfterWU( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") + .equals(reader.getName())) { + + object.setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageStartFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageStartFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SortBy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SortBy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortBy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULightWeightQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULightWeightQueryResponse.java index 842890de3..4cb4894cf 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULightWeightQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULightWeightQueryResponse.java @@ -1,576 +1,576 @@ -/** - * WULightWeightQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WULightWeightQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WULightWeightQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WULightWeightQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for NumWUs */ - protected int localNumWUs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumWUsTracker = false; - - public boolean isNumWUsSpecified() { - return localNumWUsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getNumWUs() { - return localNumWUs; - } - - /** - * Auto generated setter method - * - * @param param NumWUs - */ - public void setNumWUs(int param) { - - // setting primitive attribute tracker to true - localNumWUsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localNumWUs = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** field for Workunits */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW - localWorkunits; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitsTracker = false; - - public boolean isWorkunitsSpecified() { - return localWorkunitsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW - getWorkunits() { - return localWorkunits; - } - - /** - * Auto generated setter method - * - * @param param Workunits - */ - public void setWorkunits( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW param) { - localWorkunitsTracker = param != null; - - this.localWorkunits = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WULightWeightQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WULightWeightQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localNumWUsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NumWUs", xmlWriter); - - if (localNumWUs == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NumWUs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumWUs)); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - if (localWorkunitsTracker) { - if (localWorkunits == null) { - throw new org.apache.axis2.databinding.ADBException("Workunits cannot be null!!"); - } - localWorkunits.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WULightWeightQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WULightWeightQueryResponse object = new WULightWeightQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WULightWeightQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WULightWeightQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumWUs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumWUs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumWUs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits") - .equals(reader.getName())) { - - object.setWorkunits( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WULightWeightQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WULightWeightQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WULightWeightQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WULightWeightQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for NumWUs */ + protected int localNumWUs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumWUsTracker = false; + + public boolean isNumWUsSpecified() { + return localNumWUsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getNumWUs() { + return localNumWUs; + } + + /** + * Auto generated setter method + * + * @param param NumWUs + */ + public void setNumWUs(int param) { + + // setting primitive attribute tracker to true + localNumWUsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localNumWUs = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** field for Workunits */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW + localWorkunits; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitsTracker = false; + + public boolean isWorkunitsSpecified() { + return localWorkunitsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW + getWorkunits() { + return localWorkunits; + } + + /** + * Auto generated setter method + * + * @param param Workunits + */ + public void setWorkunits( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW param) { + localWorkunitsTracker = param != null; + + this.localWorkunits = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WULightWeightQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WULightWeightQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localNumWUsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NumWUs", xmlWriter); + + if (localNumWUs == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NumWUs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumWUs)); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + if (localWorkunitsTracker) { + if (localWorkunits == null) { + throw new org.apache.axis2.databinding.ADBException("Workunits cannot be null!!"); + } + localWorkunits.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WULightWeightQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WULightWeightQueryResponse object = new WULightWeightQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WULightWeightQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WULightWeightQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumWUs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumWUs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumWUs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits") + .equals(reader.getName())) { + + object.setWorkunits( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunitLW + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListArchiveFiles.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListArchiveFiles.java index c9e27e656..2d77ae756 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListArchiveFiles.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListArchiveFiles.java @@ -1,397 +1,397 @@ -/** - * WUListArchiveFiles.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUListArchiveFiles bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUListArchiveFiles implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUListArchiveFiles", "ns1"); - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUListArchiveFiles", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUListArchiveFiles", - xmlWriter); - } - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUListArchiveFiles parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUListArchiveFiles object = new WUListArchiveFiles(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUListArchiveFiles".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUListArchiveFiles) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUListArchiveFiles.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUListArchiveFiles bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUListArchiveFiles implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUListArchiveFiles", "ns1"); + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUListArchiveFiles", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUListArchiveFiles", + xmlWriter); + } + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUListArchiveFiles parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUListArchiveFiles object = new WUListArchiveFiles(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUListArchiveFiles".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUListArchiveFiles) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListArchiveFilesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListArchiveFilesResponse.java index 56ef8f1b8..665c2a7a9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListArchiveFilesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListArchiveFilesResponse.java @@ -1,558 +1,558 @@ -/** - * WUListArchiveFilesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUListArchiveFilesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUListArchiveFilesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListArchiveFilesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ArchiveModules */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 - localArchiveModules; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localArchiveModulesTracker = false; - - public boolean isArchiveModulesSpecified() { - return localArchiveModulesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 - getArchiveModules() { - return localArchiveModules; - } - - /** - * Auto generated setter method - * - * @param param ArchiveModules - */ - public void setArchiveModules( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 param) { - localArchiveModulesTracker = param != null; - - this.localArchiveModules = param; - } - - /** field for Files */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1 localFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesTracker = false; - - public boolean isFilesSpecified() { - return localFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1 getFiles() { - return localFiles; - } - - /** - * Auto generated setter method - * - * @param param Files - */ - public void setFiles(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1 param) { - localFilesTracker = param != null; - - this.localFiles = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUListArchiveFilesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUListArchiveFilesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localArchiveModulesTracker) { - if (localArchiveModules == null) { - throw new org.apache.axis2.databinding.ADBException("ArchiveModules cannot be null!!"); - } - localArchiveModules.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModules"), - xmlWriter); - } - if (localFilesTracker) { - if (localFiles == null) { - throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); - } - localFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files"), xmlWriter); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUListArchiveFilesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUListArchiveFilesResponse object = new WUListArchiveFilesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUListArchiveFilesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUListArchiveFilesResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModules") - .equals(reader.getName())) { - - object.setArchiveModules( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files") - .equals(reader.getName())) { - - object.setFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUListArchiveFilesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUListArchiveFilesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUListArchiveFilesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListArchiveFilesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ArchiveModules */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 + localArchiveModules; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localArchiveModulesTracker = false; + + public boolean isArchiveModulesSpecified() { + return localArchiveModulesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 + getArchiveModules() { + return localArchiveModules; + } + + /** + * Auto generated setter method + * + * @param param ArchiveModules + */ + public void setArchiveModules( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 param) { + localArchiveModulesTracker = param != null; + + this.localArchiveModules = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1 localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1 getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1 param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUListArchiveFilesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUListArchiveFilesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localArchiveModulesTracker) { + if (localArchiveModules == null) { + throw new org.apache.axis2.databinding.ADBException("ArchiveModules cannot be null!!"); + } + localArchiveModules.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModules"), + xmlWriter); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files"), xmlWriter); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUListArchiveFilesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUListArchiveFilesResponse object = new WUListArchiveFilesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUListArchiveFilesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUListArchiveFilesResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ArchiveModules") + .equals(reader.getName())) { + + object.setArchiveModules( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArchiveModules_type1 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type1.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListLocalFileRequired.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListLocalFileRequired.java index 0e8a7112c..657222fe2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListLocalFileRequired.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListLocalFileRequired.java @@ -1,398 +1,398 @@ -/** - * WUListLocalFileRequired.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUListLocalFileRequired bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUListLocalFileRequired implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListLocalFileRequired", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUListLocalFileRequired", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUListLocalFileRequired", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUListLocalFileRequired parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUListLocalFileRequired object = new WUListLocalFileRequired(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUListLocalFileRequired".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUListLocalFileRequired) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUListLocalFileRequired.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUListLocalFileRequired bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUListLocalFileRequired implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListLocalFileRequired", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUListLocalFileRequired", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUListLocalFileRequired", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUListLocalFileRequired parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUListLocalFileRequired object = new WUListLocalFileRequired(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUListLocalFileRequired".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUListLocalFileRequired) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListLocalFileRequiredResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListLocalFileRequiredResponse.java index 95b4bf49d..0e74d44a4 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListLocalFileRequiredResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListLocalFileRequiredResponse.java @@ -1,440 +1,440 @@ -/** - * WUListLocalFileRequiredResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUListLocalFileRequiredResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUListLocalFileRequiredResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListLocalFileRequiredResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for LocalFileUploads */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload - localLocalFileUploads; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLocalFileUploadsTracker = false; - - public boolean isLocalFileUploadsSpecified() { - return localLocalFileUploadsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload - getLocalFileUploads() { - return localLocalFileUploads; - } - - /** - * Auto generated setter method - * - * @param param LocalFileUploads - */ - public void setLocalFileUploads( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload param) { - localLocalFileUploadsTracker = param != null; - - this.localLocalFileUploads = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUListLocalFileRequiredResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUListLocalFileRequiredResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localLocalFileUploadsTracker) { - if (localLocalFileUploads == null) { - throw new org.apache.axis2.databinding.ADBException("LocalFileUploads cannot be null!!"); - } - localLocalFileUploads.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LocalFileUploads"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUListLocalFileRequiredResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUListLocalFileRequiredResponse object = new WUListLocalFileRequiredResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUListLocalFileRequiredResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUListLocalFileRequiredResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "LocalFileUploads") - .equals(reader.getName())) { - - object.setLocalFileUploads( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUListLocalFileRequiredResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUListLocalFileRequiredResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUListLocalFileRequiredResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListLocalFileRequiredResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for LocalFileUploads */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload + localLocalFileUploads; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLocalFileUploadsTracker = false; + + public boolean isLocalFileUploadsSpecified() { + return localLocalFileUploadsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload + getLocalFileUploads() { + return localLocalFileUploads; + } + + /** + * Auto generated setter method + * + * @param param LocalFileUploads + */ + public void setLocalFileUploads( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload param) { + localLocalFileUploadsTracker = param != null; + + this.localLocalFileUploads = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUListLocalFileRequiredResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUListLocalFileRequiredResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localLocalFileUploadsTracker) { + if (localLocalFileUploads == null) { + throw new org.apache.axis2.databinding.ADBException("LocalFileUploads cannot be null!!"); + } + localLocalFileUploads.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LocalFileUploads"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUListLocalFileRequiredResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUListLocalFileRequiredResponse object = new WUListLocalFileRequiredResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUListLocalFileRequiredResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUListLocalFileRequiredResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "LocalFileUploads") + .equals(reader.getName())) { + + object.setLocalFileUploads( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfLogicalFileUpload + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueries.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueries.java index 29f9bf583..d65af1630 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueries.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueries.java @@ -1,1974 +1,1976 @@ -/** - * WUListQueries.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUListQueries bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUListQueries implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUListQueries", "ns1"); - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for LibraryName */ - protected java.lang.String localLibraryName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLibraryNameTracker = false; - - public boolean isLibraryNameSpecified() { - return localLibraryNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLibraryName() { - return localLibraryName; - } - - /** - * Auto generated setter method - * - * @param param LibraryName - */ - public void setLibraryName(java.lang.String param) { - localLibraryNameTracker = param != null; - - this.localLibraryName = param; - } - - /** field for MemoryLimitLow */ - protected long localMemoryLimitLow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitLowTracker = false; - - public boolean isMemoryLimitLowSpecified() { - return localMemoryLimitLowTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getMemoryLimitLow() { - return localMemoryLimitLow; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimitLow - */ - public void setMemoryLimitLow(long param) { - - // setting primitive attribute tracker to true - localMemoryLimitLowTracker = param != java.lang.Long.MIN_VALUE; - - this.localMemoryLimitLow = param; - } - - /** field for MemoryLimitHigh */ - protected long localMemoryLimitHigh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitHighTracker = false; - - public boolean isMemoryLimitHighSpecified() { - return localMemoryLimitHighTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getMemoryLimitHigh() { - return localMemoryLimitHigh; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimitHigh - */ - public void setMemoryLimitHigh(long param) { - - // setting primitive attribute tracker to true - localMemoryLimitHighTracker = param != java.lang.Long.MIN_VALUE; - - this.localMemoryLimitHigh = param; - } - - /** field for TimeLimitLow */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimitLow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitLowTracker = false; - - public boolean isTimeLimitLowSpecified() { - return localTimeLimitLowTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimitLow() { - return localTimeLimitLow; - } - - /** - * Auto generated setter method - * - * @param param TimeLimitLow - */ - public void setTimeLimitLow(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localTimeLimitLowTracker = param != null; - - this.localTimeLimitLow = param; - } - - /** field for TimeLimitHigh */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimitHigh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitHighTracker = false; - - public boolean isTimeLimitHighSpecified() { - return localTimeLimitHighTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimitHigh() { - return localTimeLimitHigh; - } - - /** - * Auto generated setter method - * - * @param param TimeLimitHigh - */ - public void setTimeLimitHigh(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localTimeLimitHighTracker = param != null; - - this.localTimeLimitHigh = param; - } - - /** field for WarnTimeLimitLow */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimitLow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitLowTracker = false; - - public boolean isWarnTimeLimitLowSpecified() { - return localWarnTimeLimitLowTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimitLow() { - return localWarnTimeLimitLow; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimitLow - */ - public void setWarnTimeLimitLow(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localWarnTimeLimitLowTracker = param != null; - - this.localWarnTimeLimitLow = param; - } - - /** field for WarnTimeLimitHigh */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimitHigh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitHighTracker = false; - - public boolean isWarnTimeLimitHighSpecified() { - return localWarnTimeLimitHighTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimitHigh() { - return localWarnTimeLimitHigh; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimitHigh - */ - public void setWarnTimeLimitHigh(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localWarnTimeLimitHighTracker = param != null; - - this.localWarnTimeLimitHigh = param; - } - - /** field for PriorityLow */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localPriorityLow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityLowTracker = false; - - public boolean isPriorityLowSpecified() { - return localPriorityLowTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getPriorityLow() { - return localPriorityLow; - } - - /** - * Auto generated setter method - * - * @param param PriorityLow - */ - public void setPriorityLow(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localPriorityLowTracker = param != null; - - this.localPriorityLow = param; - } - - /** field for PriorityHigh */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localPriorityHigh; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityHighTracker = false; - - public boolean isPriorityHighSpecified() { - return localPriorityHighTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getPriorityHigh() { - return localPriorityHigh; - } - - /** - * Auto generated setter method - * - * @param param PriorityHigh - */ - public void setPriorityHigh(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localPriorityHighTracker = param != null; - - this.localPriorityHigh = param; - } - - /** field for Activated */ - protected boolean localActivated; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivatedTracker = false; - - public boolean isActivatedSpecified() { - return localActivatedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getActivated() { - return localActivated; - } - - /** - * Auto generated setter method - * - * @param param Activated - */ - public void setActivated(boolean param) { - - // setting primitive attribute tracker to true - localActivatedTracker = true; - - this.localActivated = param; - } - - /** field for SuspendedFilter */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType - localSuspendedFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedFilterTracker = false; - - public boolean isSuspendedFilterSpecified() { - return localSuspendedFilterTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType - getSuspendedFilter() { - return localSuspendedFilter; - } - - /** - * Auto generated setter method - * - * @param param SuspendedFilter - */ - public void setSuspendedFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType param) { - localSuspendedFilterTracker = param != null; - - this.localSuspendedFilter = param; - } - - /** field for WUID */ - protected java.lang.String localWUID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUIDTracker = false; - - public boolean isWUIDSpecified() { - return localWUIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUID() { - return localWUID; - } - - /** - * Auto generated setter method - * - * @param param WUID - */ - public void setWUID(java.lang.String param) { - localWUIDTracker = param != null; - - this.localWUID = param; - } - - /** field for QueryID */ - protected java.lang.String localQueryID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIDTracker = false; - - public boolean isQueryIDSpecified() { - return localQueryIDTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryID() { - return localQueryID; - } - - /** - * Auto generated setter method - * - * @param param QueryID - */ - public void setQueryID(java.lang.String param) { - localQueryIDTracker = param != null; - - this.localQueryID = param; - } - - /** field for QueryName */ - protected java.lang.String localQueryName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryNameTracker = false; - - public boolean isQueryNameSpecified() { - return localQueryNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryName() { - return localQueryName; - } - - /** - * Auto generated setter method - * - * @param param QueryName - */ - public void setQueryName(java.lang.String param) { - localQueryNameTracker = param != null; - - this.localQueryName = param; - } - - /** field for PublishedBy */ - protected java.lang.String localPublishedBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPublishedByTracker = false; - - public boolean isPublishedBySpecified() { - return localPublishedByTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPublishedBy() { - return localPublishedBy; - } - - /** - * Auto generated setter method - * - * @param param PublishedBy - */ - public void setPublishedBy(java.lang.String param) { - localPublishedByTracker = param != null; - - this.localPublishedBy = param; - } - - /** field for PageSize */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localPageSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageSizeTracker = false; - - public boolean isPageSizeSpecified() { - return localPageSizeTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getPageSize() { - return localPageSize; - } - - /** - * Auto generated setter method - * - * @param param PageSize - */ - public void setPageSize(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localPageSizeTracker = param != null; - - this.localPageSize = param; - } - - /** field for PageStartFrom */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localPageStartFrom; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageStartFromTracker = false; - - public boolean isPageStartFromSpecified() { - return localPageStartFromTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getPageStartFrom() { - return localPageStartFrom; - } - - /** - * Auto generated setter method - * - * @param param PageStartFrom - */ - public void setPageStartFrom(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localPageStartFromTracker = param != null; - - this.localPageStartFrom = param; - } - - /** field for Sortby */ - protected java.lang.String localSortby; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortbyTracker = false; - - public boolean isSortbySpecified() { - return localSortbyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortby() { - return localSortby; - } - - /** - * Auto generated setter method - * - * @param param Sortby - */ - public void setSortby(java.lang.String param) { - localSortbyTracker = param != null; - - this.localSortby = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for CheckAllNodes */ - protected boolean localCheckAllNodes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCheckAllNodesTracker = false; - - public boolean isCheckAllNodesSpecified() { - return localCheckAllNodesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCheckAllNodes() { - return localCheckAllNodes; - } - - /** - * Auto generated setter method - * - * @param param CheckAllNodes - */ - public void setCheckAllNodes(boolean param) { - - // setting primitive attribute tracker to true - localCheckAllNodesTracker = true; - - this.localCheckAllNodes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUListQueries", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUListQueries", xmlWriter); - } - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localLibraryNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LibraryName", xmlWriter); - - if (localLibraryName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LibraryName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLibraryName); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryLimitLowTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MemoryLimitLow", xmlWriter); - - if (localMemoryLimitLow == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MemoryLimitLow cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemoryLimitLow)); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryLimitHighTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MemoryLimitHigh", xmlWriter); - - if (localMemoryLimitHigh == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MemoryLimitHigh cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemoryLimitHigh)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitLowTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeLimitLow", xmlWriter); - - if (localTimeLimitLow == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLimitLow cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimitLow)); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitHighTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeLimitHigh", xmlWriter); - - if (localTimeLimitHigh == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLimitHigh cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimitHigh)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitLowTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarnTimeLimitLow", xmlWriter); - - if (localWarnTimeLimitLow == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WarnTimeLimitLow cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localWarnTimeLimitLow)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitHighTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarnTimeLimitHigh", xmlWriter); - - if (localWarnTimeLimitHigh == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WarnTimeLimitHigh cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localWarnTimeLimitHigh)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityLowTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityLow", xmlWriter); - - if (localPriorityLow == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PriorityLow cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLow)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityHighTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityHigh", xmlWriter); - - if (localPriorityHigh == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PriorityHigh cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityHigh)); - } - - xmlWriter.writeEndElement(); - } - if (localActivatedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Activated", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Activated cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivated)); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendedFilterTracker) { - if (localSuspendedFilter == null) { - throw new org.apache.axis2.databinding.ADBException("SuspendedFilter cannot be null!!"); - } - localSuspendedFilter.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuspendedFilter"), - xmlWriter); - } - if (localWUIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUID", xmlWriter); - - if (localWUID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUID); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryID", xmlWriter); - - if (localQueryID == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryID cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryID); - } - - xmlWriter.writeEndElement(); - } - if (localQueryNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryName", xmlWriter); - - if (localQueryName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryName); - } - - xmlWriter.writeEndElement(); - } - if (localPublishedByTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PublishedBy", xmlWriter); - - if (localPublishedBy == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PublishedBy cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPublishedBy); - } - - xmlWriter.writeEndElement(); - } - if (localPageSizeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageSize", xmlWriter); - - if (localPageSize == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPageStartFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageStartFrom", xmlWriter); - - if (localPageStartFrom == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localSortbyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sortby", xmlWriter); - - if (localSortby == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortby); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localCheckAllNodesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUListQueries parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUListQueries object = new WUListQueries(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUListQueries".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUListQueries) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LibraryName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LibraryName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLibraryName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryLimitLow") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemoryLimitLow" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimitLow( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "MemoryLimitHigh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemoryLimitHigh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimitHigh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimitLow") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLimitLow" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimitLow( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimitHigh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLimitHigh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimitHigh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WarnTimeLimitLow") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarnTimeLimitLow" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimitLow( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WarnTimeLimitHigh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarnTimeLimitHigh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimitHigh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLow") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityLow" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityLow( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityHigh") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityHigh" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityHigh( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activated") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Activated" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActivated( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SuspendedFilter") - .equals(reader.getName())) { - - object.setSuspendedFilter( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PublishedBy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PublishedBy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPublishedBy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageStartFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageStartFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sortby" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortby( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CheckAllNodes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCheckAllNodes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUListQueries.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUListQueries bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUListQueries implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUListQueries", "ns1"); + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for LibraryName */ + protected java.lang.String localLibraryName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLibraryNameTracker = false; + + public boolean isLibraryNameSpecified() { + return localLibraryNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLibraryName() { + return localLibraryName; + } + + /** + * Auto generated setter method + * + * @param param LibraryName + */ + public void setLibraryName(java.lang.String param) { + localLibraryNameTracker = param != null; + + this.localLibraryName = param; + } + + /** field for MemoryLimitLow */ + protected long localMemoryLimitLow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitLowTracker = false; + + public boolean isMemoryLimitLowSpecified() { + return localMemoryLimitLowTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getMemoryLimitLow() { + return localMemoryLimitLow; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimitLow + */ + public void setMemoryLimitLow(long param) { + + // setting primitive attribute tracker to true + localMemoryLimitLowTracker = param != java.lang.Long.MIN_VALUE; + + this.localMemoryLimitLow = param; + } + + /** field for MemoryLimitHigh */ + protected long localMemoryLimitHigh; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitHighTracker = false; + + public boolean isMemoryLimitHighSpecified() { + return localMemoryLimitHighTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getMemoryLimitHigh() { + return localMemoryLimitHigh; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimitHigh + */ + public void setMemoryLimitHigh(long param) { + + // setting primitive attribute tracker to true + localMemoryLimitHighTracker = param != java.lang.Long.MIN_VALUE; + + this.localMemoryLimitHigh = param; + } + + /** field for TimeLimitLow */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimitLow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitLowTracker = false; + + public boolean isTimeLimitLowSpecified() { + return localTimeLimitLowTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimitLow() { + return localTimeLimitLow; + } + + /** + * Auto generated setter method + * + * @param param TimeLimitLow + */ + public void setTimeLimitLow(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localTimeLimitLowTracker = param != null; + + this.localTimeLimitLow = param; + } + + /** field for TimeLimitHigh */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimitHigh; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitHighTracker = false; + + public boolean isTimeLimitHighSpecified() { + return localTimeLimitHighTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimitHigh() { + return localTimeLimitHigh; + } + + /** + * Auto generated setter method + * + * @param param TimeLimitHigh + */ + public void setTimeLimitHigh(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localTimeLimitHighTracker = param != null; + + this.localTimeLimitHigh = param; + } + + /** field for WarnTimeLimitLow */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimitLow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitLowTracker = false; + + public boolean isWarnTimeLimitLowSpecified() { + return localWarnTimeLimitLowTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimitLow() { + return localWarnTimeLimitLow; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimitLow + */ + public void setWarnTimeLimitLow(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localWarnTimeLimitLowTracker = param != null; + + this.localWarnTimeLimitLow = param; + } + + /** field for WarnTimeLimitHigh */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimitHigh; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitHighTracker = false; + + public boolean isWarnTimeLimitHighSpecified() { + return localWarnTimeLimitHighTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimitHigh() { + return localWarnTimeLimitHigh; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimitHigh + */ + public void setWarnTimeLimitHigh(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localWarnTimeLimitHighTracker = param != null; + + this.localWarnTimeLimitHigh = param; + } + + /** field for PriorityLow */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localPriorityLow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityLowTracker = false; + + public boolean isPriorityLowSpecified() { + return localPriorityLowTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getPriorityLow() { + return localPriorityLow; + } + + /** + * Auto generated setter method + * + * @param param PriorityLow + */ + public void setPriorityLow(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localPriorityLowTracker = param != null; + + this.localPriorityLow = param; + } + + /** field for PriorityHigh */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localPriorityHigh; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityHighTracker = false; + + public boolean isPriorityHighSpecified() { + return localPriorityHighTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getPriorityHigh() { + return localPriorityHigh; + } + + /** + * Auto generated setter method + * + * @param param PriorityHigh + */ + public void setPriorityHigh(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localPriorityHighTracker = param != null; + + this.localPriorityHigh = param; + } + + /** field for Activated */ + protected boolean localActivated; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivatedTracker = false; + + public boolean isActivatedSpecified() { + return localActivatedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getActivated() { + return localActivated; + } + + /** + * Auto generated setter method + * + * @param param Activated + */ + public void setActivated(boolean param) { + + // setting primitive attribute tracker to true + localActivatedTracker = true; + + this.localActivated = param; + } + + /** field for SuspendedFilter */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType + localSuspendedFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedFilterTracker = false; + + public boolean isSuspendedFilterSpecified() { + return localSuspendedFilterTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType + getSuspendedFilter() { + return localSuspendedFilter; + } + + /** + * Auto generated setter method + * + * @param param SuspendedFilter + */ + public void setSuspendedFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType param) { + localSuspendedFilterTracker = param != null; + + this.localSuspendedFilter = param; + } + + /** field for WUID */ + protected java.lang.String localWUID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUIDTracker = false; + + public boolean isWUIDSpecified() { + return localWUIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUID() { + return localWUID; + } + + /** + * Auto generated setter method + * + * @param param WUID + */ + public void setWUID(java.lang.String param) { + localWUIDTracker = param != null; + + this.localWUID = param; + } + + /** field for QueryID */ + protected java.lang.String localQueryID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIDTracker = false; + + public boolean isQueryIDSpecified() { + return localQueryIDTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryID() { + return localQueryID; + } + + /** + * Auto generated setter method + * + * @param param QueryID + */ + public void setQueryID(java.lang.String param) { + localQueryIDTracker = param != null; + + this.localQueryID = param; + } + + /** field for QueryName */ + protected java.lang.String localQueryName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryNameTracker = false; + + public boolean isQueryNameSpecified() { + return localQueryNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryName() { + return localQueryName; + } + + /** + * Auto generated setter method + * + * @param param QueryName + */ + public void setQueryName(java.lang.String param) { + localQueryNameTracker = param != null; + + this.localQueryName = param; + } + + /** field for PublishedBy */ + protected java.lang.String localPublishedBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPublishedByTracker = false; + + public boolean isPublishedBySpecified() { + return localPublishedByTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPublishedBy() { + return localPublishedBy; + } + + /** + * Auto generated setter method + * + * @param param PublishedBy + */ + public void setPublishedBy(java.lang.String param) { + localPublishedByTracker = param != null; + + this.localPublishedBy = param; + } + + /** field for PageSize */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localPageSize = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageSizeTracker = false; + + public boolean isPageSizeSpecified() { + return localPageSizeTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getPageSize() { + return localPageSize; + } + + /** + * Auto generated setter method + * + * @param param PageSize + */ + public void setPageSize(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localPageSizeTracker = param != null; + + this.localPageSize = param; + } + + /** field for PageStartFrom */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localPageStartFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageStartFromTracker = false; + + public boolean isPageStartFromSpecified() { + return localPageStartFromTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getPageStartFrom() { + return localPageStartFrom; + } + + /** + * Auto generated setter method + * + * @param param PageStartFrom + */ + public void setPageStartFrom(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localPageStartFromTracker = param != null; + + this.localPageStartFrom = param; + } + + /** field for Sortby */ + protected java.lang.String localSortby; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortbyTracker = false; + + public boolean isSortbySpecified() { + return localSortbyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortby() { + return localSortby; + } + + /** + * Auto generated setter method + * + * @param param Sortby + */ + public void setSortby(java.lang.String param) { + localSortbyTracker = param != null; + + this.localSortby = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for CheckAllNodes */ + protected boolean localCheckAllNodes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCheckAllNodesTracker = false; + + public boolean isCheckAllNodesSpecified() { + return localCheckAllNodesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCheckAllNodes() { + return localCheckAllNodes; + } + + /** + * Auto generated setter method + * + * @param param CheckAllNodes + */ + public void setCheckAllNodes(boolean param) { + + // setting primitive attribute tracker to true + localCheckAllNodesTracker = true; + + this.localCheckAllNodes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUListQueries", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUListQueries", xmlWriter); + } + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localLibraryNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LibraryName", xmlWriter); + + if (localLibraryName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LibraryName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLibraryName); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryLimitLowTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MemoryLimitLow", xmlWriter); + + if (localMemoryLimitLow == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MemoryLimitLow cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemoryLimitLow)); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryLimitHighTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MemoryLimitHigh", xmlWriter); + + if (localMemoryLimitHigh == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MemoryLimitHigh cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMemoryLimitHigh)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitLowTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeLimitLow", xmlWriter); + + if (localTimeLimitLow == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLimitLow cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimitLow)); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitHighTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeLimitHigh", xmlWriter); + + if (localTimeLimitHigh == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLimitHigh cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimitHigh)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitLowTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarnTimeLimitLow", xmlWriter); + + if (localWarnTimeLimitLow == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WarnTimeLimitLow cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localWarnTimeLimitLow)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitHighTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarnTimeLimitHigh", xmlWriter); + + if (localWarnTimeLimitHigh == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WarnTimeLimitHigh cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localWarnTimeLimitHigh)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityLowTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityLow", xmlWriter); + + if (localPriorityLow == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PriorityLow cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLow)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityHighTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityHigh", xmlWriter); + + if (localPriorityHigh == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PriorityHigh cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityHigh)); + } + + xmlWriter.writeEndElement(); + } + if (localActivatedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Activated", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Activated cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivated)); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendedFilterTracker) { + if (localSuspendedFilter == null) { + throw new org.apache.axis2.databinding.ADBException("SuspendedFilter cannot be null!!"); + } + localSuspendedFilter.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuspendedFilter"), + xmlWriter); + } + if (localWUIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUID", xmlWriter); + + if (localWUID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUID); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryID", xmlWriter); + + if (localQueryID == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryID cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryID); + } + + xmlWriter.writeEndElement(); + } + if (localQueryNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryName", xmlWriter); + + if (localQueryName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryName); + } + + xmlWriter.writeEndElement(); + } + if (localPublishedByTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PublishedBy", xmlWriter); + + if (localPublishedBy == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PublishedBy cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPublishedBy); + } + + xmlWriter.writeEndElement(); + } + if (localPageSizeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageSize", xmlWriter); + + if (localPageSize == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPageStartFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageStartFrom", xmlWriter); + + if (localPageStartFrom == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localSortbyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sortby", xmlWriter); + + if (localSortby == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortby); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localCheckAllNodesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUListQueries parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUListQueries object = new WUListQueries(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUListQueries".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUListQueries) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LibraryName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LibraryName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLibraryName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryLimitLow") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemoryLimitLow" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimitLow( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "MemoryLimitHigh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemoryLimitHigh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimitHigh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimitLow") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLimitLow" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimitLow( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimitHigh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLimitHigh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimitHigh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WarnTimeLimitLow") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarnTimeLimitLow" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimitLow( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WarnTimeLimitHigh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarnTimeLimitHigh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimitHigh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLow") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityLow" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityLow( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityHigh") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityHigh" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityHigh( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activated") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Activated" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActivated( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SuspendedFilter") + .equals(reader.getName())) { + + object.setSuspendedFilter( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilterSuspendedType + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PublishedBy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PublishedBy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPublishedBy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageStartFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageStartFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sortby" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortby( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CheckAllNodes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCheckAllNodes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesResponse.java index dc961442d..fd76ddbab 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesResponse.java @@ -1,579 +1,579 @@ -/** - * WUListQueriesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUListQueriesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUListQueriesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListQueriesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for NumberOfQueries */ - protected int localNumberOfQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumberOfQueriesTracker = false; - - public boolean isNumberOfQueriesSpecified() { - return localNumberOfQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getNumberOfQueries() { - return localNumberOfQueries; - } - - /** - * Auto generated setter method - * - * @param param NumberOfQueries - */ - public void setNumberOfQueries(int param) { - - // setting primitive attribute tracker to true - localNumberOfQueriesTracker = param != java.lang.Integer.MIN_VALUE; - - this.localNumberOfQueries = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** field for QuerysetQueries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - localQuerysetQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerysetQueriesTracker = false; - - public boolean isQuerysetQueriesSpecified() { - return localQuerysetQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - getQuerysetQueries() { - return localQuerysetQueries; - } - - /** - * Auto generated setter method - * - * @param param QuerysetQueries - */ - public void setQuerysetQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery param) { - localQuerysetQueriesTracker = param != null; - - this.localQuerysetQueries = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUListQueriesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUListQueriesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localNumberOfQueriesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NumberOfQueries", xmlWriter); - - if (localNumberOfQueries == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NumberOfQueries cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumberOfQueries)); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - if (localQuerysetQueriesTracker) { - if (localQuerysetQueries == null) { - throw new org.apache.axis2.databinding.ADBException("QuerysetQueries cannot be null!!"); - } - localQuerysetQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerysetQueries"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUListQueriesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUListQueriesResponse object = new WUListQueriesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUListQueriesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUListQueriesResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "NumberOfQueries") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumberOfQueries" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumberOfQueries( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QuerysetQueries") - .equals(reader.getName())) { - - object.setQuerysetQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUListQueriesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUListQueriesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUListQueriesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListQueriesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for NumberOfQueries */ + protected int localNumberOfQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumberOfQueriesTracker = false; + + public boolean isNumberOfQueriesSpecified() { + return localNumberOfQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getNumberOfQueries() { + return localNumberOfQueries; + } + + /** + * Auto generated setter method + * + * @param param NumberOfQueries + */ + public void setNumberOfQueries(int param) { + + // setting primitive attribute tracker to true + localNumberOfQueriesTracker = param != java.lang.Integer.MIN_VALUE; + + this.localNumberOfQueries = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** field for QuerysetQueries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + localQuerysetQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerysetQueriesTracker = false; + + public boolean isQuerysetQueriesSpecified() { + return localQuerysetQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + getQuerysetQueries() { + return localQuerysetQueries; + } + + /** + * Auto generated setter method + * + * @param param QuerysetQueries + */ + public void setQuerysetQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery param) { + localQuerysetQueriesTracker = param != null; + + this.localQuerysetQueries = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUListQueriesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUListQueriesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localNumberOfQueriesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NumberOfQueries", xmlWriter); + + if (localNumberOfQueries == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NumberOfQueries cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumberOfQueries)); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + if (localQuerysetQueriesTracker) { + if (localQuerysetQueries == null) { + throw new org.apache.axis2.databinding.ADBException("QuerysetQueries cannot be null!!"); + } + localQuerysetQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerysetQueries"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUListQueriesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUListQueriesResponse object = new WUListQueriesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUListQueriesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUListQueriesResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "NumberOfQueries") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumberOfQueries" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumberOfQueries( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QuerysetQueries") + .equals(reader.getName())) { + + object.setQuerysetQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesUsingFile.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesUsingFile.java index bbc2b77f7..5a873c785 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesUsingFile.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesUsingFile.java @@ -1,534 +1,534 @@ -/** - * WUListQueriesUsingFile.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUListQueriesUsingFile bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUListQueriesUsingFile implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListQueriesUsingFile", "ns1"); - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for Process */ - protected java.lang.String localProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessTracker = false; - - public boolean isProcessSpecified() { - return localProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProcess() { - return localProcess; - } - - /** - * Auto generated setter method - * - * @param param Process - */ - public void setProcess(java.lang.String param) { - localProcessTracker = param != null; - - this.localProcess = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUListQueriesUsingFile", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUListQueriesUsingFile", - xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Process", xmlWriter); - - if (localProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProcess); - } - - xmlWriter.writeEndElement(); - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUListQueriesUsingFile parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUListQueriesUsingFile object = new WUListQueriesUsingFile(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUListQueriesUsingFile".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUListQueriesUsingFile) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Process") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Process" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUListQueriesUsingFile.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUListQueriesUsingFile bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUListQueriesUsingFile implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListQueriesUsingFile", "ns1"); + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for Process */ + protected java.lang.String localProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessTracker = false; + + public boolean isProcessSpecified() { + return localProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProcess() { + return localProcess; + } + + /** + * Auto generated setter method + * + * @param param Process + */ + public void setProcess(java.lang.String param) { + localProcessTracker = param != null; + + this.localProcess = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUListQueriesUsingFile", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUListQueriesUsingFile", + xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Process", xmlWriter); + + if (localProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProcess); + } + + xmlWriter.writeEndElement(); + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUListQueriesUsingFile parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUListQueriesUsingFile object = new WUListQueriesUsingFile(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUListQueriesUsingFile".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUListQueriesUsingFile) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Process") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Process" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesUsingFileResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesUsingFileResponse.java index c51b6362d..43c186625 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesUsingFileResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUListQueriesUsingFileResponse.java @@ -1,574 +1,574 @@ -/** - * WUListQueriesUsingFileResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUListQueriesUsingFileResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUListQueriesUsingFileResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListQueriesUsingFileResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Process */ - protected java.lang.String localProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProcessTracker = false; - - public boolean isProcessSpecified() { - return localProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getProcess() { - return localProcess; - } - - /** - * Auto generated setter method - * - * @param param Process - */ - public void setProcess(java.lang.String param) { - localProcessTracker = param != null; - - this.localProcess = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for Targets */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile - localTargets; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetsTracker = false; - - public boolean isTargetsSpecified() { - return localTargetsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile - getTargets() { - return localTargets; - } - - /** - * Auto generated setter method - * - * @param param Targets - */ - public void setTargets( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile param) { - localTargetsTracker = param != null; - - this.localTargets = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUListQueriesUsingFileResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUListQueriesUsingFileResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Process", xmlWriter); - - if (localProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localProcess); - } - - xmlWriter.writeEndElement(); - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localTargetsTracker) { - if (localTargets == null) { - throw new org.apache.axis2.databinding.ADBException("Targets cannot be null!!"); - } - localTargets.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Targets"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUListQueriesUsingFileResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUListQueriesUsingFileResponse object = new WUListQueriesUsingFileResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUListQueriesUsingFileResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUListQueriesUsingFileResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Process") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Process" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Targets") - .equals(reader.getName())) { - - object.setTargets( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .ArrayOfTargetQueriesUsingFile.Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUListQueriesUsingFileResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUListQueriesUsingFileResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUListQueriesUsingFileResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListQueriesUsingFileResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Process */ + protected java.lang.String localProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProcessTracker = false; + + public boolean isProcessSpecified() { + return localProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getProcess() { + return localProcess; + } + + /** + * Auto generated setter method + * + * @param param Process + */ + public void setProcess(java.lang.String param) { + localProcessTracker = param != null; + + this.localProcess = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for Targets */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile + localTargets; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetsTracker = false; + + public boolean isTargetsSpecified() { + return localTargetsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile + getTargets() { + return localTargets; + } + + /** + * Auto generated setter method + * + * @param param Targets + */ + public void setTargets( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfTargetQueriesUsingFile param) { + localTargetsTracker = param != null; + + this.localTargets = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUListQueriesUsingFileResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUListQueriesUsingFileResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Process", xmlWriter); + + if (localProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Process cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localProcess); + } + + xmlWriter.writeEndElement(); + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localTargetsTracker) { + if (localTargets == null) { + throw new org.apache.axis2.databinding.ADBException("Targets cannot be null!!"); + } + localTargets.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Targets"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUListQueriesUsingFileResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUListQueriesUsingFileResponse object = new WUListQueriesUsingFileResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUListQueriesUsingFileResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUListQueriesUsingFileResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Process") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Process" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Targets") + .equals(reader.getName())) { + + object.setTargets( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .ArrayOfTargetQueriesUsingFile.Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULogFileResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULogFileResponse.java index ac4efa301..60872612e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULogFileResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULogFileResponse.java @@ -1,853 +1,853 @@ -/** - * WULogFileResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WULogFileResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WULogFileResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WULogFileResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for QueryName */ - protected java.lang.String localQueryName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryNameTracker = false; - - public boolean isQueryNameSpecified() { - return localQueryNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryName() { - return localQueryName; - } - - /** - * Auto generated setter method - * - * @param param QueryName - */ - public void setQueryName(java.lang.String param) { - localQueryNameTracker = param != null; - - this.localQueryName = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for FileName */ - protected java.lang.String localFileName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileNameTracker = false; - - public boolean isFileNameSpecified() { - return localFileNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFileName() { - return localFileName; - } - - /** - * Auto generated setter method - * - * @param param FileName - */ - public void setFileName(java.lang.String param) { - localFileNameTracker = param != null; - - this.localFileName = param; - } - - /** field for DaliServer */ - protected java.lang.String localDaliServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDaliServerTracker = false; - - public boolean isDaliServerSpecified() { - return localDaliServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDaliServer() { - return localDaliServer; - } - - /** - * Auto generated setter method - * - * @param param DaliServer - */ - public void setDaliServer(java.lang.String param) { - localDaliServerTracker = param != null; - - this.localDaliServer = param; - } - - /** field for Thefile */ - protected javax.activation.DataHandler localThefile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThefileTracker = false; - - public boolean isThefileSpecified() { - return localThefileTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getThefile() { - return localThefile; - } - - /** - * Auto generated setter method - * - * @param param Thefile - */ - public void setThefile(javax.activation.DataHandler param) { - localThefileTracker = param != null; - - this.localThefile = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WULogFileResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WULogFileResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localQueryNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryName", xmlWriter); - - if (localQueryName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryName); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localFileNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FileName", xmlWriter); - - if (localFileName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFileName); - } - - xmlWriter.writeEndElement(); - } - if (localDaliServerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DaliServer", xmlWriter); - - if (localDaliServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DaliServer cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDaliServer); - } - - xmlWriter.writeEndElement(); - } - if (localThefileTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "thefile", xmlWriter); - - if (localThefile != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localThefile, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for thefile", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WULogFileResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WULogFileResponse object = new WULogFileResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WULogFileResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WULogFileResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FileName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFileName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DaliServer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DaliServer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDaliServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "thefile") - .equals(reader.getName())) { - - object.setThefile( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WULogFileResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WULogFileResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WULogFileResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WULogFileResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for QueryName */ + protected java.lang.String localQueryName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryNameTracker = false; + + public boolean isQueryNameSpecified() { + return localQueryNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryName() { + return localQueryName; + } + + /** + * Auto generated setter method + * + * @param param QueryName + */ + public void setQueryName(java.lang.String param) { + localQueryNameTracker = param != null; + + this.localQueryName = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for FileName */ + protected java.lang.String localFileName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileNameTracker = false; + + public boolean isFileNameSpecified() { + return localFileNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFileName() { + return localFileName; + } + + /** + * Auto generated setter method + * + * @param param FileName + */ + public void setFileName(java.lang.String param) { + localFileNameTracker = param != null; + + this.localFileName = param; + } + + /** field for DaliServer */ + protected java.lang.String localDaliServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDaliServerTracker = false; + + public boolean isDaliServerSpecified() { + return localDaliServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDaliServer() { + return localDaliServer; + } + + /** + * Auto generated setter method + * + * @param param DaliServer + */ + public void setDaliServer(java.lang.String param) { + localDaliServerTracker = param != null; + + this.localDaliServer = param; + } + + /** field for Thefile */ + protected javax.activation.DataHandler localThefile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThefileTracker = false; + + public boolean isThefileSpecified() { + return localThefileTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getThefile() { + return localThefile; + } + + /** + * Auto generated setter method + * + * @param param Thefile + */ + public void setThefile(javax.activation.DataHandler param) { + localThefileTracker = param != null; + + this.localThefile = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WULogFileResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WULogFileResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localQueryNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryName", xmlWriter); + + if (localQueryName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryName); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localFileNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FileName", xmlWriter); + + if (localFileName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FileName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFileName); + } + + xmlWriter.writeEndElement(); + } + if (localDaliServerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DaliServer", xmlWriter); + + if (localDaliServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DaliServer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDaliServer); + } + + xmlWriter.writeEndElement(); + } + if (localThefileTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "thefile", xmlWriter); + + if (localThefile != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localThefile, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for thefile", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WULogFileResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WULogFileResponse object = new WULogFileResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WULogFileResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WULogFileResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FileName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFileName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DaliServer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DaliServer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDaliServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "thefile") + .equals(reader.getName())) { + + object.setThefile( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULogicalFileCopyInfo.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULogicalFileCopyInfo.java index cdd6e68ba..487918bda 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULogicalFileCopyInfo.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WULogicalFileCopyInfo.java @@ -1,657 +1,657 @@ -/** - * WULogicalFileCopyInfo.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WULogicalFileCopyInfo bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WULogicalFileCopyInfo implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WULogicalFileCopyInfo - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for IsIndex */ - protected boolean localIsIndex; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsIndexTracker = false; - - public boolean isIsIndexSpecified() { - return localIsIndexTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsIndex() { - return localIsIndex; - } - - /** - * Auto generated setter method - * - * @param param IsIndex - */ - public void setIsIndex(boolean param) { - - // setting primitive attribute tracker to true - localIsIndexTracker = true; - - this.localIsIndex = param; - } - - /** field for LogicalName */ - protected java.lang.String localLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalNameTracker = false; - - public boolean isLogicalNameSpecified() { - return localLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalName() { - return localLogicalName; - } - - /** - * Auto generated setter method - * - * @param param LogicalName - */ - public void setLogicalName(java.lang.String param) { - localLogicalNameTracker = param != null; - - this.localLogicalName = param; - } - - /** field for DfuCopyWuid */ - protected java.lang.String localDfuCopyWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuCopyWuidTracker = false; - - public boolean isDfuCopyWuidSpecified() { - return localDfuCopyWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuCopyWuid() { - return localDfuCopyWuid; - } - - /** - * Auto generated setter method - * - * @param param DfuCopyWuid - */ - public void setDfuCopyWuid(java.lang.String param) { - localDfuCopyWuidTracker = param != null; - - this.localDfuCopyWuid = param; - } - - /** field for DfuCopyError */ - protected java.lang.String localDfuCopyError; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuCopyErrorTracker = false; - - public boolean isDfuCopyErrorSpecified() { - return localDfuCopyErrorTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuCopyError() { - return localDfuCopyError; - } - - /** - * Auto generated setter method - * - * @param param DfuCopyError - */ - public void setDfuCopyError(java.lang.String param) { - localDfuCopyErrorTracker = param != null; - - this.localDfuCopyError = param; - } - - /** field for Clusters */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClustersTracker = false; - - public boolean isClustersSpecified() { - return localClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getClusters() { - return localClusters; - } - - /** - * Auto generated setter method - * - * @param param Clusters - */ - public void setClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localClustersTracker = param != null; - - this.localClusters = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WULogicalFileCopyInfo", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WULogicalFileCopyInfo", - xmlWriter); - } - } - if (localIsIndexTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsIndex", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsIndex cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsIndex)); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalName", xmlWriter); - - if (localLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localDfuCopyWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuCopyWuid", xmlWriter); - - if (localDfuCopyWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuCopyWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuCopyWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDfuCopyErrorTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuCopyError", xmlWriter); - - if (localDfuCopyError == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuCopyError cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuCopyError); - } - - xmlWriter.writeEndElement(); - } - if (localClustersTracker) { - if (localClusters == null) { - throw new org.apache.axis2.databinding.ADBException("Clusters cannot be null!!"); - } - localClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WULogicalFileCopyInfo parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WULogicalFileCopyInfo object = new WULogicalFileCopyInfo(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WULogicalFileCopyInfo".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WULogicalFileCopyInfo) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsIndex") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsIndex" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsIndex( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuCopyWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuCopyWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyError") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuCopyError" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuCopyError( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters") - .equals(reader.getName())) { - - object.setClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WULogicalFileCopyInfo.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WULogicalFileCopyInfo bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WULogicalFileCopyInfo implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WULogicalFileCopyInfo + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for IsIndex */ + protected boolean localIsIndex; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsIndexTracker = false; + + public boolean isIsIndexSpecified() { + return localIsIndexTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsIndex() { + return localIsIndex; + } + + /** + * Auto generated setter method + * + * @param param IsIndex + */ + public void setIsIndex(boolean param) { + + // setting primitive attribute tracker to true + localIsIndexTracker = true; + + this.localIsIndex = param; + } + + /** field for LogicalName */ + protected java.lang.String localLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalNameTracker = false; + + public boolean isLogicalNameSpecified() { + return localLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalName() { + return localLogicalName; + } + + /** + * Auto generated setter method + * + * @param param LogicalName + */ + public void setLogicalName(java.lang.String param) { + localLogicalNameTracker = param != null; + + this.localLogicalName = param; + } + + /** field for DfuCopyWuid */ + protected java.lang.String localDfuCopyWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuCopyWuidTracker = false; + + public boolean isDfuCopyWuidSpecified() { + return localDfuCopyWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuCopyWuid() { + return localDfuCopyWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuCopyWuid + */ + public void setDfuCopyWuid(java.lang.String param) { + localDfuCopyWuidTracker = param != null; + + this.localDfuCopyWuid = param; + } + + /** field for DfuCopyError */ + protected java.lang.String localDfuCopyError; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuCopyErrorTracker = false; + + public boolean isDfuCopyErrorSpecified() { + return localDfuCopyErrorTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuCopyError() { + return localDfuCopyError; + } + + /** + * Auto generated setter method + * + * @param param DfuCopyError + */ + public void setDfuCopyError(java.lang.String param) { + localDfuCopyErrorTracker = param != null; + + this.localDfuCopyError = param; + } + + /** field for Clusters */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClustersTracker = false; + + public boolean isClustersSpecified() { + return localClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getClusters() { + return localClusters; + } + + /** + * Auto generated setter method + * + * @param param Clusters + */ + public void setClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localClustersTracker = param != null; + + this.localClusters = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WULogicalFileCopyInfo", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WULogicalFileCopyInfo", + xmlWriter); + } + } + if (localIsIndexTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsIndex", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsIndex cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsIndex)); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalName", xmlWriter); + + if (localLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localDfuCopyWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuCopyWuid", xmlWriter); + + if (localDfuCopyWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuCopyWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuCopyWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDfuCopyErrorTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuCopyError", xmlWriter); + + if (localDfuCopyError == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuCopyError cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuCopyError); + } + + xmlWriter.writeEndElement(); + } + if (localClustersTracker) { + if (localClusters == null) { + throw new org.apache.axis2.databinding.ADBException("Clusters cannot be null!!"); + } + localClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WULogicalFileCopyInfo parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WULogicalFileCopyInfo object = new WULogicalFileCopyInfo(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WULogicalFileCopyInfo".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WULogicalFileCopyInfo) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsIndex") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsIndex" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsIndex( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuCopyWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuCopyWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyError") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuCopyError" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuCopyError( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters") + .equals(reader.getName())) { + + object.setClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUMultiQuerySetDetailsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUMultiQuerySetDetailsResponse.java index 0b17d6fef..451682738 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUMultiQuerySetDetailsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUMultiQuerySetDetailsResponse.java @@ -1,506 +1,506 @@ -/** - * WUMultiQuerySetDetailsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUMultiQuerySetDetailsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUMultiQuerySetDetailsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUMultiQuerySetDetailsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for Querysets */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail - localQuerysets; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerysetsTracker = false; - - public boolean isQuerysetsSpecified() { - return localQuerysetsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail - getQuerysets() { - return localQuerysets; - } - - /** - * Auto generated setter method - * - * @param param Querysets - */ - public void setQuerysets( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail param) { - localQuerysetsTracker = param != null; - - this.localQuerysets = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUMultiQuerySetDetailsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUMultiQuerySetDetailsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localQuerysetsTracker) { - if (localQuerysets == null) { - throw new org.apache.axis2.databinding.ADBException("Querysets cannot be null!!"); - } - localQuerysets.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Querysets"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUMultiQuerySetDetailsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUMultiQuerySetDetailsResponse object = new WUMultiQuerySetDetailsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUMultiQuerySetDetailsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUMultiQuerySetDetailsResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Querysets") - .equals(reader.getName())) { - - object.setQuerysets( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUMultiQuerySetDetailsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUMultiQuerySetDetailsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUMultiQuerySetDetailsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUMultiQuerySetDetailsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for Querysets */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail + localQuerysets; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerysetsTracker = false; + + public boolean isQuerysetsSpecified() { + return localQuerysetsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail + getQuerysets() { + return localQuerysets; + } + + /** + * Auto generated setter method + * + * @param param Querysets + */ + public void setQuerysets( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail param) { + localQuerysetsTracker = param != null; + + this.localQuerysets = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUMultiQuerySetDetailsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUMultiQuerySetDetailsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localQuerysetsTracker) { + if (localQuerysets == null) { + throw new org.apache.axis2.databinding.ADBException("Querysets cannot be null!!"); + } + localQuerysets.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Querysets"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUMultiQuerySetDetailsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUMultiQuerySetDetailsResponse object = new WUMultiQuerySetDetailsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUMultiQuerySetDetailsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUMultiQuerySetDetailsResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Querysets") + .equals(reader.getName())) { + + object.setQuerysets( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUQuerySetDetail + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUMultiQuerysetDetails.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUMultiQuerysetDetails.java index c97eac252..92aba0b78 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUMultiQuerysetDetails.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUMultiQuerysetDetails.java @@ -1,658 +1,658 @@ -/** - * WUMultiQuerysetDetails.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUMultiQuerysetDetails bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUMultiQuerysetDetails implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUMultiQuerysetDetails", "ns1"); - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for Filter */ - protected java.lang.String localFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTracker = false; - - public boolean isFilterSpecified() { - return localFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFilter() { - return localFilter; - } - - /** - * Auto generated setter method - * - * @param param Filter - */ - public void setFilter(java.lang.String param) { - localFilterTracker = param != null; - - this.localFilter = param; - } - - /** field for FilterType */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - localFilterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTypeTracker = false; - - public boolean isFilterTypeSpecified() { - return localFilterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - getFilterType() { - return localFilterType; - } - - /** - * Auto generated setter method - * - * @param param FilterType - */ - public void setFilterType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType param) { - localFilterTypeTracker = param != null; - - this.localFilterType = param; - } - - /** field for CheckAllNodes */ - protected boolean localCheckAllNodes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCheckAllNodesTracker = false; - - public boolean isCheckAllNodesSpecified() { - return localCheckAllNodesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCheckAllNodes() { - return localCheckAllNodes; - } - - /** - * Auto generated setter method - * - * @param param CheckAllNodes - */ - public void setCheckAllNodes(boolean param) { - - // setting primitive attribute tracker to true - localCheckAllNodesTracker = true; - - this.localCheckAllNodes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUMultiQuerysetDetails", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUMultiQuerysetDetails", - xmlWriter); - } - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Filter", xmlWriter); - - if (localFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFilter); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTypeTracker) { - if (localFilterType == null) { - throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); - } - localFilterType.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType"), xmlWriter); - } - if (localCheckAllNodesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUMultiQuerysetDetails parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUMultiQuerysetDetails object = new WUMultiQuerysetDetails(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUMultiQuerysetDetails".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUMultiQuerysetDetails) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Filter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType") - .equals(reader.getName())) { - - object.setFilterType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CheckAllNodes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCheckAllNodes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUMultiQuerysetDetails.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUMultiQuerysetDetails bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUMultiQuerysetDetails implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUMultiQuerysetDetails", "ns1"); + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for Filter */ + protected java.lang.String localFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTracker = false; + + public boolean isFilterSpecified() { + return localFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFilter() { + return localFilter; + } + + /** + * Auto generated setter method + * + * @param param Filter + */ + public void setFilter(java.lang.String param) { + localFilterTracker = param != null; + + this.localFilter = param; + } + + /** field for FilterType */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + localFilterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTypeTracker = false; + + public boolean isFilterTypeSpecified() { + return localFilterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + getFilterType() { + return localFilterType; + } + + /** + * Auto generated setter method + * + * @param param FilterType + */ + public void setFilterType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType param) { + localFilterTypeTracker = param != null; + + this.localFilterType = param; + } + + /** field for CheckAllNodes */ + protected boolean localCheckAllNodes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCheckAllNodesTracker = false; + + public boolean isCheckAllNodesSpecified() { + return localCheckAllNodesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCheckAllNodes() { + return localCheckAllNodes; + } + + /** + * Auto generated setter method + * + * @param param CheckAllNodes + */ + public void setCheckAllNodes(boolean param) { + + // setting primitive attribute tracker to true + localCheckAllNodesTracker = true; + + this.localCheckAllNodes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUMultiQuerysetDetails", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUMultiQuerysetDetails", + xmlWriter); + } + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Filter", xmlWriter); + + if (localFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFilter); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTypeTracker) { + if (localFilterType == null) { + throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); + } + localFilterType.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType"), xmlWriter); + } + if (localCheckAllNodesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUMultiQuerysetDetails parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUMultiQuerysetDetails object = new WUMultiQuerysetDetails(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUMultiQuerysetDetails".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUMultiQuerysetDetails) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Filter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType") + .equals(reader.getName())) { + + object.setFilterType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CheckAllNodes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCheckAllNodes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUNestedFilter.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUNestedFilter.java index e3d855c39..e73981d24 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUNestedFilter.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUNestedFilter.java @@ -1,454 +1,454 @@ -/** - * WUNestedFilter.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUNestedFilter bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUNestedFilter implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUNestedFilter - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Depth */ - protected org.apache.axis2.databinding.types.UnsignedInt localDepth = - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("9999"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDepthTracker = false; - - public boolean isDepthSpecified() { - return localDepthTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getDepth() { - return localDepth; - } - - /** - * Auto generated setter method - * - * @param param Depth - */ - public void setDepth(org.apache.axis2.databinding.types.UnsignedInt param) { - localDepthTracker = param != null; - - this.localDepth = param; - } - - /** field for ScopeTypes */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1 localScopeTypes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypesTracker = false; - - public boolean isScopeTypesSpecified() { - return localScopeTypesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1 getScopeTypes() { - return localScopeTypes; - } - - /** - * Auto generated setter method - * - * @param param ScopeTypes - */ - public void setScopeTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1 param) { - localScopeTypesTracker = param != null; - - this.localScopeTypes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUNestedFilter", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUNestedFilter", - xmlWriter); - } - } - if (localDepthTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Depth", xmlWriter); - - if (localDepth == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Depth cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDepth)); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTypesTracker) { - if (localScopeTypes == null) { - throw new org.apache.axis2.databinding.ADBException("ScopeTypes cannot be null!!"); - } - localScopeTypes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUNestedFilter parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUNestedFilter object = new WUNestedFilter(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUNestedFilter".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUNestedFilter) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Depth") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Depth" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDepth( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes") - .equals(reader.getName())) { - - object.setScopeTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUNestedFilter.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUNestedFilter bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUNestedFilter implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUNestedFilter + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Depth */ + protected org.apache.axis2.databinding.types.UnsignedInt localDepth = + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("9999"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDepthTracker = false; + + public boolean isDepthSpecified() { + return localDepthTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getDepth() { + return localDepth; + } + + /** + * Auto generated setter method + * + * @param param Depth + */ + public void setDepth(org.apache.axis2.databinding.types.UnsignedInt param) { + localDepthTracker = param != null; + + this.localDepth = param; + } + + /** field for ScopeTypes */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1 localScopeTypes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypesTracker = false; + + public boolean isScopeTypesSpecified() { + return localScopeTypesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1 getScopeTypes() { + return localScopeTypes; + } + + /** + * Auto generated setter method + * + * @param param ScopeTypes + */ + public void setScopeTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1 param) { + localScopeTypesTracker = param != null; + + this.localScopeTypes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUNestedFilter", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUNestedFilter", + xmlWriter); + } + } + if (localDepthTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Depth", xmlWriter); + + if (localDepth == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Depth cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDepth)); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTypesTracker) { + if (localScopeTypes == null) { + throw new org.apache.axis2.databinding.ADBException("ScopeTypes cannot be null!!"); + } + localScopeTypes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUNestedFilter parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUNestedFilter object = new WUNestedFilter(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUNestedFilter".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUNestedFilter) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Depth") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Depth" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDepth( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes") + .equals(reader.getName())) { + + object.setScopeTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProcessGraph.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProcessGraph.java index 2b9d90780..0bc07d4af 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProcessGraph.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProcessGraph.java @@ -1,465 +1,465 @@ -/** - * WUProcessGraph.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUProcessGraph bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUProcessGraph implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProcessGraph", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUProcessGraph", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUProcessGraph", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - if (localName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUProcessGraph parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUProcessGraph object = new WUProcessGraph(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUProcessGraph".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUProcessGraph) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUProcessGraph.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUProcessGraph bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUProcessGraph implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProcessGraph", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUProcessGraph", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUProcessGraph", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + if (localName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Name cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUProcessGraph parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUProcessGraph object = new WUProcessGraph(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUProcessGraph".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUProcessGraph) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProcessGraphResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProcessGraphResponse.java index 2429abc59..3e6697d4e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProcessGraphResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProcessGraphResponse.java @@ -1,452 +1,452 @@ -/** - * WUProcessGraphResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUProcessGraphResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUProcessGraphResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUProcessGraphResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for TheGraph */ - protected java.lang.String localTheGraph; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTheGraphTracker = false; - - public boolean isTheGraphSpecified() { - return localTheGraphTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTheGraph() { - return localTheGraph; - } - - /** - * Auto generated setter method - * - * @param param TheGraph - */ - public void setTheGraph(java.lang.String param) { - localTheGraphTracker = param != null; - - this.localTheGraph = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUProcessGraphResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUProcessGraphResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localTheGraphTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "theGraph", xmlWriter); - - if (localTheGraph == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("theGraph cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTheGraph); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUProcessGraphResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUProcessGraphResponse object = new WUProcessGraphResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUProcessGraphResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUProcessGraphResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "theGraph") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "theGraph" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTheGraph( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUProcessGraphResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUProcessGraphResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUProcessGraphResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUProcessGraphResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for TheGraph */ + protected java.lang.String localTheGraph; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTheGraphTracker = false; + + public boolean isTheGraphSpecified() { + return localTheGraphTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTheGraph() { + return localTheGraph; + } + + /** + * Auto generated setter method + * + * @param param TheGraph + */ + public void setTheGraph(java.lang.String param) { + localTheGraphTracker = param != null; + + this.localTheGraph = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUProcessGraphResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUProcessGraphResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localTheGraphTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "theGraph", xmlWriter); + + if (localTheGraph == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("theGraph cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTheGraph); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUProcessGraphResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUProcessGraphResponse object = new WUProcessGraphResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUProcessGraphResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUProcessGraphResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "theGraph") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "theGraph" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTheGraph( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertiesToReturn.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertiesToReturn.java index d4920a315..52d99e76b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertiesToReturn.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertiesToReturn.java @@ -1,996 +1,996 @@ -/** - * WUPropertiesToReturn.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUPropertiesToReturn bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUPropertiesToReturn implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUPropertiesToReturn - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for AllStatistics */ - protected boolean localAllStatistics = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllStatisticsTracker = false; - - public boolean isAllStatisticsSpecified() { - return localAllStatisticsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllStatistics() { - return localAllStatistics; - } - - /** - * Auto generated setter method - * - * @param param AllStatistics - */ - public void setAllStatistics(boolean param) { - - // setting primitive attribute tracker to true - localAllStatisticsTracker = true; - - this.localAllStatistics = param; - } - - /** field for AllAttributes */ - protected boolean localAllAttributes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllAttributesTracker = false; - - public boolean isAllAttributesSpecified() { - return localAllAttributesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllAttributes() { - return localAllAttributes; - } - - /** - * Auto generated setter method - * - * @param param AllAttributes - */ - public void setAllAttributes(boolean param) { - - // setting primitive attribute tracker to true - localAllAttributesTracker = true; - - this.localAllAttributes = param; - } - - /** field for AllHints */ - protected boolean localAllHints = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllHintsTracker = false; - - public boolean isAllHintsSpecified() { - return localAllHintsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllHints() { - return localAllHints; - } - - /** - * Auto generated setter method - * - * @param param AllHints - */ - public void setAllHints(boolean param) { - - // setting primitive attribute tracker to true - localAllHintsTracker = true; - - this.localAllHints = param; - } - - /** field for AllScopes */ - protected boolean localAllScopes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllScopesTracker = false; - - public boolean isAllScopesSpecified() { - return localAllScopesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllScopes() { - return localAllScopes; - } - - /** - * Auto generated setter method - * - * @param param AllScopes - */ - public void setAllScopes(boolean param) { - - // setting primitive attribute tracker to true - localAllScopesTracker = true; - - this.localAllScopes = param; - } - - /** field for AllProperties */ - protected boolean localAllProperties = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllPropertiesTracker = false; - - public boolean isAllPropertiesSpecified() { - return localAllPropertiesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllProperties() { - return localAllProperties; - } - - /** - * Auto generated setter method - * - * @param param AllProperties - */ - public void setAllProperties(boolean param) { - - // setting primitive attribute tracker to true - localAllPropertiesTracker = true; - - this.localAllProperties = param; - } - - /** field for AllNotes */ - protected boolean localAllNotes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllNotesTracker = false; - - public boolean isAllNotesSpecified() { - return localAllNotesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllNotes() { - return localAllNotes; - } - - /** - * Auto generated setter method - * - * @param param AllNotes - */ - public void setAllNotes(boolean param) { - - // setting primitive attribute tracker to true - localAllNotesTracker = true; - - this.localAllNotes = param; - } - - /** field for MinVersion */ - protected java.lang.String localMinVersion; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMinVersionTracker = false; - - public boolean isMinVersionSpecified() { - return localMinVersionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMinVersion() { - return localMinVersion; - } - - /** - * Auto generated setter method - * - * @param param MinVersion - */ - public void setMinVersion(java.lang.String param) { - localMinVersionTracker = param != null; - - this.localMinVersion = param; - } - - /** field for Measure */ - protected java.lang.String localMeasure; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMeasureTracker = false; - - public boolean isMeasureSpecified() { - return localMeasureTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMeasure() { - return localMeasure; - } - - /** - * Auto generated setter method - * - * @param param Measure - */ - public void setMeasure(java.lang.String param) { - localMeasureTracker = param != null; - - this.localMeasure = param; - } - - /** field for Properties */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0 localProperties; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertiesTracker = false; - - public boolean isPropertiesSpecified() { - return localPropertiesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0 getProperties() { - return localProperties; - } - - /** - * Auto generated setter method - * - * @param param Properties - */ - public void setProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0 param) { - localPropertiesTracker = param != null; - - this.localProperties = param; - } - - /** field for ExtraProperties */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 - localExtraProperties; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExtraPropertiesTracker = false; - - public boolean isExtraPropertiesSpecified() { - return localExtraPropertiesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 - getExtraProperties() { - return localExtraProperties; - } - - /** - * Auto generated setter method - * - * @param param ExtraProperties - */ - public void setExtraProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 param) { - localExtraPropertiesTracker = param != null; - - this.localExtraProperties = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUPropertiesToReturn", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUPropertiesToReturn", - xmlWriter); - } - } - if (localAllStatisticsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllStatistics", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllStatistics cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllStatistics)); - } - - xmlWriter.writeEndElement(); - } - if (localAllAttributesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllAttributes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllAttributes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllAttributes)); - } - - xmlWriter.writeEndElement(); - } - if (localAllHintsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllHints", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllHints cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllHints)); - } - - xmlWriter.writeEndElement(); - } - if (localAllScopesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllScopes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllScopes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllScopes)); - } - - xmlWriter.writeEndElement(); - } - if (localAllPropertiesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllProperties", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllProperties cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllProperties)); - } - - xmlWriter.writeEndElement(); - } - if (localAllNotesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllNotes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllNotes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllNotes)); - } - - xmlWriter.writeEndElement(); - } - if (localMinVersionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MinVersion", xmlWriter); - - if (localMinVersion == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MinVersion cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMinVersion); - } - - xmlWriter.writeEndElement(); - } - if (localMeasureTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Measure", xmlWriter); - - if (localMeasure == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMeasure); - } - - xmlWriter.writeEndElement(); - } - if (localPropertiesTracker) { - if (localProperties == null) { - throw new org.apache.axis2.databinding.ADBException("Properties cannot be null!!"); - } - localProperties.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties"), xmlWriter); - } - if (localExtraPropertiesTracker) { - if (localExtraProperties == null) { - throw new org.apache.axis2.databinding.ADBException("ExtraProperties cannot be null!!"); - } - localExtraProperties.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExtraProperties"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUPropertiesToReturn parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUPropertiesToReturn object = new WUPropertiesToReturn(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUPropertiesToReturn".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUPropertiesToReturn) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllStatistics") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllStatistics" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllStatistics( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllAttributes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllAttributes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllAttributes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllHints") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllHints" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllHints( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllScopes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllScopes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllScopes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllProperties") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllProperties" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllProperties( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllNotes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllNotes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllNotes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MinVersion") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MinVersion" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMinVersion( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Measure" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMeasure( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties") - .equals(reader.getName())) { - - object.setProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ExtraProperties") - .equals(reader.getName())) { - - object.setExtraProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUPropertiesToReturn.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUPropertiesToReturn bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUPropertiesToReturn implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUPropertiesToReturn + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for AllStatistics */ + protected boolean localAllStatistics = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllStatisticsTracker = false; + + public boolean isAllStatisticsSpecified() { + return localAllStatisticsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllStatistics() { + return localAllStatistics; + } + + /** + * Auto generated setter method + * + * @param param AllStatistics + */ + public void setAllStatistics(boolean param) { + + // setting primitive attribute tracker to true + localAllStatisticsTracker = true; + + this.localAllStatistics = param; + } + + /** field for AllAttributes */ + protected boolean localAllAttributes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllAttributesTracker = false; + + public boolean isAllAttributesSpecified() { + return localAllAttributesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllAttributes() { + return localAllAttributes; + } + + /** + * Auto generated setter method + * + * @param param AllAttributes + */ + public void setAllAttributes(boolean param) { + + // setting primitive attribute tracker to true + localAllAttributesTracker = true; + + this.localAllAttributes = param; + } + + /** field for AllHints */ + protected boolean localAllHints = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllHintsTracker = false; + + public boolean isAllHintsSpecified() { + return localAllHintsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllHints() { + return localAllHints; + } + + /** + * Auto generated setter method + * + * @param param AllHints + */ + public void setAllHints(boolean param) { + + // setting primitive attribute tracker to true + localAllHintsTracker = true; + + this.localAllHints = param; + } + + /** field for AllScopes */ + protected boolean localAllScopes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllScopesTracker = false; + + public boolean isAllScopesSpecified() { + return localAllScopesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllScopes() { + return localAllScopes; + } + + /** + * Auto generated setter method + * + * @param param AllScopes + */ + public void setAllScopes(boolean param) { + + // setting primitive attribute tracker to true + localAllScopesTracker = true; + + this.localAllScopes = param; + } + + /** field for AllProperties */ + protected boolean localAllProperties = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllPropertiesTracker = false; + + public boolean isAllPropertiesSpecified() { + return localAllPropertiesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllProperties() { + return localAllProperties; + } + + /** + * Auto generated setter method + * + * @param param AllProperties + */ + public void setAllProperties(boolean param) { + + // setting primitive attribute tracker to true + localAllPropertiesTracker = true; + + this.localAllProperties = param; + } + + /** field for AllNotes */ + protected boolean localAllNotes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllNotesTracker = false; + + public boolean isAllNotesSpecified() { + return localAllNotesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllNotes() { + return localAllNotes; + } + + /** + * Auto generated setter method + * + * @param param AllNotes + */ + public void setAllNotes(boolean param) { + + // setting primitive attribute tracker to true + localAllNotesTracker = true; + + this.localAllNotes = param; + } + + /** field for MinVersion */ + protected java.lang.String localMinVersion; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMinVersionTracker = false; + + public boolean isMinVersionSpecified() { + return localMinVersionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMinVersion() { + return localMinVersion; + } + + /** + * Auto generated setter method + * + * @param param MinVersion + */ + public void setMinVersion(java.lang.String param) { + localMinVersionTracker = param != null; + + this.localMinVersion = param; + } + + /** field for Measure */ + protected java.lang.String localMeasure; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMeasureTracker = false; + + public boolean isMeasureSpecified() { + return localMeasureTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMeasure() { + return localMeasure; + } + + /** + * Auto generated setter method + * + * @param param Measure + */ + public void setMeasure(java.lang.String param) { + localMeasureTracker = param != null; + + this.localMeasure = param; + } + + /** field for Properties */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0 localProperties; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertiesTracker = false; + + public boolean isPropertiesSpecified() { + return localPropertiesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0 getProperties() { + return localProperties; + } + + /** + * Auto generated setter method + * + * @param param Properties + */ + public void setProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0 param) { + localPropertiesTracker = param != null; + + this.localProperties = param; + } + + /** field for ExtraProperties */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 + localExtraProperties; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExtraPropertiesTracker = false; + + public boolean isExtraPropertiesSpecified() { + return localExtraPropertiesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 + getExtraProperties() { + return localExtraProperties; + } + + /** + * Auto generated setter method + * + * @param param ExtraProperties + */ + public void setExtraProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 param) { + localExtraPropertiesTracker = param != null; + + this.localExtraProperties = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUPropertiesToReturn", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUPropertiesToReturn", + xmlWriter); + } + } + if (localAllStatisticsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllStatistics", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllStatistics cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllStatistics)); + } + + xmlWriter.writeEndElement(); + } + if (localAllAttributesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllAttributes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllAttributes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllAttributes)); + } + + xmlWriter.writeEndElement(); + } + if (localAllHintsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllHints", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllHints cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllHints)); + } + + xmlWriter.writeEndElement(); + } + if (localAllScopesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllScopes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllScopes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllScopes)); + } + + xmlWriter.writeEndElement(); + } + if (localAllPropertiesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllProperties", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllProperties cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllProperties)); + } + + xmlWriter.writeEndElement(); + } + if (localAllNotesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllNotes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllNotes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAllNotes)); + } + + xmlWriter.writeEndElement(); + } + if (localMinVersionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MinVersion", xmlWriter); + + if (localMinVersion == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MinVersion cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMinVersion); + } + + xmlWriter.writeEndElement(); + } + if (localMeasureTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Measure", xmlWriter); + + if (localMeasure == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMeasure); + } + + xmlWriter.writeEndElement(); + } + if (localPropertiesTracker) { + if (localProperties == null) { + throw new org.apache.axis2.databinding.ADBException("Properties cannot be null!!"); + } + localProperties.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties"), xmlWriter); + } + if (localExtraPropertiesTracker) { + if (localExtraProperties == null) { + throw new org.apache.axis2.databinding.ADBException("ExtraProperties cannot be null!!"); + } + localExtraProperties.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExtraProperties"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUPropertiesToReturn parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUPropertiesToReturn object = new WUPropertiesToReturn(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUPropertiesToReturn".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUPropertiesToReturn) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllStatistics") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllStatistics" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllStatistics( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllAttributes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllAttributes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllAttributes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllHints") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllHints" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllHints( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllScopes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllScopes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllScopes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllProperties") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllProperties" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllProperties( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AllNotes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllNotes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllNotes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MinVersion") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MinVersion" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMinVersion( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Measure" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMeasure( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties") + .equals(reader.getName())) { + + object.setProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ExtraProperties") + .equals(reader.getName())) { + + object.setExtraProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtraProperties_type0 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertyFilter.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertyFilter.java index b89589b93..9e0c54337 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertyFilter.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertyFilter.java @@ -1,604 +1,604 @@ -/** - * WUPropertyFilter.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUPropertyFilter bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUPropertyFilter implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUPropertyFilter - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for ExactValue */ - protected java.lang.String localExactValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExactValueTracker = false; - - public boolean isExactValueSpecified() { - return localExactValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getExactValue() { - return localExactValue; - } - - /** - * Auto generated setter method - * - * @param param ExactValue - */ - public void setExactValue(java.lang.String param) { - localExactValueTracker = param != null; - - this.localExactValue = param; - } - - /** field for MinValue */ - protected java.lang.String localMinValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMinValueTracker = false; - - public boolean isMinValueSpecified() { - return localMinValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMinValue() { - return localMinValue; - } - - /** - * Auto generated setter method - * - * @param param MinValue - */ - public void setMinValue(java.lang.String param) { - localMinValueTracker = param != null; - - this.localMinValue = param; - } - - /** field for MaxValue */ - protected java.lang.String localMaxValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxValueTracker = false; - - public boolean isMaxValueSpecified() { - return localMaxValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMaxValue() { - return localMaxValue; - } - - /** - * Auto generated setter method - * - * @param param MaxValue - */ - public void setMaxValue(java.lang.String param) { - localMaxValueTracker = param != null; - - this.localMaxValue = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUPropertyFilter", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUPropertyFilter", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localExactValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ExactValue", xmlWriter); - - if (localExactValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ExactValue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localExactValue); - } - - xmlWriter.writeEndElement(); - } - if (localMinValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MinValue", xmlWriter); - - if (localMinValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MinValue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMinValue); - } - - xmlWriter.writeEndElement(); - } - if (localMaxValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxValue", xmlWriter); - - if (localMaxValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MaxValue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMaxValue); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUPropertyFilter parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUPropertyFilter object = new WUPropertyFilter(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUPropertyFilter".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUPropertyFilter) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExactValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ExactValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setExactValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MinValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MinValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMinValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUPropertyFilter.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUPropertyFilter bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUPropertyFilter implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUPropertyFilter + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for ExactValue */ + protected java.lang.String localExactValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExactValueTracker = false; + + public boolean isExactValueSpecified() { + return localExactValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getExactValue() { + return localExactValue; + } + + /** + * Auto generated setter method + * + * @param param ExactValue + */ + public void setExactValue(java.lang.String param) { + localExactValueTracker = param != null; + + this.localExactValue = param; + } + + /** field for MinValue */ + protected java.lang.String localMinValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMinValueTracker = false; + + public boolean isMinValueSpecified() { + return localMinValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMinValue() { + return localMinValue; + } + + /** + * Auto generated setter method + * + * @param param MinValue + */ + public void setMinValue(java.lang.String param) { + localMinValueTracker = param != null; + + this.localMinValue = param; + } + + /** field for MaxValue */ + protected java.lang.String localMaxValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxValueTracker = false; + + public boolean isMaxValueSpecified() { + return localMaxValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMaxValue() { + return localMaxValue; + } + + /** + * Auto generated setter method + * + * @param param MaxValue + */ + public void setMaxValue(java.lang.String param) { + localMaxValueTracker = param != null; + + this.localMaxValue = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUPropertyFilter", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUPropertyFilter", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localExactValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ExactValue", xmlWriter); + + if (localExactValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ExactValue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localExactValue); + } + + xmlWriter.writeEndElement(); + } + if (localMinValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MinValue", xmlWriter); + + if (localMinValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MinValue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMinValue); + } + + xmlWriter.writeEndElement(); + } + if (localMaxValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxValue", xmlWriter); + + if (localMaxValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MaxValue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMaxValue); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUPropertyFilter parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUPropertyFilter object = new WUPropertyFilter(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUPropertyFilter".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUPropertyFilter) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExactValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ExactValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setExactValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MinValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MinValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMinValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertyOptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertyOptions.java index 27d90de8c..445c46f4a 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertyOptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPropertyOptions.java @@ -1,757 +1,757 @@ -/** - * WUPropertyOptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUPropertyOptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUPropertyOptions implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUPropertyOptions - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for IncludeName */ - protected boolean localIncludeName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeNameTracker = false; - - public boolean isIncludeNameSpecified() { - return localIncludeNameTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeName() { - return localIncludeName; - } - - /** - * Auto generated setter method - * - * @param param IncludeName - */ - public void setIncludeName(boolean param) { - - // setting primitive attribute tracker to true - localIncludeNameTracker = true; - - this.localIncludeName = param; - } - - /** field for IncludeRawValue */ - protected boolean localIncludeRawValue = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeRawValueTracker = false; - - public boolean isIncludeRawValueSpecified() { - return localIncludeRawValueTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeRawValue() { - return localIncludeRawValue; - } - - /** - * Auto generated setter method - * - * @param param IncludeRawValue - */ - public void setIncludeRawValue(boolean param) { - - // setting primitive attribute tracker to true - localIncludeRawValueTracker = true; - - this.localIncludeRawValue = param; - } - - /** field for IncludeFormatted */ - protected boolean localIncludeFormatted = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeFormattedTracker = false; - - public boolean isIncludeFormattedSpecified() { - return localIncludeFormattedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeFormatted() { - return localIncludeFormatted; - } - - /** - * Auto generated setter method - * - * @param param IncludeFormatted - */ - public void setIncludeFormatted(boolean param) { - - // setting primitive attribute tracker to true - localIncludeFormattedTracker = true; - - this.localIncludeFormatted = param; - } - - /** field for IncludeMeasure */ - protected boolean localIncludeMeasure = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeMeasureTracker = false; - - public boolean isIncludeMeasureSpecified() { - return localIncludeMeasureTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeMeasure() { - return localIncludeMeasure; - } - - /** - * Auto generated setter method - * - * @param param IncludeMeasure - */ - public void setIncludeMeasure(boolean param) { - - // setting primitive attribute tracker to true - localIncludeMeasureTracker = true; - - this.localIncludeMeasure = param; - } - - /** field for IncludeCreator */ - protected boolean localIncludeCreator = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeCreatorTracker = false; - - public boolean isIncludeCreatorSpecified() { - return localIncludeCreatorTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeCreator() { - return localIncludeCreator; - } - - /** - * Auto generated setter method - * - * @param param IncludeCreator - */ - public void setIncludeCreator(boolean param) { - - // setting primitive attribute tracker to true - localIncludeCreatorTracker = true; - - this.localIncludeCreator = param; - } - - /** field for IncludeCreatorType */ - protected boolean localIncludeCreatorType = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeCreatorTypeTracker = false; - - public boolean isIncludeCreatorTypeSpecified() { - return localIncludeCreatorTypeTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeCreatorType() { - return localIncludeCreatorType; - } - - /** - * Auto generated setter method - * - * @param param IncludeCreatorType - */ - public void setIncludeCreatorType(boolean param) { - - // setting primitive attribute tracker to true - localIncludeCreatorTypeTracker = true; - - this.localIncludeCreatorType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUPropertyOptions", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUPropertyOptions", - xmlWriter); - } - } - if (localIncludeNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeName", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeName cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeName)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeRawValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeRawValue", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeRawValue cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeRawValue)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeFormattedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeFormatted", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeFormatted cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeFormatted)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeMeasureTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeMeasure", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeMeasure cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeMeasure)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeCreatorTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeCreator", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeCreator cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeCreator)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeCreatorTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeCreatorType", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeCreatorType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeCreatorType)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUPropertyOptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUPropertyOptions object = new WUPropertyOptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUPropertyOptions".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUPropertyOptions) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeRawValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeRawValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeRawValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeFormatted") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeFormatted" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeFormatted( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeMeasure") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeMeasure" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeMeasure( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeCreator") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeCreator" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeCreator( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeCreatorType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeCreatorType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeCreatorType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUPropertyOptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUPropertyOptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUPropertyOptions implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUPropertyOptions + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for IncludeName */ + protected boolean localIncludeName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeNameTracker = false; + + public boolean isIncludeNameSpecified() { + return localIncludeNameTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeName() { + return localIncludeName; + } + + /** + * Auto generated setter method + * + * @param param IncludeName + */ + public void setIncludeName(boolean param) { + + // setting primitive attribute tracker to true + localIncludeNameTracker = true; + + this.localIncludeName = param; + } + + /** field for IncludeRawValue */ + protected boolean localIncludeRawValue = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeRawValueTracker = false; + + public boolean isIncludeRawValueSpecified() { + return localIncludeRawValueTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeRawValue() { + return localIncludeRawValue; + } + + /** + * Auto generated setter method + * + * @param param IncludeRawValue + */ + public void setIncludeRawValue(boolean param) { + + // setting primitive attribute tracker to true + localIncludeRawValueTracker = true; + + this.localIncludeRawValue = param; + } + + /** field for IncludeFormatted */ + protected boolean localIncludeFormatted = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeFormattedTracker = false; + + public boolean isIncludeFormattedSpecified() { + return localIncludeFormattedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeFormatted() { + return localIncludeFormatted; + } + + /** + * Auto generated setter method + * + * @param param IncludeFormatted + */ + public void setIncludeFormatted(boolean param) { + + // setting primitive attribute tracker to true + localIncludeFormattedTracker = true; + + this.localIncludeFormatted = param; + } + + /** field for IncludeMeasure */ + protected boolean localIncludeMeasure = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeMeasureTracker = false; + + public boolean isIncludeMeasureSpecified() { + return localIncludeMeasureTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeMeasure() { + return localIncludeMeasure; + } + + /** + * Auto generated setter method + * + * @param param IncludeMeasure + */ + public void setIncludeMeasure(boolean param) { + + // setting primitive attribute tracker to true + localIncludeMeasureTracker = true; + + this.localIncludeMeasure = param; + } + + /** field for IncludeCreator */ + protected boolean localIncludeCreator = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeCreatorTracker = false; + + public boolean isIncludeCreatorSpecified() { + return localIncludeCreatorTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeCreator() { + return localIncludeCreator; + } + + /** + * Auto generated setter method + * + * @param param IncludeCreator + */ + public void setIncludeCreator(boolean param) { + + // setting primitive attribute tracker to true + localIncludeCreatorTracker = true; + + this.localIncludeCreator = param; + } + + /** field for IncludeCreatorType */ + protected boolean localIncludeCreatorType = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeCreatorTypeTracker = false; + + public boolean isIncludeCreatorTypeSpecified() { + return localIncludeCreatorTypeTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeCreatorType() { + return localIncludeCreatorType; + } + + /** + * Auto generated setter method + * + * @param param IncludeCreatorType + */ + public void setIncludeCreatorType(boolean param) { + + // setting primitive attribute tracker to true + localIncludeCreatorTypeTracker = true; + + this.localIncludeCreatorType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUPropertyOptions", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUPropertyOptions", + xmlWriter); + } + } + if (localIncludeNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeName", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeName cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeName)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeRawValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeRawValue", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeRawValue cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeRawValue)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeFormattedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeFormatted", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeFormatted cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeFormatted)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeMeasureTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeMeasure", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeMeasure cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeMeasure)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeCreatorTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeCreator", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeCreator cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeCreator)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeCreatorTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeCreatorType", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeCreatorType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeCreatorType)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUPropertyOptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUPropertyOptions object = new WUPropertyOptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUPropertyOptions".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUPropertyOptions) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeRawValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeRawValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeRawValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeFormatted") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeFormatted" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeFormatted( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeMeasure") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeMeasure" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeMeasure( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeCreator") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeCreator" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeCreator( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeCreatorType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeCreatorType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeCreatorType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtect.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtect.java index 601e0bba0..38d42ce98 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtect.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtect.java @@ -1,447 +1,447 @@ -/** - * WUProtect.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUProtect bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUProtect implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProtect", "ns1"); - - /** field for Wuids */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidsTracker = false; - - public boolean isWuidsSpecified() { - return localWuidsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { - return localWuids; - } - - /** - * Auto generated setter method - * - * @param param Wuids - */ - public void setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localWuidsTracker = param != null; - - this.localWuids = param; - } - - /** field for Protect */ - protected boolean localProtect = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectTracker = false; - - public boolean isProtectSpecified() { - return localProtectTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getProtect() { - return localProtect; - } - - /** - * Auto generated setter method - * - * @param param Protect - */ - public void setProtect(boolean param) { - - // setting primitive attribute tracker to true - localProtectTracker = true; - - this.localProtect = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUProtect", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUProtect", xmlWriter); - } - } - if (localWuidsTracker) { - if (localWuids == null) { - throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); - } - localWuids.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); - } - if (localProtectTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Protect", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Protect cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtect)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUProtect parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUProtect object = new WUProtect(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUProtect".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUProtect) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") - .equals(reader.getName())) { - - object.setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protect") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Protect" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtect( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUProtect.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUProtect bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUProtect implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProtect", "ns1"); + + /** field for Wuids */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidsTracker = false; + + public boolean isWuidsSpecified() { + return localWuidsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { + return localWuids; + } + + /** + * Auto generated setter method + * + * @param param Wuids + */ + public void setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localWuidsTracker = param != null; + + this.localWuids = param; + } + + /** field for Protect */ + protected boolean localProtect = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectTracker = false; + + public boolean isProtectSpecified() { + return localProtectTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getProtect() { + return localProtect; + } + + /** + * Auto generated setter method + * + * @param param Protect + */ + public void setProtect(boolean param) { + + // setting primitive attribute tracker to true + localProtectTracker = true; + + this.localProtect = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUProtect", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUProtect", xmlWriter); + } + } + if (localWuidsTracker) { + if (localWuids == null) { + throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); + } + localWuids.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); + } + if (localProtectTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Protect", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Protect cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtect)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUProtect parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUProtect object = new WUProtect(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUProtect".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUProtect) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") + .equals(reader.getName())) { + + object.setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protect") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Protect" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtect( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtectFilter.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtectFilter.java index 9b86473b5..26bb8bbc3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtectFilter.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtectFilter.java @@ -1,414 +1,414 @@ -/** - * WUProtectFilter.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUProtectFilter bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUProtectFilter implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProtectFilter", "ns1"); - - /** field for WUProtectFilter */ - protected java.lang.String localWUProtectFilter; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected WUProtectFilter(java.lang.String value, boolean isRegisterValue) { - localWUProtectFilter = value; - if (isRegisterValue) { - - _table_.put(localWUProtectFilter, this); - } - } - - public static final java.lang.String _All = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("All"); - - public static final java.lang.String _Protected = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Protected"); - - public static final java.lang.String _NotProtected = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("NotProtected"); - - public static final WUProtectFilter All = new WUProtectFilter(_All, true); - - public static final WUProtectFilter Protected = new WUProtectFilter(_Protected, true); - - public static final WUProtectFilter NotProtected = new WUProtectFilter(_NotProtected, true); - - public java.lang.String getValue() { - return localWUProtectFilter; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localWUProtectFilter.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUProtectFilter", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUProtectFilter", - xmlWriter); - } - } - - if (localWUProtectFilter == null) { - - throw new org.apache.axis2.databinding.ADBException("WUProtectFilter cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localWUProtectFilter); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static WUProtectFilter fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - WUProtectFilter enumeration = (WUProtectFilter) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static WUProtectFilter fromString(java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static WUProtectFilter fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return WUProtectFilter.Factory.fromString(content, namespaceUri); - } else { - return WUProtectFilter.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUProtectFilter parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUProtectFilter object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUProtectFilter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = WUProtectFilter.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = WUProtectFilter.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUProtectFilter.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUProtectFilter bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUProtectFilter implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProtectFilter", "ns1"); + + /** field for WUProtectFilter */ + protected java.lang.String localWUProtectFilter; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected WUProtectFilter(java.lang.String value, boolean isRegisterValue) { + localWUProtectFilter = value; + if (isRegisterValue) { + + _table_.put(localWUProtectFilter, this); + } + } + + public static final java.lang.String _All = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("All"); + + public static final java.lang.String _Protected = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Protected"); + + public static final java.lang.String _NotProtected = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("NotProtected"); + + public static final WUProtectFilter All = new WUProtectFilter(_All, true); + + public static final WUProtectFilter Protected = new WUProtectFilter(_Protected, true); + + public static final WUProtectFilter NotProtected = new WUProtectFilter(_NotProtected, true); + + public java.lang.String getValue() { + return localWUProtectFilter; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localWUProtectFilter.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUProtectFilter", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUProtectFilter", + xmlWriter); + } + } + + if (localWUProtectFilter == null) { + + throw new org.apache.axis2.databinding.ADBException("WUProtectFilter cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localWUProtectFilter); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static WUProtectFilter fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + WUProtectFilter enumeration = (WUProtectFilter) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static WUProtectFilter fromString(java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static WUProtectFilter fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return WUProtectFilter.Factory.fromString(content, namespaceUri); + } else { + return WUProtectFilter.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUProtectFilter parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUProtectFilter object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUProtectFilter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = WUProtectFilter.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = WUProtectFilter.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtectResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtectResponse.java index ec139ed17..ec00d3df0 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtectResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUProtectResponse.java @@ -1,438 +1,438 @@ -/** - * WUProtectResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUProtectResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUProtectResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProtectResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ActionResults */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - localActionResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionResultsTracker = false; - - public boolean isActionResultsSpecified() { - return localActionResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - getActionResults() { - return localActionResults; - } - - /** - * Auto generated setter method - * - * @param param ActionResults - */ - public void setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult param) { - localActionResultsTracker = param != null; - - this.localActionResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUProtectResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUProtectResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localActionResultsTracker) { - if (localActionResults == null) { - throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); - } - localActionResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUProtectResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUProtectResponse object = new WUProtectResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUProtectResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUProtectResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") - .equals(reader.getName())) { - - object.setActionResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUProtectResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUProtectResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUProtectResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProtectResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ActionResults */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + localActionResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionResultsTracker = false; + + public boolean isActionResultsSpecified() { + return localActionResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + getActionResults() { + return localActionResults; + } + + /** + * Auto generated setter method + * + * @param param ActionResults + */ + public void setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult param) { + localActionResultsTracker = param != null; + + this.localActionResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUProtectResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUProtectResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localActionResultsTracker) { + if (localActionResults == null) { + throw new org.apache.axis2.databinding.ADBException("ActionResults cannot be null!!"); + } + localActionResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUProtectResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUProtectResponse object = new WUProtectResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUProtectResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUProtectResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionResults") + .equals(reader.getName())) { + + object.setActionResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfWUActionResult + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPublishWorkunit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPublishWorkunit.java index 08f0d7fe1..e4be29e4f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPublishWorkunit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPublishWorkunit.java @@ -1,2418 +1,2557 @@ -/** - * WUPublishWorkunit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUPublishWorkunit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUPublishWorkunit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPublishWorkunit", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for QueryName */ - protected java.lang.String localQueryName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryNameTracker = false; - - public boolean isQueryNameSpecified() { - return localQueryNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryName() { - return localQueryName; - } - - /** - * Auto generated setter method - * - * @param param QueryName - */ - public void setQueryName(java.lang.String param) { - localQueryNameTracker = param != null; - - this.localQueryName = param; - } - - /** field for WorkUnitJobName */ - protected java.lang.String localWorkUnitJobName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkUnitJobNameTracker = false; - - public boolean isWorkUnitJobNameSpecified() { - return localWorkUnitJobNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWorkUnitJobName() { - return localWorkUnitJobName; - } - - /** - * Auto generated setter method - * - * @param param WorkUnitJobName - */ - public void setWorkUnitJobName(java.lang.String param) { - localWorkUnitJobNameTracker = param != null; - - this.localWorkUnitJobName = param; - } - - /** field for JobName */ - protected java.lang.String localJobName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobNameTracker = false; - - public boolean isJobNameSpecified() { - return localJobNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobName() { - return localJobName; - } - - /** - * Auto generated setter method - * - * @param param JobName - */ - public void setJobName(java.lang.String param) { - localJobNameTracker = param != null; - - this.localJobName = param; - } - - /** field for Activate */ - protected int localActivate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivateTracker = false; - - public boolean isActivateSpecified() { - return localActivateTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getActivate() { - return localActivate; - } - - /** - * Auto generated setter method - * - * @param param Activate - */ - public void setActivate(int param) { - - // setting primitive attribute tracker to true - localActivateTracker = param != java.lang.Integer.MIN_VALUE; - - this.localActivate = param; - } - - /** field for NotifyCluster */ - protected boolean localNotifyCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNotifyClusterTracker = false; - - public boolean isNotifyClusterSpecified() { - return localNotifyClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNotifyCluster() { - return localNotifyCluster; - } - - /** - * Auto generated setter method - * - * @param param NotifyCluster - */ - public void setNotifyCluster(boolean param) { - - // setting primitive attribute tracker to true - localNotifyClusterTracker = true; - - this.localNotifyCluster = param; - } - - /** field for Wait */ - protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("10000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** field for NoReload */ - protected boolean localNoReload = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoReloadTracker = false; - - public boolean isNoReloadSpecified() { - return localNoReloadTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoReload() { - return localNoReload; - } - - /** - * Auto generated setter method - * - * @param param NoReload - */ - public void setNoReload(boolean param) { - - // setting primitive attribute tracker to true - localNoReloadTracker = true; - - this.localNoReload = param; - } - - /** field for UpdateWorkUnitName */ - protected boolean localUpdateWorkUnitName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateWorkUnitNameTracker = false; - - public boolean isUpdateWorkUnitNameSpecified() { - return localUpdateWorkUnitNameTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateWorkUnitName() { - return localUpdateWorkUnitName; - } - - /** - * Auto generated setter method - * - * @param param UpdateWorkUnitName - */ - public void setUpdateWorkUnitName(boolean param) { - - // setting primitive attribute tracker to true - localUpdateWorkUnitNameTracker = true; - - this.localUpdateWorkUnitName = param; - } - - /** field for MemoryLimit */ - protected java.lang.String localMemoryLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitTracker = false; - - public boolean isMemoryLimitSpecified() { - return localMemoryLimitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemoryLimit() { - return localMemoryLimit; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimit - */ - public void setMemoryLimit(java.lang.String param) { - localMemoryLimitTracker = param != null; - - this.localMemoryLimit = param; - } - - /** field for TimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitTracker = false; - - public boolean isTimeLimitSpecified() { - return localTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { - return localTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param TimeLimit - */ - public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localTimeLimitTracker = param != null; - - this.localTimeLimit = param; - } - - /** field for WarnTimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitTracker = false; - - public boolean isWarnTimeLimitSpecified() { - return localWarnTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { - return localWarnTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimit - */ - public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localWarnTimeLimitTracker = param != null; - - this.localWarnTimeLimit = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for RemoteDali */ - protected java.lang.String localRemoteDali; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRemoteDaliTracker = false; - - public boolean isRemoteDaliSpecified() { - return localRemoteDaliTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRemoteDali() { - return localRemoteDali; - } - - /** - * Auto generated setter method - * - * @param param RemoteDali - */ - public void setRemoteDali(java.lang.String param) { - localRemoteDaliTracker = param != null; - - this.localRemoteDali = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for DontCopyFiles */ - protected boolean localDontCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDontCopyFilesTracker = false; - - public boolean isDontCopyFilesSpecified() { - return localDontCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDontCopyFiles() { - return localDontCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DontCopyFiles - */ - public void setDontCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDontCopyFilesTracker = true; - - this.localDontCopyFiles = param; - } - - /** field for SourceProcess */ - protected java.lang.String localSourceProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceProcessTracker = false; - - public boolean isSourceProcessSpecified() { - return localSourceProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceProcess() { - return localSourceProcess; - } - - /** - * Auto generated setter method - * - * @param param SourceProcess - */ - public void setSourceProcess(java.lang.String param) { - localSourceProcessTracker = param != null; - - this.localSourceProcess = param; - } - - /** field for AllowForeignFiles */ - protected boolean localAllowForeignFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllowForeignFilesTracker = false; - - public boolean isAllowForeignFilesSpecified() { - return localAllowForeignFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllowForeignFiles() { - return localAllowForeignFiles; - } - - /** - * Auto generated setter method - * - * @param param AllowForeignFiles - */ - public void setAllowForeignFiles(boolean param) { - - // setting primitive attribute tracker to true - localAllowForeignFilesTracker = true; - - this.localAllowForeignFiles = param; - } - - /** field for UpdateDfs */ - protected boolean localUpdateDfs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateDfsTracker = false; - - public boolean isUpdateDfsSpecified() { - return localUpdateDfsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateDfs() { - return localUpdateDfs; - } - - /** - * Auto generated setter method - * - * @param param UpdateDfs - */ - public void setUpdateDfs(boolean param) { - - // setting primitive attribute tracker to true - localUpdateDfsTracker = true; - - this.localUpdateDfs = param; - } - - /** field for UpdateSuperFiles */ - protected boolean localUpdateSuperFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateSuperFilesTracker = false; - - public boolean isUpdateSuperFilesSpecified() { - return localUpdateSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateSuperFiles() { - return localUpdateSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param UpdateSuperFiles - */ - public void setUpdateSuperFiles(boolean param) { - - // setting primitive attribute tracker to true - localUpdateSuperFilesTracker = true; - - this.localUpdateSuperFiles = param; - } - - /** field for UpdateCloneFrom */ - protected boolean localUpdateCloneFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateCloneFromTracker = false; - - public boolean isUpdateCloneFromSpecified() { - return localUpdateCloneFromTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateCloneFrom() { - return localUpdateCloneFrom; - } - - /** - * Auto generated setter method - * - * @param param UpdateCloneFrom - */ - public void setUpdateCloneFrom(boolean param) { - - // setting primitive attribute tracker to true - localUpdateCloneFromTracker = true; - - this.localUpdateCloneFrom = param; - } - - /** field for AppendCluster */ - protected boolean localAppendCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAppendClusterTracker = false; - - public boolean isAppendClusterSpecified() { - return localAppendClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAppendCluster() { - return localAppendCluster; - } - - /** - * Auto generated setter method - * - * @param param AppendCluster - */ - public void setAppendCluster(boolean param) { - - // setting primitive attribute tracker to true - localAppendClusterTracker = true; - - this.localAppendCluster = param; - } - - /** field for IncludeFileErrors */ - protected boolean localIncludeFileErrors = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeFileErrorsTracker = false; - - public boolean isIncludeFileErrorsSpecified() { - return localIncludeFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeFileErrors() { - return localIncludeFileErrors; - } - - /** - * Auto generated setter method - * - * @param param IncludeFileErrors - */ - public void setIncludeFileErrors(boolean param) { - - // setting primitive attribute tracker to true - localIncludeFileErrorsTracker = true; - - this.localIncludeFileErrors = param; - } - - /** field for DfuCopyFiles */ - protected boolean localDfuCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuCopyFilesTracker = false; - - public boolean isDfuCopyFilesSpecified() { - return localDfuCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuCopyFiles() { - return localDfuCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DfuCopyFiles - */ - public void setDfuCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDfuCopyFilesTracker = true; - - this.localDfuCopyFiles = param; - } - - /** field for DfuQueue */ - protected java.lang.String localDfuQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuQueueTracker = false; - - public boolean isDfuQueueSpecified() { - return localDfuQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuQueue() { - return localDfuQueue; - } - - /** - * Auto generated setter method - * - * @param param DfuQueue - */ - public void setDfuQueue(java.lang.String param) { - localDfuQueueTracker = param != null; - - this.localDfuQueue = param; - } - - /** field for DfuWait */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuWaitTracker = false; - - public boolean isDfuWaitSpecified() { - return localDfuWaitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { - return localDfuWait; - } - - /** - * Auto generated setter method - * - * @param param DfuWait - */ - public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localDfuWaitTracker = param != null; - - this.localDfuWait = param; - } - - /** field for DfuOverwrite */ - protected boolean localDfuOverwrite = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuOverwriteTracker = false; - - public boolean isDfuOverwriteSpecified() { - return localDfuOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuOverwrite() { - return localDfuOverwrite; - } - - /** - * Auto generated setter method - * - * @param param DfuOverwrite - */ - public void setDfuOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localDfuOverwriteTracker = true; - - this.localDfuOverwrite = param; - } - - /** field for OnlyCopyFiles */ - protected boolean localOnlyCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnlyCopyFilesTracker = false; - - public boolean isOnlyCopyFilesSpecified() { - return localOnlyCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOnlyCopyFiles() { - return localOnlyCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param OnlyCopyFiles - */ - public void setOnlyCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localOnlyCopyFilesTracker = true; - - this.localOnlyCopyFiles = param; - } - - /** field for StopIfFilesCopied */ - protected boolean localStopIfFilesCopied = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStopIfFilesCopiedTracker = false; - - public boolean isStopIfFilesCopiedSpecified() { - return localStopIfFilesCopiedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getStopIfFilesCopied() { - return localStopIfFilesCopied; - } - - /** - * Auto generated setter method - * - * @param param StopIfFilesCopied - */ - public void setStopIfFilesCopied(boolean param) { - - // setting primitive attribute tracker to true - localStopIfFilesCopiedTracker = true; - - this.localStopIfFilesCopied = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUPublishWorkunit", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUPublishWorkunit", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueryNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryName", xmlWriter); - - if (localQueryName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryName); - } - - xmlWriter.writeEndElement(); - } - if (localWorkUnitJobNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WorkUnitJobName", xmlWriter); - - if (localWorkUnitJobName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WorkUnitJobName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWorkUnitJobName); - } - - xmlWriter.writeEndElement(); - } - if (localJobNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "JobName", xmlWriter); - - if (localJobName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobName); - } - - xmlWriter.writeEndElement(); - } - if (localActivateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Activate", xmlWriter); - - if (localActivate == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Activate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivate)); - } - - xmlWriter.writeEndElement(); - } - if (localNotifyClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NotifyCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NotifyCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNotifyCluster)); - } - - xmlWriter.writeEndElement(); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - if (localNoReloadTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoReload", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateWorkUnitNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateWorkUnitName", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateWorkUnitName cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localUpdateWorkUnitName)); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "memoryLimit", xmlWriter); - - if (localMemoryLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("memoryLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemoryLimit); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeLimit", xmlWriter); - - if (localTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); - - if (localWarnTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localRemoteDaliTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RemoteDali", xmlWriter); - - if (localRemoteDali == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RemoteDali cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRemoteDali); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localDontCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DontCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DontCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDontCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceProcess", xmlWriter); - - if (localSourceProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceProcess); - } - - xmlWriter.writeEndElement(); - } - if (localAllowForeignFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAllowForeignFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateDfsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateDfs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateDfs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateDfs)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateSuperFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localUpdateSuperFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateCloneFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localAppendClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AppendCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeFileErrorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeFileErrors)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuQueue", xmlWriter); - - if (localDfuQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuQueue); - } - - xmlWriter.writeEndElement(); - } - if (localDfuWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuWait", xmlWriter); - - if (localDfuWait == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuOverwriteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localOnlyCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localStopIfFilesCopiedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localStopIfFilesCopied)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUPublishWorkunit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUPublishWorkunit object = new WUPublishWorkunit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUPublishWorkunit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUPublishWorkunit) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WorkUnitJobName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WorkUnitJobName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWorkUnitJobName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Activate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActivate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotifyCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NotifyCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNotifyCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoReload" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoReload( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateWorkUnitName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateWorkUnitName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateWorkUnitName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "memoryLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "memoryLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarnTimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteDali") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RemoteDali" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRemoteDali( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DontCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DontCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDontCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceProcess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllowForeignFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllowForeignFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "UpdateDfs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateDfs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateDfs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateSuperFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateSuperFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateCloneFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateCloneFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AppendCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAppendCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeFileErrors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeFileErrors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuOverwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OnlyCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOnlyCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StopIfFilesCopied" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStopIfFilesCopied( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUPublishWorkunit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUPublishWorkunit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUPublishWorkunit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPublishWorkunit", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for QueryName */ + protected java.lang.String localQueryName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryNameTracker = false; + + public boolean isQueryNameSpecified() { + return localQueryNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryName() { + return localQueryName; + } + + /** + * Auto generated setter method + * + * @param param QueryName + */ + public void setQueryName(java.lang.String param) { + localQueryNameTracker = param != null; + + this.localQueryName = param; + } + + /** field for WorkUnitJobName */ + protected java.lang.String localWorkUnitJobName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkUnitJobNameTracker = false; + + public boolean isWorkUnitJobNameSpecified() { + return localWorkUnitJobNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWorkUnitJobName() { + return localWorkUnitJobName; + } + + /** + * Auto generated setter method + * + * @param param WorkUnitJobName + */ + public void setWorkUnitJobName(java.lang.String param) { + localWorkUnitJobNameTracker = param != null; + + this.localWorkUnitJobName = param; + } + + /** field for JobName */ + protected java.lang.String localJobName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobNameTracker = false; + + public boolean isJobNameSpecified() { + return localJobNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobName() { + return localJobName; + } + + /** + * Auto generated setter method + * + * @param param JobName + */ + public void setJobName(java.lang.String param) { + localJobNameTracker = param != null; + + this.localJobName = param; + } + + /** field for Activate */ + protected int localActivate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivateTracker = false; + + public boolean isActivateSpecified() { + return localActivateTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getActivate() { + return localActivate; + } + + /** + * Auto generated setter method + * + * @param param Activate + */ + public void setActivate(int param) { + + // setting primitive attribute tracker to true + localActivateTracker = param != java.lang.Integer.MIN_VALUE; + + this.localActivate = param; + } + + /** field for NotifyCluster */ + protected boolean localNotifyCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNotifyClusterTracker = false; + + public boolean isNotifyClusterSpecified() { + return localNotifyClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNotifyCluster() { + return localNotifyCluster; + } + + /** + * Auto generated setter method + * + * @param param NotifyCluster + */ + public void setNotifyCluster(boolean param) { + + // setting primitive attribute tracker to true + localNotifyClusterTracker = true; + + this.localNotifyCluster = param; + } + + /** field for Wait */ + protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("10000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** field for NoReload */ + protected boolean localNoReload = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoReloadTracker = false; + + public boolean isNoReloadSpecified() { + return localNoReloadTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoReload() { + return localNoReload; + } + + /** + * Auto generated setter method + * + * @param param NoReload + */ + public void setNoReload(boolean param) { + + // setting primitive attribute tracker to true + localNoReloadTracker = true; + + this.localNoReload = param; + } + + /** field for UpdateWorkUnitName */ + protected boolean localUpdateWorkUnitName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateWorkUnitNameTracker = false; + + public boolean isUpdateWorkUnitNameSpecified() { + return localUpdateWorkUnitNameTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateWorkUnitName() { + return localUpdateWorkUnitName; + } + + /** + * Auto generated setter method + * + * @param param UpdateWorkUnitName + */ + public void setUpdateWorkUnitName(boolean param) { + + // setting primitive attribute tracker to true + localUpdateWorkUnitNameTracker = true; + + this.localUpdateWorkUnitName = param; + } + + /** field for MemoryLimit */ + protected java.lang.String localMemoryLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitTracker = false; + + public boolean isMemoryLimitSpecified() { + return localMemoryLimitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemoryLimit() { + return localMemoryLimit; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimit + */ + public void setMemoryLimit(java.lang.String param) { + localMemoryLimitTracker = param != null; + + this.localMemoryLimit = param; + } + + /** field for TimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitTracker = false; + + public boolean isTimeLimitSpecified() { + return localTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { + return localTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param TimeLimit + */ + public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localTimeLimitTracker = param != null; + + this.localTimeLimit = param; + } + + /** field for WarnTimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitTracker = false; + + public boolean isWarnTimeLimitSpecified() { + return localWarnTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { + return localWarnTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimit + */ + public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localWarnTimeLimitTracker = param != null; + + this.localWarnTimeLimit = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for RemoteDali */ + protected java.lang.String localRemoteDali; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteDaliTracker = false; + + public boolean isRemoteDaliSpecified() { + return localRemoteDaliTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteDali() { + return localRemoteDali; + } + + /** + * Auto generated setter method + * + * @param param RemoteDali + */ + public void setRemoteDali(java.lang.String param) { + localRemoteDaliTracker = param != null; + + this.localRemoteDali = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for DontCopyFiles */ + protected boolean localDontCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDontCopyFilesTracker = false; + + public boolean isDontCopyFilesSpecified() { + return localDontCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDontCopyFiles() { + return localDontCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DontCopyFiles + */ + public void setDontCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDontCopyFilesTracker = true; + + this.localDontCopyFiles = param; + } + + /** field for SourceProcess */ + protected java.lang.String localSourceProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceProcessTracker = false; + + public boolean isSourceProcessSpecified() { + return localSourceProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceProcess() { + return localSourceProcess; + } + + /** + * Auto generated setter method + * + * @param param SourceProcess + */ + public void setSourceProcess(java.lang.String param) { + localSourceProcessTracker = param != null; + + this.localSourceProcess = param; + } + + /** field for AllowForeignFiles */ + protected boolean localAllowForeignFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowForeignFilesTracker = false; + + public boolean isAllowForeignFilesSpecified() { + return localAllowForeignFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllowForeignFiles() { + return localAllowForeignFiles; + } + + /** + * Auto generated setter method + * + * @param param AllowForeignFiles + */ + public void setAllowForeignFiles(boolean param) { + + // setting primitive attribute tracker to true + localAllowForeignFilesTracker = true; + + this.localAllowForeignFiles = param; + } + + /** field for UpdateDfs */ + protected boolean localUpdateDfs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateDfsTracker = false; + + public boolean isUpdateDfsSpecified() { + return localUpdateDfsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateDfs() { + return localUpdateDfs; + } + + /** + * Auto generated setter method + * + * @param param UpdateDfs + */ + public void setUpdateDfs(boolean param) { + + // setting primitive attribute tracker to true + localUpdateDfsTracker = true; + + this.localUpdateDfs = param; + } + + /** field for UpdateSuperFiles */ + protected boolean localUpdateSuperFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateSuperFilesTracker = false; + + public boolean isUpdateSuperFilesSpecified() { + return localUpdateSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateSuperFiles() { + return localUpdateSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param UpdateSuperFiles + */ + public void setUpdateSuperFiles(boolean param) { + + // setting primitive attribute tracker to true + localUpdateSuperFilesTracker = true; + + this.localUpdateSuperFiles = param; + } + + /** field for UpdateCloneFrom */ + protected boolean localUpdateCloneFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateCloneFromTracker = false; + + public boolean isUpdateCloneFromSpecified() { + return localUpdateCloneFromTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateCloneFrom() { + return localUpdateCloneFrom; + } + + /** + * Auto generated setter method + * + * @param param UpdateCloneFrom + */ + public void setUpdateCloneFrom(boolean param) { + + // setting primitive attribute tracker to true + localUpdateCloneFromTracker = true; + + this.localUpdateCloneFrom = param; + } + + /** field for AppendCluster */ + protected boolean localAppendCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAppendClusterTracker = false; + + public boolean isAppendClusterSpecified() { + return localAppendClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAppendCluster() { + return localAppendCluster; + } + + /** + * Auto generated setter method + * + * @param param AppendCluster + */ + public void setAppendCluster(boolean param) { + + // setting primitive attribute tracker to true + localAppendClusterTracker = true; + + this.localAppendCluster = param; + } + + /** field for IncludeFileErrors */ + protected boolean localIncludeFileErrors = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeFileErrorsTracker = false; + + public boolean isIncludeFileErrorsSpecified() { + return localIncludeFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeFileErrors() { + return localIncludeFileErrors; + } + + /** + * Auto generated setter method + * + * @param param IncludeFileErrors + */ + public void setIncludeFileErrors(boolean param) { + + // setting primitive attribute tracker to true + localIncludeFileErrorsTracker = true; + + this.localIncludeFileErrors = param; + } + + /** field for DfuCopyFiles */ + protected boolean localDfuCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuCopyFilesTracker = false; + + public boolean isDfuCopyFilesSpecified() { + return localDfuCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuCopyFiles() { + return localDfuCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DfuCopyFiles + */ + public void setDfuCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDfuCopyFilesTracker = true; + + this.localDfuCopyFiles = param; + } + + /** field for DfuQueue */ + protected java.lang.String localDfuQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuQueueTracker = false; + + public boolean isDfuQueueSpecified() { + return localDfuQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuQueue() { + return localDfuQueue; + } + + /** + * Auto generated setter method + * + * @param param DfuQueue + */ + public void setDfuQueue(java.lang.String param) { + localDfuQueueTracker = param != null; + + this.localDfuQueue = param; + } + + /** field for DfuWait */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuWaitTracker = false; + + public boolean isDfuWaitSpecified() { + return localDfuWaitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { + return localDfuWait; + } + + /** + * Auto generated setter method + * + * @param param DfuWait + */ + public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localDfuWaitTracker = param != null; + + this.localDfuWait = param; + } + + /** field for DfuOverwrite */ + protected boolean localDfuOverwrite = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuOverwriteTracker = false; + + public boolean isDfuOverwriteSpecified() { + return localDfuOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuOverwrite() { + return localDfuOverwrite; + } + + /** + * Auto generated setter method + * + * @param param DfuOverwrite + */ + public void setDfuOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localDfuOverwriteTracker = true; + + this.localDfuOverwrite = param; + } + + /** field for OnlyCopyFiles */ + protected boolean localOnlyCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnlyCopyFilesTracker = false; + + public boolean isOnlyCopyFilesSpecified() { + return localOnlyCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOnlyCopyFiles() { + return localOnlyCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param OnlyCopyFiles + */ + public void setOnlyCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localOnlyCopyFilesTracker = true; + + this.localOnlyCopyFiles = param; + } + + /** field for StopIfFilesCopied */ + protected boolean localStopIfFilesCopied = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStopIfFilesCopiedTracker = false; + + public boolean isStopIfFilesCopiedSpecified() { + return localStopIfFilesCopiedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getStopIfFilesCopied() { + return localStopIfFilesCopied; + } + + /** + * Auto generated setter method + * + * @param param StopIfFilesCopied + */ + public void setStopIfFilesCopied(boolean param) { + + // setting primitive attribute tracker to true + localStopIfFilesCopiedTracker = true; + + this.localStopIfFilesCopied = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for RemoteStorage */ + protected java.lang.String localRemoteStorage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteStorageTracker = false; + + public boolean isRemoteStorageSpecified() { + return localRemoteStorageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteStorage() { + return localRemoteStorage; + } + + /** + * Auto generated setter method + * + * @param param RemoteStorage + */ + public void setRemoteStorage(java.lang.String param) { + localRemoteStorageTracker = param != null; + + this.localRemoteStorage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUPublishWorkunit", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUPublishWorkunit", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueryNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryName", xmlWriter); + + if (localQueryName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryName); + } + + xmlWriter.writeEndElement(); + } + if (localWorkUnitJobNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WorkUnitJobName", xmlWriter); + + if (localWorkUnitJobName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WorkUnitJobName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWorkUnitJobName); + } + + xmlWriter.writeEndElement(); + } + if (localJobNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "JobName", xmlWriter); + + if (localJobName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobName); + } + + xmlWriter.writeEndElement(); + } + if (localActivateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Activate", xmlWriter); + + if (localActivate == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Activate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivate)); + } + + xmlWriter.writeEndElement(); + } + if (localNotifyClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NotifyCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NotifyCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNotifyCluster)); + } + + xmlWriter.writeEndElement(); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + if (localNoReloadTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoReload", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateWorkUnitNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateWorkUnitName", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateWorkUnitName cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localUpdateWorkUnitName)); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "memoryLimit", xmlWriter); + + if (localMemoryLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("memoryLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemoryLimit); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeLimit", xmlWriter); + + if (localTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); + + if (localWarnTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteDaliTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteDali", xmlWriter); + + if (localRemoteDali == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteDali cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteDali); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localDontCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DontCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DontCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDontCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceProcess", xmlWriter); + + if (localSourceProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceProcess); + } + + xmlWriter.writeEndElement(); + } + if (localAllowForeignFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAllowForeignFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateDfsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateDfs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateDfs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateDfs)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateSuperFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localUpdateSuperFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateCloneFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localAppendClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AppendCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeFileErrorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeFileErrors)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuQueue", xmlWriter); + + if (localDfuQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuQueue); + } + + xmlWriter.writeEndElement(); + } + if (localDfuWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuWait", xmlWriter); + + if (localDfuWait == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuOverwriteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localOnlyCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localStopIfFilesCopiedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localStopIfFilesCopied)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteStorageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteStorage", xmlWriter); + + if (localRemoteStorage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteStorage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteStorage); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUPublishWorkunit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUPublishWorkunit object = new WUPublishWorkunit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUPublishWorkunit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUPublishWorkunit) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WorkUnitJobName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WorkUnitJobName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWorkUnitJobName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Activate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActivate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotifyCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NotifyCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNotifyCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoReload" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoReload( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateWorkUnitName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateWorkUnitName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateWorkUnitName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "memoryLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "memoryLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarnTimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteDali") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteDali" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteDali( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DontCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DontCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDontCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceProcess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllowForeignFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllowForeignFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "UpdateDfs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateDfs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateDfs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateSuperFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateSuperFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateCloneFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateCloneFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AppendCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAppendCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeFileErrors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeFileErrors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuOverwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OnlyCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOnlyCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StopIfFilesCopied" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStopIfFilesCopied( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteStorage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteStorage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteStorage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPublishWorkunitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPublishWorkunitResponse.java index 620189619..466b8a803 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPublishWorkunitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPublishWorkunitResponse.java @@ -1,1175 +1,1175 @@ -/** - * WUPublishWorkunitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUPublishWorkunitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUPublishWorkunitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUPublishWorkunitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for QueryName */ - protected java.lang.String localQueryName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryNameTracker = false; - - public boolean isQueryNameSpecified() { - return localQueryNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryName() { - return localQueryName; - } - - /** - * Auto generated setter method - * - * @param param QueryName - */ - public void setQueryName(java.lang.String param) { - localQueryNameTracker = param != null; - - this.localQueryName = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for ReloadFailed */ - protected boolean localReloadFailed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReloadFailedTracker = false; - - public boolean isReloadFailedSpecified() { - return localReloadFailedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReloadFailed() { - return localReloadFailed; - } - - /** - * Auto generated setter method - * - * @param param ReloadFailed - */ - public void setReloadFailed(boolean param) { - - // setting primitive attribute tracker to true - localReloadFailedTracker = true; - - this.localReloadFailed = param; - } - - /** field for Suspended */ - protected boolean localSuspended; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedTracker = false; - - public boolean isSuspendedSpecified() { - return localSuspendedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuspended() { - return localSuspended; - } - - /** - * Auto generated setter method - * - * @param param Suspended - */ - public void setSuspended(boolean param) { - - // setting primitive attribute tracker to true - localSuspendedTracker = true; - - this.localSuspended = param; - } - - /** field for ErrorMessage */ - protected java.lang.String localErrorMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorMessageTracker = false; - - public boolean isErrorMessageSpecified() { - return localErrorMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getErrorMessage() { - return localErrorMessage; - } - - /** - * Auto generated setter method - * - * @param param ErrorMessage - */ - public void setErrorMessage(java.lang.String param) { - localErrorMessageTracker = param != null; - - this.localErrorMessage = param; - } - - /** field for ClusterFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0 - localClusterFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterFilesTracker = false; - - public boolean isClusterFilesSpecified() { - return localClusterFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0 - getClusterFiles() { - return localClusterFiles; - } - - /** - * Auto generated setter method - * - * @param param ClusterFiles - */ - public void setClusterFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0 param) { - localClusterFilesTracker = param != null; - - this.localClusterFiles = param; - } - - /** field for FileErrors */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0 localFileErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileErrorsTracker = false; - - public boolean isFileErrorsSpecified() { - return localFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0 getFileErrors() { - return localFileErrors; - } - - /** - * Auto generated setter method - * - * @param param FileErrors - */ - public void setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0 param) { - localFileErrorsTracker = param != null; - - this.localFileErrors = param; - } - - /** field for DfuPublisherWuid */ - protected java.lang.String localDfuPublisherWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherWuidTracker = false; - - public boolean isDfuPublisherWuidSpecified() { - return localDfuPublisherWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherWuid() { - return localDfuPublisherWuid; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherWuid - */ - public void setDfuPublisherWuid(java.lang.String param) { - localDfuPublisherWuidTracker = param != null; - - this.localDfuPublisherWuid = param; - } - - /** field for DfuPublisherState */ - protected java.lang.String localDfuPublisherState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherStateTracker = false; - - public boolean isDfuPublisherStateSpecified() { - return localDfuPublisherStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherState() { - return localDfuPublisherState; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherState - */ - public void setDfuPublisherState(java.lang.String param) { - localDfuPublisherStateTracker = param != null; - - this.localDfuPublisherState = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUPublishWorkunitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUPublishWorkunitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - if (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localQueryNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryName", xmlWriter); - - if (localQueryName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryName); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localReloadFailedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ReloadFailed", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ReloadFailed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReloadFailed)); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Suspended", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); - } - - xmlWriter.writeEndElement(); - } - if (localErrorMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ErrorMessage", xmlWriter); - - if (localErrorMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ErrorMessage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localErrorMessage); - } - - xmlWriter.writeEndElement(); - } - if (localClusterFilesTracker) { - if (localClusterFiles == null) { - throw new org.apache.axis2.databinding.ADBException("ClusterFiles cannot be null!!"); - } - localClusterFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFiles"), - xmlWriter); - } - if (localFileErrorsTracker) { - if (localFileErrors == null) { - throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); - } - localFileErrors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); - } - if (localDfuPublisherWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); - - if (localDfuPublisherWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDfuPublisherStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); - - if (localDfuPublisherState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherState); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUPublishWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUPublishWorkunitResponse object = new WUPublishWorkunitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUPublishWorkunitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUPublishWorkunitResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReloadFailed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReloadFailed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReloadFailed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Suspended" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspended( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorMessage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ErrorMessage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setErrorMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFiles") - .equals(reader.getName())) { - - object.setClusterFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") - .equals(reader.getName())) { - - object.setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherState" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUPublishWorkunitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUPublishWorkunitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUPublishWorkunitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUPublishWorkunitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for QueryName */ + protected java.lang.String localQueryName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryNameTracker = false; + + public boolean isQueryNameSpecified() { + return localQueryNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryName() { + return localQueryName; + } + + /** + * Auto generated setter method + * + * @param param QueryName + */ + public void setQueryName(java.lang.String param) { + localQueryNameTracker = param != null; + + this.localQueryName = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for ReloadFailed */ + protected boolean localReloadFailed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReloadFailedTracker = false; + + public boolean isReloadFailedSpecified() { + return localReloadFailedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReloadFailed() { + return localReloadFailed; + } + + /** + * Auto generated setter method + * + * @param param ReloadFailed + */ + public void setReloadFailed(boolean param) { + + // setting primitive attribute tracker to true + localReloadFailedTracker = true; + + this.localReloadFailed = param; + } + + /** field for Suspended */ + protected boolean localSuspended; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedTracker = false; + + public boolean isSuspendedSpecified() { + return localSuspendedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuspended() { + return localSuspended; + } + + /** + * Auto generated setter method + * + * @param param Suspended + */ + public void setSuspended(boolean param) { + + // setting primitive attribute tracker to true + localSuspendedTracker = true; + + this.localSuspended = param; + } + + /** field for ErrorMessage */ + protected java.lang.String localErrorMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorMessageTracker = false; + + public boolean isErrorMessageSpecified() { + return localErrorMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getErrorMessage() { + return localErrorMessage; + } + + /** + * Auto generated setter method + * + * @param param ErrorMessage + */ + public void setErrorMessage(java.lang.String param) { + localErrorMessageTracker = param != null; + + this.localErrorMessage = param; + } + + /** field for ClusterFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0 + localClusterFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterFilesTracker = false; + + public boolean isClusterFilesSpecified() { + return localClusterFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0 + getClusterFiles() { + return localClusterFiles; + } + + /** + * Auto generated setter method + * + * @param param ClusterFiles + */ + public void setClusterFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0 param) { + localClusterFilesTracker = param != null; + + this.localClusterFiles = param; + } + + /** field for FileErrors */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0 localFileErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileErrorsTracker = false; + + public boolean isFileErrorsSpecified() { + return localFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0 getFileErrors() { + return localFileErrors; + } + + /** + * Auto generated setter method + * + * @param param FileErrors + */ + public void setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0 param) { + localFileErrorsTracker = param != null; + + this.localFileErrors = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for DfuPublisherState */ + protected java.lang.String localDfuPublisherState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherStateTracker = false; + + public boolean isDfuPublisherStateSpecified() { + return localDfuPublisherStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherState() { + return localDfuPublisherState; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherState + */ + public void setDfuPublisherState(java.lang.String param) { + localDfuPublisherStateTracker = param != null; + + this.localDfuPublisherState = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUPublishWorkunitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUPublishWorkunitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + if (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localQueryNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryName", xmlWriter); + + if (localQueryName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryName); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localReloadFailedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ReloadFailed", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ReloadFailed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReloadFailed)); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Suspended", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); + } + + xmlWriter.writeEndElement(); + } + if (localErrorMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ErrorMessage", xmlWriter); + + if (localErrorMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ErrorMessage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localErrorMessage); + } + + xmlWriter.writeEndElement(); + } + if (localClusterFilesTracker) { + if (localClusterFiles == null) { + throw new org.apache.axis2.databinding.ADBException("ClusterFiles cannot be null!!"); + } + localClusterFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFiles"), + xmlWriter); + } + if (localFileErrorsTracker) { + if (localFileErrors == null) { + throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); + } + localFileErrors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); + + if (localDfuPublisherState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherState); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUPublishWorkunitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUPublishWorkunitResponse object = new WUPublishWorkunitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUPublishWorkunitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUPublishWorkunitResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReloadFailed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReloadFailed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReloadFailed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Suspended" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspended( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorMessage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ErrorMessage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setErrorMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterFiles") + .equals(reader.getName())) { + + object.setClusterFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ClusterFiles_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") + .equals(reader.getName())) { + + object.setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherState" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPushEvent.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPushEvent.java index aad6a4bb1..baf9dc46e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPushEvent.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPushEvent.java @@ -1,463 +1,463 @@ -/** - * WUPushEvent.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUPushEvent bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUPushEvent implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPushEvent", "ns1"); - - /** field for EventName */ - protected java.lang.String localEventName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventNameTracker = false; - - public boolean isEventNameSpecified() { - return localEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventName() { - return localEventName; - } - - /** - * Auto generated setter method - * - * @param param EventName - */ - public void setEventName(java.lang.String param) { - localEventNameTracker = param != null; - - this.localEventName = param; - } - - /** field for EventText */ - protected java.lang.String localEventText = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventTextTracker = false; - - public boolean isEventTextSpecified() { - return localEventTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventText() { - return localEventText; - } - - /** - * Auto generated setter method - * - * @param param EventText - */ - public void setEventText(java.lang.String param) { - localEventTextTracker = param != null; - - this.localEventText = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUPushEvent", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUPushEvent", xmlWriter); - } - } - if (localEventNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventName", xmlWriter); - - if (localEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventName); - } - - xmlWriter.writeEndElement(); - } - if (localEventTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventText", xmlWriter); - - if (localEventText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventText); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUPushEvent parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUPushEvent object = new WUPushEvent(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUPushEvent".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUPushEvent) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUPushEvent.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUPushEvent bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUPushEvent implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPushEvent", "ns1"); + + /** field for EventName */ + protected java.lang.String localEventName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventNameTracker = false; + + public boolean isEventNameSpecified() { + return localEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventName() { + return localEventName; + } + + /** + * Auto generated setter method + * + * @param param EventName + */ + public void setEventName(java.lang.String param) { + localEventNameTracker = param != null; + + this.localEventName = param; + } + + /** field for EventText */ + protected java.lang.String localEventText = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventTextTracker = false; + + public boolean isEventTextSpecified() { + return localEventTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventText() { + return localEventText; + } + + /** + * Auto generated setter method + * + * @param param EventText + */ + public void setEventText(java.lang.String param) { + localEventTextTracker = param != null; + + this.localEventText = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUPushEvent", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUPushEvent", xmlWriter); + } + } + if (localEventNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventName", xmlWriter); + + if (localEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventName); + } + + xmlWriter.writeEndElement(); + } + if (localEventTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventText", xmlWriter); + + if (localEventText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventText); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUPushEvent parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUPushEvent object = new WUPushEvent(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUPushEvent".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUPushEvent) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPushEventResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPushEventResponse.java index eb5625ab8..a6567ea74 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPushEventResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUPushEventResponse.java @@ -1,383 +1,383 @@ -/** - * WUPushEventResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUPushEventResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUPushEventResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPushEventResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUPushEventResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUPushEventResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUPushEventResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUPushEventResponse object = new WUPushEventResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUPushEventResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUPushEventResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUPushEventResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUPushEventResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUPushEventResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPushEventResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUPushEventResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUPushEventResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUPushEventResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUPushEventResponse object = new WUPushEventResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUPushEventResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUPushEventResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuery.java index 861986ccf..5f7432be1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuery.java @@ -1,1944 +1,1947 @@ -/** - * WUQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuery implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuery", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Type */ - protected java.lang.String localType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for RoxieCluster */ - protected java.lang.String localRoxieCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRoxieClusterTracker = false; - - public boolean isRoxieClusterSpecified() { - return localRoxieClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRoxieCluster() { - return localRoxieCluster; - } - - /** - * Auto generated setter method - * - * @param param RoxieCluster - */ - public void setRoxieCluster(java.lang.String param) { - localRoxieClusterTracker = param != null; - - this.localRoxieCluster = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for ECL */ - protected java.lang.String localECL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLTracker = false; - - public boolean isECLSpecified() { - return localECLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getECL() { - return localECL; - } - - /** - * Auto generated setter method - * - * @param param ECL - */ - public void setECL(java.lang.String param) { - localECLTracker = param != null; - - this.localECL = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** field for LogicalFile */ - protected java.lang.String localLogicalFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalFileTracker = false; - - public boolean isLogicalFileSpecified() { - return localLogicalFileTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalFile() { - return localLogicalFile; - } - - /** - * Auto generated setter method - * - * @param param LogicalFile - */ - public void setLogicalFile(java.lang.String param) { - localLogicalFileTracker = param != null; - - this.localLogicalFile = param; - } - - /** field for LogicalFileSearchType */ - protected java.lang.String localLogicalFileSearchType = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalFileSearchTypeTracker = false; - - public boolean isLogicalFileSearchTypeSpecified() { - return localLogicalFileSearchTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalFileSearchType() { - return localLogicalFileSearchType; - } - - /** - * Auto generated setter method - * - * @param param LogicalFileSearchType - */ - public void setLogicalFileSearchType(java.lang.String param) { - localLogicalFileSearchTypeTracker = param != null; - - this.localLogicalFileSearchType = param; - } - - /** field for ApplicationValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - localApplicationValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValuesTracker = false; - - public boolean isApplicationValuesSpecified() { - return localApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - getApplicationValues() { - return localApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValues - */ - public void setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { - localApplicationValuesTracker = param != null; - - this.localApplicationValues = param; - } - - /** field for BeforeWU */ - protected java.lang.String localBeforeWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBeforeWUTracker = false; - - public boolean isBeforeWUSpecified() { - return localBeforeWUTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBeforeWU() { - return localBeforeWU; - } - - /** - * Auto generated setter method - * - * @param param BeforeWU - */ - public void setBeforeWU(java.lang.String param) { - localBeforeWUTracker = param != null; - - this.localBeforeWU = param; - } - - /** field for AfterWU */ - protected java.lang.String localAfterWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAfterWUTracker = false; - - public boolean isAfterWUSpecified() { - return localAfterWUTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAfterWU() { - return localAfterWU; - } - - /** - * Auto generated setter method - * - * @param param AfterWU - */ - public void setAfterWU(java.lang.String param) { - localAfterWUTracker = param != null; - - this.localAfterWU = param; - } - - /** field for TotalClusterTimeThresholdMilliSec */ - protected org.apache.axis2.databinding.types.UnsignedInt localTotalClusterTimeThresholdMilliSec; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalClusterTimeThresholdMilliSecTracker = false; - - public boolean isTotalClusterTimeThresholdMilliSecSpecified() { - return localTotalClusterTimeThresholdMilliSecTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.UnsignedInt - */ - public org.apache.axis2.databinding.types.UnsignedInt getTotalClusterTimeThresholdMilliSec() { - return localTotalClusterTimeThresholdMilliSec; - } - - /** - * Auto generated setter method - * - * @param param TotalClusterTimeThresholdMilliSec - */ - public void setTotalClusterTimeThresholdMilliSec( - org.apache.axis2.databinding.types.UnsignedInt param) { - localTotalClusterTimeThresholdMilliSecTracker = param != null; - - this.localTotalClusterTimeThresholdMilliSec = param; - } - - /** field for Count */ - protected int localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** field for PageSize */ - protected long localPageSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageSizeTracker = false; - - public boolean isPageSizeSpecified() { - return localPageSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageSize() { - return localPageSize; - } - - /** - * Auto generated setter method - * - * @param param PageSize - */ - public void setPageSize(long param) { - - // setting primitive attribute tracker to true - localPageSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageSize = param; - } - - /** field for PageStartFrom */ - protected long localPageStartFrom; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageStartFromTracker = false; - - public boolean isPageStartFromSpecified() { - return localPageStartFromTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageStartFrom() { - return localPageStartFrom; - } - - /** - * Auto generated setter method - * - * @param param PageStartFrom - */ - public void setPageStartFrom(long param) { - - // setting primitive attribute tracker to true - localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageStartFrom = param; - } - - /** field for PageEndAt */ - protected long localPageEndAt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageEndAtTracker = false; - - public boolean isPageEndAtSpecified() { - return localPageEndAtTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageEndAt() { - return localPageEndAt; - } - - /** - * Auto generated setter method - * - * @param param PageEndAt - */ - public void setPageEndAt(long param) { - - // setting primitive attribute tracker to true - localPageEndAtTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageEndAt = param; - } - - /** field for Protected */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter localProtected; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectedTracker = false; - - public boolean isProtectedSpecified() { - return localProtectedTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter getProtected() { - return localProtected; - } - - /** - * Auto generated setter method - * - * @param param Protected - */ - public void setProtected( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter param) { - localProtectedTracker = param != null; - - this.localProtected = param; - } - - /** field for Sortby */ - protected java.lang.String localSortby; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortbyTracker = false; - - public boolean isSortbySpecified() { - return localSortbyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortby() { - return localSortby; - } - - /** - * Auto generated setter method - * - * @param param Sortby - */ - public void setSortby(java.lang.String param) { - localSortbyTracker = param != null; - - this.localSortby = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUQuery", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localRoxieClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RoxieCluster", xmlWriter); - - if (localRoxieCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RoxieCluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRoxieCluster); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localECLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ECL", xmlWriter); - - if (localECL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localECL); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalFileTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalFile", xmlWriter); - - if (localLogicalFile == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalFile cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalFile); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalFileSearchTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalFileSearchType", xmlWriter); - - if (localLogicalFileSearchType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "LogicalFileSearchType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalFileSearchType); - } - - xmlWriter.writeEndElement(); - } - if (localApplicationValuesTracker) { - if (localApplicationValues == null) { - throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); - } - localApplicationValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), - xmlWriter); - } - if (localBeforeWUTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BeforeWU", xmlWriter); - - if (localBeforeWU == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BeforeWU cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBeforeWU); - } - - xmlWriter.writeEndElement(); - } - if (localAfterWUTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AfterWU", xmlWriter); - - if (localAfterWU == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AfterWU cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAfterWU); - } - - xmlWriter.writeEndElement(); - } - if (localTotalClusterTimeThresholdMilliSecTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TotalClusterTimeThresholdMilliSec", xmlWriter); - - if (localTotalClusterTimeThresholdMilliSec == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "TotalClusterTimeThresholdMilliSec cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localTotalClusterTimeThresholdMilliSec)); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - if (localPageSizeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageSize", xmlWriter); - - if (localPageSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPageStartFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageStartFrom", xmlWriter); - - if (localPageStartFrom == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localPageEndAtTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageEndAt", xmlWriter); - - if (localPageEndAt == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageEndAt cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageEndAt)); - } - - xmlWriter.writeEndElement(); - } - if (localProtectedTracker) { - if (localProtected == null) { - throw new org.apache.axis2.databinding.ADBException("Protected cannot be null!!"); - } - localProtected.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected"), xmlWriter); - } - if (localSortbyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sortby", xmlWriter); - - if (localSortby == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortby); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuery object = new WUQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuery) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RoxieCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RoxieCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRoxieCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "LogicalFileSearchType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalFileSearchType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalFileSearchType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") - .equals(reader.getName())) { - - object.setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BeforeWU") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BeforeWU" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBeforeWU( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AfterWU") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AfterWU" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAfterWU( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "TotalClusterTimeThresholdMilliSec") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TotalClusterTimeThresholdMilliSec" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotalClusterTimeThresholdMilliSec( - org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageStartFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageStartFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageEndAt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageEndAt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageEndAt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected") - .equals(reader.getName())) { - - object.setProtected( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sortby" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortby( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuery implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuery", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Type */ + protected java.lang.String localType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for RoxieCluster */ + protected java.lang.String localRoxieCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRoxieClusterTracker = false; + + public boolean isRoxieClusterSpecified() { + return localRoxieClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRoxieCluster() { + return localRoxieCluster; + } + + /** + * Auto generated setter method + * + * @param param RoxieCluster + */ + public void setRoxieCluster(java.lang.String param) { + localRoxieClusterTracker = param != null; + + this.localRoxieCluster = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for ECL */ + protected java.lang.String localECL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLTracker = false; + + public boolean isECLSpecified() { + return localECLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getECL() { + return localECL; + } + + /** + * Auto generated setter method + * + * @param param ECL + */ + public void setECL(java.lang.String param) { + localECLTracker = param != null; + + this.localECL = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** field for LogicalFile */ + protected java.lang.String localLogicalFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalFileTracker = false; + + public boolean isLogicalFileSpecified() { + return localLogicalFileTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalFile() { + return localLogicalFile; + } + + /** + * Auto generated setter method + * + * @param param LogicalFile + */ + public void setLogicalFile(java.lang.String param) { + localLogicalFileTracker = param != null; + + this.localLogicalFile = param; + } + + /** field for LogicalFileSearchType */ + protected java.lang.String localLogicalFileSearchType = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalFileSearchTypeTracker = false; + + public boolean isLogicalFileSearchTypeSpecified() { + return localLogicalFileSearchTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalFileSearchType() { + return localLogicalFileSearchType; + } + + /** + * Auto generated setter method + * + * @param param LogicalFileSearchType + */ + public void setLogicalFileSearchType(java.lang.String param) { + localLogicalFileSearchTypeTracker = param != null; + + this.localLogicalFileSearchType = param; + } + + /** field for ApplicationValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + localApplicationValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValuesTracker = false; + + public boolean isApplicationValuesSpecified() { + return localApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + getApplicationValues() { + return localApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValues + */ + public void setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { + localApplicationValuesTracker = param != null; + + this.localApplicationValues = param; + } + + /** field for BeforeWU */ + protected java.lang.String localBeforeWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBeforeWUTracker = false; + + public boolean isBeforeWUSpecified() { + return localBeforeWUTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBeforeWU() { + return localBeforeWU; + } + + /** + * Auto generated setter method + * + * @param param BeforeWU + */ + public void setBeforeWU(java.lang.String param) { + localBeforeWUTracker = param != null; + + this.localBeforeWU = param; + } + + /** field for AfterWU */ + protected java.lang.String localAfterWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAfterWUTracker = false; + + public boolean isAfterWUSpecified() { + return localAfterWUTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAfterWU() { + return localAfterWU; + } + + /** + * Auto generated setter method + * + * @param param AfterWU + */ + public void setAfterWU(java.lang.String param) { + localAfterWUTracker = param != null; + + this.localAfterWU = param; + } + + /** field for TotalClusterTimeThresholdMilliSec */ + protected org.apache.axis2.databinding.types.UnsignedInt localTotalClusterTimeThresholdMilliSec = + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalClusterTimeThresholdMilliSecTracker = false; + + public boolean isTotalClusterTimeThresholdMilliSecSpecified() { + return localTotalClusterTimeThresholdMilliSecTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.UnsignedInt + */ + public org.apache.axis2.databinding.types.UnsignedInt getTotalClusterTimeThresholdMilliSec() { + return localTotalClusterTimeThresholdMilliSec; + } + + /** + * Auto generated setter method + * + * @param param TotalClusterTimeThresholdMilliSec + */ + public void setTotalClusterTimeThresholdMilliSec( + org.apache.axis2.databinding.types.UnsignedInt param) { + localTotalClusterTimeThresholdMilliSecTracker = param != null; + + this.localTotalClusterTimeThresholdMilliSec = param; + } + + /** field for Count */ + protected int localCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** field for PageSize */ + protected long localPageSize = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageSizeTracker = false; + + public boolean isPageSizeSpecified() { + return localPageSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageSize() { + return localPageSize; + } + + /** + * Auto generated setter method + * + * @param param PageSize + */ + public void setPageSize(long param) { + + // setting primitive attribute tracker to true + localPageSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageSize = param; + } + + /** field for PageStartFrom */ + protected long localPageStartFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageStartFromTracker = false; + + public boolean isPageStartFromSpecified() { + return localPageStartFromTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageStartFrom() { + return localPageStartFrom; + } + + /** + * Auto generated setter method + * + * @param param PageStartFrom + */ + public void setPageStartFrom(long param) { + + // setting primitive attribute tracker to true + localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageStartFrom = param; + } + + /** field for PageEndAt */ + protected long localPageEndAt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageEndAtTracker = false; + + public boolean isPageEndAtSpecified() { + return localPageEndAtTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageEndAt() { + return localPageEndAt; + } + + /** + * Auto generated setter method + * + * @param param PageEndAt + */ + public void setPageEndAt(long param) { + + // setting primitive attribute tracker to true + localPageEndAtTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageEndAt = param; + } + + /** field for Protected */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter localProtected; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectedTracker = false; + + public boolean isProtectedSpecified() { + return localProtectedTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter getProtected() { + return localProtected; + } + + /** + * Auto generated setter method + * + * @param param Protected + */ + public void setProtected( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter param) { + localProtectedTracker = param != null; + + this.localProtected = param; + } + + /** field for Sortby */ + protected java.lang.String localSortby; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortbyTracker = false; + + public boolean isSortbySpecified() { + return localSortbyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortby() { + return localSortby; + } + + /** + * Auto generated setter method + * + * @param param Sortby + */ + public void setSortby(java.lang.String param) { + localSortbyTracker = param != null; + + this.localSortby = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUQuery", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localRoxieClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RoxieCluster", xmlWriter); + + if (localRoxieCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RoxieCluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRoxieCluster); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localECLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ECL", xmlWriter); + + if (localECL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localECL); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalFileTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalFile", xmlWriter); + + if (localLogicalFile == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalFile cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalFile); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalFileSearchTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalFileSearchType", xmlWriter); + + if (localLogicalFileSearchType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "LogicalFileSearchType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalFileSearchType); + } + + xmlWriter.writeEndElement(); + } + if (localApplicationValuesTracker) { + if (localApplicationValues == null) { + throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); + } + localApplicationValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), + xmlWriter); + } + if (localBeforeWUTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BeforeWU", xmlWriter); + + if (localBeforeWU == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BeforeWU cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBeforeWU); + } + + xmlWriter.writeEndElement(); + } + if (localAfterWUTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AfterWU", xmlWriter); + + if (localAfterWU == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AfterWU cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAfterWU); + } + + xmlWriter.writeEndElement(); + } + if (localTotalClusterTimeThresholdMilliSecTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TotalClusterTimeThresholdMilliSec", xmlWriter); + + if (localTotalClusterTimeThresholdMilliSec == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "TotalClusterTimeThresholdMilliSec cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localTotalClusterTimeThresholdMilliSec)); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + if (localPageSizeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageSize", xmlWriter); + + if (localPageSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPageStartFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageStartFrom", xmlWriter); + + if (localPageStartFrom == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localPageEndAtTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageEndAt", xmlWriter); + + if (localPageEndAt == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageEndAt cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageEndAt)); + } + + xmlWriter.writeEndElement(); + } + if (localProtectedTracker) { + if (localProtected == null) { + throw new org.apache.axis2.databinding.ADBException("Protected cannot be null!!"); + } + localProtected.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected"), xmlWriter); + } + if (localSortbyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sortby", xmlWriter); + + if (localSortby == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortby); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuery object = new WUQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuery) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RoxieCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RoxieCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRoxieCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "LogicalFileSearchType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalFileSearchType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalFileSearchType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") + .equals(reader.getName())) { + + object.setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BeforeWU") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BeforeWU" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBeforeWU( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AfterWU") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AfterWU" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAfterWU( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "TotalClusterTimeThresholdMilliSec") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TotalClusterTimeThresholdMilliSec" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotalClusterTimeThresholdMilliSec( + org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageStartFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageStartFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageEndAt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageEndAt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageEndAt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected") + .equals(reader.getName())) { + + object.setProtected( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectFilter.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sortby" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortby( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryActivationMode.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryActivationMode.java index a16a49db6..c8a9be72f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryActivationMode.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryActivationMode.java @@ -1,423 +1,423 @@ -/** - * WUQueryActivationMode.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryActivationMode bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryActivationMode implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryActivationMode", "ns1"); - - /** field for WUQueryActivationMode */ - protected int localWUQueryActivationMode; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected WUQueryActivationMode(int value, boolean isRegisterValue) { - localWUQueryActivationMode = value; - if (isRegisterValue) { - - _table_.put(localWUQueryActivationMode + "", this); - } - } - - public static final int _value1 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); - - public static final int _value2 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); - - public static final int _value3 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("2"); - - public static final int _value4 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("3"); - - public static final WUQueryActivationMode value1 = new WUQueryActivationMode(_value1, true); - - public static final WUQueryActivationMode value2 = new WUQueryActivationMode(_value2, true); - - public static final WUQueryActivationMode value3 = new WUQueryActivationMode(_value3, true); - - public static final WUQueryActivationMode value4 = new WUQueryActivationMode(_value4, true); - - public int getValue() { - return localWUQueryActivationMode; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localWUQueryActivationMode); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryActivationMode", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryActivationMode", - xmlWriter); - } - } - - if (localWUQueryActivationMode == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("property value cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localWUQueryActivationMode)); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static WUQueryActivationMode fromValue(int value) - throws java.lang.IllegalArgumentException { - WUQueryActivationMode enumeration = (WUQueryActivationMode) _table_.get(value + ""); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static WUQueryActivationMode fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static WUQueryActivationMode fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return WUQueryActivationMode.Factory.fromString(content, namespaceUri); - } else { - return WUQueryActivationMode.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryActivationMode parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryActivationMode object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUQueryActivationMode" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = WUQueryActivationMode.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = WUQueryActivationMode.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryActivationMode.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryActivationMode bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryActivationMode implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryActivationMode", "ns1"); + + /** field for WUQueryActivationMode */ + protected int localWUQueryActivationMode; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected WUQueryActivationMode(int value, boolean isRegisterValue) { + localWUQueryActivationMode = value; + if (isRegisterValue) { + + _table_.put(localWUQueryActivationMode + "", this); + } + } + + public static final int _value1 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + public static final int _value2 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("1"); + + public static final int _value3 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("2"); + + public static final int _value4 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("3"); + + public static final WUQueryActivationMode value1 = new WUQueryActivationMode(_value1, true); + + public static final WUQueryActivationMode value2 = new WUQueryActivationMode(_value2, true); + + public static final WUQueryActivationMode value3 = new WUQueryActivationMode(_value3, true); + + public static final WUQueryActivationMode value4 = new WUQueryActivationMode(_value4, true); + + public int getValue() { + return localWUQueryActivationMode; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localWUQueryActivationMode); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryActivationMode", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryActivationMode", + xmlWriter); + } + } + + if (localWUQueryActivationMode == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("property value cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localWUQueryActivationMode)); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static WUQueryActivationMode fromValue(int value) + throws java.lang.IllegalArgumentException { + WUQueryActivationMode enumeration = (WUQueryActivationMode) _table_.get(value + ""); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static WUQueryActivationMode fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static WUQueryActivationMode fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return WUQueryActivationMode.Factory.fromString(content, namespaceUri); + } else { + return WUQueryActivationMode.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryActivationMode parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryActivationMode object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUQueryActivationMode" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = WUQueryActivationMode.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = WUQueryActivationMode.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfig.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfig.java index e2bbf023f..05ae16d13 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfig.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfig.java @@ -1,944 +1,946 @@ -/** - * WUQueryConfig.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryConfig bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryConfig implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryConfig", "ns1"); - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for Wait */ - protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("10000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** field for NoReload */ - protected boolean localNoReload = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoReloadTracker = false; - - public boolean isNoReloadSpecified() { - return localNoReloadTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoReload() { - return localNoReload; - } - - /** - * Auto generated setter method - * - * @param param NoReload - */ - public void setNoReload(boolean param) { - - // setting primitive attribute tracker to true - localNoReloadTracker = true; - - this.localNoReload = param; - } - - /** field for MemoryLimit */ - protected java.lang.String localMemoryLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitTracker = false; - - public boolean isMemoryLimitSpecified() { - return localMemoryLimitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemoryLimit() { - return localMemoryLimit; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimit - */ - public void setMemoryLimit(java.lang.String param) { - localMemoryLimitTracker = param != null; - - this.localMemoryLimit = param; - } - - /** field for TimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitTracker = false; - - public boolean isTimeLimitSpecified() { - return localTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { - return localTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param TimeLimit - */ - public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localTimeLimitTracker = param != null; - - this.localTimeLimit = param; - } - - /** field for WarnTimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitTracker = false; - - public boolean isWarnTimeLimitSpecified() { - return localWarnTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { - return localWarnTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimit - */ - public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localWarnTimeLimitTracker = param != null; - - this.localWarnTimeLimit = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryConfig", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUQueryConfig", xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - if (localNoReloadTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoReload", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "memoryLimit", xmlWriter); - - if (localMemoryLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("memoryLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemoryLimit); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeLimit", xmlWriter); - - if (localTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); - - if (localWarnTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryConfig parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryConfig object = new WUQueryConfig(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryConfig".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryConfig) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoReload" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoReload( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "memoryLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "memoryLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarnTimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryConfig.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryConfig bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryConfig implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryConfig", "ns1"); + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for Wait */ + protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("10000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** field for NoReload */ + protected boolean localNoReload = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoReloadTracker = false; + + public boolean isNoReloadSpecified() { + return localNoReloadTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoReload() { + return localNoReload; + } + + /** + * Auto generated setter method + * + * @param param NoReload + */ + public void setNoReload(boolean param) { + + // setting primitive attribute tracker to true + localNoReloadTracker = true; + + this.localNoReload = param; + } + + /** field for MemoryLimit */ + protected java.lang.String localMemoryLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitTracker = false; + + public boolean isMemoryLimitSpecified() { + return localMemoryLimitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemoryLimit() { + return localMemoryLimit; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimit + */ + public void setMemoryLimit(java.lang.String param) { + localMemoryLimitTracker = param != null; + + this.localMemoryLimit = param; + } + + /** field for TimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitTracker = false; + + public boolean isTimeLimitSpecified() { + return localTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { + return localTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param TimeLimit + */ + public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localTimeLimitTracker = param != null; + + this.localTimeLimit = param; + } + + /** field for WarnTimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitTracker = false; + + public boolean isWarnTimeLimitSpecified() { + return localWarnTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { + return localWarnTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimit + */ + public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localWarnTimeLimitTracker = param != null; + + this.localWarnTimeLimit = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryConfig", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUQueryConfig", xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + if (localNoReloadTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoReload", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "memoryLimit", xmlWriter); + + if (localMemoryLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("memoryLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemoryLimit); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeLimit", xmlWriter); + + if (localTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); + + if (localWarnTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryConfig parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryConfig object = new WUQueryConfig(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryConfig".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryConfig) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoReload" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoReload( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "memoryLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "memoryLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarnTimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfigResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfigResponse.java index b0f8381c4..01a795917 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfigResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfigResponse.java @@ -1,505 +1,505 @@ -/** - * WUQueryConfigResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryConfigResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryConfigResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryConfigResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ReloadFailed */ - protected boolean localReloadFailed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReloadFailedTracker = false; - - public boolean isReloadFailedSpecified() { - return localReloadFailedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReloadFailed() { - return localReloadFailed; - } - - /** - * Auto generated setter method - * - * @param param ReloadFailed - */ - public void setReloadFailed(boolean param) { - - // setting primitive attribute tracker to true - localReloadFailedTracker = true; - - this.localReloadFailed = param; - } - - /** field for Results */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2 localResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultsTracker = false; - - public boolean isResultsSpecified() { - return localResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2 getResults() { - return localResults; - } - - /** - * Auto generated setter method - * - * @param param Results - */ - public void setResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2 param) { - localResultsTracker = param != null; - - this.localResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryConfigResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryConfigResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localReloadFailedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ReloadFailed", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ReloadFailed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReloadFailed)); - } - - xmlWriter.writeEndElement(); - } - if (localResultsTracker) { - if (localResults == null) { - throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); - } - localResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryConfigResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryConfigResponse object = new WUQueryConfigResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryConfigResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryConfigResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReloadFailed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReloadFailed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReloadFailed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") - .equals(reader.getName())) { - - object.setResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryConfigResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryConfigResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryConfigResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryConfigResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ReloadFailed */ + protected boolean localReloadFailed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReloadFailedTracker = false; + + public boolean isReloadFailedSpecified() { + return localReloadFailedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReloadFailed() { + return localReloadFailed; + } + + /** + * Auto generated setter method + * + * @param param ReloadFailed + */ + public void setReloadFailed(boolean param) { + + // setting primitive attribute tracker to true + localReloadFailedTracker = true; + + this.localReloadFailed = param; + } + + /** field for Results */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2 localResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultsTracker = false; + + public boolean isResultsSpecified() { + return localResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2 getResults() { + return localResults; + } + + /** + * Auto generated setter method + * + * @param param Results + */ + public void setResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2 param) { + localResultsTracker = param != null; + + this.localResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryConfigResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryConfigResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localReloadFailedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ReloadFailed", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ReloadFailed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReloadFailed)); + } + + xmlWriter.writeEndElement(); + } + if (localResultsTracker) { + if (localResults == null) { + throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); + } + localResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryConfigResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryConfigResponse object = new WUQueryConfigResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryConfigResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryConfigResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReloadFailed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReloadFailed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReloadFailed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") + .equals(reader.getName())) { + + object.setResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type2.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfigResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfigResult.java index 86ce271cf..ff1651e2c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfigResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryConfigResult.java @@ -1,400 +1,400 @@ -/** - * WUQueryConfigResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryConfigResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryConfigResult implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUQueryConfigResult - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryConfigResult", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryConfigResult", - xmlWriter); - } - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryConfigResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryConfigResult object = new WUQueryConfigResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryConfigResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryConfigResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryConfigResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryConfigResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryConfigResult implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUQueryConfigResult + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryConfigResult", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryConfigResult", + xmlWriter); + } + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryConfigResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryConfigResult object = new WUQueryConfigResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryConfigResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryConfigResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetails.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetails.java index d3c7dda48..b9033c53b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetails.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetails.java @@ -1,897 +1,897 @@ -/** - * WUQueryDetails.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryDetails bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryDetails implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryDetails", "ns1"); - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for IncludeStateOnClusters */ - protected boolean localIncludeStateOnClusters = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeStateOnClustersTracker = false; - - public boolean isIncludeStateOnClustersSpecified() { - return localIncludeStateOnClustersTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeStateOnClusters() { - return localIncludeStateOnClusters; - } - - /** - * Auto generated setter method - * - * @param param IncludeStateOnClusters - */ - public void setIncludeStateOnClusters(boolean param) { - - // setting primitive attribute tracker to true - localIncludeStateOnClustersTracker = true; - - this.localIncludeStateOnClusters = param; - } - - /** field for IncludeSuperFiles */ - protected boolean localIncludeSuperFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeSuperFilesTracker = false; - - public boolean isIncludeSuperFilesSpecified() { - return localIncludeSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeSuperFiles() { - return localIncludeSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param IncludeSuperFiles - */ - public void setIncludeSuperFiles(boolean param) { - - // setting primitive attribute tracker to true - localIncludeSuperFilesTracker = true; - - this.localIncludeSuperFiles = param; - } - - /** field for IncludeWsEclAddresses */ - protected boolean localIncludeWsEclAddresses = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeWsEclAddressesTracker = false; - - public boolean isIncludeWsEclAddressesSpecified() { - return localIncludeWsEclAddressesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeWsEclAddresses() { - return localIncludeWsEclAddresses; - } - - /** - * Auto generated setter method - * - * @param param IncludeWsEclAddresses - */ - public void setIncludeWsEclAddresses(boolean param) { - - // setting primitive attribute tracker to true - localIncludeWsEclAddressesTracker = true; - - this.localIncludeWsEclAddresses = param; - } - - /** field for CheckAllNodes */ - protected boolean localCheckAllNodes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCheckAllNodesTracker = false; - - public boolean isCheckAllNodesSpecified() { - return localCheckAllNodesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCheckAllNodes() { - return localCheckAllNodes; - } - - /** - * Auto generated setter method - * - * @param param CheckAllNodes - */ - public void setCheckAllNodes(boolean param) { - - // setting primitive attribute tracker to true - localCheckAllNodesTracker = true; - - this.localCheckAllNodes = param; - } - - /** field for IncludeWUDetails */ - protected boolean localIncludeWUDetails = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeWUDetailsTracker = false; - - public boolean isIncludeWUDetailsSpecified() { - return localIncludeWUDetailsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeWUDetails() { - return localIncludeWUDetails; - } - - /** - * Auto generated setter method - * - * @param param IncludeWUDetails - */ - public void setIncludeWUDetails(boolean param) { - - // setting primitive attribute tracker to true - localIncludeWUDetailsTracker = true; - - this.localIncludeWUDetails = param; - } - - /** field for IncludeWUQueryFiles */ - protected boolean localIncludeWUQueryFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeWUQueryFilesTracker = false; - - public boolean isIncludeWUQueryFilesSpecified() { - return localIncludeWUQueryFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeWUQueryFiles() { - return localIncludeWUQueryFiles; - } - - /** - * Auto generated setter method - * - * @param param IncludeWUQueryFiles - */ - public void setIncludeWUQueryFiles(boolean param) { - - // setting primitive attribute tracker to true - localIncludeWUQueryFilesTracker = true; - - this.localIncludeWUQueryFiles = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryDetails", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryDetails", - xmlWriter); - } - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeStateOnClustersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeStateOnClusters", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeStateOnClusters cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeStateOnClusters)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeSuperFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeSuperFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeSuperFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeSuperFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeWsEclAddressesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeWsEclAddresses", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeWsEclAddresses cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeWsEclAddresses)); - } - - xmlWriter.writeEndElement(); - } - if (localCheckAllNodesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeWUDetailsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeWUDetails", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeWUDetails cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeWUDetails)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeWUQueryFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeWUQueryFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeWUQueryFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeWUQueryFiles)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryDetails parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryDetails object = new WUQueryDetails(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryDetails".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryDetails) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeStateOnClusters") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeStateOnClusters" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeStateOnClusters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeSuperFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeSuperFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeSuperFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeWsEclAddresses") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeWsEclAddresses" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeWsEclAddresses( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CheckAllNodes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCheckAllNodes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeWUDetails") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeWUDetails" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeWUDetails( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeWUQueryFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeWUQueryFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeWUQueryFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryDetails.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryDetails bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryDetails implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryDetails", "ns1"); + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for IncludeStateOnClusters */ + protected boolean localIncludeStateOnClusters = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeStateOnClustersTracker = false; + + public boolean isIncludeStateOnClustersSpecified() { + return localIncludeStateOnClustersTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeStateOnClusters() { + return localIncludeStateOnClusters; + } + + /** + * Auto generated setter method + * + * @param param IncludeStateOnClusters + */ + public void setIncludeStateOnClusters(boolean param) { + + // setting primitive attribute tracker to true + localIncludeStateOnClustersTracker = true; + + this.localIncludeStateOnClusters = param; + } + + /** field for IncludeSuperFiles */ + protected boolean localIncludeSuperFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeSuperFilesTracker = false; + + public boolean isIncludeSuperFilesSpecified() { + return localIncludeSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeSuperFiles() { + return localIncludeSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param IncludeSuperFiles + */ + public void setIncludeSuperFiles(boolean param) { + + // setting primitive attribute tracker to true + localIncludeSuperFilesTracker = true; + + this.localIncludeSuperFiles = param; + } + + /** field for IncludeWsEclAddresses */ + protected boolean localIncludeWsEclAddresses = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeWsEclAddressesTracker = false; + + public boolean isIncludeWsEclAddressesSpecified() { + return localIncludeWsEclAddressesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeWsEclAddresses() { + return localIncludeWsEclAddresses; + } + + /** + * Auto generated setter method + * + * @param param IncludeWsEclAddresses + */ + public void setIncludeWsEclAddresses(boolean param) { + + // setting primitive attribute tracker to true + localIncludeWsEclAddressesTracker = true; + + this.localIncludeWsEclAddresses = param; + } + + /** field for CheckAllNodes */ + protected boolean localCheckAllNodes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCheckAllNodesTracker = false; + + public boolean isCheckAllNodesSpecified() { + return localCheckAllNodesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCheckAllNodes() { + return localCheckAllNodes; + } + + /** + * Auto generated setter method + * + * @param param CheckAllNodes + */ + public void setCheckAllNodes(boolean param) { + + // setting primitive attribute tracker to true + localCheckAllNodesTracker = true; + + this.localCheckAllNodes = param; + } + + /** field for IncludeWUDetails */ + protected boolean localIncludeWUDetails = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeWUDetailsTracker = false; + + public boolean isIncludeWUDetailsSpecified() { + return localIncludeWUDetailsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeWUDetails() { + return localIncludeWUDetails; + } + + /** + * Auto generated setter method + * + * @param param IncludeWUDetails + */ + public void setIncludeWUDetails(boolean param) { + + // setting primitive attribute tracker to true + localIncludeWUDetailsTracker = true; + + this.localIncludeWUDetails = param; + } + + /** field for IncludeWUQueryFiles */ + protected boolean localIncludeWUQueryFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeWUQueryFilesTracker = false; + + public boolean isIncludeWUQueryFilesSpecified() { + return localIncludeWUQueryFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeWUQueryFiles() { + return localIncludeWUQueryFiles; + } + + /** + * Auto generated setter method + * + * @param param IncludeWUQueryFiles + */ + public void setIncludeWUQueryFiles(boolean param) { + + // setting primitive attribute tracker to true + localIncludeWUQueryFilesTracker = true; + + this.localIncludeWUQueryFiles = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryDetails", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryDetails", + xmlWriter); + } + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeStateOnClustersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeStateOnClusters", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeStateOnClusters cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeStateOnClusters)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeSuperFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeSuperFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeSuperFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeSuperFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeWsEclAddressesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeWsEclAddresses", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeWsEclAddresses cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeWsEclAddresses)); + } + + xmlWriter.writeEndElement(); + } + if (localCheckAllNodesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeWUDetailsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeWUDetails", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeWUDetails cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeWUDetails)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeWUQueryFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeWUQueryFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeWUQueryFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeWUQueryFiles)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryDetails parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryDetails object = new WUQueryDetails(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryDetails".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryDetails) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeStateOnClusters") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeStateOnClusters" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeStateOnClusters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeSuperFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeSuperFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeSuperFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeWsEclAddresses") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeWsEclAddresses" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeWsEclAddresses( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CheckAllNodes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCheckAllNodes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeWUDetails") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeWUDetails" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeWUDetails( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeWUQueryFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeWUQueryFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeWUQueryFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetailsLightWeight.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetailsLightWeight.java index 081f1900b..cfd71dba5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetailsLightWeight.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetailsLightWeight.java @@ -1,898 +1,898 @@ -/** - * WUQueryDetailsLightWeight.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryDetailsLightWeight bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryDetailsLightWeight implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryDetailsLightWeight", "ns1"); - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for IncludeWUDetails */ - protected boolean localIncludeWUDetails = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeWUDetailsTracker = false; - - public boolean isIncludeWUDetailsSpecified() { - return localIncludeWUDetailsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeWUDetails() { - return localIncludeWUDetails; - } - - /** - * Auto generated setter method - * - * @param param IncludeWUDetails - */ - public void setIncludeWUDetails(boolean param) { - - // setting primitive attribute tracker to true - localIncludeWUDetailsTracker = true; - - this.localIncludeWUDetails = param; - } - - /** field for IncludeWUQueryFiles */ - protected boolean localIncludeWUQueryFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeWUQueryFilesTracker = false; - - public boolean isIncludeWUQueryFilesSpecified() { - return localIncludeWUQueryFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeWUQueryFiles() { - return localIncludeWUQueryFiles; - } - - /** - * Auto generated setter method - * - * @param param IncludeWUQueryFiles - */ - public void setIncludeWUQueryFiles(boolean param) { - - // setting primitive attribute tracker to true - localIncludeWUQueryFilesTracker = true; - - this.localIncludeWUQueryFiles = param; - } - - /** field for IncludeSuperFiles */ - protected boolean localIncludeSuperFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeSuperFilesTracker = false; - - public boolean isIncludeSuperFilesSpecified() { - return localIncludeSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeSuperFiles() { - return localIncludeSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param IncludeSuperFiles - */ - public void setIncludeSuperFiles(boolean param) { - - // setting primitive attribute tracker to true - localIncludeSuperFilesTracker = true; - - this.localIncludeSuperFiles = param; - } - - /** field for IncludeWsEclAddresses */ - protected boolean localIncludeWsEclAddresses = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeWsEclAddressesTracker = false; - - public boolean isIncludeWsEclAddressesSpecified() { - return localIncludeWsEclAddressesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeWsEclAddresses() { - return localIncludeWsEclAddresses; - } - - /** - * Auto generated setter method - * - * @param param IncludeWsEclAddresses - */ - public void setIncludeWsEclAddresses(boolean param) { - - // setting primitive attribute tracker to true - localIncludeWsEclAddressesTracker = true; - - this.localIncludeWsEclAddresses = param; - } - - /** field for IncludeStateOnClusters */ - protected boolean localIncludeStateOnClusters = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeStateOnClustersTracker = false; - - public boolean isIncludeStateOnClustersSpecified() { - return localIncludeStateOnClustersTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeStateOnClusters() { - return localIncludeStateOnClusters; - } - - /** - * Auto generated setter method - * - * @param param IncludeStateOnClusters - */ - public void setIncludeStateOnClusters(boolean param) { - - // setting primitive attribute tracker to true - localIncludeStateOnClustersTracker = true; - - this.localIncludeStateOnClusters = param; - } - - /** field for CheckAllNodes */ - protected boolean localCheckAllNodes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCheckAllNodesTracker = false; - - public boolean isCheckAllNodesSpecified() { - return localCheckAllNodesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCheckAllNodes() { - return localCheckAllNodes; - } - - /** - * Auto generated setter method - * - * @param param CheckAllNodes - */ - public void setCheckAllNodes(boolean param) { - - // setting primitive attribute tracker to true - localCheckAllNodesTracker = true; - - this.localCheckAllNodes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryDetailsLightWeight", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryDetailsLightWeight", - xmlWriter); - } - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeWUDetailsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeWUDetails", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeWUDetails cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeWUDetails)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeWUQueryFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeWUQueryFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeWUQueryFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeWUQueryFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeSuperFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeSuperFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeSuperFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeSuperFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeWsEclAddressesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeWsEclAddresses", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeWsEclAddresses cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeWsEclAddresses)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeStateOnClustersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeStateOnClusters", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeStateOnClusters cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeStateOnClusters)); - } - - xmlWriter.writeEndElement(); - } - if (localCheckAllNodesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryDetailsLightWeight parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryDetailsLightWeight object = new WUQueryDetailsLightWeight(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryDetailsLightWeight".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryDetailsLightWeight) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeWUDetails") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeWUDetails" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeWUDetails( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeWUQueryFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeWUQueryFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeWUQueryFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeSuperFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeSuperFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeSuperFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeWsEclAddresses") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeWsEclAddresses" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeWsEclAddresses( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeStateOnClusters") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeStateOnClusters" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeStateOnClusters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CheckAllNodes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCheckAllNodes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryDetailsLightWeight.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryDetailsLightWeight bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryDetailsLightWeight implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryDetailsLightWeight", "ns1"); + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for IncludeWUDetails */ + protected boolean localIncludeWUDetails = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeWUDetailsTracker = false; + + public boolean isIncludeWUDetailsSpecified() { + return localIncludeWUDetailsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeWUDetails() { + return localIncludeWUDetails; + } + + /** + * Auto generated setter method + * + * @param param IncludeWUDetails + */ + public void setIncludeWUDetails(boolean param) { + + // setting primitive attribute tracker to true + localIncludeWUDetailsTracker = true; + + this.localIncludeWUDetails = param; + } + + /** field for IncludeWUQueryFiles */ + protected boolean localIncludeWUQueryFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeWUQueryFilesTracker = false; + + public boolean isIncludeWUQueryFilesSpecified() { + return localIncludeWUQueryFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeWUQueryFiles() { + return localIncludeWUQueryFiles; + } + + /** + * Auto generated setter method + * + * @param param IncludeWUQueryFiles + */ + public void setIncludeWUQueryFiles(boolean param) { + + // setting primitive attribute tracker to true + localIncludeWUQueryFilesTracker = true; + + this.localIncludeWUQueryFiles = param; + } + + /** field for IncludeSuperFiles */ + protected boolean localIncludeSuperFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeSuperFilesTracker = false; + + public boolean isIncludeSuperFilesSpecified() { + return localIncludeSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeSuperFiles() { + return localIncludeSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param IncludeSuperFiles + */ + public void setIncludeSuperFiles(boolean param) { + + // setting primitive attribute tracker to true + localIncludeSuperFilesTracker = true; + + this.localIncludeSuperFiles = param; + } + + /** field for IncludeWsEclAddresses */ + protected boolean localIncludeWsEclAddresses = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeWsEclAddressesTracker = false; + + public boolean isIncludeWsEclAddressesSpecified() { + return localIncludeWsEclAddressesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeWsEclAddresses() { + return localIncludeWsEclAddresses; + } + + /** + * Auto generated setter method + * + * @param param IncludeWsEclAddresses + */ + public void setIncludeWsEclAddresses(boolean param) { + + // setting primitive attribute tracker to true + localIncludeWsEclAddressesTracker = true; + + this.localIncludeWsEclAddresses = param; + } + + /** field for IncludeStateOnClusters */ + protected boolean localIncludeStateOnClusters = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeStateOnClustersTracker = false; + + public boolean isIncludeStateOnClustersSpecified() { + return localIncludeStateOnClustersTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeStateOnClusters() { + return localIncludeStateOnClusters; + } + + /** + * Auto generated setter method + * + * @param param IncludeStateOnClusters + */ + public void setIncludeStateOnClusters(boolean param) { + + // setting primitive attribute tracker to true + localIncludeStateOnClustersTracker = true; + + this.localIncludeStateOnClusters = param; + } + + /** field for CheckAllNodes */ + protected boolean localCheckAllNodes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCheckAllNodesTracker = false; + + public boolean isCheckAllNodesSpecified() { + return localCheckAllNodesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCheckAllNodes() { + return localCheckAllNodes; + } + + /** + * Auto generated setter method + * + * @param param CheckAllNodes + */ + public void setCheckAllNodes(boolean param) { + + // setting primitive attribute tracker to true + localCheckAllNodesTracker = true; + + this.localCheckAllNodes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryDetailsLightWeight", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryDetailsLightWeight", + xmlWriter); + } + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeWUDetailsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeWUDetails", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeWUDetails cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeWUDetails)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeWUQueryFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeWUQueryFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeWUQueryFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeWUQueryFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeSuperFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeSuperFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeSuperFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeSuperFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeWsEclAddressesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeWsEclAddresses", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeWsEclAddresses cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeWsEclAddresses)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeStateOnClustersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeStateOnClusters", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeStateOnClusters cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeStateOnClusters)); + } + + xmlWriter.writeEndElement(); + } + if (localCheckAllNodesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryDetailsLightWeight parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryDetailsLightWeight object = new WUQueryDetailsLightWeight(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryDetailsLightWeight".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryDetailsLightWeight) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeWUDetails") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeWUDetails" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeWUDetails( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeWUQueryFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeWUQueryFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeWUQueryFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeSuperFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeSuperFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeSuperFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeWsEclAddresses") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeWsEclAddresses" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeWsEclAddresses( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeStateOnClusters") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeStateOnClusters" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeStateOnClusters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CheckAllNodes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCheckAllNodes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetailsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetailsResponse.java index ed2591649..520fe0e45 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetailsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryDetailsResponse.java @@ -1,1920 +1,1920 @@ -/** - * WUQueryDetailsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryDetailsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryDetailsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryDetailsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for QueryName */ - protected java.lang.String localQueryName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryNameTracker = false; - - public boolean isQueryNameSpecified() { - return localQueryNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryName() { - return localQueryName; - } - - /** - * Auto generated setter method - * - * @param param QueryName - */ - public void setQueryName(java.lang.String param) { - localQueryNameTracker = param != null; - - this.localQueryName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Dll */ - protected java.lang.String localDll; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDllTracker = false; - - public boolean isDllSpecified() { - return localDllTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDll() { - return localDll; - } - - /** - * Auto generated setter method - * - * @param param Dll - */ - public void setDll(java.lang.String param) { - localDllTracker = param != null; - - this.localDll = param; - } - - /** field for Suspended */ - protected boolean localSuspended; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedTracker = false; - - public boolean isSuspendedSpecified() { - return localSuspendedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuspended() { - return localSuspended; - } - - /** - * Auto generated setter method - * - * @param param Suspended - */ - public void setSuspended(boolean param) { - - // setting primitive attribute tracker to true - localSuspendedTracker = true; - - this.localSuspended = param; - } - - /** field for Activated */ - protected boolean localActivated; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivatedTracker = false; - - public boolean isActivatedSpecified() { - return localActivatedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getActivated() { - return localActivated; - } - - /** - * Auto generated setter method - * - * @param param Activated - */ - public void setActivated(boolean param) { - - // setting primitive attribute tracker to true - localActivatedTracker = true; - - this.localActivated = param; - } - - /** field for SuspendedBy */ - protected java.lang.String localSuspendedBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedByTracker = false; - - public boolean isSuspendedBySpecified() { - return localSuspendedByTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSuspendedBy() { - return localSuspendedBy; - } - - /** - * Auto generated setter method - * - * @param param SuspendedBy - */ - public void setSuspendedBy(java.lang.String param) { - localSuspendedByTracker = param != null; - - this.localSuspendedBy = param; - } - - /** field for Clusters */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState - localClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClustersTracker = false; - - public boolean isClustersSpecified() { - return localClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState - getClusters() { - return localClusters; - } - - /** - * Auto generated setter method - * - * @param param Clusters - */ - public void setClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState param) { - localClustersTracker = param != null; - - this.localClusters = param; - } - - /** field for PublishedBy */ - protected java.lang.String localPublishedBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPublishedByTracker = false; - - public boolean isPublishedBySpecified() { - return localPublishedByTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPublishedBy() { - return localPublishedBy; - } - - /** - * Auto generated setter method - * - * @param param PublishedBy - */ - public void setPublishedBy(java.lang.String param) { - localPublishedByTracker = param != null; - - this.localPublishedBy = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for LogicalFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localLogicalFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalFilesTracker = false; - - public boolean isLogicalFilesSpecified() { - return localLogicalFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getLogicalFiles() { - return localLogicalFiles; - } - - /** - * Auto generated setter method - * - * @param param LogicalFiles - */ - public void setLogicalFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localLogicalFilesTracker = param != null; - - this.localLogicalFiles = param; - } - - /** field for SuperFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3 localSuperFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperFilesTracker = false; - - public boolean isSuperFilesSpecified() { - return localSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3 getSuperFiles() { - return localSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param SuperFiles - */ - public void setSuperFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3 param) { - localSuperFilesTracker = param != null; - - this.localSuperFiles = param; - } - - /** field for IsLibrary */ - protected boolean localIsLibrary; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIsLibraryTracker = false; - - public boolean isIsLibrarySpecified() { - return localIsLibraryTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIsLibrary() { - return localIsLibrary; - } - - /** - * Auto generated setter method - * - * @param param IsLibrary - */ - public void setIsLibrary(boolean param) { - - // setting primitive attribute tracker to true - localIsLibraryTracker = true; - - this.localIsLibrary = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for PriorityID */ - protected int localPriorityID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityIDTracker = false; - - public boolean isPriorityIDSpecified() { - return localPriorityIDTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityID() { - return localPriorityID; - } - - /** - * Auto generated setter method - * - * @param param PriorityID - */ - public void setPriorityID(int param) { - - // setting primitive attribute tracker to true - localPriorityIDTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityID = param; - } - - /** field for WUSnapShot */ - protected java.lang.String localWUSnapShot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUSnapShotTracker = false; - - public boolean isWUSnapShotSpecified() { - return localWUSnapShotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWUSnapShot() { - return localWUSnapShot; - } - - /** - * Auto generated setter method - * - * @param param WUSnapShot - */ - public void setWUSnapShot(java.lang.String param) { - localWUSnapShotTracker = param != null; - - this.localWUSnapShot = param; - } - - /** field for CompileTime */ - protected java.lang.String localCompileTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompileTimeTracker = false; - - public boolean isCompileTimeSpecified() { - return localCompileTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCompileTime() { - return localCompileTime; - } - - /** - * Auto generated setter method - * - * @param param CompileTime - */ - public void setCompileTime(java.lang.String param) { - localCompileTimeTracker = param != null; - - this.localCompileTime = param; - } - - /** field for LibrariesUsed */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - localLibrariesUsed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLibrariesUsedTracker = false; - - public boolean isLibrariesUsedSpecified() { - return localLibrariesUsedTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getLibrariesUsed() { - return localLibrariesUsed; - } - - /** - * Auto generated setter method - * - * @param param LibrariesUsed - */ - public void setLibrariesUsed( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localLibrariesUsedTracker = param != null; - - this.localLibrariesUsed = param; - } - - /** field for CountGraphs */ - protected int localCountGraphs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountGraphsTracker = false; - - public boolean isCountGraphsSpecified() { - return localCountGraphsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCountGraphs() { - return localCountGraphs; - } - - /** - * Auto generated setter method - * - * @param param CountGraphs - */ - public void setCountGraphs(int param) { - - // setting primitive attribute tracker to true - localCountGraphsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCountGraphs = param; - } - - /** field for ResourceURLCount */ - protected int localResourceURLCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResourceURLCountTracker = false; - - public boolean isResourceURLCountSpecified() { - return localResourceURLCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getResourceURLCount() { - return localResourceURLCount; - } - - /** - * Auto generated setter method - * - * @param param ResourceURLCount - */ - public void setResourceURLCount(int param) { - - // setting primitive attribute tracker to true - localResourceURLCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localResourceURLCount = param; - } - - /** field for WsEclAddresses */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 - localWsEclAddresses; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWsEclAddressesTracker = false; - - public boolean isWsEclAddressesSpecified() { - return localWsEclAddressesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 - getWsEclAddresses() { - return localWsEclAddresses; - } - - /** - * Auto generated setter method - * - * @param param WsEclAddresses - */ - public void setWsEclAddresses( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 param) { - localWsEclAddressesTracker = param != null; - - this.localWsEclAddresses = param; - } - - /** field for WUGraphs */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph localWUGraphs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUGraphsTracker = false; - - public boolean isWUGraphsSpecified() { - return localWUGraphsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph getWUGraphs() { - return localWUGraphs; - } - - /** - * Auto generated setter method - * - * @param param WUGraphs - */ - public void setWUGraphs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph param) { - localWUGraphsTracker = param != null; - - this.localWUGraphs = param; - } - - /** field for WUTimers */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer localWUTimers; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUTimersTracker = false; - - public boolean isWUTimersSpecified() { - return localWUTimersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer getWUTimers() { - return localWUTimers; - } - - /** - * Auto generated setter method - * - * @param param WUTimers - */ - public void setWUTimers( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer param) { - localWUTimersTracker = param != null; - - this.localWUTimers = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryDetailsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryDetailsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localQueryNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryName", xmlWriter); - - if (localQueryName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryName); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDllTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Dll", xmlWriter); - - if (localDll == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Dll cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDll); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Suspended", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); - } - - xmlWriter.writeEndElement(); - } - if (localActivatedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Activated", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Activated cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivated)); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendedByTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SuspendedBy", xmlWriter); - - if (localSuspendedBy == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SuspendedBy cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSuspendedBy); - } - - xmlWriter.writeEndElement(); - } - if (localClustersTracker) { - if (localClusters == null) { - throw new org.apache.axis2.databinding.ADBException("Clusters cannot be null!!"); - } - localClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters"), xmlWriter); - } - if (localPublishedByTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PublishedBy", xmlWriter); - - if (localPublishedBy == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PublishedBy cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPublishedBy); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalFilesTracker) { - if (localLogicalFiles == null) { - throw new org.apache.axis2.databinding.ADBException("LogicalFiles cannot be null!!"); - } - localLogicalFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFiles"), - xmlWriter); - } - if (localSuperFilesTracker) { - if (localSuperFiles == null) { - throw new org.apache.axis2.databinding.ADBException("SuperFiles cannot be null!!"); - } - localSuperFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles"), xmlWriter); - } - if (localIsLibraryTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IsLibrary", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IsLibrary cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsLibrary)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityID", xmlWriter); - - if (localPriorityID == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityID cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityID)); - } - - xmlWriter.writeEndElement(); - } - if (localWUSnapShotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WUSnapShot", xmlWriter); - - if (localWUSnapShot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WUSnapShot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWUSnapShot); - } - - xmlWriter.writeEndElement(); - } - if (localCompileTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CompileTime", xmlWriter); - - if (localCompileTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("CompileTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCompileTime); - } - - xmlWriter.writeEndElement(); - } - if (localLibrariesUsedTracker) { - if (localLibrariesUsed == null) { - throw new org.apache.axis2.databinding.ADBException("LibrariesUsed cannot be null!!"); - } - localLibrariesUsed.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LibrariesUsed"), - xmlWriter); - } - if (localCountGraphsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CountGraphs", xmlWriter); - - if (localCountGraphs == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CountGraphs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCountGraphs)); - } - - xmlWriter.writeEndElement(); - } - if (localResourceURLCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResourceURLCount", xmlWriter); - - if (localResourceURLCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ResourceURLCount cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localResourceURLCount)); - } - - xmlWriter.writeEndElement(); - } - if (localWsEclAddressesTracker) { - if (localWsEclAddresses == null) { - throw new org.apache.axis2.databinding.ADBException("WsEclAddresses cannot be null!!"); - } - localWsEclAddresses.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WsEclAddresses"), - xmlWriter); - } - if (localWUGraphsTracker) { - if (localWUGraphs == null) { - throw new org.apache.axis2.databinding.ADBException("WUGraphs cannot be null!!"); - } - localWUGraphs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphs"), xmlWriter); - } - if (localWUTimersTracker) { - if (localWUTimers == null) { - throw new org.apache.axis2.databinding.ADBException("WUTimers cannot be null!!"); - } - localWUTimers.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUTimers"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryDetailsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryDetailsResponse object = new WUQueryDetailsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryDetailsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryDetailsResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dll") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Dll" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDll( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Suspended" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspended( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activated") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Activated" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActivated( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuspendedBy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SuspendedBy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspendedBy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters") - .equals(reader.getName())) { - - object.setClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PublishedBy") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PublishedBy" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPublishedBy( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFiles") - .equals(reader.getName())) { - - object.setLogicalFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles") - .equals(reader.getName())) { - - object.setSuperFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsLibrary") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IsLibrary" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIsLibrary( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSnapShot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUSnapShot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWUSnapShot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CompileTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CompileTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompileTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LibrariesUsed") - .equals(reader.getName())) { - - object.setLibrariesUsed( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CountGraphs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CountGraphs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCountGraphs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ResourceURLCount") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResourceURLCount" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResourceURLCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WsEclAddresses") - .equals(reader.getName())) { - - object.setWsEclAddresses( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphs") - .equals(reader.getName())) { - - object.setWUGraphs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUTimers") - .equals(reader.getName())) { - - object.setWUTimers( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryDetailsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryDetailsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryDetailsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryDetailsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for QueryName */ + protected java.lang.String localQueryName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryNameTracker = false; + + public boolean isQueryNameSpecified() { + return localQueryNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryName() { + return localQueryName; + } + + /** + * Auto generated setter method + * + * @param param QueryName + */ + public void setQueryName(java.lang.String param) { + localQueryNameTracker = param != null; + + this.localQueryName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Dll */ + protected java.lang.String localDll; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDllTracker = false; + + public boolean isDllSpecified() { + return localDllTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDll() { + return localDll; + } + + /** + * Auto generated setter method + * + * @param param Dll + */ + public void setDll(java.lang.String param) { + localDllTracker = param != null; + + this.localDll = param; + } + + /** field for Suspended */ + protected boolean localSuspended; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedTracker = false; + + public boolean isSuspendedSpecified() { + return localSuspendedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuspended() { + return localSuspended; + } + + /** + * Auto generated setter method + * + * @param param Suspended + */ + public void setSuspended(boolean param) { + + // setting primitive attribute tracker to true + localSuspendedTracker = true; + + this.localSuspended = param; + } + + /** field for Activated */ + protected boolean localActivated; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivatedTracker = false; + + public boolean isActivatedSpecified() { + return localActivatedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getActivated() { + return localActivated; + } + + /** + * Auto generated setter method + * + * @param param Activated + */ + public void setActivated(boolean param) { + + // setting primitive attribute tracker to true + localActivatedTracker = true; + + this.localActivated = param; + } + + /** field for SuspendedBy */ + protected java.lang.String localSuspendedBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedByTracker = false; + + public boolean isSuspendedBySpecified() { + return localSuspendedByTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSuspendedBy() { + return localSuspendedBy; + } + + /** + * Auto generated setter method + * + * @param param SuspendedBy + */ + public void setSuspendedBy(java.lang.String param) { + localSuspendedByTracker = param != null; + + this.localSuspendedBy = param; + } + + /** field for Clusters */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState + localClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClustersTracker = false; + + public boolean isClustersSpecified() { + return localClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState + getClusters() { + return localClusters; + } + + /** + * Auto generated setter method + * + * @param param Clusters + */ + public void setClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState param) { + localClustersTracker = param != null; + + this.localClusters = param; + } + + /** field for PublishedBy */ + protected java.lang.String localPublishedBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPublishedByTracker = false; + + public boolean isPublishedBySpecified() { + return localPublishedByTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPublishedBy() { + return localPublishedBy; + } + + /** + * Auto generated setter method + * + * @param param PublishedBy + */ + public void setPublishedBy(java.lang.String param) { + localPublishedByTracker = param != null; + + this.localPublishedBy = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for LogicalFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localLogicalFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalFilesTracker = false; + + public boolean isLogicalFilesSpecified() { + return localLogicalFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getLogicalFiles() { + return localLogicalFiles; + } + + /** + * Auto generated setter method + * + * @param param LogicalFiles + */ + public void setLogicalFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localLogicalFilesTracker = param != null; + + this.localLogicalFiles = param; + } + + /** field for SuperFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3 localSuperFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperFilesTracker = false; + + public boolean isSuperFilesSpecified() { + return localSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3 getSuperFiles() { + return localSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param SuperFiles + */ + public void setSuperFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3 param) { + localSuperFilesTracker = param != null; + + this.localSuperFiles = param; + } + + /** field for IsLibrary */ + protected boolean localIsLibrary; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIsLibraryTracker = false; + + public boolean isIsLibrarySpecified() { + return localIsLibraryTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIsLibrary() { + return localIsLibrary; + } + + /** + * Auto generated setter method + * + * @param param IsLibrary + */ + public void setIsLibrary(boolean param) { + + // setting primitive attribute tracker to true + localIsLibraryTracker = true; + + this.localIsLibrary = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for PriorityID */ + protected int localPriorityID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityIDTracker = false; + + public boolean isPriorityIDSpecified() { + return localPriorityIDTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityID() { + return localPriorityID; + } + + /** + * Auto generated setter method + * + * @param param PriorityID + */ + public void setPriorityID(int param) { + + // setting primitive attribute tracker to true + localPriorityIDTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityID = param; + } + + /** field for WUSnapShot */ + protected java.lang.String localWUSnapShot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUSnapShotTracker = false; + + public boolean isWUSnapShotSpecified() { + return localWUSnapShotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWUSnapShot() { + return localWUSnapShot; + } + + /** + * Auto generated setter method + * + * @param param WUSnapShot + */ + public void setWUSnapShot(java.lang.String param) { + localWUSnapShotTracker = param != null; + + this.localWUSnapShot = param; + } + + /** field for CompileTime */ + protected java.lang.String localCompileTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompileTimeTracker = false; + + public boolean isCompileTimeSpecified() { + return localCompileTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCompileTime() { + return localCompileTime; + } + + /** + * Auto generated setter method + * + * @param param CompileTime + */ + public void setCompileTime(java.lang.String param) { + localCompileTimeTracker = param != null; + + this.localCompileTime = param; + } + + /** field for LibrariesUsed */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + localLibrariesUsed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLibrariesUsedTracker = false; + + public boolean isLibrariesUsedSpecified() { + return localLibrariesUsedTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getLibrariesUsed() { + return localLibrariesUsed; + } + + /** + * Auto generated setter method + * + * @param param LibrariesUsed + */ + public void setLibrariesUsed( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localLibrariesUsedTracker = param != null; + + this.localLibrariesUsed = param; + } + + /** field for CountGraphs */ + protected int localCountGraphs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountGraphsTracker = false; + + public boolean isCountGraphsSpecified() { + return localCountGraphsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCountGraphs() { + return localCountGraphs; + } + + /** + * Auto generated setter method + * + * @param param CountGraphs + */ + public void setCountGraphs(int param) { + + // setting primitive attribute tracker to true + localCountGraphsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCountGraphs = param; + } + + /** field for ResourceURLCount */ + protected int localResourceURLCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResourceURLCountTracker = false; + + public boolean isResourceURLCountSpecified() { + return localResourceURLCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getResourceURLCount() { + return localResourceURLCount; + } + + /** + * Auto generated setter method + * + * @param param ResourceURLCount + */ + public void setResourceURLCount(int param) { + + // setting primitive attribute tracker to true + localResourceURLCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localResourceURLCount = param; + } + + /** field for WsEclAddresses */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 + localWsEclAddresses; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWsEclAddressesTracker = false; + + public boolean isWsEclAddressesSpecified() { + return localWsEclAddressesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 + getWsEclAddresses() { + return localWsEclAddresses; + } + + /** + * Auto generated setter method + * + * @param param WsEclAddresses + */ + public void setWsEclAddresses( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 param) { + localWsEclAddressesTracker = param != null; + + this.localWsEclAddresses = param; + } + + /** field for WUGraphs */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph localWUGraphs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUGraphsTracker = false; + + public boolean isWUGraphsSpecified() { + return localWUGraphsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph getWUGraphs() { + return localWUGraphs; + } + + /** + * Auto generated setter method + * + * @param param WUGraphs + */ + public void setWUGraphs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph param) { + localWUGraphsTracker = param != null; + + this.localWUGraphs = param; + } + + /** field for WUTimers */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer localWUTimers; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUTimersTracker = false; + + public boolean isWUTimersSpecified() { + return localWUTimersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer getWUTimers() { + return localWUTimers; + } + + /** + * Auto generated setter method + * + * @param param WUTimers + */ + public void setWUTimers( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer param) { + localWUTimersTracker = param != null; + + this.localWUTimers = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryDetailsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryDetailsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localQueryNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryName", xmlWriter); + + if (localQueryName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryName); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDllTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Dll", xmlWriter); + + if (localDll == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Dll cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDll); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Suspended", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); + } + + xmlWriter.writeEndElement(); + } + if (localActivatedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Activated", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Activated cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivated)); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendedByTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SuspendedBy", xmlWriter); + + if (localSuspendedBy == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SuspendedBy cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSuspendedBy); + } + + xmlWriter.writeEndElement(); + } + if (localClustersTracker) { + if (localClusters == null) { + throw new org.apache.axis2.databinding.ADBException("Clusters cannot be null!!"); + } + localClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters"), xmlWriter); + } + if (localPublishedByTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PublishedBy", xmlWriter); + + if (localPublishedBy == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PublishedBy cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPublishedBy); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalFilesTracker) { + if (localLogicalFiles == null) { + throw new org.apache.axis2.databinding.ADBException("LogicalFiles cannot be null!!"); + } + localLogicalFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFiles"), + xmlWriter); + } + if (localSuperFilesTracker) { + if (localSuperFiles == null) { + throw new org.apache.axis2.databinding.ADBException("SuperFiles cannot be null!!"); + } + localSuperFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles"), xmlWriter); + } + if (localIsLibraryTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IsLibrary", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IsLibrary cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsLibrary)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityID", xmlWriter); + + if (localPriorityID == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityID cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityID)); + } + + xmlWriter.writeEndElement(); + } + if (localWUSnapShotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WUSnapShot", xmlWriter); + + if (localWUSnapShot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WUSnapShot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWUSnapShot); + } + + xmlWriter.writeEndElement(); + } + if (localCompileTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CompileTime", xmlWriter); + + if (localCompileTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("CompileTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCompileTime); + } + + xmlWriter.writeEndElement(); + } + if (localLibrariesUsedTracker) { + if (localLibrariesUsed == null) { + throw new org.apache.axis2.databinding.ADBException("LibrariesUsed cannot be null!!"); + } + localLibrariesUsed.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LibrariesUsed"), + xmlWriter); + } + if (localCountGraphsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CountGraphs", xmlWriter); + + if (localCountGraphs == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CountGraphs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCountGraphs)); + } + + xmlWriter.writeEndElement(); + } + if (localResourceURLCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResourceURLCount", xmlWriter); + + if (localResourceURLCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ResourceURLCount cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localResourceURLCount)); + } + + xmlWriter.writeEndElement(); + } + if (localWsEclAddressesTracker) { + if (localWsEclAddresses == null) { + throw new org.apache.axis2.databinding.ADBException("WsEclAddresses cannot be null!!"); + } + localWsEclAddresses.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WsEclAddresses"), + xmlWriter); + } + if (localWUGraphsTracker) { + if (localWUGraphs == null) { + throw new org.apache.axis2.databinding.ADBException("WUGraphs cannot be null!!"); + } + localWUGraphs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphs"), xmlWriter); + } + if (localWUTimersTracker) { + if (localWUTimers == null) { + throw new org.apache.axis2.databinding.ADBException("WUTimers cannot be null!!"); + } + localWUTimers.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUTimers"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryDetailsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryDetailsResponse object = new WUQueryDetailsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryDetailsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryDetailsResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Dll") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Dll" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDll( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Suspended" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspended( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activated") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Activated" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActivated( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuspendedBy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SuspendedBy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspendedBy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters") + .equals(reader.getName())) { + + object.setClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfClusterQueryState + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PublishedBy") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PublishedBy" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPublishedBy( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFiles") + .equals(reader.getName())) { + + object.setLogicalFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles") + .equals(reader.getName())) { + + object.setSuperFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type3.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsLibrary") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IsLibrary" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIsLibrary( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSnapShot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUSnapShot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWUSnapShot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CompileTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CompileTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompileTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LibrariesUsed") + .equals(reader.getName())) { + + object.setLibrariesUsed( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CountGraphs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CountGraphs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCountGraphs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ResourceURLCount") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResourceURLCount" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResourceURLCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WsEclAddresses") + .equals(reader.getName())) { + + object.setWsEclAddresses( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsEclAddresses_type0 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphs") + .equals(reader.getName())) { + + object.setWUGraphs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraph.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUTimers") + .equals(reader.getName())) { + + object.setWUTimers( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLTimer.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFiles.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFiles.java index 529c1fa64..c093303f8 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFiles.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFiles.java @@ -1,461 +1,461 @@ -/** - * WUQueryFiles.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryFiles bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryFiles implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryFiles", "ns1"); - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryFiles", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUQueryFiles", xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryFiles parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryFiles object = new WUQueryFiles(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryFiles".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryFiles) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryFiles.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryFiles bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryFiles implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryFiles", "ns1"); + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryFiles", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUQueryFiles", xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryFiles parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryFiles object = new WUQueryFiles(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryFiles".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryFiles) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFilesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFilesResponse.java index f5bc15267..759dc2813 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFilesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFilesResponse.java @@ -1,539 +1,539 @@ -/** - * WUQueryFilesResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryFilesResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryFilesResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryFilesResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Files */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2 localFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilesTracker = false; - - public boolean isFilesSpecified() { - return localFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2 getFiles() { - return localFiles; - } - - /** - * Auto generated setter method - * - * @param param Files - */ - public void setFiles(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2 param) { - localFilesTracker = param != null; - - this.localFiles = param; - } - - /** field for SuperFiles */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1 localSuperFiles; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuperFilesTracker = false; - - public boolean isSuperFilesSpecified() { - return localSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1 getSuperFiles() { - return localSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param SuperFiles - */ - public void setSuperFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1 param) { - localSuperFilesTracker = param != null; - - this.localSuperFiles = param; - } - - /** field for Queries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0 localQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueriesTracker = false; - - public boolean isQueriesSpecified() { - return localQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0 getQueries() { - return localQueries; - } - - /** - * Auto generated setter method - * - * @param param Queries - */ - public void setQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0 param) { - localQueriesTracker = param != null; - - this.localQueries = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryFilesResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryFilesResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localFilesTracker) { - if (localFiles == null) { - throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); - } - localFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files"), xmlWriter); - } - if (localSuperFilesTracker) { - if (localSuperFiles == null) { - throw new org.apache.axis2.databinding.ADBException("SuperFiles cannot be null!!"); - } - localSuperFiles.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles"), xmlWriter); - } - if (localQueriesTracker) { - if (localQueries == null) { - throw new org.apache.axis2.databinding.ADBException("Queries cannot be null!!"); - } - localQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryFilesResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryFilesResponse object = new WUQueryFilesResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryFilesResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryFilesResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files") - .equals(reader.getName())) { - - object.setFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles") - .equals(reader.getName())) { - - object.setSuperFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries") - .equals(reader.getName())) { - - object.setQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryFilesResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryFilesResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryFilesResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryFilesResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Files */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2 localFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilesTracker = false; + + public boolean isFilesSpecified() { + return localFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2 getFiles() { + return localFiles; + } + + /** + * Auto generated setter method + * + * @param param Files + */ + public void setFiles(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2 param) { + localFilesTracker = param != null; + + this.localFiles = param; + } + + /** field for SuperFiles */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1 localSuperFiles; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuperFilesTracker = false; + + public boolean isSuperFilesSpecified() { + return localSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1 getSuperFiles() { + return localSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param SuperFiles + */ + public void setSuperFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1 param) { + localSuperFilesTracker = param != null; + + this.localSuperFiles = param; + } + + /** field for Queries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0 localQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueriesTracker = false; + + public boolean isQueriesSpecified() { + return localQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0 getQueries() { + return localQueries; + } + + /** + * Auto generated setter method + * + * @param param Queries + */ + public void setQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0 param) { + localQueriesTracker = param != null; + + this.localQueries = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryFilesResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryFilesResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localFilesTracker) { + if (localFiles == null) { + throw new org.apache.axis2.databinding.ADBException("Files cannot be null!!"); + } + localFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files"), xmlWriter); + } + if (localSuperFilesTracker) { + if (localSuperFiles == null) { + throw new org.apache.axis2.databinding.ADBException("SuperFiles cannot be null!!"); + } + localSuperFiles.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles"), xmlWriter); + } + if (localQueriesTracker) { + if (localQueries == null) { + throw new org.apache.axis2.databinding.ADBException("Queries cannot be null!!"); + } + localQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryFilesResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryFilesResponse object = new WUQueryFilesResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryFilesResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryFilesResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Files") + .equals(reader.getName())) { + + object.setFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Files_type2.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SuperFiles") + .equals(reader.getName())) { + + object.setSuperFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.SuperFiles_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries") + .equals(reader.getName())) { + + object.setQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFilterSuspendedType.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFilterSuspendedType.java index cd3f1f00a..fee577816 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFilterSuspendedType.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryFilterSuspendedType.java @@ -1,438 +1,438 @@ -/** - * WUQueryFilterSuspendedType.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryFilterSuspendedType bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryFilterSuspendedType implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryFilterSuspendedType", "ns1"); - - /** field for WUQueryFilterSuspendedType */ - protected java.lang.String localWUQueryFilterSuspendedType; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected WUQueryFilterSuspendedType(java.lang.String value, boolean isRegisterValue) { - localWUQueryFilterSuspendedType = value; - if (isRegisterValue) { - - _table_.put(localWUQueryFilterSuspendedType, this); - } - } - - public static final java.lang.String _value1 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("All queries"); - - public static final java.lang.String _value2 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Not suspended"); - - public static final java.lang.String _value3 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspended"); - - public static final java.lang.String _value4 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspended by user"); - - public static final java.lang.String _value5 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspended by first node"); - - public static final java.lang.String _value6 = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspended by any node"); - - public static final WUQueryFilterSuspendedType value1 = - new WUQueryFilterSuspendedType(_value1, true); - - public static final WUQueryFilterSuspendedType value2 = - new WUQueryFilterSuspendedType(_value2, true); - - public static final WUQueryFilterSuspendedType value3 = - new WUQueryFilterSuspendedType(_value3, true); - - public static final WUQueryFilterSuspendedType value4 = - new WUQueryFilterSuspendedType(_value4, true); - - public static final WUQueryFilterSuspendedType value5 = - new WUQueryFilterSuspendedType(_value5, true); - - public static final WUQueryFilterSuspendedType value6 = - new WUQueryFilterSuspendedType(_value6, true); - - public java.lang.String getValue() { - return localWUQueryFilterSuspendedType; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localWUQueryFilterSuspendedType.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryFilterSuspendedType", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryFilterSuspendedType", - xmlWriter); - } - } - - if (localWUQueryFilterSuspendedType == null) { - - throw new org.apache.axis2.databinding.ADBException( - "WUQueryFilterSuspendedType cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localWUQueryFilterSuspendedType); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static WUQueryFilterSuspendedType fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - WUQueryFilterSuspendedType enumeration = (WUQueryFilterSuspendedType) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static WUQueryFilterSuspendedType fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static WUQueryFilterSuspendedType fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return WUQueryFilterSuspendedType.Factory.fromString(content, namespaceUri); - } else { - return WUQueryFilterSuspendedType.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryFilterSuspendedType parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryFilterSuspendedType object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUQueryFilterSuspendedType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = WUQueryFilterSuspendedType.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = WUQueryFilterSuspendedType.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryFilterSuspendedType.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryFilterSuspendedType bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryFilterSuspendedType implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryFilterSuspendedType", "ns1"); + + /** field for WUQueryFilterSuspendedType */ + protected java.lang.String localWUQueryFilterSuspendedType; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected WUQueryFilterSuspendedType(java.lang.String value, boolean isRegisterValue) { + localWUQueryFilterSuspendedType = value; + if (isRegisterValue) { + + _table_.put(localWUQueryFilterSuspendedType, this); + } + } + + public static final java.lang.String _value1 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("All queries"); + + public static final java.lang.String _value2 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Not suspended"); + + public static final java.lang.String _value3 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspended"); + + public static final java.lang.String _value4 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspended by user"); + + public static final java.lang.String _value5 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspended by first node"); + + public static final java.lang.String _value6 = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Suspended by any node"); + + public static final WUQueryFilterSuspendedType value1 = + new WUQueryFilterSuspendedType(_value1, true); + + public static final WUQueryFilterSuspendedType value2 = + new WUQueryFilterSuspendedType(_value2, true); + + public static final WUQueryFilterSuspendedType value3 = + new WUQueryFilterSuspendedType(_value3, true); + + public static final WUQueryFilterSuspendedType value4 = + new WUQueryFilterSuspendedType(_value4, true); + + public static final WUQueryFilterSuspendedType value5 = + new WUQueryFilterSuspendedType(_value5, true); + + public static final WUQueryFilterSuspendedType value6 = + new WUQueryFilterSuspendedType(_value6, true); + + public java.lang.String getValue() { + return localWUQueryFilterSuspendedType; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localWUQueryFilterSuspendedType.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryFilterSuspendedType", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryFilterSuspendedType", + xmlWriter); + } + } + + if (localWUQueryFilterSuspendedType == null) { + + throw new org.apache.axis2.databinding.ADBException( + "WUQueryFilterSuspendedType cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localWUQueryFilterSuspendedType); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static WUQueryFilterSuspendedType fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + WUQueryFilterSuspendedType enumeration = (WUQueryFilterSuspendedType) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static WUQueryFilterSuspendedType fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static WUQueryFilterSuspendedType fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return WUQueryFilterSuspendedType.Factory.fromString(content, namespaceUri); + } else { + return WUQueryFilterSuspendedType.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryFilterSuspendedType parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryFilterSuspendedType object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUQueryFilterSuspendedType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = WUQueryFilterSuspendedType.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = WUQueryFilterSuspendedType.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetGraph.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetGraph.java index 4d924704e..05e7e4661 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetGraph.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetGraph.java @@ -1,601 +1,601 @@ -/** - * WUQueryGetGraph.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryGetGraph bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryGetGraph implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryGetGraph", "ns1"); - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for GraphName */ - protected java.lang.String localGraphName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphNameTracker = false; - - public boolean isGraphNameSpecified() { - return localGraphNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getGraphName() { - return localGraphName; - } - - /** - * Auto generated setter method - * - * @param param GraphName - */ - public void setGraphName(java.lang.String param) { - localGraphNameTracker = param != null; - - this.localGraphName = param; - } - - /** field for SubGraphId */ - protected java.lang.String localSubGraphId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSubGraphIdTracker = false; - - public boolean isSubGraphIdSpecified() { - return localSubGraphIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSubGraphId() { - return localSubGraphId; - } - - /** - * Auto generated setter method - * - * @param param SubGraphId - */ - public void setSubGraphId(java.lang.String param) { - localSubGraphIdTracker = param != null; - - this.localSubGraphId = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryGetGraph", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryGetGraph", - xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localGraphNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "GraphName", xmlWriter); - - if (localGraphName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localGraphName); - } - - xmlWriter.writeEndElement(); - } - if (localSubGraphIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SubGraphId", xmlWriter); - - if (localSubGraphId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSubGraphId); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryGetGraph parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryGetGraph object = new WUQueryGetGraph(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryGetGraph".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryGetGraph) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "GraphName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setGraphName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SubGraphId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSubGraphId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryGetGraph.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryGetGraph bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryGetGraph implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryGetGraph", "ns1"); + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for GraphName */ + protected java.lang.String localGraphName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphNameTracker = false; + + public boolean isGraphNameSpecified() { + return localGraphNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getGraphName() { + return localGraphName; + } + + /** + * Auto generated setter method + * + * @param param GraphName + */ + public void setGraphName(java.lang.String param) { + localGraphNameTracker = param != null; + + this.localGraphName = param; + } + + /** field for SubGraphId */ + protected java.lang.String localSubGraphId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSubGraphIdTracker = false; + + public boolean isSubGraphIdSpecified() { + return localSubGraphIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSubGraphId() { + return localSubGraphId; + } + + /** + * Auto generated setter method + * + * @param param SubGraphId + */ + public void setSubGraphId(java.lang.String param) { + localSubGraphIdTracker = param != null; + + this.localSubGraphId = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryGetGraph", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryGetGraph", + xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localGraphNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "GraphName", xmlWriter); + + if (localGraphName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("GraphName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localGraphName); + } + + xmlWriter.writeEndElement(); + } + if (localSubGraphIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SubGraphId", xmlWriter); + + if (localSubGraphId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SubGraphId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSubGraphId); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryGetGraph parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryGetGraph object = new WUQueryGetGraph(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryGetGraph".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryGetGraph) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GraphName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "GraphName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setGraphName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SubGraphId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SubGraphId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSubGraphId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetGraphResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetGraphResponse.java index 77e36261c..7aedf6d00 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetGraphResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetGraphResponse.java @@ -1,436 +1,436 @@ -/** - * WUQueryGetGraphResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryGetGraphResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryGetGraphResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryGetGraphResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Graphs */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx localGraphs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localGraphsTracker = false; - - public boolean isGraphsSpecified() { - return localGraphsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx getGraphs() { - return localGraphs; - } - - /** - * Auto generated setter method - * - * @param param Graphs - */ - public void setGraphs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx param) { - localGraphsTracker = param != null; - - this.localGraphs = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryGetGraphResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryGetGraphResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localGraphsTracker) { - if (localGraphs == null) { - throw new org.apache.axis2.databinding.ADBException("Graphs cannot be null!!"); - } - localGraphs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryGetGraphResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryGetGraphResponse object = new WUQueryGetGraphResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryGetGraphResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryGetGraphResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs") - .equals(reader.getName())) { - - object.setGraphs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryGetGraphResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryGetGraphResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryGetGraphResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryGetGraphResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Graphs */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx localGraphs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localGraphsTracker = false; + + public boolean isGraphsSpecified() { + return localGraphsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx getGraphs() { + return localGraphs; + } + + /** + * Auto generated setter method + * + * @param param Graphs + */ + public void setGraphs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx param) { + localGraphsTracker = param != null; + + this.localGraphs = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryGetGraphResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryGetGraphResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localGraphsTracker) { + if (localGraphs == null) { + throw new org.apache.axis2.databinding.ADBException("Graphs cannot be null!!"); + } + localGraphs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryGetGraphResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryGetGraphResponse object = new WUQueryGetGraphResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryGetGraphResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryGetGraphResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Graphs") + .equals(reader.getName())) { + + object.setGraphs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLGraphEx.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetSummaryStats.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetSummaryStats.java index 960b96302..df4471b5d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetSummaryStats.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetSummaryStats.java @@ -1,673 +1,673 @@ -/** - * WUQueryGetSummaryStats.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryGetSummaryStats bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryGetSummaryStats implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryGetSummaryStats", "ns1"); - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for FromTime */ - protected java.lang.String localFromTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFromTimeTracker = false; - - public boolean isFromTimeSpecified() { - return localFromTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFromTime() { - return localFromTime; - } - - /** - * Auto generated setter method - * - * @param param FromTime - */ - public void setFromTime(java.lang.String param) { - localFromTimeTracker = param != null; - - this.localFromTime = param; - } - - /** field for ToTime */ - protected java.lang.String localToTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localToTimeTracker = false; - - public boolean isToTimeSpecified() { - return localToTimeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getToTime() { - return localToTime; - } - - /** - * Auto generated setter method - * - * @param param ToTime - */ - public void setToTime(java.lang.String param) { - localToTimeTracker = param != null; - - this.localToTime = param; - } - - /** field for IncludeRawStats */ - protected boolean localIncludeRawStats = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeRawStatsTracker = false; - - public boolean isIncludeRawStatsSpecified() { - return localIncludeRawStatsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeRawStats() { - return localIncludeRawStats; - } - - /** - * Auto generated setter method - * - * @param param IncludeRawStats - */ - public void setIncludeRawStats(boolean param) { - - // setting primitive attribute tracker to true - localIncludeRawStatsTracker = true; - - this.localIncludeRawStats = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryGetSummaryStats", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryGetSummaryStats", - xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localFromTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "FromTime", xmlWriter); - - if (localFromTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("FromTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFromTime); - } - - xmlWriter.writeEndElement(); - } - if (localToTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ToTime", xmlWriter); - - if (localToTime == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ToTime cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localToTime); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeRawStatsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeRawStats", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeRawStats cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeRawStats)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryGetSummaryStats parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryGetSummaryStats object = new WUQueryGetSummaryStats(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryGetSummaryStats".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryGetSummaryStats) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FromTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "FromTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFromTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ToTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ToTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setToTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeRawStats") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeRawStats" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeRawStats( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryGetSummaryStats.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryGetSummaryStats bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryGetSummaryStats implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryGetSummaryStats", "ns1"); + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for FromTime */ + protected java.lang.String localFromTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFromTimeTracker = false; + + public boolean isFromTimeSpecified() { + return localFromTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFromTime() { + return localFromTime; + } + + /** + * Auto generated setter method + * + * @param param FromTime + */ + public void setFromTime(java.lang.String param) { + localFromTimeTracker = param != null; + + this.localFromTime = param; + } + + /** field for ToTime */ + protected java.lang.String localToTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localToTimeTracker = false; + + public boolean isToTimeSpecified() { + return localToTimeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getToTime() { + return localToTime; + } + + /** + * Auto generated setter method + * + * @param param ToTime + */ + public void setToTime(java.lang.String param) { + localToTimeTracker = param != null; + + this.localToTime = param; + } + + /** field for IncludeRawStats */ + protected boolean localIncludeRawStats = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeRawStatsTracker = false; + + public boolean isIncludeRawStatsSpecified() { + return localIncludeRawStatsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeRawStats() { + return localIncludeRawStats; + } + + /** + * Auto generated setter method + * + * @param param IncludeRawStats + */ + public void setIncludeRawStats(boolean param) { + + // setting primitive attribute tracker to true + localIncludeRawStatsTracker = true; + + this.localIncludeRawStats = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryGetSummaryStats", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryGetSummaryStats", + xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localFromTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "FromTime", xmlWriter); + + if (localFromTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("FromTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFromTime); + } + + xmlWriter.writeEndElement(); + } + if (localToTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ToTime", xmlWriter); + + if (localToTime == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ToTime cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localToTime); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeRawStatsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeRawStats", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeRawStats cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeRawStats)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryGetSummaryStats parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryGetSummaryStats object = new WUQueryGetSummaryStats(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryGetSummaryStats".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryGetSummaryStats) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FromTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "FromTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFromTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ToTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ToTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setToTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeRawStats") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeRawStats" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeRawStats( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetSummaryStatsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetSummaryStatsResponse.java index 7415716b1..6023ef752 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetSummaryStatsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryGetSummaryStatsResponse.java @@ -1,493 +1,493 @@ -/** - * WUQueryGetSummaryStatsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryGetSummaryStatsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryGetSummaryStatsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryGetSummaryStatsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for StatsList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats - localStatsList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStatsListTracker = false; - - public boolean isStatsListSpecified() { - return localStatsListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats - getStatsList() { - return localStatsList; - } - - /** - * Auto generated setter method - * - * @param param StatsList - */ - public void setStatsList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats param) { - localStatsListTracker = param != null; - - this.localStatsList = param; - } - - /** field for QueryStatsList */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats - localQueryStatsList; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryStatsListTracker = false; - - public boolean isQueryStatsListSpecified() { - return localQueryStatsListTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats - getQueryStatsList() { - return localQueryStatsList; - } - - /** - * Auto generated setter method - * - * @param param QueryStatsList - */ - public void setQueryStatsList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats param) { - localQueryStatsListTracker = param != null; - - this.localQueryStatsList = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryGetSummaryStatsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryGetSummaryStatsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localStatsListTracker) { - if (localStatsList == null) { - throw new org.apache.axis2.databinding.ADBException("StatsList cannot be null!!"); - } - localStatsList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StatsList"), xmlWriter); - } - if (localQueryStatsListTracker) { - if (localQueryStatsList == null) { - throw new org.apache.axis2.databinding.ADBException("QueryStatsList cannot be null!!"); - } - localQueryStatsList.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsList"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryGetSummaryStatsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryGetSummaryStatsResponse object = new WUQueryGetSummaryStatsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryGetSummaryStatsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryGetSummaryStatsResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StatsList") - .equals(reader.getName())) { - - object.setStatsList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsList") - .equals(reader.getName())) { - - object.setQueryStatsList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryGetSummaryStatsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryGetSummaryStatsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryGetSummaryStatsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryGetSummaryStatsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for StatsList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats + localStatsList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStatsListTracker = false; + + public boolean isStatsListSpecified() { + return localStatsListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats + getStatsList() { + return localStatsList; + } + + /** + * Auto generated setter method + * + * @param param StatsList + */ + public void setStatsList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats param) { + localStatsListTracker = param != null; + + this.localStatsList = param; + } + + /** field for QueryStatsList */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats + localQueryStatsList; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryStatsListTracker = false; + + public boolean isQueryStatsListSpecified() { + return localQueryStatsListTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats + getQueryStatsList() { + return localQueryStatsList; + } + + /** + * Auto generated setter method + * + * @param param QueryStatsList + */ + public void setQueryStatsList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats param) { + localQueryStatsListTracker = param != null; + + this.localQueryStatsList = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryGetSummaryStatsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryGetSummaryStatsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localStatsListTracker) { + if (localStatsList == null) { + throw new org.apache.axis2.databinding.ADBException("StatsList cannot be null!!"); + } + localStatsList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StatsList"), xmlWriter); + } + if (localQueryStatsListTracker) { + if (localQueryStatsList == null) { + throw new org.apache.axis2.databinding.ADBException("QueryStatsList cannot be null!!"); + } + localQueryStatsList.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsList"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryGetSummaryStatsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryGetSummaryStatsResponse object = new WUQueryGetSummaryStatsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryGetSummaryStatsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryGetSummaryStatsResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StatsList") + .equals(reader.getName())) { + + object.setStatsList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySummaryStats + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryStatsList") + .equals(reader.getName())) { + + object.setQueryStatsList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEndpointQueryStats + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryResponse.java index 514d105e7..46f9031da 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQueryResponse.java @@ -1,2291 +1,2292 @@ -/** - * WUQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Type */ - protected java.lang.String localType = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTypeTracker = false; - - public boolean isTypeSpecified() { - return localTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getType() { - return localType; - } - - /** - * Auto generated setter method - * - * @param param Type - */ - public void setType(java.lang.String param) { - localTypeTracker = param != null; - - this.localType = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for RoxieCluster */ - protected java.lang.String localRoxieCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRoxieClusterTracker = false; - - public boolean isRoxieClusterSpecified() { - return localRoxieClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRoxieCluster() { - return localRoxieCluster; - } - - /** - * Auto generated setter method - * - * @param param RoxieCluster - */ - public void setRoxieCluster(java.lang.String param) { - localRoxieClusterTracker = param != null; - - this.localRoxieCluster = param; - } - - /** field for Owner */ - protected java.lang.String localOwner; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for StartDate */ - protected java.lang.String localStartDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartDateTracker = false; - - public boolean isStartDateSpecified() { - return localStartDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getStartDate() { - return localStartDate; - } - - /** - * Auto generated setter method - * - * @param param StartDate - */ - public void setStartDate(java.lang.String param) { - localStartDateTracker = param != null; - - this.localStartDate = param; - } - - /** field for EndDate */ - protected java.lang.String localEndDate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEndDateTracker = false; - - public boolean isEndDateSpecified() { - return localEndDateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEndDate() { - return localEndDate; - } - - /** - * Auto generated setter method - * - * @param param EndDate - */ - public void setEndDate(java.lang.String param) { - localEndDateTracker = param != null; - - this.localEndDate = param; - } - - /** field for ECL */ - protected java.lang.String localECL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLTracker = false; - - public boolean isECLSpecified() { - return localECLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getECL() { - return localECL; - } - - /** - * Auto generated setter method - * - * @param param ECL - */ - public void setECL(java.lang.String param) { - localECLTracker = param != null; - - this.localECL = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** field for LogicalFile */ - protected java.lang.String localLogicalFile; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalFileTracker = false; - - public boolean isLogicalFileSpecified() { - return localLogicalFileTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalFile() { - return localLogicalFile; - } - - /** - * Auto generated setter method - * - * @param param LogicalFile - */ - public void setLogicalFile(java.lang.String param) { - localLogicalFileTracker = param != null; - - this.localLogicalFile = param; - } - - /** field for LogicalFileSearchType */ - protected java.lang.String localLogicalFileSearchType = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalFileSearchTypeTracker = false; - - public boolean isLogicalFileSearchTypeSpecified() { - return localLogicalFileSearchTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalFileSearchType() { - return localLogicalFileSearchType; - } - - /** - * Auto generated setter method - * - * @param param LogicalFileSearchType - */ - public void setLogicalFileSearchType(java.lang.String param) { - localLogicalFileSearchTypeTracker = param != null; - - this.localLogicalFileSearchType = param; - } - - /** field for Current */ - protected java.lang.String localCurrent; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCurrentTracker = false; - - public boolean isCurrentSpecified() { - return localCurrentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCurrent() { - return localCurrent; - } - - /** - * Auto generated setter method - * - * @param param Current - */ - public void setCurrent(java.lang.String param) { - localCurrentTracker = param != null; - - this.localCurrent = param; - } - - /** field for Next */ - protected java.lang.String localNext; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNextTracker = false; - - public boolean isNextSpecified() { - return localNextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getNext() { - return localNext; - } - - /** - * Auto generated setter method - * - * @param param Next - */ - public void setNext(java.lang.String param) { - localNextTracker = param != null; - - this.localNext = param; - } - - /** field for Count */ - protected int localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** field for PageSize */ - protected long localPageSize; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageSizeTracker = false; - - public boolean isPageSizeSpecified() { - return localPageSizeTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageSize() { - return localPageSize; - } - - /** - * Auto generated setter method - * - * @param param PageSize - */ - public void setPageSize(long param) { - - // setting primitive attribute tracker to true - localPageSizeTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageSize = param; - } - - /** field for PrevPage */ - protected long localPrevPage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPrevPageTracker = false; - - public boolean isPrevPageSpecified() { - return localPrevPageTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPrevPage() { - return localPrevPage; - } - - /** - * Auto generated setter method - * - * @param param PrevPage - */ - public void setPrevPage(long param) { - - // setting primitive attribute tracker to true - localPrevPageTracker = param != java.lang.Long.MIN_VALUE; - - this.localPrevPage = param; - } - - /** field for NextPage */ - protected long localNextPage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNextPageTracker = false; - - public boolean isNextPageSpecified() { - return localNextPageTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getNextPage() { - return localNextPage; - } - - /** - * Auto generated setter method - * - * @param param NextPage - */ - public void setNextPage(long param) { - - // setting primitive attribute tracker to true - localNextPageTracker = param != java.lang.Long.MIN_VALUE; - - this.localNextPage = param; - } - - /** field for LastPage */ - protected long localLastPage = - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLastPageTracker = false; - - public boolean isLastPageSpecified() { - return localLastPageTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getLastPage() { - return localLastPage; - } - - /** - * Auto generated setter method - * - * @param param LastPage - */ - public void setLastPage(long param) { - - // setting primitive attribute tracker to true - localLastPageTracker = param != java.lang.Long.MIN_VALUE; - - this.localLastPage = param; - } - - /** field for NumWUs */ - protected int localNumWUs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNumWUsTracker = false; - - public boolean isNumWUsSpecified() { - return localNumWUsTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getNumWUs() { - return localNumWUs; - } - - /** - * Auto generated setter method - * - * @param param NumWUs - */ - public void setNumWUs(int param) { - - // setting primitive attribute tracker to true - localNumWUsTracker = param != java.lang.Integer.MIN_VALUE; - - this.localNumWUs = param; - } - - /** field for First */ - protected boolean localFirst = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFirstTracker = false; - - public boolean isFirstSpecified() { - return localFirstTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getFirst() { - return localFirst; - } - - /** - * Auto generated setter method - * - * @param param First - */ - public void setFirst(boolean param) { - - // setting primitive attribute tracker to true - localFirstTracker = true; - - this.localFirst = param; - } - - /** field for PageStartFrom */ - protected long localPageStartFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageStartFromTracker = false; - - public boolean isPageStartFromSpecified() { - return localPageStartFromTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageStartFrom() { - return localPageStartFrom; - } - - /** - * Auto generated setter method - * - * @param param PageStartFrom - */ - public void setPageStartFrom(long param) { - - // setting primitive attribute tracker to true - localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageStartFrom = param; - } - - /** field for PageEndAt */ - protected long localPageEndAt; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPageEndAtTracker = false; - - public boolean isPageEndAtSpecified() { - return localPageEndAtTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getPageEndAt() { - return localPageEndAt; - } - - /** - * Auto generated setter method - * - * @param param PageEndAt - */ - public void setPageEndAt(long param) { - - // setting primitive attribute tracker to true - localPageEndAtTracker = param != java.lang.Long.MIN_VALUE; - - this.localPageEndAt = param; - } - - /** field for Sortby */ - protected java.lang.String localSortby; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSortbyTracker = false; - - public boolean isSortbySpecified() { - return localSortbyTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSortby() { - return localSortby; - } - - /** - * Auto generated setter method - * - * @param param Sortby - */ - public void setSortby(java.lang.String param) { - localSortbyTracker = param != null; - - this.localSortby = param; - } - - /** field for Descending */ - protected boolean localDescending = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescendingTracker = false; - - public boolean isDescendingSpecified() { - return localDescendingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDescending() { - return localDescending; - } - - /** - * Auto generated setter method - * - * @param param Descending - */ - public void setDescending(boolean param) { - - // setting primitive attribute tracker to true - localDescendingTracker = true; - - this.localDescending = param; - } - - /** field for BasicQuery */ - protected java.lang.String localBasicQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBasicQueryTracker = false; - - public boolean isBasicQuerySpecified() { - return localBasicQueryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getBasicQuery() { - return localBasicQuery; - } - - /** - * Auto generated setter method - * - * @param param BasicQuery - */ - public void setBasicQuery(java.lang.String param) { - localBasicQueryTracker = param != null; - - this.localBasicQuery = param; - } - - /** field for Filters */ - protected java.lang.String localFilters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFiltersTracker = false; - - public boolean isFiltersSpecified() { - return localFiltersTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFilters() { - return localFilters; - } - - /** - * Auto generated setter method - * - * @param param Filters - */ - public void setFilters(java.lang.String param) { - localFiltersTracker = param != null; - - this.localFilters = param; - } - - /** field for CacheHint */ - protected long localCacheHint; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCacheHintTracker = false; - - public boolean isCacheHintSpecified() { - return localCacheHintTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCacheHint() { - return localCacheHint; - } - - /** - * Auto generated setter method - * - * @param param CacheHint - */ - public void setCacheHint(long param) { - - // setting primitive attribute tracker to true - localCacheHintTracker = param != java.lang.Long.MIN_VALUE; - - this.localCacheHint = param; - } - - /** field for Workunits */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit - localWorkunits; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitsTracker = false; - - public boolean isWorkunitsSpecified() { - return localWorkunitsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit getWorkunits() { - return localWorkunits; - } - - /** - * Auto generated setter method - * - * @param param Workunits - */ - public void setWorkunits( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit param) { - localWorkunitsTracker = param != null; - - this.localWorkunits = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Type", xmlWriter); - - if (localType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localType); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localRoxieClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RoxieCluster", xmlWriter); - - if (localRoxieCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RoxieCluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRoxieCluster); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localStartDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StartDate", xmlWriter); - - if (localStartDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localStartDate); - } - - xmlWriter.writeEndElement(); - } - if (localEndDateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EndDate", xmlWriter); - - if (localEndDate == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEndDate); - } - - xmlWriter.writeEndElement(); - } - if (localECLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ECL", xmlWriter); - - if (localECL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localECL); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalFileTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalFile", xmlWriter); - - if (localLogicalFile == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalFile cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalFile); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalFileSearchTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalFileSearchType", xmlWriter); - - if (localLogicalFileSearchType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException( - "LogicalFileSearchType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalFileSearchType); - } - - xmlWriter.writeEndElement(); - } - if (localCurrentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Current", xmlWriter); - - if (localCurrent == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Current cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCurrent); - } - - xmlWriter.writeEndElement(); - } - if (localNextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Next", xmlWriter); - - if (localNext == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Next cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localNext); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - if (localPageSizeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageSize", xmlWriter); - - if (localPageSize == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); - } - - xmlWriter.writeEndElement(); - } - if (localPrevPageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PrevPage", xmlWriter); - - if (localPrevPage == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PrevPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrevPage)); - } - - xmlWriter.writeEndElement(); - } - if (localNextPageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NextPage", xmlWriter); - - if (localNextPage == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NextPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNextPage)); - } - - xmlWriter.writeEndElement(); - } - if (localLastPageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LastPage", xmlWriter); - - if (localLastPage == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("LastPage cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastPage)); - } - - xmlWriter.writeEndElement(); - } - if (localNumWUsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NumWUs", xmlWriter); - - if (localNumWUs == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("NumWUs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumWUs)); - } - - xmlWriter.writeEndElement(); - } - if (localFirstTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "First", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("First cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFirst)); - } - - xmlWriter.writeEndElement(); - } - if (localPageStartFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageStartFrom", xmlWriter); - - if (localPageStartFrom == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localPageEndAtTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PageEndAt", xmlWriter); - - if (localPageEndAt == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PageEndAt cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageEndAt)); - } - - xmlWriter.writeEndElement(); - } - if (localSortbyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sortby", xmlWriter); - - if (localSortby == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSortby); - } - - xmlWriter.writeEndElement(); - } - if (localDescendingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Descending", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); - } - - xmlWriter.writeEndElement(); - } - if (localBasicQueryTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BasicQuery", xmlWriter); - - if (localBasicQuery == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("BasicQuery cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localBasicQuery); - } - - xmlWriter.writeEndElement(); - } - if (localFiltersTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Filters", xmlWriter); - - if (localFilters == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Filters cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFilters); - } - - xmlWriter.writeEndElement(); - } - if (localCacheHintTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CacheHint", xmlWriter); - - if (localCacheHint == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); - } - - xmlWriter.writeEndElement(); - } - if (localWorkunitsTracker) { - if (localWorkunits == null) { - throw new org.apache.axis2.databinding.ADBException("Workunits cannot be null!!"); - } - localWorkunits.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQueryResponse object = new WUQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Type" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RoxieCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RoxieCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRoxieCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StartDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStartDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EndDate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEndDate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFile") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalFile" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalFile( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "LogicalFileSearchType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalFileSearchType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalFileSearchType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Current") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Current" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCurrent( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Next") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Next" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNext( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageSize" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageSize( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PrevPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PrevPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPrevPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NextPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NextPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNextPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LastPage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LastPage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLastPage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumWUs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NumWUs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNumWUs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "First") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "First" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFirst( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageStartFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageStartFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageEndAt") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PageEndAt" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPageEndAt( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sortby" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSortby( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Descending" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescending( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BasicQuery") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BasicQuery" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBasicQuery( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filters") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Filters" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CacheHint" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCacheHint( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits") - .equals(reader.getName())) { - - object.setWorkunits( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Type */ + protected java.lang.String localType = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTypeTracker = false; + + public boolean isTypeSpecified() { + return localTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getType() { + return localType; + } + + /** + * Auto generated setter method + * + * @param param Type + */ + public void setType(java.lang.String param) { + localTypeTracker = param != null; + + this.localType = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for RoxieCluster */ + protected java.lang.String localRoxieCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRoxieClusterTracker = false; + + public boolean isRoxieClusterSpecified() { + return localRoxieClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRoxieCluster() { + return localRoxieCluster; + } + + /** + * Auto generated setter method + * + * @param param RoxieCluster + */ + public void setRoxieCluster(java.lang.String param) { + localRoxieClusterTracker = param != null; + + this.localRoxieCluster = param; + } + + /** field for Owner */ + protected java.lang.String localOwner; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for StartDate */ + protected java.lang.String localStartDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartDateTracker = false; + + public boolean isStartDateSpecified() { + return localStartDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getStartDate() { + return localStartDate; + } + + /** + * Auto generated setter method + * + * @param param StartDate + */ + public void setStartDate(java.lang.String param) { + localStartDateTracker = param != null; + + this.localStartDate = param; + } + + /** field for EndDate */ + protected java.lang.String localEndDate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEndDateTracker = false; + + public boolean isEndDateSpecified() { + return localEndDateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEndDate() { + return localEndDate; + } + + /** + * Auto generated setter method + * + * @param param EndDate + */ + public void setEndDate(java.lang.String param) { + localEndDateTracker = param != null; + + this.localEndDate = param; + } + + /** field for ECL */ + protected java.lang.String localECL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLTracker = false; + + public boolean isECLSpecified() { + return localECLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getECL() { + return localECL; + } + + /** + * Auto generated setter method + * + * @param param ECL + */ + public void setECL(java.lang.String param) { + localECLTracker = param != null; + + this.localECL = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** field for LogicalFile */ + protected java.lang.String localLogicalFile; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalFileTracker = false; + + public boolean isLogicalFileSpecified() { + return localLogicalFileTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalFile() { + return localLogicalFile; + } + + /** + * Auto generated setter method + * + * @param param LogicalFile + */ + public void setLogicalFile(java.lang.String param) { + localLogicalFileTracker = param != null; + + this.localLogicalFile = param; + } + + /** field for LogicalFileSearchType */ + protected java.lang.String localLogicalFileSearchType = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalFileSearchTypeTracker = false; + + public boolean isLogicalFileSearchTypeSpecified() { + return localLogicalFileSearchTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalFileSearchType() { + return localLogicalFileSearchType; + } + + /** + * Auto generated setter method + * + * @param param LogicalFileSearchType + */ + public void setLogicalFileSearchType(java.lang.String param) { + localLogicalFileSearchTypeTracker = param != null; + + this.localLogicalFileSearchType = param; + } + + /** field for Current */ + protected java.lang.String localCurrent; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCurrentTracker = false; + + public boolean isCurrentSpecified() { + return localCurrentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCurrent() { + return localCurrent; + } + + /** + * Auto generated setter method + * + * @param param Current + */ + public void setCurrent(java.lang.String param) { + localCurrentTracker = param != null; + + this.localCurrent = param; + } + + /** field for Next */ + protected java.lang.String localNext; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNextTracker = false; + + public boolean isNextSpecified() { + return localNextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNext() { + return localNext; + } + + /** + * Auto generated setter method + * + * @param param Next + */ + public void setNext(java.lang.String param) { + localNextTracker = param != null; + + this.localNext = param; + } + + /** field for Count */ + protected int localCount = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** field for PageSize */ + protected long localPageSize = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageSizeTracker = false; + + public boolean isPageSizeSpecified() { + return localPageSizeTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageSize() { + return localPageSize; + } + + /** + * Auto generated setter method + * + * @param param PageSize + */ + public void setPageSize(long param) { + + // setting primitive attribute tracker to true + localPageSizeTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageSize = param; + } + + /** field for PrevPage */ + protected long localPrevPage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPrevPageTracker = false; + + public boolean isPrevPageSpecified() { + return localPrevPageTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPrevPage() { + return localPrevPage; + } + + /** + * Auto generated setter method + * + * @param param PrevPage + */ + public void setPrevPage(long param) { + + // setting primitive attribute tracker to true + localPrevPageTracker = param != java.lang.Long.MIN_VALUE; + + this.localPrevPage = param; + } + + /** field for NextPage */ + protected long localNextPage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNextPageTracker = false; + + public boolean isNextPageSpecified() { + return localNextPageTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getNextPage() { + return localNextPage; + } + + /** + * Auto generated setter method + * + * @param param NextPage + */ + public void setNextPage(long param) { + + // setting primitive attribute tracker to true + localNextPageTracker = param != java.lang.Long.MIN_VALUE; + + this.localNextPage = param; + } + + /** field for LastPage */ + protected long localLastPage = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLastPageTracker = false; + + public boolean isLastPageSpecified() { + return localLastPageTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getLastPage() { + return localLastPage; + } + + /** + * Auto generated setter method + * + * @param param LastPage + */ + public void setLastPage(long param) { + + // setting primitive attribute tracker to true + localLastPageTracker = param != java.lang.Long.MIN_VALUE; + + this.localLastPage = param; + } + + /** field for NumWUs */ + protected int localNumWUs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNumWUsTracker = false; + + public boolean isNumWUsSpecified() { + return localNumWUsTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getNumWUs() { + return localNumWUs; + } + + /** + * Auto generated setter method + * + * @param param NumWUs + */ + public void setNumWUs(int param) { + + // setting primitive attribute tracker to true + localNumWUsTracker = param != java.lang.Integer.MIN_VALUE; + + this.localNumWUs = param; + } + + /** field for First */ + protected boolean localFirst = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFirstTracker = false; + + public boolean isFirstSpecified() { + return localFirstTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getFirst() { + return localFirst; + } + + /** + * Auto generated setter method + * + * @param param First + */ + public void setFirst(boolean param) { + + // setting primitive attribute tracker to true + localFirstTracker = true; + + this.localFirst = param; + } + + /** field for PageStartFrom */ + protected long localPageStartFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageStartFromTracker = false; + + public boolean isPageStartFromSpecified() { + return localPageStartFromTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageStartFrom() { + return localPageStartFrom; + } + + /** + * Auto generated setter method + * + * @param param PageStartFrom + */ + public void setPageStartFrom(long param) { + + // setting primitive attribute tracker to true + localPageStartFromTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageStartFrom = param; + } + + /** field for PageEndAt */ + protected long localPageEndAt; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPageEndAtTracker = false; + + public boolean isPageEndAtSpecified() { + return localPageEndAtTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getPageEndAt() { + return localPageEndAt; + } + + /** + * Auto generated setter method + * + * @param param PageEndAt + */ + public void setPageEndAt(long param) { + + // setting primitive attribute tracker to true + localPageEndAtTracker = param != java.lang.Long.MIN_VALUE; + + this.localPageEndAt = param; + } + + /** field for Sortby */ + protected java.lang.String localSortby; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSortbyTracker = false; + + public boolean isSortbySpecified() { + return localSortbyTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSortby() { + return localSortby; + } + + /** + * Auto generated setter method + * + * @param param Sortby + */ + public void setSortby(java.lang.String param) { + localSortbyTracker = param != null; + + this.localSortby = param; + } + + /** field for Descending */ + protected boolean localDescending = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescendingTracker = false; + + public boolean isDescendingSpecified() { + return localDescendingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDescending() { + return localDescending; + } + + /** + * Auto generated setter method + * + * @param param Descending + */ + public void setDescending(boolean param) { + + // setting primitive attribute tracker to true + localDescendingTracker = true; + + this.localDescending = param; + } + + /** field for BasicQuery */ + protected java.lang.String localBasicQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBasicQueryTracker = false; + + public boolean isBasicQuerySpecified() { + return localBasicQueryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getBasicQuery() { + return localBasicQuery; + } + + /** + * Auto generated setter method + * + * @param param BasicQuery + */ + public void setBasicQuery(java.lang.String param) { + localBasicQueryTracker = param != null; + + this.localBasicQuery = param; + } + + /** field for Filters */ + protected java.lang.String localFilters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFiltersTracker = false; + + public boolean isFiltersSpecified() { + return localFiltersTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFilters() { + return localFilters; + } + + /** + * Auto generated setter method + * + * @param param Filters + */ + public void setFilters(java.lang.String param) { + localFiltersTracker = param != null; + + this.localFilters = param; + } + + /** field for CacheHint */ + protected long localCacheHint; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCacheHintTracker = false; + + public boolean isCacheHintSpecified() { + return localCacheHintTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCacheHint() { + return localCacheHint; + } + + /** + * Auto generated setter method + * + * @param param CacheHint + */ + public void setCacheHint(long param) { + + // setting primitive attribute tracker to true + localCacheHintTracker = param != java.lang.Long.MIN_VALUE; + + this.localCacheHint = param; + } + + /** field for Workunits */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit + localWorkunits; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitsTracker = false; + + public boolean isWorkunitsSpecified() { + return localWorkunitsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit getWorkunits() { + return localWorkunits; + } + + /** + * Auto generated setter method + * + * @param param Workunits + */ + public void setWorkunits( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit param) { + localWorkunitsTracker = param != null; + + this.localWorkunits = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Type", xmlWriter); + + if (localType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Type cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localType); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localRoxieClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RoxieCluster", xmlWriter); + + if (localRoxieCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RoxieCluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRoxieCluster); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localStartDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StartDate", xmlWriter); + + if (localStartDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("StartDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localStartDate); + } + + xmlWriter.writeEndElement(); + } + if (localEndDateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EndDate", xmlWriter); + + if (localEndDate == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EndDate cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEndDate); + } + + xmlWriter.writeEndElement(); + } + if (localECLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ECL", xmlWriter); + + if (localECL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localECL); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalFileTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalFile", xmlWriter); + + if (localLogicalFile == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalFile cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalFile); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalFileSearchTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalFileSearchType", xmlWriter); + + if (localLogicalFileSearchType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException( + "LogicalFileSearchType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalFileSearchType); + } + + xmlWriter.writeEndElement(); + } + if (localCurrentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Current", xmlWriter); + + if (localCurrent == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Current cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCurrent); + } + + xmlWriter.writeEndElement(); + } + if (localNextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Next", xmlWriter); + + if (localNext == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Next cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNext); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + if (localPageSizeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageSize", xmlWriter); + + if (localPageSize == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageSize cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageSize)); + } + + xmlWriter.writeEndElement(); + } + if (localPrevPageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PrevPage", xmlWriter); + + if (localPrevPage == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PrevPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrevPage)); + } + + xmlWriter.writeEndElement(); + } + if (localNextPageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NextPage", xmlWriter); + + if (localNextPage == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NextPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNextPage)); + } + + xmlWriter.writeEndElement(); + } + if (localLastPageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LastPage", xmlWriter); + + if (localLastPage == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("LastPage cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLastPage)); + } + + xmlWriter.writeEndElement(); + } + if (localNumWUsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NumWUs", xmlWriter); + + if (localNumWUs == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("NumWUs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNumWUs)); + } + + xmlWriter.writeEndElement(); + } + if (localFirstTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "First", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("First cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFirst)); + } + + xmlWriter.writeEndElement(); + } + if (localPageStartFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageStartFrom", xmlWriter); + + if (localPageStartFrom == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageStartFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageStartFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localPageEndAtTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PageEndAt", xmlWriter); + + if (localPageEndAt == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PageEndAt cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPageEndAt)); + } + + xmlWriter.writeEndElement(); + } + if (localSortbyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sortby", xmlWriter); + + if (localSortby == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Sortby cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSortby); + } + + xmlWriter.writeEndElement(); + } + if (localDescendingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Descending", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Descending cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDescending)); + } + + xmlWriter.writeEndElement(); + } + if (localBasicQueryTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BasicQuery", xmlWriter); + + if (localBasicQuery == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("BasicQuery cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localBasicQuery); + } + + xmlWriter.writeEndElement(); + } + if (localFiltersTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Filters", xmlWriter); + + if (localFilters == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Filters cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFilters); + } + + xmlWriter.writeEndElement(); + } + if (localCacheHintTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CacheHint", xmlWriter); + + if (localCacheHint == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("CacheHint cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCacheHint)); + } + + xmlWriter.writeEndElement(); + } + if (localWorkunitsTracker) { + if (localWorkunits == null) { + throw new org.apache.axis2.databinding.ADBException("Workunits cannot be null!!"); + } + localWorkunits.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQueryResponse object = new WUQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Type") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Type" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RoxieCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RoxieCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRoxieCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StartDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StartDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStartDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EndDate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EndDate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEndDate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalFile") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalFile" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalFile( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "LogicalFileSearchType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalFileSearchType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalFileSearchType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Current") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Current" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCurrent( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Next") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Next" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNext( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageSize") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageSize" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageSize( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PrevPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PrevPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPrevPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NextPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NextPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNextPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LastPage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LastPage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLastPage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NumWUs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NumWUs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNumWUs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "First") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "First" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFirst( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageStartFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageStartFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageStartFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PageEndAt") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PageEndAt" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPageEndAt( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sortby") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sortby" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSortby( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Descending") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Descending" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescending( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "BasicQuery") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BasicQuery" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBasicQuery( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filters") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Filters" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CacheHint") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CacheHint" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCacheHint( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits") + .equals(reader.getName())) { + + object.setWorkunits( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLWorkunit.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetAliasActionResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetAliasActionResponse.java index e88d530d1..70427f183 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetAliasActionResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetAliasActionResponse.java @@ -1,558 +1,558 @@ -/** - * WUQuerySetAliasActionResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerySetAliasActionResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerySetAliasActionResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerySetAliasActionResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Action */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes - localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes - getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes param) { - localActionTracker = param != null; - - this.localAction = param; - } - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for Results */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1 localResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultsTracker = false; - - public boolean isResultsSpecified() { - return localResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1 getResults() { - return localResults; - } - - /** - * Auto generated setter method - * - * @param param Results - */ - public void setResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1 param) { - localResultsTracker = param != null; - - this.localResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerySetAliasActionResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerySetAliasActionResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localActionTracker) { - if (localAction == null) { - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - } - localAction.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action"), xmlWriter); - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localResultsTracker) { - if (localResults == null) { - throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); - } - localResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerySetAliasActionResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerySetAliasActionResponse object = new WUQuerySetAliasActionResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerySetAliasActionResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerySetAliasActionResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - object.setAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") - .equals(reader.getName())) { - - object.setResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerySetAliasActionResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerySetAliasActionResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerySetAliasActionResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerySetAliasActionResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Action */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes + localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes + getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes param) { + localActionTracker = param != null; + + this.localAction = param; + } + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for Results */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1 localResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultsTracker = false; + + public boolean isResultsSpecified() { + return localResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1 getResults() { + return localResults; + } + + /** + * Auto generated setter method + * + * @param param Results + */ + public void setResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1 param) { + localResultsTracker = param != null; + + this.localResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerySetAliasActionResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerySetAliasActionResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localActionTracker) { + if (localAction == null) { + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + } + localAction.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action"), xmlWriter); + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localResultsTracker) { + if (localResults == null) { + throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); + } + localResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerySetAliasActionResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerySetAliasActionResponse object = new WUQuerySetAliasActionResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerySetAliasActionResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerySetAliasActionResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + object.setAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") + .equals(reader.getName())) { + + object.setResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetCopyQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetCopyQueryResponse.java index ec4083f26..91e64e356 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetCopyQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetCopyQueryResponse.java @@ -1,642 +1,642 @@ -/** - * WUQuerySetCopyQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerySetCopyQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerySetCopyQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerySetCopyQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for FileErrors */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1 localFileErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileErrorsTracker = false; - - public boolean isFileErrorsSpecified() { - return localFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1 getFileErrors() { - return localFileErrors; - } - - /** - * Auto generated setter method - * - * @param param FileErrors - */ - public void setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1 param) { - localFileErrorsTracker = param != null; - - this.localFileErrors = param; - } - - /** field for DfuPublisherWuid */ - protected java.lang.String localDfuPublisherWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherWuidTracker = false; - - public boolean isDfuPublisherWuidSpecified() { - return localDfuPublisherWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherWuid() { - return localDfuPublisherWuid; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherWuid - */ - public void setDfuPublisherWuid(java.lang.String param) { - localDfuPublisherWuidTracker = param != null; - - this.localDfuPublisherWuid = param; - } - - /** field for DfuPublisherState */ - protected java.lang.String localDfuPublisherState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherStateTracker = false; - - public boolean isDfuPublisherStateSpecified() { - return localDfuPublisherStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherState() { - return localDfuPublisherState; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherState - */ - public void setDfuPublisherState(java.lang.String param) { - localDfuPublisherStateTracker = param != null; - - this.localDfuPublisherState = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerySetCopyQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerySetCopyQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localFileErrorsTracker) { - if (localFileErrors == null) { - throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); - } - localFileErrors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); - } - if (localDfuPublisherWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); - - if (localDfuPublisherWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDfuPublisherStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); - - if (localDfuPublisherState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherState); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerySetCopyQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerySetCopyQueryResponse object = new WUQuerySetCopyQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerySetCopyQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerySetCopyQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") - .equals(reader.getName())) { - - object.setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherState" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerySetCopyQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerySetCopyQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerySetCopyQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerySetCopyQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for FileErrors */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1 localFileErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileErrorsTracker = false; + + public boolean isFileErrorsSpecified() { + return localFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1 getFileErrors() { + return localFileErrors; + } + + /** + * Auto generated setter method + * + * @param param FileErrors + */ + public void setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1 param) { + localFileErrorsTracker = param != null; + + this.localFileErrors = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for DfuPublisherState */ + protected java.lang.String localDfuPublisherState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherStateTracker = false; + + public boolean isDfuPublisherStateSpecified() { + return localDfuPublisherStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherState() { + return localDfuPublisherState; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherState + */ + public void setDfuPublisherState(java.lang.String param) { + localDfuPublisherStateTracker = param != null; + + this.localDfuPublisherState = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerySetCopyQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerySetCopyQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localFileErrorsTracker) { + if (localFileErrors == null) { + throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); + } + localFileErrors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); + + if (localDfuPublisherState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherState); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerySetCopyQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerySetCopyQueryResponse object = new WUQuerySetCopyQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerySetCopyQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerySetCopyQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") + .equals(reader.getName())) { + + object.setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherState" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetDetail.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetDetail.java index c50f37e42..04e484d4e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetDetail.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetDetail.java @@ -1,506 +1,506 @@ -/** - * WUQuerySetDetail.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerySetDetail bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerySetDetail implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUQuerySetDetail - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for Queries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - localQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueriesTracker = false; - - public boolean isQueriesSpecified() { - return localQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery getQueries() { - return localQueries; - } - - /** - * Auto generated setter method - * - * @param param Queries - */ - public void setQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery param) { - localQueriesTracker = param != null; - - this.localQueries = param; - } - - /** field for Aliases */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias - localAliases; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAliasesTracker = false; - - public boolean isAliasesSpecified() { - return localAliasesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias getAliases() { - return localAliases; - } - - /** - * Auto generated setter method - * - * @param param Aliases - */ - public void setAliases( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias param) { - localAliasesTracker = param != null; - - this.localAliases = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerySetDetail", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerySetDetail", - xmlWriter); - } - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localQueriesTracker) { - if (localQueries == null) { - throw new org.apache.axis2.databinding.ADBException("Queries cannot be null!!"); - } - localQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries"), xmlWriter); - } - if (localAliasesTracker) { - if (localAliases == null) { - throw new org.apache.axis2.databinding.ADBException("Aliases cannot be null!!"); - } - localAliases.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Aliases"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerySetDetail parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerySetDetail object = new WUQuerySetDetail(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerySetDetail".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerySetDetail) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries") - .equals(reader.getName())) { - - object.setQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Aliases") - .equals(reader.getName())) { - - object.setAliases( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerySetDetail.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerySetDetail bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerySetDetail implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUQuerySetDetail + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for Queries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + localQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueriesTracker = false; + + public boolean isQueriesSpecified() { + return localQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery getQueries() { + return localQueries; + } + + /** + * Auto generated setter method + * + * @param param Queries + */ + public void setQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery param) { + localQueriesTracker = param != null; + + this.localQueries = param; + } + + /** field for Aliases */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias + localAliases; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAliasesTracker = false; + + public boolean isAliasesSpecified() { + return localAliasesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias getAliases() { + return localAliases; + } + + /** + * Auto generated setter method + * + * @param param Aliases + */ + public void setAliases( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias param) { + localAliasesTracker = param != null; + + this.localAliases = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerySetDetail", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerySetDetail", + xmlWriter); + } + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localQueriesTracker) { + if (localQueries == null) { + throw new org.apache.axis2.databinding.ADBException("Queries cannot be null!!"); + } + localQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries"), xmlWriter); + } + if (localAliasesTracker) { + if (localAliases == null) { + throw new org.apache.axis2.databinding.ADBException("Aliases cannot be null!!"); + } + localAliases.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Aliases"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerySetDetail parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerySetDetail object = new WUQuerySetDetail(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerySetDetail".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerySetDetail) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries") + .equals(reader.getName())) { + + object.setQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Aliases") + .equals(reader.getName())) { + + object.setAliases( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetDetailsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetDetailsResponse.java index 7af227785..e8b4c1846 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetDetailsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetDetailsResponse.java @@ -1,807 +1,807 @@ -/** - * WUQuerySetDetailsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerySetDetailsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerySetDetailsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerySetDetailsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for QuerysetQueries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - localQuerysetQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerysetQueriesTracker = false; - - public boolean isQuerysetQueriesSpecified() { - return localQuerysetQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - getQuerysetQueries() { - return localQuerysetQueries; - } - - /** - * Auto generated setter method - * - * @param param QuerysetQueries - */ - public void setQuerysetQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery param) { - localQuerysetQueriesTracker = param != null; - - this.localQuerysetQueries = param; - } - - /** field for QuerysetAliases */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias - localQuerysetAliases; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerysetAliasesTracker = false; - - public boolean isQuerysetAliasesSpecified() { - return localQuerysetAliasesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias - getQuerysetAliases() { - return localQuerysetAliases; - } - - /** - * Auto generated setter method - * - * @param param QuerysetAliases - */ - public void setQuerysetAliases( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias param) { - localQuerysetAliasesTracker = param != null; - - this.localQuerysetAliases = param; - } - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for Filter */ - protected java.lang.String localFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTracker = false; - - public boolean isFilterSpecified() { - return localFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFilter() { - return localFilter; - } - - /** - * Auto generated setter method - * - * @param param Filter - */ - public void setFilter(java.lang.String param) { - localFilterTracker = param != null; - - this.localFilter = param; - } - - /** field for FilterType */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - localFilterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTypeTracker = false; - - public boolean isFilterTypeSpecified() { - return localFilterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - getFilterType() { - return localFilterType; - } - - /** - * Auto generated setter method - * - * @param param FilterType - */ - public void setFilterType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType param) { - localFilterTypeTracker = param != null; - - this.localFilterType = param; - } - - /** field for ClusterNames */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localClusterNames; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNamesTracker = false; - - public boolean isClusterNamesSpecified() { - return localClusterNamesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getClusterNames() { - return localClusterNames; - } - - /** - * Auto generated setter method - * - * @param param ClusterNames - */ - public void setClusterNames( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localClusterNamesTracker = param != null; - - this.localClusterNames = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerySetDetailsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerySetDetailsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localQuerysetQueriesTracker) { - if (localQuerysetQueries == null) { - throw new org.apache.axis2.databinding.ADBException("QuerysetQueries cannot be null!!"); - } - localQuerysetQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerysetQueries"), - xmlWriter); - } - if (localQuerysetAliasesTracker) { - if (localQuerysetAliases == null) { - throw new org.apache.axis2.databinding.ADBException("QuerysetAliases cannot be null!!"); - } - localQuerysetAliases.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerysetAliases"), - xmlWriter); - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Filter", xmlWriter); - - if (localFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFilter); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTypeTracker) { - if (localFilterType == null) { - throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); - } - localFilterType.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType"), xmlWriter); - } - if (localClusterNamesTracker) { - if (localClusterNames == null) { - throw new org.apache.axis2.databinding.ADBException("ClusterNames cannot be null!!"); - } - localClusterNames.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterNames"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerySetDetailsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerySetDetailsResponse object = new WUQuerySetDetailsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerySetDetailsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerySetDetailsResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QuerysetQueries") - .equals(reader.getName())) { - - object.setQuerysetQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QuerysetAliases") - .equals(reader.getName())) { - - object.setQuerysetAliases( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Filter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType") - .equals(reader.getName())) { - - object.setFilterType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterNames") - .equals(reader.getName())) { - - object.setClusterNames( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerySetDetailsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerySetDetailsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerySetDetailsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerySetDetailsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for QuerysetQueries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + localQuerysetQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerysetQueriesTracker = false; + + public boolean isQuerysetQueriesSpecified() { + return localQuerysetQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + getQuerysetQueries() { + return localQuerysetQueries; + } + + /** + * Auto generated setter method + * + * @param param QuerysetQueries + */ + public void setQuerysetQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery param) { + localQuerysetQueriesTracker = param != null; + + this.localQuerysetQueries = param; + } + + /** field for QuerysetAliases */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias + localQuerysetAliases; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerysetAliasesTracker = false; + + public boolean isQuerysetAliasesSpecified() { + return localQuerysetAliasesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias + getQuerysetAliases() { + return localQuerysetAliases; + } + + /** + * Auto generated setter method + * + * @param param QuerysetAliases + */ + public void setQuerysetAliases( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias param) { + localQuerysetAliasesTracker = param != null; + + this.localQuerysetAliases = param; + } + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for Filter */ + protected java.lang.String localFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTracker = false; + + public boolean isFilterSpecified() { + return localFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFilter() { + return localFilter; + } + + /** + * Auto generated setter method + * + * @param param Filter + */ + public void setFilter(java.lang.String param) { + localFilterTracker = param != null; + + this.localFilter = param; + } + + /** field for FilterType */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + localFilterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTypeTracker = false; + + public boolean isFilterTypeSpecified() { + return localFilterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + getFilterType() { + return localFilterType; + } + + /** + * Auto generated setter method + * + * @param param FilterType + */ + public void setFilterType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType param) { + localFilterTypeTracker = param != null; + + this.localFilterType = param; + } + + /** field for ClusterNames */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localClusterNames; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNamesTracker = false; + + public boolean isClusterNamesSpecified() { + return localClusterNamesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getClusterNames() { + return localClusterNames; + } + + /** + * Auto generated setter method + * + * @param param ClusterNames + */ + public void setClusterNames( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localClusterNamesTracker = param != null; + + this.localClusterNames = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerySetDetailsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerySetDetailsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localQuerysetQueriesTracker) { + if (localQuerysetQueries == null) { + throw new org.apache.axis2.databinding.ADBException("QuerysetQueries cannot be null!!"); + } + localQuerysetQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerysetQueries"), + xmlWriter); + } + if (localQuerysetAliasesTracker) { + if (localQuerysetAliases == null) { + throw new org.apache.axis2.databinding.ADBException("QuerysetAliases cannot be null!!"); + } + localQuerysetAliases.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerysetAliases"), + xmlWriter); + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Filter", xmlWriter); + + if (localFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFilter); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTypeTracker) { + if (localFilterType == null) { + throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); + } + localFilterType.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType"), xmlWriter); + } + if (localClusterNamesTracker) { + if (localClusterNames == null) { + throw new org.apache.axis2.databinding.ADBException("ClusterNames cannot be null!!"); + } + localClusterNames.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterNames"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerySetDetailsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerySetDetailsResponse object = new WUQuerySetDetailsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerySetDetailsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerySetDetailsResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QuerysetQueries") + .equals(reader.getName())) { + + object.setQuerysetQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetQuery + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QuerysetAliases") + .equals(reader.getName())) { + + object.setQuerysetAliases( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySetAlias + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Filter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType") + .equals(reader.getName())) { + + object.setFilterType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterNames") + .equals(reader.getName())) { + + object.setClusterNames( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetFilterType.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetFilterType.java index 07fe1ee18..2ca9574cb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetFilterType.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetFilterType.java @@ -1,426 +1,426 @@ -/** - * WUQuerySetFilterType.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerySetFilterType bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerySetFilterType implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerySetFilterType", "ns1"); - - /** field for WUQuerySetFilterType */ - protected java.lang.String localWUQuerySetFilterType; - - private static java.util.HashMap _table_ = new java.util.HashMap(); - - // Constructor - - protected WUQuerySetFilterType(java.lang.String value, boolean isRegisterValue) { - localWUQuerySetFilterType = value; - if (isRegisterValue) { - - _table_.put(localWUQuerySetFilterType, this); - } - } - - public static final java.lang.String _All = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("All"); - - public static final java.lang.String _Id = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Id"); - - public static final java.lang.String _Name = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Name"); - - public static final java.lang.String _Alias = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Alias"); - - public static final java.lang.String _Status = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Status"); - - public static final WUQuerySetFilterType All = new WUQuerySetFilterType(_All, true); - - public static final WUQuerySetFilterType Id = new WUQuerySetFilterType(_Id, true); - - public static final WUQuerySetFilterType Name = new WUQuerySetFilterType(_Name, true); - - public static final WUQuerySetFilterType Alias = new WUQuerySetFilterType(_Alias, true); - - public static final WUQuerySetFilterType Status = new WUQuerySetFilterType(_Status, true); - - public java.lang.String getValue() { - return localWUQuerySetFilterType; - } - - public boolean equals(java.lang.Object obj) { - return (obj == this); - } - - public int hashCode() { - return toString().hashCode(); - } - - public java.lang.String toString() { - - return localWUQuerySetFilterType.toString(); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - // 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(); - - writeStartElement(null, namespace, _localName, xmlWriter); - - // add the type details if this is used in a simple type - if (serializeType) { - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerySetFilterType", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerySetFilterType", - xmlWriter); - } - } - - if (localWUQuerySetFilterType == null) { - - throw new org.apache.axis2.databinding.ADBException("WUQuerySetFilterType cannot be null !!"); - - } else { - - xmlWriter.writeCharacters(localWUQuerySetFilterType); - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - public static WUQuerySetFilterType fromValue(java.lang.String value) - throws java.lang.IllegalArgumentException { - WUQuerySetFilterType enumeration = (WUQuerySetFilterType) _table_.get(value); - - // handle unexpected enumeration values properly - if (enumeration == null) { - - throw new java.lang.IllegalArgumentException(); - } - return enumeration; - } - - public static WUQuerySetFilterType fromString( - java.lang.String value, java.lang.String namespaceURI) - throws java.lang.IllegalArgumentException { - try { - - return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); - - } catch (java.lang.Exception e) { - throw new java.lang.IllegalArgumentException(); - } - } - - public static WUQuerySetFilterType fromString( - javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { - if (content.indexOf(":") > -1) { - java.lang.String prefix = content.substring(0, content.indexOf(":")); - java.lang.String namespaceUri = - xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); - return WUQuerySetFilterType.Factory.fromString(content, namespaceUri); - } else { - return WUQuerySetFilterType.Factory.fromString(content, ""); - } - } - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerySetFilterType parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerySetFilterType object = null; - // initialize a hash map to keep values - java.util.Map attributeMap = new java.util.HashMap(); - java.util.List extraAttributeList = - new java.util.ArrayList(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - while (!reader.isEndElement()) { - if (reader.isStartElement() || reader.hasText()) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WUQuerySetFilterType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - if (content.indexOf(":") > 0) { - // this seems to be a Qname so find the namespace and send - prefix = content.substring(0, content.indexOf(":")); - namespaceuri = reader.getNamespaceURI(prefix); - object = WUQuerySetFilterType.Factory.fromString(content, namespaceuri); - } else { - // this seems to be not a qname send and empty namespace incase of it is - // check is done in fromString method - object = WUQuerySetFilterType.Factory.fromString(content, ""); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerySetFilterType.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerySetFilterType bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerySetFilterType implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerySetFilterType", "ns1"); + + /** field for WUQuerySetFilterType */ + protected java.lang.String localWUQuerySetFilterType; + + private static java.util.HashMap _table_ = new java.util.HashMap(); + + // Constructor + + protected WUQuerySetFilterType(java.lang.String value, boolean isRegisterValue) { + localWUQuerySetFilterType = value; + if (isRegisterValue) { + + _table_.put(localWUQuerySetFilterType, this); + } + } + + public static final java.lang.String _All = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("All"); + + public static final java.lang.String _Id = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Id"); + + public static final java.lang.String _Name = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Name"); + + public static final java.lang.String _Alias = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Alias"); + + public static final java.lang.String _Status = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("Status"); + + public static final WUQuerySetFilterType All = new WUQuerySetFilterType(_All, true); + + public static final WUQuerySetFilterType Id = new WUQuerySetFilterType(_Id, true); + + public static final WUQuerySetFilterType Name = new WUQuerySetFilterType(_Name, true); + + public static final WUQuerySetFilterType Alias = new WUQuerySetFilterType(_Alias, true); + + public static final WUQuerySetFilterType Status = new WUQuerySetFilterType(_Status, true); + + public java.lang.String getValue() { + return localWUQuerySetFilterType; + } + + public boolean equals(java.lang.Object obj) { + return (obj == this); + } + + public int hashCode() { + return toString().hashCode(); + } + + public java.lang.String toString() { + + return localWUQuerySetFilterType.toString(); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + // 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(); + + writeStartElement(null, namespace, _localName, xmlWriter); + + // add the type details if this is used in a simple type + if (serializeType) { + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerySetFilterType", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerySetFilterType", + xmlWriter); + } + } + + if (localWUQuerySetFilterType == null) { + + throw new org.apache.axis2.databinding.ADBException("WUQuerySetFilterType cannot be null !!"); + + } else { + + xmlWriter.writeCharacters(localWUQuerySetFilterType); + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + public static WUQuerySetFilterType fromValue(java.lang.String value) + throws java.lang.IllegalArgumentException { + WUQuerySetFilterType enumeration = (WUQuerySetFilterType) _table_.get(value); + + // handle unexpected enumeration values properly + if (enumeration == null) { + + throw new java.lang.IllegalArgumentException(); + } + return enumeration; + } + + public static WUQuerySetFilterType fromString( + java.lang.String value, java.lang.String namespaceURI) + throws java.lang.IllegalArgumentException { + try { + + return fromValue(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(value)); + + } catch (java.lang.Exception e) { + throw new java.lang.IllegalArgumentException(); + } + } + + public static WUQuerySetFilterType fromString( + javax.xml.stream.XMLStreamReader xmlStreamReader, java.lang.String content) { + if (content.indexOf(":") > -1) { + java.lang.String prefix = content.substring(0, content.indexOf(":")); + java.lang.String namespaceUri = + xmlStreamReader.getNamespaceContext().getNamespaceURI(prefix); + return WUQuerySetFilterType.Factory.fromString(content, namespaceUri); + } else { + return WUQuerySetFilterType.Factory.fromString(content, ""); + } + } + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerySetFilterType parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerySetFilterType object = null; + // initialize a hash map to keep values + java.util.Map attributeMap = new java.util.HashMap(); + java.util.List extraAttributeList = + new java.util.ArrayList(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + while (!reader.isEndElement()) { + if (reader.isStartElement() || reader.hasText()) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WUQuerySetFilterType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + if (content.indexOf(":") > 0) { + // this seems to be a Qname so find the namespace and send + prefix = content.substring(0, content.indexOf(":")); + namespaceuri = reader.getNamespaceURI(prefix); + object = WUQuerySetFilterType.Factory.fromString(content, namespaceuri); + } else { + // this seems to be not a qname send and empty namespace incase of it is + // check is done in fromString method + object = WUQuerySetFilterType.Factory.fromString(content, ""); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetQueryActionResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetQueryActionResponse.java index 799ca26da..93a51129c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetQueryActionResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerySetQueryActionResponse.java @@ -1,558 +1,558 @@ -/** - * WUQuerySetQueryActionResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerySetQueryActionResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerySetQueryActionResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerySetQueryActionResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Action */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes - localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes - getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes param) { - localActionTracker = param != null; - - this.localAction = param; - } - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for Results */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0 localResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultsTracker = false; - - public boolean isResultsSpecified() { - return localResultsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0 getResults() { - return localResults; - } - - /** - * Auto generated setter method - * - * @param param Results - */ - public void setResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0 param) { - localResultsTracker = param != null; - - this.localResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerySetQueryActionResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerySetQueryActionResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localActionTracker) { - if (localAction == null) { - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - } - localAction.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action"), xmlWriter); - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localResultsTracker) { - if (localResults == null) { - throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); - } - localResults.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerySetQueryActionResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerySetQueryActionResponse object = new WUQuerySetQueryActionResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerySetQueryActionResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerySetQueryActionResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - object.setAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") - .equals(reader.getName())) { - - object.setResults( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerySetQueryActionResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerySetQueryActionResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerySetQueryActionResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerySetQueryActionResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Action */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes + localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes + getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes param) { + localActionTracker = param != null; + + this.localAction = param; + } + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for Results */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0 localResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultsTracker = false; + + public boolean isResultsSpecified() { + return localResultsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0 getResults() { + return localResults; + } + + /** + * Auto generated setter method + * + * @param param Results + */ + public void setResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0 param) { + localResultsTracker = param != null; + + this.localResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerySetQueryActionResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerySetQueryActionResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localActionTracker) { + if (localAction == null) { + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + } + localAction.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action"), xmlWriter); + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localResultsTracker) { + if (localResults == null) { + throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); + } + localResults.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerySetQueryActionResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerySetQueryActionResponse object = new WUQuerySetQueryActionResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerySetQueryActionResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerySetQueryActionResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + object.setAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") + .equals(reader.getName())) { + + object.setResults( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Results_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetAliasAction.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetAliasAction.java index ca22ddcdd..dc98eaf35 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetAliasAction.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetAliasAction.java @@ -1,504 +1,504 @@ -/** - * WUQuerysetAliasAction.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetAliasAction bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetAliasAction implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerysetAliasAction", "ns1"); - - /** field for Action */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes - localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes - getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes param) { - localActionTracker = param != null; - - this.localAction = param; - } - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for Aliases */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0 localAliases; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAliasesTracker = false; - - public boolean isAliasesSpecified() { - return localAliasesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0 getAliases() { - return localAliases; - } - - /** - * Auto generated setter method - * - * @param param Aliases - */ - public void setAliases( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0 param) { - localAliasesTracker = param != null; - - this.localAliases = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetAliasAction", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetAliasAction", - xmlWriter); - } - } - if (localActionTracker) { - if (localAction == null) { - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - } - localAction.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action"), xmlWriter); - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localAliasesTracker) { - if (localAliases == null) { - throw new org.apache.axis2.databinding.ADBException("Aliases cannot be null!!"); - } - localAliases.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Aliases"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetAliasAction parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetAliasAction object = new WUQuerysetAliasAction(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetAliasAction".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetAliasAction) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - object.setAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Aliases") - .equals(reader.getName())) { - - object.setAliases( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetAliasAction.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetAliasAction bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetAliasAction implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerysetAliasAction", "ns1"); + + /** field for Action */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes + localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes + getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes param) { + localActionTracker = param != null; + + this.localAction = param; + } + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for Aliases */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0 localAliases; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAliasesTracker = false; + + public boolean isAliasesSpecified() { + return localAliasesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0 getAliases() { + return localAliases; + } + + /** + * Auto generated setter method + * + * @param param Aliases + */ + public void setAliases( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0 param) { + localAliasesTracker = param != null; + + this.localAliases = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetAliasAction", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetAliasAction", + xmlWriter); + } + } + if (localActionTracker) { + if (localAction == null) { + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + } + localAction.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action"), xmlWriter); + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localAliasesTracker) { + if (localAliases == null) { + throw new org.apache.axis2.databinding.ADBException("Aliases cannot be null!!"); + } + localAliases.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Aliases"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetAliasAction parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetAliasAction object = new WUQuerysetAliasAction(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetAliasAction".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetAliasAction) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + object.setAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetAliasActionTypes + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Aliases") + .equals(reader.getName())) { + + object.setAliases( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Aliases_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetCopyQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetCopyQuery.java index 35ce13575..e47571aba 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetCopyQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetCopyQuery.java @@ -1,2277 +1,2416 @@ -/** - * WUQuerysetCopyQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetCopyQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetCopyQuery implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetCopyQuery", "ns1"); - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for DaliServer */ - protected java.lang.String localDaliServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDaliServerTracker = false; - - public boolean isDaliServerSpecified() { - return localDaliServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDaliServer() { - return localDaliServer; - } - - /** - * Auto generated setter method - * - * @param param DaliServer - */ - public void setDaliServer(java.lang.String param) { - localDaliServerTracker = param != null; - - this.localDaliServer = param; - } - - /** field for Activate */ - protected int localActivate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivateTracker = false; - - public boolean isActivateSpecified() { - return localActivateTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getActivate() { - return localActivate; - } - - /** - * Auto generated setter method - * - * @param param Activate - */ - public void setActivate(int param) { - - // setting primitive attribute tracker to true - localActivateTracker = param != java.lang.Integer.MIN_VALUE; - - this.localActivate = param; - } - - /** field for Overwrite */ - protected boolean localOverwrite = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteTracker = false; - - public boolean isOverwriteSpecified() { - return localOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwrite() { - return localOverwrite; - } - - /** - * Auto generated setter method - * - * @param param Overwrite - */ - public void setOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteTracker = true; - - this.localOverwrite = param; - } - - /** field for DontCopyFiles */ - protected boolean localDontCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDontCopyFilesTracker = false; - - public boolean isDontCopyFilesSpecified() { - return localDontCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDontCopyFiles() { - return localDontCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DontCopyFiles - */ - public void setDontCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDontCopyFilesTracker = true; - - this.localDontCopyFiles = param; - } - - /** field for Wait */ - protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("10000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** field for NoReload */ - protected boolean localNoReload = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoReloadTracker = false; - - public boolean isNoReloadSpecified() { - return localNoReloadTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoReload() { - return localNoReload; - } - - /** - * Auto generated setter method - * - * @param param NoReload - */ - public void setNoReload(boolean param) { - - // setting primitive attribute tracker to true - localNoReloadTracker = true; - - this.localNoReload = param; - } - - /** field for MemoryLimit */ - protected java.lang.String localMemoryLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitTracker = false; - - public boolean isMemoryLimitSpecified() { - return localMemoryLimitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemoryLimit() { - return localMemoryLimit; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimit - */ - public void setMemoryLimit(java.lang.String param) { - localMemoryLimitTracker = param != null; - - this.localMemoryLimit = param; - } - - /** field for TimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitTracker = false; - - public boolean isTimeLimitSpecified() { - return localTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { - return localTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param TimeLimit - */ - public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localTimeLimitTracker = param != null; - - this.localTimeLimit = param; - } - - /** field for WarnTimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitTracker = false; - - public boolean isWarnTimeLimitSpecified() { - return localWarnTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { - return localWarnTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimit - */ - public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localWarnTimeLimitTracker = param != null; - - this.localWarnTimeLimit = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for SourceProcess */ - protected java.lang.String localSourceProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceProcessTracker = false; - - public boolean isSourceProcessSpecified() { - return localSourceProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceProcess() { - return localSourceProcess; - } - - /** - * Auto generated setter method - * - * @param param SourceProcess - */ - public void setSourceProcess(java.lang.String param) { - localSourceProcessTracker = param != null; - - this.localSourceProcess = param; - } - - /** field for DestName */ - protected java.lang.String localDestName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestNameTracker = false; - - public boolean isDestNameSpecified() { - return localDestNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestName() { - return localDestName; - } - - /** - * Auto generated setter method - * - * @param param DestName - */ - public void setDestName(java.lang.String param) { - localDestNameTracker = param != null; - - this.localDestName = param; - } - - /** field for AllowForeignFiles */ - protected boolean localAllowForeignFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllowForeignFilesTracker = false; - - public boolean isAllowForeignFilesSpecified() { - return localAllowForeignFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllowForeignFiles() { - return localAllowForeignFiles; - } - - /** - * Auto generated setter method - * - * @param param AllowForeignFiles - */ - public void setAllowForeignFiles(boolean param) { - - // setting primitive attribute tracker to true - localAllowForeignFilesTracker = true; - - this.localAllowForeignFiles = param; - } - - /** field for UpdateSuperFiles */ - protected boolean localUpdateSuperFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateSuperFilesTracker = false; - - public boolean isUpdateSuperFilesSpecified() { - return localUpdateSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateSuperFiles() { - return localUpdateSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param UpdateSuperFiles - */ - public void setUpdateSuperFiles(boolean param) { - - // setting primitive attribute tracker to true - localUpdateSuperFilesTracker = true; - - this.localUpdateSuperFiles = param; - } - - /** field for UpdateCloneFrom */ - protected boolean localUpdateCloneFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateCloneFromTracker = false; - - public boolean isUpdateCloneFromSpecified() { - return localUpdateCloneFromTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateCloneFrom() { - return localUpdateCloneFrom; - } - - /** - * Auto generated setter method - * - * @param param UpdateCloneFrom - */ - public void setUpdateCloneFrom(boolean param) { - - // setting primitive attribute tracker to true - localUpdateCloneFromTracker = true; - - this.localUpdateCloneFrom = param; - } - - /** field for AppendCluster */ - protected boolean localAppendCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAppendClusterTracker = false; - - public boolean isAppendClusterSpecified() { - return localAppendClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAppendCluster() { - return localAppendCluster; - } - - /** - * Auto generated setter method - * - * @param param AppendCluster - */ - public void setAppendCluster(boolean param) { - - // setting primitive attribute tracker to true - localAppendClusterTracker = true; - - this.localAppendCluster = param; - } - - /** field for IncludeFileErrors */ - protected boolean localIncludeFileErrors = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeFileErrorsTracker = false; - - public boolean isIncludeFileErrorsSpecified() { - return localIncludeFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeFileErrors() { - return localIncludeFileErrors; - } - - /** - * Auto generated setter method - * - * @param param IncludeFileErrors - */ - public void setIncludeFileErrors(boolean param) { - - // setting primitive attribute tracker to true - localIncludeFileErrorsTracker = true; - - this.localIncludeFileErrors = param; - } - - /** field for SourceSSL */ - protected boolean localSourceSSL = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceSSLTracker = false; - - public boolean isSourceSSLSpecified() { - return localSourceSSLTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSourceSSL() { - return localSourceSSL; - } - - /** - * Auto generated setter method - * - * @param param SourceSSL - */ - public void setSourceSSL(boolean param) { - - // setting primitive attribute tracker to true - localSourceSSLTracker = true; - - this.localSourceSSL = param; - } - - /** field for DfuCopyFiles */ - protected boolean localDfuCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuCopyFilesTracker = false; - - public boolean isDfuCopyFilesSpecified() { - return localDfuCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuCopyFiles() { - return localDfuCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DfuCopyFiles - */ - public void setDfuCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDfuCopyFilesTracker = true; - - this.localDfuCopyFiles = param; - } - - /** field for DfuQueue */ - protected java.lang.String localDfuQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuQueueTracker = false; - - public boolean isDfuQueueSpecified() { - return localDfuQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuQueue() { - return localDfuQueue; - } - - /** - * Auto generated setter method - * - * @param param DfuQueue - */ - public void setDfuQueue(java.lang.String param) { - localDfuQueueTracker = param != null; - - this.localDfuQueue = param; - } - - /** field for DfuWait */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuWaitTracker = false; - - public boolean isDfuWaitSpecified() { - return localDfuWaitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { - return localDfuWait; - } - - /** - * Auto generated setter method - * - * @param param DfuWait - */ - public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localDfuWaitTracker = param != null; - - this.localDfuWait = param; - } - - /** field for DfuOverwrite */ - protected boolean localDfuOverwrite = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuOverwriteTracker = false; - - public boolean isDfuOverwriteSpecified() { - return localDfuOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuOverwrite() { - return localDfuOverwrite; - } - - /** - * Auto generated setter method - * - * @param param DfuOverwrite - */ - public void setDfuOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localDfuOverwriteTracker = true; - - this.localDfuOverwrite = param; - } - - /** field for OnlyCopyFiles */ - protected boolean localOnlyCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnlyCopyFilesTracker = false; - - public boolean isOnlyCopyFilesSpecified() { - return localOnlyCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOnlyCopyFiles() { - return localOnlyCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param OnlyCopyFiles - */ - public void setOnlyCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localOnlyCopyFilesTracker = true; - - this.localOnlyCopyFiles = param; - } - - /** field for StopIfFilesCopied */ - protected boolean localStopIfFilesCopied = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStopIfFilesCopiedTracker = false; - - public boolean isStopIfFilesCopiedSpecified() { - return localStopIfFilesCopiedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getStopIfFilesCopied() { - return localStopIfFilesCopied; - } - - /** - * Auto generated setter method - * - * @param param StopIfFilesCopied - */ - public void setStopIfFilesCopied(boolean param) { - - // setting primitive attribute tracker to true - localStopIfFilesCopiedTracker = true; - - this.localStopIfFilesCopied = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetCopyQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetCopyQuery", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localDaliServerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DaliServer", xmlWriter); - - if (localDaliServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DaliServer cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDaliServer); - } - - xmlWriter.writeEndElement(); - } - if (localActivateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Activate", xmlWriter); - - if (localActivate == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Activate cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivate)); - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Overwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Overwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localDontCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DontCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DontCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDontCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - if (localNoReloadTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoReload", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "memoryLimit", xmlWriter); - - if (localMemoryLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("memoryLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemoryLimit); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeLimit", xmlWriter); - - if (localTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); - - if (localWarnTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localSourceProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceProcess", xmlWriter); - - if (localSourceProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceProcess); - } - - xmlWriter.writeEndElement(); - } - if (localDestNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DestName", xmlWriter); - - if (localDestName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestName); - } - - xmlWriter.writeEndElement(); - } - if (localAllowForeignFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAllowForeignFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateSuperFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localUpdateSuperFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateCloneFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localAppendClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AppendCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeFileErrorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeFileErrors)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceSSLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceSSL", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SourceSSL cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceSSL)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuQueue", xmlWriter); - - if (localDfuQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuQueue); - } - - xmlWriter.writeEndElement(); - } - if (localDfuWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuWait", xmlWriter); - - if (localDfuWait == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuOverwriteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localOnlyCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localStopIfFilesCopiedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localStopIfFilesCopied)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetCopyQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetCopyQuery object = new WUQuerysetCopyQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetCopyQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetCopyQuery) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DaliServer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DaliServer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDaliServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activate") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Activate" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActivate( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Overwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Overwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DontCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DontCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDontCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoReload" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoReload( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "memoryLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "memoryLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarnTimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceProcess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DestName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllowForeignFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllowForeignFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateSuperFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateSuperFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateCloneFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateCloneFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AppendCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAppendCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeFileErrors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeFileErrors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceSSL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceSSL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceSSL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuOverwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OnlyCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOnlyCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StopIfFilesCopied" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStopIfFilesCopied( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetCopyQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetCopyQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetCopyQuery implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetCopyQuery", "ns1"); + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for DaliServer */ + protected java.lang.String localDaliServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDaliServerTracker = false; + + public boolean isDaliServerSpecified() { + return localDaliServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDaliServer() { + return localDaliServer; + } + + /** + * Auto generated setter method + * + * @param param DaliServer + */ + public void setDaliServer(java.lang.String param) { + localDaliServerTracker = param != null; + + this.localDaliServer = param; + } + + /** field for Activate */ + protected int localActivate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivateTracker = false; + + public boolean isActivateSpecified() { + return localActivateTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getActivate() { + return localActivate; + } + + /** + * Auto generated setter method + * + * @param param Activate + */ + public void setActivate(int param) { + + // setting primitive attribute tracker to true + localActivateTracker = param != java.lang.Integer.MIN_VALUE; + + this.localActivate = param; + } + + /** field for Overwrite */ + protected boolean localOverwrite = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteTracker = false; + + public boolean isOverwriteSpecified() { + return localOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwrite() { + return localOverwrite; + } + + /** + * Auto generated setter method + * + * @param param Overwrite + */ + public void setOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteTracker = true; + + this.localOverwrite = param; + } + + /** field for DontCopyFiles */ + protected boolean localDontCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDontCopyFilesTracker = false; + + public boolean isDontCopyFilesSpecified() { + return localDontCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDontCopyFiles() { + return localDontCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DontCopyFiles + */ + public void setDontCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDontCopyFilesTracker = true; + + this.localDontCopyFiles = param; + } + + /** field for Wait */ + protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("10000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** field for NoReload */ + protected boolean localNoReload = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoReloadTracker = false; + + public boolean isNoReloadSpecified() { + return localNoReloadTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoReload() { + return localNoReload; + } + + /** + * Auto generated setter method + * + * @param param NoReload + */ + public void setNoReload(boolean param) { + + // setting primitive attribute tracker to true + localNoReloadTracker = true; + + this.localNoReload = param; + } + + /** field for MemoryLimit */ + protected java.lang.String localMemoryLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitTracker = false; + + public boolean isMemoryLimitSpecified() { + return localMemoryLimitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemoryLimit() { + return localMemoryLimit; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimit + */ + public void setMemoryLimit(java.lang.String param) { + localMemoryLimitTracker = param != null; + + this.localMemoryLimit = param; + } + + /** field for TimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitTracker = false; + + public boolean isTimeLimitSpecified() { + return localTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { + return localTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param TimeLimit + */ + public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localTimeLimitTracker = param != null; + + this.localTimeLimit = param; + } + + /** field for WarnTimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitTracker = false; + + public boolean isWarnTimeLimitSpecified() { + return localWarnTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { + return localWarnTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimit + */ + public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localWarnTimeLimitTracker = param != null; + + this.localWarnTimeLimit = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for SourceProcess */ + protected java.lang.String localSourceProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceProcessTracker = false; + + public boolean isSourceProcessSpecified() { + return localSourceProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceProcess() { + return localSourceProcess; + } + + /** + * Auto generated setter method + * + * @param param SourceProcess + */ + public void setSourceProcess(java.lang.String param) { + localSourceProcessTracker = param != null; + + this.localSourceProcess = param; + } + + /** field for DestName */ + protected java.lang.String localDestName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestNameTracker = false; + + public boolean isDestNameSpecified() { + return localDestNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestName() { + return localDestName; + } + + /** + * Auto generated setter method + * + * @param param DestName + */ + public void setDestName(java.lang.String param) { + localDestNameTracker = param != null; + + this.localDestName = param; + } + + /** field for AllowForeignFiles */ + protected boolean localAllowForeignFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowForeignFilesTracker = false; + + public boolean isAllowForeignFilesSpecified() { + return localAllowForeignFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllowForeignFiles() { + return localAllowForeignFiles; + } + + /** + * Auto generated setter method + * + * @param param AllowForeignFiles + */ + public void setAllowForeignFiles(boolean param) { + + // setting primitive attribute tracker to true + localAllowForeignFilesTracker = true; + + this.localAllowForeignFiles = param; + } + + /** field for UpdateSuperFiles */ + protected boolean localUpdateSuperFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateSuperFilesTracker = false; + + public boolean isUpdateSuperFilesSpecified() { + return localUpdateSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateSuperFiles() { + return localUpdateSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param UpdateSuperFiles + */ + public void setUpdateSuperFiles(boolean param) { + + // setting primitive attribute tracker to true + localUpdateSuperFilesTracker = true; + + this.localUpdateSuperFiles = param; + } + + /** field for UpdateCloneFrom */ + protected boolean localUpdateCloneFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateCloneFromTracker = false; + + public boolean isUpdateCloneFromSpecified() { + return localUpdateCloneFromTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateCloneFrom() { + return localUpdateCloneFrom; + } + + /** + * Auto generated setter method + * + * @param param UpdateCloneFrom + */ + public void setUpdateCloneFrom(boolean param) { + + // setting primitive attribute tracker to true + localUpdateCloneFromTracker = true; + + this.localUpdateCloneFrom = param; + } + + /** field for AppendCluster */ + protected boolean localAppendCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAppendClusterTracker = false; + + public boolean isAppendClusterSpecified() { + return localAppendClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAppendCluster() { + return localAppendCluster; + } + + /** + * Auto generated setter method + * + * @param param AppendCluster + */ + public void setAppendCluster(boolean param) { + + // setting primitive attribute tracker to true + localAppendClusterTracker = true; + + this.localAppendCluster = param; + } + + /** field for IncludeFileErrors */ + protected boolean localIncludeFileErrors = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeFileErrorsTracker = false; + + public boolean isIncludeFileErrorsSpecified() { + return localIncludeFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeFileErrors() { + return localIncludeFileErrors; + } + + /** + * Auto generated setter method + * + * @param param IncludeFileErrors + */ + public void setIncludeFileErrors(boolean param) { + + // setting primitive attribute tracker to true + localIncludeFileErrorsTracker = true; + + this.localIncludeFileErrors = param; + } + + /** field for SourceSSL */ + protected boolean localSourceSSL = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceSSLTracker = false; + + public boolean isSourceSSLSpecified() { + return localSourceSSLTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSourceSSL() { + return localSourceSSL; + } + + /** + * Auto generated setter method + * + * @param param SourceSSL + */ + public void setSourceSSL(boolean param) { + + // setting primitive attribute tracker to true + localSourceSSLTracker = true; + + this.localSourceSSL = param; + } + + /** field for DfuCopyFiles */ + protected boolean localDfuCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuCopyFilesTracker = false; + + public boolean isDfuCopyFilesSpecified() { + return localDfuCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuCopyFiles() { + return localDfuCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DfuCopyFiles + */ + public void setDfuCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDfuCopyFilesTracker = true; + + this.localDfuCopyFiles = param; + } + + /** field for DfuQueue */ + protected java.lang.String localDfuQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuQueueTracker = false; + + public boolean isDfuQueueSpecified() { + return localDfuQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuQueue() { + return localDfuQueue; + } + + /** + * Auto generated setter method + * + * @param param DfuQueue + */ + public void setDfuQueue(java.lang.String param) { + localDfuQueueTracker = param != null; + + this.localDfuQueue = param; + } + + /** field for DfuWait */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuWaitTracker = false; + + public boolean isDfuWaitSpecified() { + return localDfuWaitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { + return localDfuWait; + } + + /** + * Auto generated setter method + * + * @param param DfuWait + */ + public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localDfuWaitTracker = param != null; + + this.localDfuWait = param; + } + + /** field for DfuOverwrite */ + protected boolean localDfuOverwrite = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuOverwriteTracker = false; + + public boolean isDfuOverwriteSpecified() { + return localDfuOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuOverwrite() { + return localDfuOverwrite; + } + + /** + * Auto generated setter method + * + * @param param DfuOverwrite + */ + public void setDfuOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localDfuOverwriteTracker = true; + + this.localDfuOverwrite = param; + } + + /** field for OnlyCopyFiles */ + protected boolean localOnlyCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnlyCopyFilesTracker = false; + + public boolean isOnlyCopyFilesSpecified() { + return localOnlyCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOnlyCopyFiles() { + return localOnlyCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param OnlyCopyFiles + */ + public void setOnlyCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localOnlyCopyFilesTracker = true; + + this.localOnlyCopyFiles = param; + } + + /** field for StopIfFilesCopied */ + protected boolean localStopIfFilesCopied = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStopIfFilesCopiedTracker = false; + + public boolean isStopIfFilesCopiedSpecified() { + return localStopIfFilesCopiedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getStopIfFilesCopied() { + return localStopIfFilesCopied; + } + + /** + * Auto generated setter method + * + * @param param StopIfFilesCopied + */ + public void setStopIfFilesCopied(boolean param) { + + // setting primitive attribute tracker to true + localStopIfFilesCopiedTracker = true; + + this.localStopIfFilesCopied = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for RemoteStorage */ + protected java.lang.String localRemoteStorage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteStorageTracker = false; + + public boolean isRemoteStorageSpecified() { + return localRemoteStorageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteStorage() { + return localRemoteStorage; + } + + /** + * Auto generated setter method + * + * @param param RemoteStorage + */ + public void setRemoteStorage(java.lang.String param) { + localRemoteStorageTracker = param != null; + + this.localRemoteStorage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetCopyQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetCopyQuery", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localDaliServerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DaliServer", xmlWriter); + + if (localDaliServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DaliServer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDaliServer); + } + + xmlWriter.writeEndElement(); + } + if (localActivateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Activate", xmlWriter); + + if (localActivate == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Activate cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActivate)); + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Overwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Overwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localDontCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DontCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DontCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDontCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + if (localNoReloadTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoReload", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "memoryLimit", xmlWriter); + + if (localMemoryLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("memoryLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemoryLimit); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeLimit", xmlWriter); + + if (localTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); + + if (localWarnTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localSourceProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceProcess", xmlWriter); + + if (localSourceProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceProcess); + } + + xmlWriter.writeEndElement(); + } + if (localDestNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DestName", xmlWriter); + + if (localDestName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestName); + } + + xmlWriter.writeEndElement(); + } + if (localAllowForeignFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAllowForeignFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateSuperFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localUpdateSuperFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateCloneFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localAppendClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AppendCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeFileErrorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeFileErrors)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceSSLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceSSL", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SourceSSL cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceSSL)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuQueue", xmlWriter); + + if (localDfuQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuQueue); + } + + xmlWriter.writeEndElement(); + } + if (localDfuWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuWait", xmlWriter); + + if (localDfuWait == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuOverwriteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localOnlyCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localStopIfFilesCopiedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localStopIfFilesCopied)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteStorageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteStorage", xmlWriter); + + if (localRemoteStorage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteStorage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteStorage); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetCopyQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetCopyQuery object = new WUQuerysetCopyQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetCopyQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetCopyQuery) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DaliServer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DaliServer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDaliServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activate") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Activate" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActivate( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Overwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Overwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DontCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DontCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDontCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoReload" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoReload( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "memoryLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "memoryLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarnTimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceProcess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DestName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllowForeignFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllowForeignFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateSuperFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateSuperFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateCloneFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateCloneFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AppendCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAppendCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeFileErrors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeFileErrors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceSSL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceSSL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceSSL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuOverwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OnlyCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOnlyCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StopIfFilesCopied" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStopIfFilesCopied( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteStorage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteStorage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteStorage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetDetails.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetDetails.java index 1b51c4aaa..f97d892ea 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetDetails.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetDetails.java @@ -1,657 +1,657 @@ -/** - * WUQuerysetDetails.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetDetails bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetDetails implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetDetails", "ns1"); - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for Filter */ - protected java.lang.String localFilter; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTracker = false; - - public boolean isFilterSpecified() { - return localFilterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFilter() { - return localFilter; - } - - /** - * Auto generated setter method - * - * @param param Filter - */ - public void setFilter(java.lang.String param) { - localFilterTracker = param != null; - - this.localFilter = param; - } - - /** field for ClusterName */ - protected java.lang.String localClusterName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterNameTracker = false; - - public boolean isClusterNameSpecified() { - return localClusterNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterName() { - return localClusterName; - } - - /** - * Auto generated setter method - * - * @param param ClusterName - */ - public void setClusterName(java.lang.String param) { - localClusterNameTracker = param != null; - - this.localClusterName = param; - } - - /** field for FilterType */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - localFilterType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterTypeTracker = false; - - public boolean isFilterTypeSpecified() { - return localFilterTypeTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - getFilterType() { - return localFilterType; - } - - /** - * Auto generated setter method - * - * @param param FilterType - */ - public void setFilterType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType param) { - localFilterTypeTracker = param != null; - - this.localFilterType = param; - } - - /** field for CheckAllNodes */ - protected boolean localCheckAllNodes = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCheckAllNodesTracker = false; - - public boolean isCheckAllNodesSpecified() { - return localCheckAllNodesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCheckAllNodes() { - return localCheckAllNodes; - } - - /** - * Auto generated setter method - * - * @param param CheckAllNodes - */ - public void setCheckAllNodes(boolean param) { - - // setting primitive attribute tracker to true - localCheckAllNodesTracker = true; - - this.localCheckAllNodes = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetDetails", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetDetails", - xmlWriter); - } - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Filter", xmlWriter); - - if (localFilter == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFilter); - } - - xmlWriter.writeEndElement(); - } - if (localClusterNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterName", xmlWriter); - - if (localClusterName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterName); - } - - xmlWriter.writeEndElement(); - } - if (localFilterTypeTracker) { - if (localFilterType == null) { - throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); - } - localFilterType.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType"), xmlWriter); - } - if (localCheckAllNodesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetDetails parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetDetails object = new WUQuerysetDetails(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetDetails".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetDetails) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Filter" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFilter( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType") - .equals(reader.getName())) { - - object.setFilterType( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CheckAllNodes" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCheckAllNodes( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetDetails.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetDetails bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetDetails implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetDetails", "ns1"); + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for Filter */ + protected java.lang.String localFilter; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTracker = false; + + public boolean isFilterSpecified() { + return localFilterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFilter() { + return localFilter; + } + + /** + * Auto generated setter method + * + * @param param Filter + */ + public void setFilter(java.lang.String param) { + localFilterTracker = param != null; + + this.localFilter = param; + } + + /** field for ClusterName */ + protected java.lang.String localClusterName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterNameTracker = false; + + public boolean isClusterNameSpecified() { + return localClusterNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterName() { + return localClusterName; + } + + /** + * Auto generated setter method + * + * @param param ClusterName + */ + public void setClusterName(java.lang.String param) { + localClusterNameTracker = param != null; + + this.localClusterName = param; + } + + /** field for FilterType */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + localFilterType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterTypeTracker = false; + + public boolean isFilterTypeSpecified() { + return localFilterTypeTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + getFilterType() { + return localFilterType; + } + + /** + * Auto generated setter method + * + * @param param FilterType + */ + public void setFilterType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType param) { + localFilterTypeTracker = param != null; + + this.localFilterType = param; + } + + /** field for CheckAllNodes */ + protected boolean localCheckAllNodes = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCheckAllNodesTracker = false; + + public boolean isCheckAllNodesSpecified() { + return localCheckAllNodesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCheckAllNodes() { + return localCheckAllNodes; + } + + /** + * Auto generated setter method + * + * @param param CheckAllNodes + */ + public void setCheckAllNodes(boolean param) { + + // setting primitive attribute tracker to true + localCheckAllNodesTracker = true; + + this.localCheckAllNodes = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetDetails", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetDetails", + xmlWriter); + } + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Filter", xmlWriter); + + if (localFilter == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Filter cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFilter); + } + + xmlWriter.writeEndElement(); + } + if (localClusterNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterName", xmlWriter); + + if (localClusterName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterName); + } + + xmlWriter.writeEndElement(); + } + if (localFilterTypeTracker) { + if (localFilterType == null) { + throw new org.apache.axis2.databinding.ADBException("FilterType cannot be null!!"); + } + localFilterType.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType"), xmlWriter); + } + if (localCheckAllNodesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CheckAllNodes", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CheckAllNodes cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCheckAllNodes)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetDetails parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetDetails object = new WUQuerysetDetails(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetDetails".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetDetails) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Filter") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Filter" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFilter( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterType") + .equals(reader.getName())) { + + object.setFilterType( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetFilterType + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CheckAllNodes") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CheckAllNodes" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCheckAllNodes( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetExport.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetExport.java index 7d152e83a..4ebe83424 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetExport.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetExport.java @@ -1,607 +1,607 @@ -/** - * WUQuerysetExport.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetExport bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetExport implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetExport", "ns1"); - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for Compress */ - protected boolean localCompress = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompressTracker = false; - - public boolean isCompressSpecified() { - return localCompressTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCompress() { - return localCompress; - } - - /** - * Auto generated setter method - * - * @param param Compress - */ - public void setCompress(boolean param) { - - // setting primitive attribute tracker to true - localCompressTracker = true; - - this.localCompress = param; - } - - /** field for ActiveOnly */ - protected boolean localActiveOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActiveOnlyTracker = false; - - public boolean isActiveOnlySpecified() { - return localActiveOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getActiveOnly() { - return localActiveOnly; - } - - /** - * Auto generated setter method - * - * @param param ActiveOnly - */ - public void setActiveOnly(boolean param) { - - // setting primitive attribute tracker to true - localActiveOnlyTracker = true; - - this.localActiveOnly = param; - } - - /** field for Protect */ - protected boolean localProtect = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectTracker = false; - - public boolean isProtectSpecified() { - return localProtectTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getProtect() { - return localProtect; - } - - /** - * Auto generated setter method - * - * @param param Protect - */ - public void setProtect(boolean param) { - - // setting primitive attribute tracker to true - localProtectTracker = true; - - this.localProtect = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetExport", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetExport", - xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localCompressTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Compress", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Compress cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); - } - - xmlWriter.writeEndElement(); - } - if (localActiveOnlyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ActiveOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ActiveOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActiveOnly)); - } - - xmlWriter.writeEndElement(); - } - if (localProtectTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Protect", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Protect cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtect)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetExport parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetExport object = new WUQuerysetExport(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetExport".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetExport) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Compress") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Compress" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompress( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActiveOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ActiveOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActiveOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protect") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Protect" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtect( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetExport.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetExport bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetExport implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetExport", "ns1"); + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for Compress */ + protected boolean localCompress = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompressTracker = false; + + public boolean isCompressSpecified() { + return localCompressTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCompress() { + return localCompress; + } + + /** + * Auto generated setter method + * + * @param param Compress + */ + public void setCompress(boolean param) { + + // setting primitive attribute tracker to true + localCompressTracker = true; + + this.localCompress = param; + } + + /** field for ActiveOnly */ + protected boolean localActiveOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActiveOnlyTracker = false; + + public boolean isActiveOnlySpecified() { + return localActiveOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getActiveOnly() { + return localActiveOnly; + } + + /** + * Auto generated setter method + * + * @param param ActiveOnly + */ + public void setActiveOnly(boolean param) { + + // setting primitive attribute tracker to true + localActiveOnlyTracker = true; + + this.localActiveOnly = param; + } + + /** field for Protect */ + protected boolean localProtect = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectTracker = false; + + public boolean isProtectSpecified() { + return localProtectTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getProtect() { + return localProtect; + } + + /** + * Auto generated setter method + * + * @param param Protect + */ + public void setProtect(boolean param) { + + // setting primitive attribute tracker to true + localProtectTracker = true; + + this.localProtect = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetExport", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetExport", + xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localCompressTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Compress", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Compress cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompress)); + } + + xmlWriter.writeEndElement(); + } + if (localActiveOnlyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ActiveOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ActiveOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActiveOnly)); + } + + xmlWriter.writeEndElement(); + } + if (localProtectTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Protect", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Protect cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtect)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetExport parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetExport object = new WUQuerysetExport(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetExport".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetExport) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Compress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Compress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActiveOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ActiveOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActiveOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protect") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Protect" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtect( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetExportResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetExportResponse.java index ef5c71e8b..e782145bd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetExportResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetExportResponse.java @@ -1,582 +1,582 @@ -/** - * WUQuerysetExportResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetExportResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetExportResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerysetExportResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for Compressed */ - protected boolean localCompressed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompressedTracker = false; - - public boolean isCompressedSpecified() { - return localCompressedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCompressed() { - return localCompressed; - } - - /** - * Auto generated setter method - * - * @param param Compressed - */ - public void setCompressed(boolean param) { - - // setting primitive attribute tracker to true - localCompressedTracker = true; - - this.localCompressed = param; - } - - /** field for Data */ - protected javax.activation.DataHandler localData; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDataTracker = false; - - public boolean isDataSpecified() { - return localDataTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getData() { - return localData; - } - - /** - * Auto generated setter method - * - * @param param Data - */ - public void setData(javax.activation.DataHandler param) { - localDataTracker = param != null; - - this.localData = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetExportResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetExportResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localCompressedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Compressed", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Compressed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompressed)); - } - - xmlWriter.writeEndElement(); - } - if (localDataTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Data", xmlWriter); - - if (localData != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localData, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException("Unable to read data handler for Data", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetExportResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetExportResponse object = new WUQuerysetExportResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetExportResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetExportResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Compressed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Compressed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompressed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Data") - .equals(reader.getName())) { - - object.setData( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetExportResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetExportResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetExportResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerysetExportResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for Compressed */ + protected boolean localCompressed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompressedTracker = false; + + public boolean isCompressedSpecified() { + return localCompressedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCompressed() { + return localCompressed; + } + + /** + * Auto generated setter method + * + * @param param Compressed + */ + public void setCompressed(boolean param) { + + // setting primitive attribute tracker to true + localCompressedTracker = true; + + this.localCompressed = param; + } + + /** field for Data */ + protected javax.activation.DataHandler localData; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDataTracker = false; + + public boolean isDataSpecified() { + return localDataTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getData() { + return localData; + } + + /** + * Auto generated setter method + * + * @param param Data + */ + public void setData(javax.activation.DataHandler param) { + localDataTracker = param != null; + + this.localData = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetExportResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetExportResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localCompressedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Compressed", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Compressed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompressed)); + } + + xmlWriter.writeEndElement(); + } + if (localDataTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Data", xmlWriter); + + if (localData != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localData, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException("Unable to read data handler for Data", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetExportResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetExportResponse object = new WUQuerysetExportResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetExportResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetExportResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Compressed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Compressed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompressed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Data") + .equals(reader.getName())) { + + object.setData( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetImport.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetImport.java index 9cbd6018b..9f836beb3 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetImport.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetImport.java @@ -1,1844 +1,1981 @@ -/** - * WUQuerysetImport.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetImport bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetImport implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetImport", "ns1"); - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for QueryMask */ - protected java.lang.String localQueryMask; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryMaskTracker = false; - - public boolean isQueryMaskSpecified() { - return localQueryMaskTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryMask() { - return localQueryMask; - } - - /** - * Auto generated setter method - * - * @param param QueryMask - */ - public void setQueryMask(java.lang.String param) { - localQueryMaskTracker = param != null; - - this.localQueryMask = param; - } - - /** field for Replace */ - protected boolean localReplace = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReplaceTracker = false; - - public boolean isReplaceSpecified() { - return localReplaceTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReplace() { - return localReplace; - } - - /** - * Auto generated setter method - * - * @param param Replace - */ - public void setReplace(boolean param) { - - // setting primitive attribute tracker to true - localReplaceTracker = true; - - this.localReplace = param; - } - - /** field for ActiveOnly */ - protected boolean localActiveOnly = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActiveOnlyTracker = false; - - public boolean isActiveOnlySpecified() { - return localActiveOnlyTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getActiveOnly() { - return localActiveOnly; - } - - /** - * Auto generated setter method - * - * @param param ActiveOnly - */ - public void setActiveOnly(boolean param) { - - // setting primitive attribute tracker to true - localActiveOnlyTracker = true; - - this.localActiveOnly = param; - } - - /** field for Activation */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation - localActivation; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivationTracker = false; - - public boolean isActivationSpecified() { - return localActivationTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation - getActivation() { - return localActivation; - } - - /** - * Auto generated setter method - * - * @param param Activation - */ - public void setActivation( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation param) { - localActivationTracker = param != null; - - this.localActivation = param; - } - - /** field for Compressed */ - protected boolean localCompressed = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCompressedTracker = false; - - public boolean isCompressedSpecified() { - return localCompressedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCompressed() { - return localCompressed; - } - - /** - * Auto generated setter method - * - * @param param Compressed - */ - public void setCompressed(boolean param) { - - // setting primitive attribute tracker to true - localCompressedTracker = true; - - this.localCompressed = param; - } - - /** field for Data */ - protected javax.activation.DataHandler localData; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDataTracker = false; - - public boolean isDataSpecified() { - return localDataTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getData() { - return localData; - } - - /** - * Auto generated setter method - * - * @param param Data - */ - public void setData(javax.activation.DataHandler param) { - localDataTracker = param != null; - - this.localData = param; - } - - /** field for AllowForeignFiles */ - protected boolean localAllowForeignFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllowForeignFilesTracker = false; - - public boolean isAllowForeignFilesSpecified() { - return localAllowForeignFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllowForeignFiles() { - return localAllowForeignFiles; - } - - /** - * Auto generated setter method - * - * @param param AllowForeignFiles - */ - public void setAllowForeignFiles(boolean param) { - - // setting primitive attribute tracker to true - localAllowForeignFilesTracker = true; - - this.localAllowForeignFiles = param; - } - - /** field for DfsServer */ - protected java.lang.String localDfsServer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfsServerTracker = false; - - public boolean isDfsServerSpecified() { - return localDfsServerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfsServer() { - return localDfsServer; - } - - /** - * Auto generated setter method - * - * @param param DfsServer - */ - public void setDfsServer(java.lang.String param) { - localDfsServerTracker = param != null; - - this.localDfsServer = param; - } - - /** field for CopyFiles */ - protected boolean localCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCopyFilesTracker = false; - - public boolean isCopyFilesSpecified() { - return localCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCopyFiles() { - return localCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param CopyFiles - */ - public void setCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localCopyFilesTracker = true; - - this.localCopyFiles = param; - } - - /** field for OverwriteDfs */ - protected boolean localOverwriteDfs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOverwriteDfsTracker = false; - - public boolean isOverwriteDfsSpecified() { - return localOverwriteDfsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOverwriteDfs() { - return localOverwriteDfs; - } - - /** - * Auto generated setter method - * - * @param param OverwriteDfs - */ - public void setOverwriteDfs(boolean param) { - - // setting primitive attribute tracker to true - localOverwriteDfsTracker = true; - - this.localOverwriteDfs = param; - } - - /** field for SourceProcess */ - protected java.lang.String localSourceProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceProcessTracker = false; - - public boolean isSourceProcessSpecified() { - return localSourceProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceProcess() { - return localSourceProcess; - } - - /** - * Auto generated setter method - * - * @param param SourceProcess - */ - public void setSourceProcess(java.lang.String param) { - localSourceProcessTracker = param != null; - - this.localSourceProcess = param; - } - - /** field for UpdateSuperFiles */ - protected boolean localUpdateSuperFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateSuperFilesTracker = false; - - public boolean isUpdateSuperFilesSpecified() { - return localUpdateSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateSuperFiles() { - return localUpdateSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param UpdateSuperFiles - */ - public void setUpdateSuperFiles(boolean param) { - - // setting primitive attribute tracker to true - localUpdateSuperFilesTracker = true; - - this.localUpdateSuperFiles = param; - } - - /** field for UpdateCloneFrom */ - protected boolean localUpdateCloneFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateCloneFromTracker = false; - - public boolean isUpdateCloneFromSpecified() { - return localUpdateCloneFromTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateCloneFrom() { - return localUpdateCloneFrom; - } - - /** - * Auto generated setter method - * - * @param param UpdateCloneFrom - */ - public void setUpdateCloneFrom(boolean param) { - - // setting primitive attribute tracker to true - localUpdateCloneFromTracker = true; - - this.localUpdateCloneFrom = param; - } - - /** field for AppendCluster */ - protected boolean localAppendCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAppendClusterTracker = false; - - public boolean isAppendClusterSpecified() { - return localAppendClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAppendCluster() { - return localAppendCluster; - } - - /** - * Auto generated setter method - * - * @param param AppendCluster - */ - public void setAppendCluster(boolean param) { - - // setting primitive attribute tracker to true - localAppendClusterTracker = true; - - this.localAppendCluster = param; - } - - /** field for IncludeFileErrors */ - protected boolean localIncludeFileErrors = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeFileErrorsTracker = false; - - public boolean isIncludeFileErrorsSpecified() { - return localIncludeFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeFileErrors() { - return localIncludeFileErrors; - } - - /** - * Auto generated setter method - * - * @param param IncludeFileErrors - */ - public void setIncludeFileErrors(boolean param) { - - // setting primitive attribute tracker to true - localIncludeFileErrorsTracker = true; - - this.localIncludeFileErrors = param; - } - - /** field for DfuCopyFiles */ - protected boolean localDfuCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuCopyFilesTracker = false; - - public boolean isDfuCopyFilesSpecified() { - return localDfuCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuCopyFiles() { - return localDfuCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DfuCopyFiles - */ - public void setDfuCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDfuCopyFilesTracker = true; - - this.localDfuCopyFiles = param; - } - - /** field for DfuQueue */ - protected java.lang.String localDfuQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuQueueTracker = false; - - public boolean isDfuQueueSpecified() { - return localDfuQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuQueue() { - return localDfuQueue; - } - - /** - * Auto generated setter method - * - * @param param DfuQueue - */ - public void setDfuQueue(java.lang.String param) { - localDfuQueueTracker = param != null; - - this.localDfuQueue = param; - } - - /** field for DfuWait */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuWaitTracker = false; - - public boolean isDfuWaitSpecified() { - return localDfuWaitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { - return localDfuWait; - } - - /** - * Auto generated setter method - * - * @param param DfuWait - */ - public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localDfuWaitTracker = param != null; - - this.localDfuWait = param; - } - - /** field for DfuOverwrite */ - protected boolean localDfuOverwrite = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuOverwriteTracker = false; - - public boolean isDfuOverwriteSpecified() { - return localDfuOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuOverwrite() { - return localDfuOverwrite; - } - - /** - * Auto generated setter method - * - * @param param DfuOverwrite - */ - public void setDfuOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localDfuOverwriteTracker = true; - - this.localDfuOverwrite = param; - } - - /** field for OnlyCopyFiles */ - protected boolean localOnlyCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnlyCopyFilesTracker = false; - - public boolean isOnlyCopyFilesSpecified() { - return localOnlyCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOnlyCopyFiles() { - return localOnlyCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param OnlyCopyFiles - */ - public void setOnlyCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localOnlyCopyFilesTracker = true; - - this.localOnlyCopyFiles = param; - } - - /** field for StopIfFilesCopied */ - protected boolean localStopIfFilesCopied = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStopIfFilesCopiedTracker = false; - - public boolean isStopIfFilesCopiedSpecified() { - return localStopIfFilesCopiedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getStopIfFilesCopied() { - return localStopIfFilesCopied; - } - - /** - * Auto generated setter method - * - * @param param StopIfFilesCopied - */ - public void setStopIfFilesCopied(boolean param) { - - // setting primitive attribute tracker to true - localStopIfFilesCopiedTracker = true; - - this.localStopIfFilesCopied = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetImport", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetImport", - xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localQueryMaskTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryMask", xmlWriter); - - if (localQueryMask == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryMask cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryMask); - } - - xmlWriter.writeEndElement(); - } - if (localReplaceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Replace", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Replace cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplace)); - } - - xmlWriter.writeEndElement(); - } - if (localActiveOnlyTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ActiveOnly", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ActiveOnly cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActiveOnly)); - } - - xmlWriter.writeEndElement(); - } - if (localActivationTracker) { - if (localActivation == null) { - throw new org.apache.axis2.databinding.ADBException("Activation cannot be null!!"); - } - localActivation.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activation"), xmlWriter); - } - if (localCompressedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Compressed", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Compressed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompressed)); - } - - xmlWriter.writeEndElement(); - } - if (localDataTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Data", xmlWriter); - - if (localData != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localData, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException("Unable to read data handler for Data", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - if (localAllowForeignFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAllowForeignFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localDfsServerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfsServer", xmlWriter); - - if (localDfsServer == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfsServer cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfsServer); - } - - xmlWriter.writeEndElement(); - } - if (localCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localOverwriteDfsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OverwriteDfs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OverwriteDfs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwriteDfs)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceProcess", xmlWriter); - - if (localSourceProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceProcess); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateSuperFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localUpdateSuperFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateCloneFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localAppendClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AppendCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeFileErrorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeFileErrors)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuQueue", xmlWriter); - - if (localDfuQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuQueue); - } - - xmlWriter.writeEndElement(); - } - if (localDfuWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuWait", xmlWriter); - - if (localDfuWait == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuOverwriteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localOnlyCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localStopIfFilesCopiedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localStopIfFilesCopied)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetImport parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetImport object = new WUQuerysetImport(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetImport".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetImport) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryMask") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryMask" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryMask( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Replace") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Replace" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReplace( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActiveOnly") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ActiveOnly" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setActiveOnly( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activation") - .equals(reader.getName())) { - - object.setActivation( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Compressed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Compressed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCompressed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Data") - .equals(reader.getName())) { - - object.setData( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllowForeignFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllowForeignFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfsServer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfsServer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfsServer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OverwriteDfs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OverwriteDfs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOverwriteDfs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceProcess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateSuperFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateSuperFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateCloneFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateCloneFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AppendCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAppendCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeFileErrors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeFileErrors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuOverwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OnlyCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOnlyCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StopIfFilesCopied" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStopIfFilesCopied( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetImport.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetImport bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetImport implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetImport", "ns1"); + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for QueryMask */ + protected java.lang.String localQueryMask; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryMaskTracker = false; + + public boolean isQueryMaskSpecified() { + return localQueryMaskTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryMask() { + return localQueryMask; + } + + /** + * Auto generated setter method + * + * @param param QueryMask + */ + public void setQueryMask(java.lang.String param) { + localQueryMaskTracker = param != null; + + this.localQueryMask = param; + } + + /** field for Replace */ + protected boolean localReplace = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReplaceTracker = false; + + public boolean isReplaceSpecified() { + return localReplaceTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReplace() { + return localReplace; + } + + /** + * Auto generated setter method + * + * @param param Replace + */ + public void setReplace(boolean param) { + + // setting primitive attribute tracker to true + localReplaceTracker = true; + + this.localReplace = param; + } + + /** field for ActiveOnly */ + protected boolean localActiveOnly = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActiveOnlyTracker = false; + + public boolean isActiveOnlySpecified() { + return localActiveOnlyTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getActiveOnly() { + return localActiveOnly; + } + + /** + * Auto generated setter method + * + * @param param ActiveOnly + */ + public void setActiveOnly(boolean param) { + + // setting primitive attribute tracker to true + localActiveOnlyTracker = true; + + this.localActiveOnly = param; + } + + /** field for Activation */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation + localActivation; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivationTracker = false; + + public boolean isActivationSpecified() { + return localActivationTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation + getActivation() { + return localActivation; + } + + /** + * Auto generated setter method + * + * @param param Activation + */ + public void setActivation( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation param) { + localActivationTracker = param != null; + + this.localActivation = param; + } + + /** field for Compressed */ + protected boolean localCompressed = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCompressedTracker = false; + + public boolean isCompressedSpecified() { + return localCompressedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCompressed() { + return localCompressed; + } + + /** + * Auto generated setter method + * + * @param param Compressed + */ + public void setCompressed(boolean param) { + + // setting primitive attribute tracker to true + localCompressedTracker = true; + + this.localCompressed = param; + } + + /** field for Data */ + protected javax.activation.DataHandler localData; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDataTracker = false; + + public boolean isDataSpecified() { + return localDataTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getData() { + return localData; + } + + /** + * Auto generated setter method + * + * @param param Data + */ + public void setData(javax.activation.DataHandler param) { + localDataTracker = param != null; + + this.localData = param; + } + + /** field for AllowForeignFiles */ + protected boolean localAllowForeignFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowForeignFilesTracker = false; + + public boolean isAllowForeignFilesSpecified() { + return localAllowForeignFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllowForeignFiles() { + return localAllowForeignFiles; + } + + /** + * Auto generated setter method + * + * @param param AllowForeignFiles + */ + public void setAllowForeignFiles(boolean param) { + + // setting primitive attribute tracker to true + localAllowForeignFilesTracker = true; + + this.localAllowForeignFiles = param; + } + + /** field for DfsServer */ + protected java.lang.String localDfsServer; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfsServerTracker = false; + + public boolean isDfsServerSpecified() { + return localDfsServerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfsServer() { + return localDfsServer; + } + + /** + * Auto generated setter method + * + * @param param DfsServer + */ + public void setDfsServer(java.lang.String param) { + localDfsServerTracker = param != null; + + this.localDfsServer = param; + } + + /** field for CopyFiles */ + protected boolean localCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCopyFilesTracker = false; + + public boolean isCopyFilesSpecified() { + return localCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCopyFiles() { + return localCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param CopyFiles + */ + public void setCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localCopyFilesTracker = true; + + this.localCopyFiles = param; + } + + /** field for OverwriteDfs */ + protected boolean localOverwriteDfs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOverwriteDfsTracker = false; + + public boolean isOverwriteDfsSpecified() { + return localOverwriteDfsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOverwriteDfs() { + return localOverwriteDfs; + } + + /** + * Auto generated setter method + * + * @param param OverwriteDfs + */ + public void setOverwriteDfs(boolean param) { + + // setting primitive attribute tracker to true + localOverwriteDfsTracker = true; + + this.localOverwriteDfs = param; + } + + /** field for SourceProcess */ + protected java.lang.String localSourceProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceProcessTracker = false; + + public boolean isSourceProcessSpecified() { + return localSourceProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceProcess() { + return localSourceProcess; + } + + /** + * Auto generated setter method + * + * @param param SourceProcess + */ + public void setSourceProcess(java.lang.String param) { + localSourceProcessTracker = param != null; + + this.localSourceProcess = param; + } + + /** field for UpdateSuperFiles */ + protected boolean localUpdateSuperFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateSuperFilesTracker = false; + + public boolean isUpdateSuperFilesSpecified() { + return localUpdateSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateSuperFiles() { + return localUpdateSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param UpdateSuperFiles + */ + public void setUpdateSuperFiles(boolean param) { + + // setting primitive attribute tracker to true + localUpdateSuperFilesTracker = true; + + this.localUpdateSuperFiles = param; + } + + /** field for UpdateCloneFrom */ + protected boolean localUpdateCloneFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateCloneFromTracker = false; + + public boolean isUpdateCloneFromSpecified() { + return localUpdateCloneFromTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateCloneFrom() { + return localUpdateCloneFrom; + } + + /** + * Auto generated setter method + * + * @param param UpdateCloneFrom + */ + public void setUpdateCloneFrom(boolean param) { + + // setting primitive attribute tracker to true + localUpdateCloneFromTracker = true; + + this.localUpdateCloneFrom = param; + } + + /** field for AppendCluster */ + protected boolean localAppendCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAppendClusterTracker = false; + + public boolean isAppendClusterSpecified() { + return localAppendClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAppendCluster() { + return localAppendCluster; + } + + /** + * Auto generated setter method + * + * @param param AppendCluster + */ + public void setAppendCluster(boolean param) { + + // setting primitive attribute tracker to true + localAppendClusterTracker = true; + + this.localAppendCluster = param; + } + + /** field for IncludeFileErrors */ + protected boolean localIncludeFileErrors = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeFileErrorsTracker = false; + + public boolean isIncludeFileErrorsSpecified() { + return localIncludeFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeFileErrors() { + return localIncludeFileErrors; + } + + /** + * Auto generated setter method + * + * @param param IncludeFileErrors + */ + public void setIncludeFileErrors(boolean param) { + + // setting primitive attribute tracker to true + localIncludeFileErrorsTracker = true; + + this.localIncludeFileErrors = param; + } + + /** field for DfuCopyFiles */ + protected boolean localDfuCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuCopyFilesTracker = false; + + public boolean isDfuCopyFilesSpecified() { + return localDfuCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuCopyFiles() { + return localDfuCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DfuCopyFiles + */ + public void setDfuCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDfuCopyFilesTracker = true; + + this.localDfuCopyFiles = param; + } + + /** field for DfuQueue */ + protected java.lang.String localDfuQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuQueueTracker = false; + + public boolean isDfuQueueSpecified() { + return localDfuQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuQueue() { + return localDfuQueue; + } + + /** + * Auto generated setter method + * + * @param param DfuQueue + */ + public void setDfuQueue(java.lang.String param) { + localDfuQueueTracker = param != null; + + this.localDfuQueue = param; + } + + /** field for DfuWait */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuWaitTracker = false; + + public boolean isDfuWaitSpecified() { + return localDfuWaitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { + return localDfuWait; + } + + /** + * Auto generated setter method + * + * @param param DfuWait + */ + public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localDfuWaitTracker = param != null; + + this.localDfuWait = param; + } + + /** field for DfuOverwrite */ + protected boolean localDfuOverwrite = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuOverwriteTracker = false; + + public boolean isDfuOverwriteSpecified() { + return localDfuOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuOverwrite() { + return localDfuOverwrite; + } + + /** + * Auto generated setter method + * + * @param param DfuOverwrite + */ + public void setDfuOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localDfuOverwriteTracker = true; + + this.localDfuOverwrite = param; + } + + /** field for OnlyCopyFiles */ + protected boolean localOnlyCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnlyCopyFilesTracker = false; + + public boolean isOnlyCopyFilesSpecified() { + return localOnlyCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOnlyCopyFiles() { + return localOnlyCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param OnlyCopyFiles + */ + public void setOnlyCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localOnlyCopyFilesTracker = true; + + this.localOnlyCopyFiles = param; + } + + /** field for StopIfFilesCopied */ + protected boolean localStopIfFilesCopied = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStopIfFilesCopiedTracker = false; + + public boolean isStopIfFilesCopiedSpecified() { + return localStopIfFilesCopiedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getStopIfFilesCopied() { + return localStopIfFilesCopied; + } + + /** + * Auto generated setter method + * + * @param param StopIfFilesCopied + */ + public void setStopIfFilesCopied(boolean param) { + + // setting primitive attribute tracker to true + localStopIfFilesCopiedTracker = true; + + this.localStopIfFilesCopied = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for RemoteStorage */ + protected java.lang.String localRemoteStorage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteStorageTracker = false; + + public boolean isRemoteStorageSpecified() { + return localRemoteStorageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteStorage() { + return localRemoteStorage; + } + + /** + * Auto generated setter method + * + * @param param RemoteStorage + */ + public void setRemoteStorage(java.lang.String param) { + localRemoteStorageTracker = param != null; + + this.localRemoteStorage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetImport", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetImport", + xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localQueryMaskTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryMask", xmlWriter); + + if (localQueryMask == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryMask cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryMask); + } + + xmlWriter.writeEndElement(); + } + if (localReplaceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Replace", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Replace cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplace)); + } + + xmlWriter.writeEndElement(); + } + if (localActiveOnlyTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ActiveOnly", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ActiveOnly cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localActiveOnly)); + } + + xmlWriter.writeEndElement(); + } + if (localActivationTracker) { + if (localActivation == null) { + throw new org.apache.axis2.databinding.ADBException("Activation cannot be null!!"); + } + localActivation.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activation"), xmlWriter); + } + if (localCompressedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Compressed", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Compressed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCompressed)); + } + + xmlWriter.writeEndElement(); + } + if (localDataTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Data", xmlWriter); + + if (localData != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localData, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException("Unable to read data handler for Data", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + if (localAllowForeignFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAllowForeignFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localDfsServerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfsServer", xmlWriter); + + if (localDfsServer == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfsServer cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfsServer); + } + + xmlWriter.writeEndElement(); + } + if (localCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localOverwriteDfsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OverwriteDfs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OverwriteDfs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOverwriteDfs)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceProcess", xmlWriter); + + if (localSourceProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceProcess); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateSuperFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localUpdateSuperFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateCloneFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localAppendClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AppendCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeFileErrorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeFileErrors)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuQueue", xmlWriter); + + if (localDfuQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuQueue); + } + + xmlWriter.writeEndElement(); + } + if (localDfuWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuWait", xmlWriter); + + if (localDfuWait == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuOverwriteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localOnlyCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localStopIfFilesCopiedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localStopIfFilesCopied)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteStorageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteStorage", xmlWriter); + + if (localRemoteStorage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteStorage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteStorage); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetImport parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetImport object = new WUQuerysetImport(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetImport".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetImport) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryMask") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryMask" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryMask( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Replace") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Replace" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReplace( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActiveOnly") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ActiveOnly" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setActiveOnly( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activation") + .equals(reader.getName())) { + + object.setActivation( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerysetImportActivation + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Compressed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Compressed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCompressed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Data") + .equals(reader.getName())) { + + object.setData( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllowForeignFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllowForeignFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfsServer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfsServer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfsServer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OverwriteDfs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OverwriteDfs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOverwriteDfs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceProcess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateSuperFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateSuperFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateCloneFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateCloneFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AppendCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAppendCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeFileErrors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeFileErrors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuOverwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OnlyCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOnlyCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StopIfFilesCopied" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStopIfFilesCopied( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteStorage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteStorage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteStorage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetImportResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetImportResponse.java index 48c7603a5..4b1cc6fa2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetImportResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetImportResponse.java @@ -1,950 +1,950 @@ -/** - * WUQuerysetImportResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetImportResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetImportResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerysetImportResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for ClearedExisting */ - protected boolean localClearedExisting = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClearedExistingTracker = false; - - public boolean isClearedExistingSpecified() { - return localClearedExistingTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getClearedExisting() { - return localClearedExisting; - } - - /** - * Auto generated setter method - * - * @param param ClearedExisting - */ - public void setClearedExisting(boolean param) { - - // setting primitive attribute tracker to true - localClearedExistingTracker = true; - - this.localClearedExisting = param; - } - - /** field for Success */ - protected boolean localSuccess = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuccessTracker = false; - - public boolean isSuccessSpecified() { - return localSuccessTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuccess() { - return localSuccess; - } - - /** - * Auto generated setter method - * - * @param param Success - */ - public void setSuccess(boolean param) { - - // setting primitive attribute tracker to true - localSuccessTracker = true; - - this.localSuccess = param; - } - - /** field for ImportedQueries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 - localImportedQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localImportedQueriesTracker = false; - - public boolean isImportedQueriesSpecified() { - return localImportedQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 - getImportedQueries() { - return localImportedQueries; - } - - /** - * Auto generated setter method - * - * @param param ImportedQueries - */ - public void setImportedQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 param) { - localImportedQueriesTracker = param != null; - - this.localImportedQueries = param; - } - - /** field for ExistingQueries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 - localExistingQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExistingQueriesTracker = false; - - public boolean isExistingQueriesSpecified() { - return localExistingQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 - getExistingQueries() { - return localExistingQueries; - } - - /** - * Auto generated setter method - * - * @param param ExistingQueries - */ - public void setExistingQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 param) { - localExistingQueriesTracker = param != null; - - this.localExistingQueries = param; - } - - /** field for MissingWuids */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0 - localMissingWuids; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMissingWuidsTracker = false; - - public boolean isMissingWuidsSpecified() { - return localMissingWuidsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0 - getMissingWuids() { - return localMissingWuids; - } - - /** - * Auto generated setter method - * - * @param param MissingWuids - */ - public void setMissingWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0 param) { - localMissingWuidsTracker = param != null; - - this.localMissingWuids = param; - } - - /** field for FileErrors */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2 localFileErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileErrorsTracker = false; - - public boolean isFileErrorsSpecified() { - return localFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2 getFileErrors() { - return localFileErrors; - } - - /** - * Auto generated setter method - * - * @param param FileErrors - */ - public void setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2 param) { - localFileErrorsTracker = param != null; - - this.localFileErrors = param; - } - - /** field for DfuPublisherWuid */ - protected java.lang.String localDfuPublisherWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherWuidTracker = false; - - public boolean isDfuPublisherWuidSpecified() { - return localDfuPublisherWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherWuid() { - return localDfuPublisherWuid; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherWuid - */ - public void setDfuPublisherWuid(java.lang.String param) { - localDfuPublisherWuidTracker = param != null; - - this.localDfuPublisherWuid = param; - } - - /** field for DfuPublisherState */ - protected java.lang.String localDfuPublisherState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherStateTracker = false; - - public boolean isDfuPublisherStateSpecified() { - return localDfuPublisherStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherState() { - return localDfuPublisherState; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherState - */ - public void setDfuPublisherState(java.lang.String param) { - localDfuPublisherStateTracker = param != null; - - this.localDfuPublisherState = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetImportResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetImportResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localClearedExistingTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClearedExisting", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ClearedExisting cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClearedExisting)); - } - - xmlWriter.writeEndElement(); - } - if (localSuccessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Success", xmlWriter); - - 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(); - } - if (localImportedQueriesTracker) { - if (localImportedQueries == null) { - throw new org.apache.axis2.databinding.ADBException("ImportedQueries cannot be null!!"); - } - localImportedQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ImportedQueries"), - xmlWriter); - } - if (localExistingQueriesTracker) { - if (localExistingQueries == null) { - throw new org.apache.axis2.databinding.ADBException("ExistingQueries cannot be null!!"); - } - localExistingQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExistingQueries"), - xmlWriter); - } - if (localMissingWuidsTracker) { - if (localMissingWuids == null) { - throw new org.apache.axis2.databinding.ADBException("MissingWuids cannot be null!!"); - } - localMissingWuids.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MissingWuids"), - xmlWriter); - } - if (localFileErrorsTracker) { - if (localFileErrors == null) { - throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); - } - localFileErrors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); - } - if (localDfuPublisherWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); - - if (localDfuPublisherWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDfuPublisherStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); - - if (localDfuPublisherState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherState); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetImportResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetImportResponse object = new WUQuerysetImportResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetImportResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetImportResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ClearedExisting") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClearedExisting" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClearedExisting( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Success") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Success" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuccess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ImportedQueries") - .equals(reader.getName())) { - - object.setImportedQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ExistingQueries") - .equals(reader.getName())) { - - object.setExistingQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MissingWuids") - .equals(reader.getName())) { - - object.setMissingWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") - .equals(reader.getName())) { - - object.setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherState" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetImportResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetImportResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetImportResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerysetImportResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for ClearedExisting */ + protected boolean localClearedExisting = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClearedExistingTracker = false; + + public boolean isClearedExistingSpecified() { + return localClearedExistingTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getClearedExisting() { + return localClearedExisting; + } + + /** + * Auto generated setter method + * + * @param param ClearedExisting + */ + public void setClearedExisting(boolean param) { + + // setting primitive attribute tracker to true + localClearedExistingTracker = true; + + this.localClearedExisting = param; + } + + /** field for Success */ + protected boolean localSuccess = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuccessTracker = false; + + public boolean isSuccessSpecified() { + return localSuccessTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuccess() { + return localSuccess; + } + + /** + * Auto generated setter method + * + * @param param Success + */ + public void setSuccess(boolean param) { + + // setting primitive attribute tracker to true + localSuccessTracker = true; + + this.localSuccess = param; + } + + /** field for ImportedQueries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 + localImportedQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localImportedQueriesTracker = false; + + public boolean isImportedQueriesSpecified() { + return localImportedQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 + getImportedQueries() { + return localImportedQueries; + } + + /** + * Auto generated setter method + * + * @param param ImportedQueries + */ + public void setImportedQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 param) { + localImportedQueriesTracker = param != null; + + this.localImportedQueries = param; + } + + /** field for ExistingQueries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 + localExistingQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExistingQueriesTracker = false; + + public boolean isExistingQueriesSpecified() { + return localExistingQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 + getExistingQueries() { + return localExistingQueries; + } + + /** + * Auto generated setter method + * + * @param param ExistingQueries + */ + public void setExistingQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 param) { + localExistingQueriesTracker = param != null; + + this.localExistingQueries = param; + } + + /** field for MissingWuids */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0 + localMissingWuids; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMissingWuidsTracker = false; + + public boolean isMissingWuidsSpecified() { + return localMissingWuidsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0 + getMissingWuids() { + return localMissingWuids; + } + + /** + * Auto generated setter method + * + * @param param MissingWuids + */ + public void setMissingWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0 param) { + localMissingWuidsTracker = param != null; + + this.localMissingWuids = param; + } + + /** field for FileErrors */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2 localFileErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileErrorsTracker = false; + + public boolean isFileErrorsSpecified() { + return localFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2 getFileErrors() { + return localFileErrors; + } + + /** + * Auto generated setter method + * + * @param param FileErrors + */ + public void setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2 param) { + localFileErrorsTracker = param != null; + + this.localFileErrors = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for DfuPublisherState */ + protected java.lang.String localDfuPublisherState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherStateTracker = false; + + public boolean isDfuPublisherStateSpecified() { + return localDfuPublisherStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherState() { + return localDfuPublisherState; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherState + */ + public void setDfuPublisherState(java.lang.String param) { + localDfuPublisherStateTracker = param != null; + + this.localDfuPublisherState = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetImportResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetImportResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localClearedExistingTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClearedExisting", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ClearedExisting cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClearedExisting)); + } + + xmlWriter.writeEndElement(); + } + if (localSuccessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Success", xmlWriter); + + 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(); + } + if (localImportedQueriesTracker) { + if (localImportedQueries == null) { + throw new org.apache.axis2.databinding.ADBException("ImportedQueries cannot be null!!"); + } + localImportedQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ImportedQueries"), + xmlWriter); + } + if (localExistingQueriesTracker) { + if (localExistingQueries == null) { + throw new org.apache.axis2.databinding.ADBException("ExistingQueries cannot be null!!"); + } + localExistingQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExistingQueries"), + xmlWriter); + } + if (localMissingWuidsTracker) { + if (localMissingWuids == null) { + throw new org.apache.axis2.databinding.ADBException("MissingWuids cannot be null!!"); + } + localMissingWuids.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MissingWuids"), + xmlWriter); + } + if (localFileErrorsTracker) { + if (localFileErrors == null) { + throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); + } + localFileErrors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); + + if (localDfuPublisherState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherState); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetImportResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetImportResponse object = new WUQuerysetImportResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetImportResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetImportResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ClearedExisting") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClearedExisting" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClearedExisting( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Success") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Success" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuccess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ImportedQueries") + .equals(reader.getName())) { + + object.setImportedQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ImportedQueries_type0 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ExistingQueries") + .equals(reader.getName())) { + + object.setExistingQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExistingQueries_type0 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MissingWuids") + .equals(reader.getName())) { + + object.setMissingWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.MissingWuids_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") + .equals(reader.getName())) { + + object.setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type2.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherState" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetQueryAction.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetQueryAction.java index d3b7e8b1f..bfa59e59c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetQueryAction.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetQueryAction.java @@ -1,504 +1,504 @@ -/** - * WUQuerysetQueryAction.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetQueryAction bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetQueryAction implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerysetQueryAction", "ns1"); - - /** field for Action */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes - localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes - getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes param) { - localActionTracker = param != null; - - this.localAction = param; - } - - /** field for QuerySetName */ - protected java.lang.String localQuerySetName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetNameTracker = false; - - public boolean isQuerySetNameSpecified() { - return localQuerySetNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySetName() { - return localQuerySetName; - } - - /** - * Auto generated setter method - * - * @param param QuerySetName - */ - public void setQuerySetName(java.lang.String param) { - localQuerySetNameTracker = param != null; - - this.localQuerySetName = param; - } - - /** field for Queries */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1 localQueries; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueriesTracker = false; - - public boolean isQueriesSpecified() { - return localQueriesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1 getQueries() { - return localQueries; - } - - /** - * Auto generated setter method - * - * @param param Queries - */ - public void setQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1 param) { - localQueriesTracker = param != null; - - this.localQueries = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetQueryAction", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetQueryAction", - xmlWriter); - } - } - if (localActionTracker) { - if (localAction == null) { - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - } - localAction.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action"), xmlWriter); - } - if (localQuerySetNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySetName", xmlWriter); - - if (localQuerySetName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySetName); - } - - xmlWriter.writeEndElement(); - } - if (localQueriesTracker) { - if (localQueries == null) { - throw new org.apache.axis2.databinding.ADBException("Queries cannot be null!!"); - } - localQueries.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetQueryAction parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetQueryAction object = new WUQuerysetQueryAction(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetQueryAction".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetQueryAction) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - object.setAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySetName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySetName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries") - .equals(reader.getName())) { - - object.setQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetQueryAction.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetQueryAction bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetQueryAction implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerysetQueryAction", "ns1"); + + /** field for Action */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes + localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes + getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes param) { + localActionTracker = param != null; + + this.localAction = param; + } + + /** field for QuerySetName */ + protected java.lang.String localQuerySetName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetNameTracker = false; + + public boolean isQuerySetNameSpecified() { + return localQuerySetNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySetName() { + return localQuerySetName; + } + + /** + * Auto generated setter method + * + * @param param QuerySetName + */ + public void setQuerySetName(java.lang.String param) { + localQuerySetNameTracker = param != null; + + this.localQuerySetName = param; + } + + /** field for Queries */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1 localQueries; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueriesTracker = false; + + public boolean isQueriesSpecified() { + return localQueriesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1 getQueries() { + return localQueries; + } + + /** + * Auto generated setter method + * + * @param param Queries + */ + public void setQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1 param) { + localQueriesTracker = param != null; + + this.localQueries = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetQueryAction", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetQueryAction", + xmlWriter); + } + } + if (localActionTracker) { + if (localAction == null) { + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + } + localAction.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action"), xmlWriter); + } + if (localQuerySetNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySetName", xmlWriter); + + if (localQuerySetName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySetName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySetName); + } + + xmlWriter.writeEndElement(); + } + if (localQueriesTracker) { + if (localQueries == null) { + throw new org.apache.axis2.databinding.ADBException("Queries cannot be null!!"); + } + localQueries.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetQueryAction parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetQueryAction object = new WUQuerysetQueryAction(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetQueryAction".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetQueryAction) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + object.setAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.QuerySetQueryActionTypes + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySetName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySetName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySetName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queries") + .equals(reader.getName())) { + + object.setQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Queries_type1.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysets.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysets.java index 8f0160df8..03308681b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysets.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysets.java @@ -1,394 +1,394 @@ -/** - * WUQuerysets.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysets bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysets implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysets", "ns1"); - - /** field for Test */ - protected boolean localTest; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTestTracker = false; - - public boolean isTestSpecified() { - return localTestTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getTest() { - return localTest; - } - - /** - * Auto generated setter method - * - * @param param Test - */ - public void setTest(boolean param) { - - // setting primitive attribute tracker to true - localTestTracker = true; - - this.localTest = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysets", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUQuerysets", xmlWriter); - } - } - if (localTestTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "test", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("test cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTest)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysets parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysets object = new WUQuerysets(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysets".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysets) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "test") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "test" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTest( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysets.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysets bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysets implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysets", "ns1"); + + /** field for Test */ + protected boolean localTest; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTestTracker = false; + + public boolean isTestSpecified() { + return localTestTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getTest() { + return localTest; + } + + /** + * Auto generated setter method + * + * @param param Test + */ + public void setTest(boolean param) { + + // setting primitive attribute tracker to true + localTestTracker = true; + + this.localTest = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysets", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUQuerysets", xmlWriter); + } + } + if (localTestTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "test", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("test cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTest)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysets parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysets object = new WUQuerysets(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysets".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysets) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "test") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "test" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTest( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetsResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetsResponse.java index e75751ac4..d7cc34d94 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetsResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUQuerysetsResponse.java @@ -1,435 +1,435 @@ -/** - * WUQuerysetsResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUQuerysetsResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUQuerysetsResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetsResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Querysets */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet localQuerysets; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerysetsTracker = false; - - public boolean isQuerysetsSpecified() { - return localQuerysetsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet getQuerysets() { - return localQuerysets; - } - - /** - * Auto generated setter method - * - * @param param Querysets - */ - public void setQuerysets( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet param) { - localQuerysetsTracker = param != null; - - this.localQuerysets = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUQuerysetsResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUQuerysetsResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localQuerysetsTracker) { - if (localQuerysets == null) { - throw new org.apache.axis2.databinding.ADBException("Querysets cannot be null!!"); - } - localQuerysets.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Querysets"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUQuerysetsResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUQuerysetsResponse object = new WUQuerysetsResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUQuerysetsResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUQuerysetsResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Querysets") - .equals(reader.getName())) { - - object.setQuerysets( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUQuerysetsResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUQuerysetsResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUQuerysetsResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetsResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Querysets */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet localQuerysets; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerysetsTracker = false; + + public boolean isQuerysetsSpecified() { + return localQuerysetsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet getQuerysets() { + return localQuerysets; + } + + /** + * Auto generated setter method + * + * @param param Querysets + */ + public void setQuerysets( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet param) { + localQuerysetsTracker = param != null; + + this.localQuerysets = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUQuerysetsResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUQuerysetsResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localQuerysetsTracker) { + if (localQuerysets == null) { + throw new org.apache.axis2.databinding.ADBException("Querysets cannot be null!!"); + } + localQuerysets.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Querysets"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUQuerysetsResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUQuerysetsResponse object = new WUQuerysetsResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUQuerysetsResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUQuerysetsResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Querysets") + .equals(reader.getName())) { + + object.setQuerysets( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfQuerySet.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURecreateQuery.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURecreateQuery.java index 37323b680..15a35401b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURecreateQuery.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURecreateQuery.java @@ -1,2248 +1,2387 @@ -/** - * WURecreateQuery.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WURecreateQuery bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WURecreateQuery implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURecreateQuery", "ns1"); - - /** field for Target */ - protected java.lang.String localTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTargetTracker = false; - - public boolean isTargetSpecified() { - return localTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTarget() { - return localTarget; - } - - /** - * Auto generated setter method - * - * @param param Target - */ - public void setTarget(java.lang.String param) { - localTargetTracker = param != null; - - this.localTarget = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for DebugValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - localDebugValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValuesTracker = false; - - public boolean isDebugValuesSpecified() { - return localDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getDebugValues() { - return localDebugValues; - } - - /** - * Auto generated setter method - * - * @param param DebugValues - */ - public void setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { - localDebugValuesTracker = param != null; - - this.localDebugValues = param; - } - - /** field for DestTarget */ - protected java.lang.String localDestTarget; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDestTargetTracker = false; - - public boolean isDestTargetSpecified() { - return localDestTargetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDestTarget() { - return localDestTarget; - } - - /** - * Auto generated setter method - * - * @param param DestTarget - */ - public void setDestTarget(java.lang.String param) { - localDestTargetTracker = param != null; - - this.localDestTarget = param; - } - - /** field for Republish */ - protected boolean localRepublish = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRepublishTracker = false; - - public boolean isRepublishSpecified() { - return localRepublishTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getRepublish() { - return localRepublish; - } - - /** - * Auto generated setter method - * - * @param param Republish - */ - public void setRepublish(boolean param) { - - // setting primitive attribute tracker to true - localRepublishTracker = true; - - this.localRepublish = param; - } - - /** field for Activate */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode - localActivate; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActivateTracker = false; - - public boolean isActivateSpecified() { - return localActivateTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode - getActivate() { - return localActivate; - } - - /** - * Auto generated setter method - * - * @param param Activate - */ - public void setActivate( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode param) { - localActivateTracker = param != null; - - this.localActivate = param; - } - - /** field for NoReload */ - protected boolean localNoReload = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoReloadTracker = false; - - public boolean isNoReloadSpecified() { - return localNoReloadTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoReload() { - return localNoReload; - } - - /** - * Auto generated setter method - * - * @param param NoReload - */ - public void setNoReload(boolean param) { - - // setting primitive attribute tracker to true - localNoReloadTracker = true; - - this.localNoReload = param; - } - - /** field for MemoryLimit */ - protected java.lang.String localMemoryLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitTracker = false; - - public boolean isMemoryLimitSpecified() { - return localMemoryLimitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemoryLimit() { - return localMemoryLimit; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimit - */ - public void setMemoryLimit(java.lang.String param) { - localMemoryLimitTracker = param != null; - - this.localMemoryLimit = param; - } - - /** field for TimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitTracker = false; - - public boolean isTimeLimitSpecified() { - return localTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { - return localTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param TimeLimit - */ - public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localTimeLimitTracker = param != null; - - this.localTimeLimit = param; - } - - /** field for WarnTimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitTracker = false; - - public boolean isWarnTimeLimitSpecified() { - return localWarnTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { - return localWarnTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimit - */ - public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localWarnTimeLimitTracker = param != null; - - this.localWarnTimeLimit = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for RemoteDali */ - protected java.lang.String localRemoteDali; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRemoteDaliTracker = false; - - public boolean isRemoteDaliSpecified() { - return localRemoteDaliTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRemoteDali() { - return localRemoteDali; - } - - /** - * Auto generated setter method - * - * @param param RemoteDali - */ - public void setRemoteDali(java.lang.String param) { - localRemoteDaliTracker = param != null; - - this.localRemoteDali = param; - } - - /** field for DontCopyFiles */ - protected boolean localDontCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDontCopyFilesTracker = false; - - public boolean isDontCopyFilesSpecified() { - return localDontCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDontCopyFiles() { - return localDontCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DontCopyFiles - */ - public void setDontCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDontCopyFilesTracker = true; - - this.localDontCopyFiles = param; - } - - /** field for SourceProcess */ - protected java.lang.String localSourceProcess; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceProcessTracker = false; - - public boolean isSourceProcessSpecified() { - return localSourceProcessTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSourceProcess() { - return localSourceProcess; - } - - /** - * Auto generated setter method - * - * @param param SourceProcess - */ - public void setSourceProcess(java.lang.String param) { - localSourceProcessTracker = param != null; - - this.localSourceProcess = param; - } - - /** field for AllowForeignFiles */ - protected boolean localAllowForeignFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAllowForeignFilesTracker = false; - - public boolean isAllowForeignFilesSpecified() { - return localAllowForeignFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAllowForeignFiles() { - return localAllowForeignFiles; - } - - /** - * Auto generated setter method - * - * @param param AllowForeignFiles - */ - public void setAllowForeignFiles(boolean param) { - - // setting primitive attribute tracker to true - localAllowForeignFilesTracker = true; - - this.localAllowForeignFiles = param; - } - - /** field for UpdateDfs */ - protected boolean localUpdateDfs = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateDfsTracker = false; - - public boolean isUpdateDfsSpecified() { - return localUpdateDfsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateDfs() { - return localUpdateDfs; - } - - /** - * Auto generated setter method - * - * @param param UpdateDfs - */ - public void setUpdateDfs(boolean param) { - - // setting primitive attribute tracker to true - localUpdateDfsTracker = true; - - this.localUpdateDfs = param; - } - - /** field for UpdateSuperFiles */ - protected boolean localUpdateSuperFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateSuperFilesTracker = false; - - public boolean isUpdateSuperFilesSpecified() { - return localUpdateSuperFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateSuperFiles() { - return localUpdateSuperFiles; - } - - /** - * Auto generated setter method - * - * @param param UpdateSuperFiles - */ - public void setUpdateSuperFiles(boolean param) { - - // setting primitive attribute tracker to true - localUpdateSuperFilesTracker = true; - - this.localUpdateSuperFiles = param; - } - - /** field for UpdateCloneFrom */ - protected boolean localUpdateCloneFrom = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localUpdateCloneFromTracker = false; - - public boolean isUpdateCloneFromSpecified() { - return localUpdateCloneFromTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getUpdateCloneFrom() { - return localUpdateCloneFrom; - } - - /** - * Auto generated setter method - * - * @param param UpdateCloneFrom - */ - public void setUpdateCloneFrom(boolean param) { - - // setting primitive attribute tracker to true - localUpdateCloneFromTracker = true; - - this.localUpdateCloneFrom = param; - } - - /** field for AppendCluster */ - protected boolean localAppendCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAppendClusterTracker = false; - - public boolean isAppendClusterSpecified() { - return localAppendClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAppendCluster() { - return localAppendCluster; - } - - /** - * Auto generated setter method - * - * @param param AppendCluster - */ - public void setAppendCluster(boolean param) { - - // setting primitive attribute tracker to true - localAppendClusterTracker = true; - - this.localAppendCluster = param; - } - - /** field for IncludeFileErrors */ - protected boolean localIncludeFileErrors = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeFileErrorsTracker = false; - - public boolean isIncludeFileErrorsSpecified() { - return localIncludeFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeFileErrors() { - return localIncludeFileErrors; - } - - /** - * Auto generated setter method - * - * @param param IncludeFileErrors - */ - public void setIncludeFileErrors(boolean param) { - - // setting primitive attribute tracker to true - localIncludeFileErrorsTracker = true; - - this.localIncludeFileErrors = param; - } - - /** field for Wait */ - protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** field for DfuCopyFiles */ - protected boolean localDfuCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuCopyFilesTracker = false; - - public boolean isDfuCopyFilesSpecified() { - return localDfuCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuCopyFiles() { - return localDfuCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param DfuCopyFiles - */ - public void setDfuCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localDfuCopyFilesTracker = true; - - this.localDfuCopyFiles = param; - } - - /** field for DfuQueue */ - protected java.lang.String localDfuQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuQueueTracker = false; - - public boolean isDfuQueueSpecified() { - return localDfuQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuQueue() { - return localDfuQueue; - } - - /** - * Auto generated setter method - * - * @param param DfuQueue - */ - public void setDfuQueue(java.lang.String param) { - localDfuQueueTracker = param != null; - - this.localDfuQueue = param; - } - - /** field for DfuWait */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuWaitTracker = false; - - public boolean isDfuWaitSpecified() { - return localDfuWaitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { - return localDfuWait; - } - - /** - * Auto generated setter method - * - * @param param DfuWait - */ - public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localDfuWaitTracker = param != null; - - this.localDfuWait = param; - } - - /** field for DfuOverwrite */ - protected boolean localDfuOverwrite = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuOverwriteTracker = false; - - public boolean isDfuOverwriteSpecified() { - return localDfuOverwriteTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getDfuOverwrite() { - return localDfuOverwrite; - } - - /** - * Auto generated setter method - * - * @param param DfuOverwrite - */ - public void setDfuOverwrite(boolean param) { - - // setting primitive attribute tracker to true - localDfuOverwriteTracker = true; - - this.localDfuOverwrite = param; - } - - /** field for OnlyCopyFiles */ - protected boolean localOnlyCopyFiles = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOnlyCopyFilesTracker = false; - - public boolean isOnlyCopyFilesSpecified() { - return localOnlyCopyFilesTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getOnlyCopyFiles() { - return localOnlyCopyFiles; - } - - /** - * Auto generated setter method - * - * @param param OnlyCopyFiles - */ - public void setOnlyCopyFiles(boolean param) { - - // setting primitive attribute tracker to true - localOnlyCopyFilesTracker = true; - - this.localOnlyCopyFiles = param; - } - - /** field for StopIfFilesCopied */ - protected boolean localStopIfFilesCopied = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStopIfFilesCopiedTracker = false; - - public boolean isStopIfFilesCopiedSpecified() { - return localStopIfFilesCopiedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getStopIfFilesCopied() { - return localStopIfFilesCopied; - } - - /** - * Auto generated setter method - * - * @param param StopIfFilesCopied - */ - public void setStopIfFilesCopied(boolean param) { - - // setting primitive attribute tracker to true - localStopIfFilesCopiedTracker = true; - - this.localStopIfFilesCopied = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WURecreateQuery", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WURecreateQuery", - xmlWriter); - } - } - if (localTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Target", xmlWriter); - - if (localTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTarget); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localDebugValuesTracker) { - if (localDebugValues == null) { - throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); - } - localDebugValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), - xmlWriter); - } - if (localDestTargetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DestTarget", xmlWriter); - - if (localDestTarget == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DestTarget cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDestTarget); - } - - xmlWriter.writeEndElement(); - } - if (localRepublishTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Republish", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Republish cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRepublish)); - } - - xmlWriter.writeEndElement(); - } - if (localActivateTracker) { - if (localActivate == null) { - throw new org.apache.axis2.databinding.ADBException("Activate cannot be null!!"); - } - localActivate.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activate"), xmlWriter); - } - if (localNoReloadTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoReload", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MemoryLimit", xmlWriter); - - if (localMemoryLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MemoryLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemoryLimit); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeLimit", xmlWriter); - - if (localTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); - - if (localWarnTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localRemoteDaliTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RemoteDali", xmlWriter); - - if (localRemoteDali == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RemoteDali cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRemoteDali); - } - - xmlWriter.writeEndElement(); - } - if (localDontCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DontCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DontCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDontCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localSourceProcessTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SourceProcess", xmlWriter); - - if (localSourceProcess == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSourceProcess); - } - - xmlWriter.writeEndElement(); - } - if (localAllowForeignFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAllowForeignFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateDfsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateDfs", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateDfs cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateDfs)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateSuperFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localUpdateSuperFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localUpdateCloneFromTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); - } - - xmlWriter.writeEndElement(); - } - if (localAppendClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AppendCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeFileErrorsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeFileErrors)); - } - - xmlWriter.writeEndElement(); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuQueue", xmlWriter); - - if (localDfuQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuQueue); - } - - xmlWriter.writeEndElement(); - } - if (localDfuWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuWait", xmlWriter); - - if (localDfuWait == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); - } - - xmlWriter.writeEndElement(); - } - if (localDfuOverwriteTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); - } - - xmlWriter.writeEndElement(); - } - if (localOnlyCopyFilesTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); - } - - xmlWriter.writeEndElement(); - } - if (localStopIfFilesCopiedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localStopIfFilesCopied)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WURecreateQuery parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WURecreateQuery object = new WURecreateQuery(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WURecreateQuery".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WURecreateQuery) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Target" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") - .equals(reader.getName())) { - - object.setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DestTarget") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DestTarget" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDestTarget( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Republish") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Republish" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRepublish( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activate") - .equals(reader.getName())) { - - object.setActivate( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoReload" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoReload( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemoryLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarnTimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteDali") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RemoteDali" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRemoteDali( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DontCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DontCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDontCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SourceProcess" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSourceProcess( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AllowForeignFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAllowForeignFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "UpdateDfs") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateDfs" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateDfs( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateSuperFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateSuperFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "UpdateCloneFrom" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setUpdateCloneFrom( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AppendCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAppendCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeFileErrors" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeFileErrors( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuQueue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuOverwrite" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuOverwrite( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "OnlyCopyFiles" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOnlyCopyFiles( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StopIfFilesCopied" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStopIfFilesCopied( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WURecreateQuery.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WURecreateQuery bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WURecreateQuery implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURecreateQuery", "ns1"); + + /** field for Target */ + protected java.lang.String localTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTargetTracker = false; + + public boolean isTargetSpecified() { + return localTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTarget() { + return localTarget; + } + + /** + * Auto generated setter method + * + * @param param Target + */ + public void setTarget(java.lang.String param) { + localTargetTracker = param != null; + + this.localTarget = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for DebugValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + localDebugValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValuesTracker = false; + + public boolean isDebugValuesSpecified() { + return localDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getDebugValues() { + return localDebugValues; + } + + /** + * Auto generated setter method + * + * @param param DebugValues + */ + public void setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { + localDebugValuesTracker = param != null; + + this.localDebugValues = param; + } + + /** field for DestTarget */ + protected java.lang.String localDestTarget; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDestTargetTracker = false; + + public boolean isDestTargetSpecified() { + return localDestTargetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDestTarget() { + return localDestTarget; + } + + /** + * Auto generated setter method + * + * @param param DestTarget + */ + public void setDestTarget(java.lang.String param) { + localDestTargetTracker = param != null; + + this.localDestTarget = param; + } + + /** field for Republish */ + protected boolean localRepublish = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRepublishTracker = false; + + public boolean isRepublishSpecified() { + return localRepublishTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getRepublish() { + return localRepublish; + } + + /** + * Auto generated setter method + * + * @param param Republish + */ + public void setRepublish(boolean param) { + + // setting primitive attribute tracker to true + localRepublishTracker = true; + + this.localRepublish = param; + } + + /** field for Activate */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode + localActivate; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActivateTracker = false; + + public boolean isActivateSpecified() { + return localActivateTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode + getActivate() { + return localActivate; + } + + /** + * Auto generated setter method + * + * @param param Activate + */ + public void setActivate( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode param) { + localActivateTracker = param != null; + + this.localActivate = param; + } + + /** field for NoReload */ + protected boolean localNoReload = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoReloadTracker = false; + + public boolean isNoReloadSpecified() { + return localNoReloadTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoReload() { + return localNoReload; + } + + /** + * Auto generated setter method + * + * @param param NoReload + */ + public void setNoReload(boolean param) { + + // setting primitive attribute tracker to true + localNoReloadTracker = true; + + this.localNoReload = param; + } + + /** field for MemoryLimit */ + protected java.lang.String localMemoryLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitTracker = false; + + public boolean isMemoryLimitSpecified() { + return localMemoryLimitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemoryLimit() { + return localMemoryLimit; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimit + */ + public void setMemoryLimit(java.lang.String param) { + localMemoryLimitTracker = param != null; + + this.localMemoryLimit = param; + } + + /** field for TimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitTracker = false; + + public boolean isTimeLimitSpecified() { + return localTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { + return localTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param TimeLimit + */ + public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localTimeLimitTracker = param != null; + + this.localTimeLimit = param; + } + + /** field for WarnTimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitTracker = false; + + public boolean isWarnTimeLimitSpecified() { + return localWarnTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { + return localWarnTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimit + */ + public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localWarnTimeLimitTracker = param != null; + + this.localWarnTimeLimit = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for RemoteDali */ + protected java.lang.String localRemoteDali; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteDaliTracker = false; + + public boolean isRemoteDaliSpecified() { + return localRemoteDaliTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteDali() { + return localRemoteDali; + } + + /** + * Auto generated setter method + * + * @param param RemoteDali + */ + public void setRemoteDali(java.lang.String param) { + localRemoteDaliTracker = param != null; + + this.localRemoteDali = param; + } + + /** field for DontCopyFiles */ + protected boolean localDontCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDontCopyFilesTracker = false; + + public boolean isDontCopyFilesSpecified() { + return localDontCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDontCopyFiles() { + return localDontCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DontCopyFiles + */ + public void setDontCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDontCopyFilesTracker = true; + + this.localDontCopyFiles = param; + } + + /** field for SourceProcess */ + protected java.lang.String localSourceProcess; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceProcessTracker = false; + + public boolean isSourceProcessSpecified() { + return localSourceProcessTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSourceProcess() { + return localSourceProcess; + } + + /** + * Auto generated setter method + * + * @param param SourceProcess + */ + public void setSourceProcess(java.lang.String param) { + localSourceProcessTracker = param != null; + + this.localSourceProcess = param; + } + + /** field for AllowForeignFiles */ + protected boolean localAllowForeignFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAllowForeignFilesTracker = false; + + public boolean isAllowForeignFilesSpecified() { + return localAllowForeignFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAllowForeignFiles() { + return localAllowForeignFiles; + } + + /** + * Auto generated setter method + * + * @param param AllowForeignFiles + */ + public void setAllowForeignFiles(boolean param) { + + // setting primitive attribute tracker to true + localAllowForeignFilesTracker = true; + + this.localAllowForeignFiles = param; + } + + /** field for UpdateDfs */ + protected boolean localUpdateDfs = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateDfsTracker = false; + + public boolean isUpdateDfsSpecified() { + return localUpdateDfsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateDfs() { + return localUpdateDfs; + } + + /** + * Auto generated setter method + * + * @param param UpdateDfs + */ + public void setUpdateDfs(boolean param) { + + // setting primitive attribute tracker to true + localUpdateDfsTracker = true; + + this.localUpdateDfs = param; + } + + /** field for UpdateSuperFiles */ + protected boolean localUpdateSuperFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateSuperFilesTracker = false; + + public boolean isUpdateSuperFilesSpecified() { + return localUpdateSuperFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateSuperFiles() { + return localUpdateSuperFiles; + } + + /** + * Auto generated setter method + * + * @param param UpdateSuperFiles + */ + public void setUpdateSuperFiles(boolean param) { + + // setting primitive attribute tracker to true + localUpdateSuperFilesTracker = true; + + this.localUpdateSuperFiles = param; + } + + /** field for UpdateCloneFrom */ + protected boolean localUpdateCloneFrom = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localUpdateCloneFromTracker = false; + + public boolean isUpdateCloneFromSpecified() { + return localUpdateCloneFromTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getUpdateCloneFrom() { + return localUpdateCloneFrom; + } + + /** + * Auto generated setter method + * + * @param param UpdateCloneFrom + */ + public void setUpdateCloneFrom(boolean param) { + + // setting primitive attribute tracker to true + localUpdateCloneFromTracker = true; + + this.localUpdateCloneFrom = param; + } + + /** field for AppendCluster */ + protected boolean localAppendCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAppendClusterTracker = false; + + public boolean isAppendClusterSpecified() { + return localAppendClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAppendCluster() { + return localAppendCluster; + } + + /** + * Auto generated setter method + * + * @param param AppendCluster + */ + public void setAppendCluster(boolean param) { + + // setting primitive attribute tracker to true + localAppendClusterTracker = true; + + this.localAppendCluster = param; + } + + /** field for IncludeFileErrors */ + protected boolean localIncludeFileErrors = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeFileErrorsTracker = false; + + public boolean isIncludeFileErrorsSpecified() { + return localIncludeFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeFileErrors() { + return localIncludeFileErrors; + } + + /** + * Auto generated setter method + * + * @param param IncludeFileErrors + */ + public void setIncludeFileErrors(boolean param) { + + // setting primitive attribute tracker to true + localIncludeFileErrorsTracker = true; + + this.localIncludeFileErrors = param; + } + + /** field for Wait */ + protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** field for DfuCopyFiles */ + protected boolean localDfuCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuCopyFilesTracker = false; + + public boolean isDfuCopyFilesSpecified() { + return localDfuCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuCopyFiles() { + return localDfuCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param DfuCopyFiles + */ + public void setDfuCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localDfuCopyFilesTracker = true; + + this.localDfuCopyFiles = param; + } + + /** field for DfuQueue */ + protected java.lang.String localDfuQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuQueueTracker = false; + + public boolean isDfuQueueSpecified() { + return localDfuQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuQueue() { + return localDfuQueue; + } + + /** + * Auto generated setter method + * + * @param param DfuQueue + */ + public void setDfuQueue(java.lang.String param) { + localDfuQueueTracker = param != null; + + this.localDfuQueue = param; + } + + /** field for DfuWait */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localDfuWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger("1800000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuWaitTracker = false; + + public boolean isDfuWaitSpecified() { + return localDfuWaitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getDfuWait() { + return localDfuWait; + } + + /** + * Auto generated setter method + * + * @param param DfuWait + */ + public void setDfuWait(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localDfuWaitTracker = param != null; + + this.localDfuWait = param; + } + + /** field for DfuOverwrite */ + protected boolean localDfuOverwrite = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuOverwriteTracker = false; + + public boolean isDfuOverwriteSpecified() { + return localDfuOverwriteTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getDfuOverwrite() { + return localDfuOverwrite; + } + + /** + * Auto generated setter method + * + * @param param DfuOverwrite + */ + public void setDfuOverwrite(boolean param) { + + // setting primitive attribute tracker to true + localDfuOverwriteTracker = true; + + this.localDfuOverwrite = param; + } + + /** field for OnlyCopyFiles */ + protected boolean localOnlyCopyFiles = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOnlyCopyFilesTracker = false; + + public boolean isOnlyCopyFilesSpecified() { + return localOnlyCopyFilesTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getOnlyCopyFiles() { + return localOnlyCopyFiles; + } + + /** + * Auto generated setter method + * + * @param param OnlyCopyFiles + */ + public void setOnlyCopyFiles(boolean param) { + + // setting primitive attribute tracker to true + localOnlyCopyFilesTracker = true; + + this.localOnlyCopyFiles = param; + } + + /** field for StopIfFilesCopied */ + protected boolean localStopIfFilesCopied = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStopIfFilesCopiedTracker = false; + + public boolean isStopIfFilesCopiedSpecified() { + return localStopIfFilesCopiedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getStopIfFilesCopied() { + return localStopIfFilesCopied; + } + + /** + * Auto generated setter method + * + * @param param StopIfFilesCopied + */ + public void setStopIfFilesCopied(boolean param) { + + // setting primitive attribute tracker to true + localStopIfFilesCopiedTracker = true; + + this.localStopIfFilesCopied = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for RemoteStorage */ + protected java.lang.String localRemoteStorage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRemoteStorageTracker = false; + + public boolean isRemoteStorageSpecified() { + return localRemoteStorageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRemoteStorage() { + return localRemoteStorage; + } + + /** + * Auto generated setter method + * + * @param param RemoteStorage + */ + public void setRemoteStorage(java.lang.String param) { + localRemoteStorageTracker = param != null; + + this.localRemoteStorage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WURecreateQuery", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WURecreateQuery", + xmlWriter); + } + } + if (localTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Target", xmlWriter); + + if (localTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Target cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTarget); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localDebugValuesTracker) { + if (localDebugValues == null) { + throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); + } + localDebugValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), + xmlWriter); + } + if (localDestTargetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DestTarget", xmlWriter); + + if (localDestTarget == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DestTarget cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDestTarget); + } + + xmlWriter.writeEndElement(); + } + if (localRepublishTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Republish", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Republish cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRepublish)); + } + + xmlWriter.writeEndElement(); + } + if (localActivateTracker) { + if (localActivate == null) { + throw new org.apache.axis2.databinding.ADBException("Activate cannot be null!!"); + } + localActivate.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activate"), xmlWriter); + } + if (localNoReloadTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoReload", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoReload cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoReload)); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MemoryLimit", xmlWriter); + + if (localMemoryLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MemoryLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemoryLimit); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeLimit", xmlWriter); + + if (localTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); + + if (localWarnTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteDaliTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteDali", xmlWriter); + + if (localRemoteDali == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteDali cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteDali); + } + + xmlWriter.writeEndElement(); + } + if (localDontCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DontCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DontCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDontCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localSourceProcessTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SourceProcess", xmlWriter); + + if (localSourceProcess == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SourceProcess cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSourceProcess); + } + + xmlWriter.writeEndElement(); + } + if (localAllowForeignFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AllowForeignFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AllowForeignFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAllowForeignFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateDfsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateDfs", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateDfs cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateDfs)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateSuperFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateSuperFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateSuperFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localUpdateSuperFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localUpdateCloneFromTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "UpdateCloneFrom", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("UpdateCloneFrom cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUpdateCloneFrom)); + } + + xmlWriter.writeEndElement(); + } + if (localAppendClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AppendCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AppendCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAppendCluster)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeFileErrorsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeFileErrors", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeFileErrors cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeFileErrors)); + } + + xmlWriter.writeEndElement(); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuQueue", xmlWriter); + + if (localDfuQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuQueue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuQueue); + } + + xmlWriter.writeEndElement(); + } + if (localDfuWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuWait", xmlWriter); + + if (localDfuWait == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuWait cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuWait)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuOverwriteTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuOverwrite", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("DfuOverwrite cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDfuOverwrite)); + } + + xmlWriter.writeEndElement(); + } + if (localOnlyCopyFilesTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "OnlyCopyFiles", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("OnlyCopyFiles cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOnlyCopyFiles)); + } + + xmlWriter.writeEndElement(); + } + if (localStopIfFilesCopiedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StopIfFilesCopied", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("StopIfFilesCopied cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localStopIfFilesCopied)); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localRemoteStorageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RemoteStorage", xmlWriter); + + if (localRemoteStorage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RemoteStorage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRemoteStorage); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WURecreateQuery parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WURecreateQuery object = new WURecreateQuery(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WURecreateQuery".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WURecreateQuery) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Target") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Target" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") + .equals(reader.getName())) { + + object.setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DestTarget") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DestTarget" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDestTarget( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Republish") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Republish" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRepublish( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Activate") + .equals(reader.getName())) { + + object.setActivate( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryActivationMode + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoReload") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoReload" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoReload( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemoryLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarnTimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteDali") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteDali" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteDali( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DontCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DontCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDontCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SourceProcess") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SourceProcess" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSourceProcess( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AllowForeignFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AllowForeignFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAllowForeignFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "UpdateDfs") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateDfs" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateDfs( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateSuperFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateSuperFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateSuperFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "UpdateCloneFrom") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "UpdateCloneFrom" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setUpdateCloneFrom( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AppendCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AppendCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAppendCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeFileErrors") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeFileErrors" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeFileErrors( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuQueue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuQueue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DfuOverwrite") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuOverwrite" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuOverwrite( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "OnlyCopyFiles") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "OnlyCopyFiles" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOnlyCopyFiles( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "StopIfFilesCopied") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StopIfFilesCopied" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStopIfFilesCopied( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RemoteStorage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RemoteStorage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRemoteStorage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURecreateQueryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURecreateQueryResponse.java index 38c4109fe..a1bfe3351 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURecreateQueryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURecreateQueryResponse.java @@ -1,1396 +1,1396 @@ -/** - * WURecreateQueryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WURecreateQueryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WURecreateQueryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WURecreateQueryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for QueryName */ - protected java.lang.String localQueryName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryNameTracker = false; - - public boolean isQueryNameSpecified() { - return localQueryNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryName() { - return localQueryName; - } - - /** - * Auto generated setter method - * - * @param param QueryName - */ - public void setQueryName(java.lang.String param) { - localQueryNameTracker = param != null; - - this.localQueryName = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for MemoryLimit */ - protected java.lang.String localMemoryLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMemoryLimitTracker = false; - - public boolean isMemoryLimitSpecified() { - return localMemoryLimitTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMemoryLimit() { - return localMemoryLimit; - } - - /** - * Auto generated setter method - * - * @param param MemoryLimit - */ - public void setMemoryLimit(java.lang.String param) { - localMemoryLimitTracker = param != null; - - this.localMemoryLimit = param; - } - - /** field for TimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeLimitTracker = false; - - public boolean isTimeLimitSpecified() { - return localTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { - return localTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param TimeLimit - */ - public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localTimeLimitTracker = param != null; - - this.localTimeLimit = param; - } - - /** field for WarnTimeLimit */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWarnTimeLimitTracker = false; - - public boolean isWarnTimeLimitSpecified() { - return localWarnTimeLimitTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { - return localWarnTimeLimit; - } - - /** - * Auto generated setter method - * - * @param param WarnTimeLimit - */ - public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localWarnTimeLimitTracker = param != null; - - this.localWarnTimeLimit = param; - } - - /** field for Priority */ - protected java.lang.String localPriority; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityTracker = false; - - public boolean isPrioritySpecified() { - return localPriorityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPriority() { - return localPriority; - } - - /** - * Auto generated setter method - * - * @param param Priority - */ - public void setPriority(java.lang.String param) { - localPriorityTracker = param != null; - - this.localPriority = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** field for ReloadFailed */ - protected boolean localReloadFailed; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReloadFailedTracker = false; - - public boolean isReloadFailedSpecified() { - return localReloadFailedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReloadFailed() { - return localReloadFailed; - } - - /** - * Auto generated setter method - * - * @param param ReloadFailed - */ - public void setReloadFailed(boolean param) { - - // setting primitive attribute tracker to true - localReloadFailedTracker = true; - - this.localReloadFailed = param; - } - - /** field for Suspended */ - protected boolean localSuspended; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuspendedTracker = false; - - public boolean isSuspendedSpecified() { - return localSuspendedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuspended() { - return localSuspended; - } - - /** - * Auto generated setter method - * - * @param param Suspended - */ - public void setSuspended(boolean param) { - - // setting primitive attribute tracker to true - localSuspendedTracker = true; - - this.localSuspended = param; - } - - /** field for ErrorMessage */ - protected java.lang.String localErrorMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorMessageTracker = false; - - public boolean isErrorMessageSpecified() { - return localErrorMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getErrorMessage() { - return localErrorMessage; - } - - /** - * Auto generated setter method - * - * @param param ErrorMessage - */ - public void setErrorMessage(java.lang.String param) { - localErrorMessageTracker = param != null; - - this.localErrorMessage = param; - } - - /** field for FileErrors */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4 localFileErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFileErrorsTracker = false; - - public boolean isFileErrorsSpecified() { - return localFileErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4 getFileErrors() { - return localFileErrors; - } - - /** - * Auto generated setter method - * - * @param param FileErrors - */ - public void setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4 param) { - localFileErrorsTracker = param != null; - - this.localFileErrors = param; - } - - /** field for DfuPublisherWuid */ - protected java.lang.String localDfuPublisherWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherWuidTracker = false; - - public boolean isDfuPublisherWuidSpecified() { - return localDfuPublisherWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherWuid() { - return localDfuPublisherWuid; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherWuid - */ - public void setDfuPublisherWuid(java.lang.String param) { - localDfuPublisherWuidTracker = param != null; - - this.localDfuPublisherWuid = param; - } - - /** field for DfuPublisherState */ - protected java.lang.String localDfuPublisherState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDfuPublisherStateTracker = false; - - public boolean isDfuPublisherStateSpecified() { - return localDfuPublisherStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDfuPublisherState() { - return localDfuPublisherState; - } - - /** - * Auto generated setter method - * - * @param param DfuPublisherState - */ - public void setDfuPublisherState(java.lang.String param) { - localDfuPublisherStateTracker = param != null; - - this.localDfuPublisherState = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WURecreateQueryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WURecreateQueryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localQueryNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryName", xmlWriter); - - if (localQueryName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryName); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localMemoryLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MemoryLimit", xmlWriter); - - if (localMemoryLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MemoryLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMemoryLimit); - } - - xmlWriter.writeEndElement(); - } - if (localTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeLimit", xmlWriter); - - if (localTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localWarnTimeLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); - - if (localWarnTimeLimit == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Priority", xmlWriter); - - if (localPriority == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPriority); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - if (localReloadFailedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ReloadFailed", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ReloadFailed cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReloadFailed)); - } - - xmlWriter.writeEndElement(); - } - if (localSuspendedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Suspended", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); - } - - xmlWriter.writeEndElement(); - } - if (localErrorMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ErrorMessage", xmlWriter); - - if (localErrorMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ErrorMessage cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localErrorMessage); - } - - xmlWriter.writeEndElement(); - } - if (localFileErrorsTracker) { - if (localFileErrors == null) { - throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); - } - localFileErrors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); - } - if (localDfuPublisherWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); - - if (localDfuPublisherWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherWuid); - } - - xmlWriter.writeEndElement(); - } - if (localDfuPublisherStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); - - if (localDfuPublisherState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDfuPublisherState); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WURecreateQueryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WURecreateQueryResponse object = new WURecreateQueryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WURecreateQueryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WURecreateQueryResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MemoryLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMemoryLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "WarnTimeLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWarnTimeLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Priority" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriority( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReloadFailed") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReloadFailed" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReloadFailed( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Suspended" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuspended( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorMessage") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ErrorMessage" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setErrorMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") - .equals(reader.getName())) { - - object.setFileErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherWuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DfuPublisherState" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDfuPublisherState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WURecreateQueryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WURecreateQueryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WURecreateQueryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WURecreateQueryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for QueryName */ + protected java.lang.String localQueryName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryNameTracker = false; + + public boolean isQueryNameSpecified() { + return localQueryNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryName() { + return localQueryName; + } + + /** + * Auto generated setter method + * + * @param param QueryName + */ + public void setQueryName(java.lang.String param) { + localQueryNameTracker = param != null; + + this.localQueryName = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for MemoryLimit */ + protected java.lang.String localMemoryLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMemoryLimitTracker = false; + + public boolean isMemoryLimitSpecified() { + return localMemoryLimitTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMemoryLimit() { + return localMemoryLimit; + } + + /** + * Auto generated setter method + * + * @param param MemoryLimit + */ + public void setMemoryLimit(java.lang.String param) { + localMemoryLimitTracker = param != null; + + this.localMemoryLimit = param; + } + + /** field for TimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localTimeLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeLimitTracker = false; + + public boolean isTimeLimitSpecified() { + return localTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getTimeLimit() { + return localTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param TimeLimit + */ + public void setTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localTimeLimitTracker = param != null; + + this.localTimeLimit = param; + } + + /** field for WarnTimeLimit */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localWarnTimeLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWarnTimeLimitTracker = false; + + public boolean isWarnTimeLimitSpecified() { + return localWarnTimeLimitTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getWarnTimeLimit() { + return localWarnTimeLimit; + } + + /** + * Auto generated setter method + * + * @param param WarnTimeLimit + */ + public void setWarnTimeLimit(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localWarnTimeLimitTracker = param != null; + + this.localWarnTimeLimit = param; + } + + /** field for Priority */ + protected java.lang.String localPriority; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityTracker = false; + + public boolean isPrioritySpecified() { + return localPriorityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPriority() { + return localPriority; + } + + /** + * Auto generated setter method + * + * @param param Priority + */ + public void setPriority(java.lang.String param) { + localPriorityTracker = param != null; + + this.localPriority = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** field for ReloadFailed */ + protected boolean localReloadFailed; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReloadFailedTracker = false; + + public boolean isReloadFailedSpecified() { + return localReloadFailedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReloadFailed() { + return localReloadFailed; + } + + /** + * Auto generated setter method + * + * @param param ReloadFailed + */ + public void setReloadFailed(boolean param) { + + // setting primitive attribute tracker to true + localReloadFailedTracker = true; + + this.localReloadFailed = param; + } + + /** field for Suspended */ + protected boolean localSuspended; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuspendedTracker = false; + + public boolean isSuspendedSpecified() { + return localSuspendedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuspended() { + return localSuspended; + } + + /** + * Auto generated setter method + * + * @param param Suspended + */ + public void setSuspended(boolean param) { + + // setting primitive attribute tracker to true + localSuspendedTracker = true; + + this.localSuspended = param; + } + + /** field for ErrorMessage */ + protected java.lang.String localErrorMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorMessageTracker = false; + + public boolean isErrorMessageSpecified() { + return localErrorMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getErrorMessage() { + return localErrorMessage; + } + + /** + * Auto generated setter method + * + * @param param ErrorMessage + */ + public void setErrorMessage(java.lang.String param) { + localErrorMessageTracker = param != null; + + this.localErrorMessage = param; + } + + /** field for FileErrors */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4 localFileErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFileErrorsTracker = false; + + public boolean isFileErrorsSpecified() { + return localFileErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4 getFileErrors() { + return localFileErrors; + } + + /** + * Auto generated setter method + * + * @param param FileErrors + */ + public void setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4 param) { + localFileErrorsTracker = param != null; + + this.localFileErrors = param; + } + + /** field for DfuPublisherWuid */ + protected java.lang.String localDfuPublisherWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherWuidTracker = false; + + public boolean isDfuPublisherWuidSpecified() { + return localDfuPublisherWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherWuid() { + return localDfuPublisherWuid; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherWuid + */ + public void setDfuPublisherWuid(java.lang.String param) { + localDfuPublisherWuidTracker = param != null; + + this.localDfuPublisherWuid = param; + } + + /** field for DfuPublisherState */ + protected java.lang.String localDfuPublisherState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDfuPublisherStateTracker = false; + + public boolean isDfuPublisherStateSpecified() { + return localDfuPublisherStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDfuPublisherState() { + return localDfuPublisherState; + } + + /** + * Auto generated setter method + * + * @param param DfuPublisherState + */ + public void setDfuPublisherState(java.lang.String param) { + localDfuPublisherStateTracker = param != null; + + this.localDfuPublisherState = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WURecreateQueryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WURecreateQueryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localQueryNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryName", xmlWriter); + + if (localQueryName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryName); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localMemoryLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MemoryLimit", xmlWriter); + + if (localMemoryLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MemoryLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMemoryLimit); + } + + xmlWriter.writeEndElement(); + } + if (localTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeLimit", xmlWriter); + + if (localTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localWarnTimeLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "WarnTimeLimit", xmlWriter); + + if (localWarnTimeLimit == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("WarnTimeLimit cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWarnTimeLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Priority", xmlWriter); + + if (localPriority == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPriority); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + if (localReloadFailedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ReloadFailed", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ReloadFailed cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReloadFailed)); + } + + xmlWriter.writeEndElement(); + } + if (localSuspendedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Suspended", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Suspended cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSuspended)); + } + + xmlWriter.writeEndElement(); + } + if (localErrorMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ErrorMessage", xmlWriter); + + if (localErrorMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ErrorMessage cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localErrorMessage); + } + + xmlWriter.writeEndElement(); + } + if (localFileErrorsTracker) { + if (localFileErrors == null) { + throw new org.apache.axis2.databinding.ADBException("FileErrors cannot be null!!"); + } + localFileErrors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors"), xmlWriter); + } + if (localDfuPublisherWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherWuid", xmlWriter); + + if (localDfuPublisherWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherWuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherWuid); + } + + xmlWriter.writeEndElement(); + } + if (localDfuPublisherStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DfuPublisherState", xmlWriter); + + if (localDfuPublisherState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DfuPublisherState cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDfuPublisherState); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WURecreateQueryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WURecreateQueryResponse object = new WURecreateQueryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WURecreateQueryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WURecreateQueryResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MemoryLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MemoryLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMemoryLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WarnTimeLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "WarnTimeLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWarnTimeLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Priority" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriority( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReloadFailed") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReloadFailed" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReloadFailed( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Suspended") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Suspended" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuspended( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorMessage") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ErrorMessage" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setErrorMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FileErrors") + .equals(reader.getName())) { + + object.setFileErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.FileErrors_type4.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherWuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherWuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DfuPublisherState") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DfuPublisherState" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDfuPublisherState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseNote.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseNote.java index 99bfc6fda..5f59664ad 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseNote.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseNote.java @@ -1,676 +1,676 @@ -/** - * WUResponseNote.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResponseNote bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResponseNote implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUResponseNote - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Source */ - protected java.lang.String localSource; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSourceTracker = false; - - public boolean isSourceSpecified() { - return localSourceTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSource() { - return localSource; - } - - /** - * Auto generated setter method - * - * @param param Source - */ - public void setSource(java.lang.String param) { - localSourceTracker = param != null; - - this.localSource = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** field for ErrorCode */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localErrorCode; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorCodeTracker = false; - - public boolean isErrorCodeSpecified() { - return localErrorCodeTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getErrorCode() { - return localErrorCode; - } - - /** - * Auto generated setter method - * - * @param param ErrorCode - */ - public void setErrorCode(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localErrorCodeTracker = param != null; - - this.localErrorCode = param; - } - - /** field for Severity */ - protected java.lang.String localSeverity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSeverityTracker = false; - - public boolean isSeveritySpecified() { - return localSeverityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSeverity() { - return localSeverity; - } - - /** - * Auto generated setter method - * - * @param param Severity - */ - public void setSeverity(java.lang.String param) { - localSeverityTracker = param != null; - - this.localSeverity = param; - } - - /** field for Cost */ - protected org.apache.axis2.databinding.types.NonNegativeInteger localCost; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCostTracker = false; - - public boolean isCostSpecified() { - return localCostTracker; - } - - /** - * Auto generated getter method - * - * @return org.apache.axis2.databinding.types.NonNegativeInteger - */ - public org.apache.axis2.databinding.types.NonNegativeInteger getCost() { - return localCost; - } - - /** - * Auto generated setter method - * - * @param param Cost - */ - public void setCost(org.apache.axis2.databinding.types.NonNegativeInteger param) { - localCostTracker = param != null; - - this.localCost = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResponseNote", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResponseNote", - xmlWriter); - } - } - if (localSourceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Source", xmlWriter); - - if (localSource == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSource); - } - - xmlWriter.writeEndElement(); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - if (localMessage == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Message cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMessage); - } - - xmlWriter.writeEndElement(); - } - if (localErrorCodeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ErrorCode", xmlWriter); - - if (localErrorCode == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ErrorCode cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localErrorCode)); - } - - xmlWriter.writeEndElement(); - } - if (localSeverityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Severity", xmlWriter); - - if (localSeverity == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Severity cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSeverity); - } - - xmlWriter.writeEndElement(); - } - if (localCostTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cost", xmlWriter); - - if (localCost == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cost cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCost)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResponseNote parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResponseNote object = new WUResponseNote(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResponseNote".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResponseNote) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Source" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSource( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorCode") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ErrorCode" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setErrorCode( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Severity") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Severity" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSeverity( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cost") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cost" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCost( - org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( - content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResponseNote.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResponseNote bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResponseNote implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUResponseNote + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Source */ + protected java.lang.String localSource; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSourceTracker = false; + + public boolean isSourceSpecified() { + return localSourceTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSource() { + return localSource; + } + + /** + * Auto generated setter method + * + * @param param Source + */ + public void setSource(java.lang.String param) { + localSourceTracker = param != null; + + this.localSource = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** field for ErrorCode */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localErrorCode; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorCodeTracker = false; + + public boolean isErrorCodeSpecified() { + return localErrorCodeTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getErrorCode() { + return localErrorCode; + } + + /** + * Auto generated setter method + * + * @param param ErrorCode + */ + public void setErrorCode(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localErrorCodeTracker = param != null; + + this.localErrorCode = param; + } + + /** field for Severity */ + protected java.lang.String localSeverity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSeverityTracker = false; + + public boolean isSeveritySpecified() { + return localSeverityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSeverity() { + return localSeverity; + } + + /** + * Auto generated setter method + * + * @param param Severity + */ + public void setSeverity(java.lang.String param) { + localSeverityTracker = param != null; + + this.localSeverity = param; + } + + /** field for Cost */ + protected org.apache.axis2.databinding.types.NonNegativeInteger localCost; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCostTracker = false; + + public boolean isCostSpecified() { + return localCostTracker; + } + + /** + * Auto generated getter method + * + * @return org.apache.axis2.databinding.types.NonNegativeInteger + */ + public org.apache.axis2.databinding.types.NonNegativeInteger getCost() { + return localCost; + } + + /** + * Auto generated setter method + * + * @param param Cost + */ + public void setCost(org.apache.axis2.databinding.types.NonNegativeInteger param) { + localCostTracker = param != null; + + this.localCost = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResponseNote", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResponseNote", + xmlWriter); + } + } + if (localSourceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Source", xmlWriter); + + if (localSource == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Source cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSource); + } + + xmlWriter.writeEndElement(); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + if (localMessage == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Message cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMessage); + } + + xmlWriter.writeEndElement(); + } + if (localErrorCodeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ErrorCode", xmlWriter); + + if (localErrorCode == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ErrorCode cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localErrorCode)); + } + + xmlWriter.writeEndElement(); + } + if (localSeverityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Severity", xmlWriter); + + if (localSeverity == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Severity cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSeverity); + } + + xmlWriter.writeEndElement(); + } + if (localCostTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cost", xmlWriter); + + if (localCost == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cost cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCost)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResponseNote parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResponseNote object = new WUResponseNote(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResponseNote".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResponseNote) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Source") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Source" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSource( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ErrorCode") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ErrorCode" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setErrorCode( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Severity") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Severity" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSeverity( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cost") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cost" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCost( + org.apache.axis2.databinding.utils.ConverterUtil.convertToNonNegativeInteger( + content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseProperty.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseProperty.java index 070c5a287..e8eadb2b1 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseProperty.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseProperty.java @@ -1,740 +1,740 @@ -/** - * WUResponseProperty.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResponseProperty bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResponseProperty implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUResponseProperty - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for RawValue */ - protected java.lang.String localRawValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRawValueTracker = false; - - public boolean isRawValueSpecified() { - return localRawValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getRawValue() { - return localRawValue; - } - - /** - * Auto generated setter method - * - * @param param RawValue - */ - public void setRawValue(java.lang.String param) { - localRawValueTracker = param != null; - - this.localRawValue = param; - } - - /** field for Formatted */ - protected java.lang.String localFormatted; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFormattedTracker = false; - - public boolean isFormattedSpecified() { - return localFormattedTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFormatted() { - return localFormatted; - } - - /** - * Auto generated setter method - * - * @param param Formatted - */ - public void setFormatted(java.lang.String param) { - localFormattedTracker = param != null; - - this.localFormatted = param; - } - - /** field for Measure */ - protected java.lang.String localMeasure; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMeasureTracker = false; - - public boolean isMeasureSpecified() { - return localMeasureTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMeasure() { - return localMeasure; - } - - /** - * Auto generated setter method - * - * @param param Measure - */ - public void setMeasure(java.lang.String param) { - localMeasureTracker = param != null; - - this.localMeasure = param; - } - - /** field for Creator */ - protected java.lang.String localCreator; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCreatorTracker = false; - - public boolean isCreatorSpecified() { - return localCreatorTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCreator() { - return localCreator; - } - - /** - * Auto generated setter method - * - * @param param Creator - */ - public void setCreator(java.lang.String param) { - localCreatorTracker = param != null; - - this.localCreator = param; - } - - /** field for CreatorType */ - protected java.lang.String localCreatorType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCreatorTypeTracker = false; - - public boolean isCreatorTypeSpecified() { - return localCreatorTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCreatorType() { - return localCreatorType; - } - - /** - * Auto generated setter method - * - * @param param CreatorType - */ - public void setCreatorType(java.lang.String param) { - localCreatorTypeTracker = param != null; - - this.localCreatorType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResponseProperty", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResponseProperty", - xmlWriter); - } - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localRawValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RawValue", xmlWriter); - - if (localRawValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("RawValue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localRawValue); - } - - xmlWriter.writeEndElement(); - } - if (localFormattedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Formatted", xmlWriter); - - if (localFormatted == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Formatted cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFormatted); - } - - xmlWriter.writeEndElement(); - } - if (localMeasureTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Measure", xmlWriter); - - if (localMeasure == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMeasure); - } - - xmlWriter.writeEndElement(); - } - if (localCreatorTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Creator", xmlWriter); - - if (localCreator == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Creator cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCreator); - } - - xmlWriter.writeEndElement(); - } - if (localCreatorTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CreatorType", xmlWriter); - - if (localCreatorType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("CreatorType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCreatorType); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResponseProperty parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResponseProperty object = new WUResponseProperty(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResponseProperty".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResponseProperty) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RawValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RawValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRawValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Formatted") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Formatted" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFormatted( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Measure" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMeasure( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Creator") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Creator" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCreator( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CreatorType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CreatorType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCreatorType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResponseProperty.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResponseProperty bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResponseProperty implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUResponseProperty + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for RawValue */ + protected java.lang.String localRawValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRawValueTracker = false; + + public boolean isRawValueSpecified() { + return localRawValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getRawValue() { + return localRawValue; + } + + /** + * Auto generated setter method + * + * @param param RawValue + */ + public void setRawValue(java.lang.String param) { + localRawValueTracker = param != null; + + this.localRawValue = param; + } + + /** field for Formatted */ + protected java.lang.String localFormatted; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFormattedTracker = false; + + public boolean isFormattedSpecified() { + return localFormattedTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFormatted() { + return localFormatted; + } + + /** + * Auto generated setter method + * + * @param param Formatted + */ + public void setFormatted(java.lang.String param) { + localFormattedTracker = param != null; + + this.localFormatted = param; + } + + /** field for Measure */ + protected java.lang.String localMeasure; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMeasureTracker = false; + + public boolean isMeasureSpecified() { + return localMeasureTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMeasure() { + return localMeasure; + } + + /** + * Auto generated setter method + * + * @param param Measure + */ + public void setMeasure(java.lang.String param) { + localMeasureTracker = param != null; + + this.localMeasure = param; + } + + /** field for Creator */ + protected java.lang.String localCreator; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCreatorTracker = false; + + public boolean isCreatorSpecified() { + return localCreatorTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCreator() { + return localCreator; + } + + /** + * Auto generated setter method + * + * @param param Creator + */ + public void setCreator(java.lang.String param) { + localCreatorTracker = param != null; + + this.localCreator = param; + } + + /** field for CreatorType */ + protected java.lang.String localCreatorType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCreatorTypeTracker = false; + + public boolean isCreatorTypeSpecified() { + return localCreatorTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCreatorType() { + return localCreatorType; + } + + /** + * Auto generated setter method + * + * @param param CreatorType + */ + public void setCreatorType(java.lang.String param) { + localCreatorTypeTracker = param != null; + + this.localCreatorType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResponseProperty", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResponseProperty", + xmlWriter); + } + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localRawValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RawValue", xmlWriter); + + if (localRawValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("RawValue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localRawValue); + } + + xmlWriter.writeEndElement(); + } + if (localFormattedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Formatted", xmlWriter); + + if (localFormatted == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Formatted cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFormatted); + } + + xmlWriter.writeEndElement(); + } + if (localMeasureTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Measure", xmlWriter); + + if (localMeasure == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMeasure); + } + + xmlWriter.writeEndElement(); + } + if (localCreatorTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Creator", xmlWriter); + + if (localCreator == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Creator cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCreator); + } + + xmlWriter.writeEndElement(); + } + if (localCreatorTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CreatorType", xmlWriter); + + if (localCreatorType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("CreatorType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCreatorType); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResponseProperty parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResponseProperty object = new WUResponseProperty(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResponseProperty".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResponseProperty) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RawValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RawValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRawValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Formatted") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Formatted" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFormatted( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Measure" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMeasure( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Creator") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Creator" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCreator( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CreatorType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CreatorType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCreatorType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseScope.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseScope.java index 719c67840..f52335087 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseScope.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResponseScope.java @@ -1,707 +1,707 @@ -/** - * WUResponseScope.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResponseScope bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResponseScope implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUResponseScope - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for ScopeName */ - protected java.lang.String localScopeName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeNameTracker = false; - - public boolean isScopeNameSpecified() { - return localScopeNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScopeName() { - return localScopeName; - } - - /** - * Auto generated setter method - * - * @param param ScopeName - */ - public void setScopeName(java.lang.String param) { - localScopeNameTracker = param != null; - - this.localScopeName = param; - } - - /** field for Id */ - protected java.lang.String localId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIdTracker = false; - - public boolean isIdSpecified() { - return localIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getId() { - return localId; - } - - /** - * Auto generated setter method - * - * @param param Id - */ - public void setId(java.lang.String param) { - localIdTracker = param != null; - - this.localId = param; - } - - /** field for ScopeType */ - protected java.lang.String localScopeType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypeTracker = false; - - public boolean isScopeTypeSpecified() { - return localScopeTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScopeType() { - return localScopeType; - } - - /** - * Auto generated setter method - * - * @param param ScopeType - */ - public void setScopeType(java.lang.String param) { - localScopeTypeTracker = param != null; - - this.localScopeType = param; - } - - /** field for Properties */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2 localProperties; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertiesTracker = false; - - public boolean isPropertiesSpecified() { - return localPropertiesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2 getProperties() { - return localProperties; - } - - /** - * Auto generated setter method - * - * @param param Properties - */ - public void setProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2 param) { - localPropertiesTracker = param != null; - - this.localProperties = param; - } - - /** field for Notes */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0 localNotes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNotesTracker = false; - - public boolean isNotesSpecified() { - return localNotesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0 getNotes() { - return localNotes; - } - - /** - * Auto generated setter method - * - * @param param Notes - */ - public void setNotes(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0 param) { - localNotesTracker = param != null; - - this.localNotes = param; - } - - /** field for SinkActivity */ - protected java.lang.String localSinkActivity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSinkActivityTracker = false; - - public boolean isSinkActivitySpecified() { - return localSinkActivityTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSinkActivity() { - return localSinkActivity; - } - - /** - * Auto generated setter method - * - * @param param SinkActivity - */ - public void setSinkActivity(java.lang.String param) { - localSinkActivityTracker = param != null; - - this.localSinkActivity = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResponseScope", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResponseScope", - xmlWriter); - } - } - if (localScopeNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ScopeName", xmlWriter); - - if (localScopeName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ScopeName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScopeName); - } - - xmlWriter.writeEndElement(); - } - if (localIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Id", xmlWriter); - - 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 (localScopeTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ScopeType", xmlWriter); - - if (localScopeType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScopeType); - } - - xmlWriter.writeEndElement(); - } - if (localPropertiesTracker) { - if (localProperties == null) { - throw new org.apache.axis2.databinding.ADBException("Properties cannot be null!!"); - } - localProperties.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties"), xmlWriter); - } - if (localNotesTracker) { - if (localNotes == null) { - throw new org.apache.axis2.databinding.ADBException("Notes cannot be null!!"); - } - localNotes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Notes"), xmlWriter); - } - if (localSinkActivityTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SinkActivity", xmlWriter); - - if (localSinkActivity == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("SinkActivity cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSinkActivity); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResponseScope parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResponseScope object = new WUResponseScope(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResponseScope".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResponseScope) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ScopeName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScopeName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Id") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Id" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ScopeType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScopeType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties") - .equals(reader.getName())) { - - object.setProperties( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Notes") - .equals(reader.getName())) { - - object.setNotes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SinkActivity") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SinkActivity" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSinkActivity( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResponseScope.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResponseScope bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResponseScope implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUResponseScope + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for ScopeName */ + protected java.lang.String localScopeName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeNameTracker = false; + + public boolean isScopeNameSpecified() { + return localScopeNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScopeName() { + return localScopeName; + } + + /** + * Auto generated setter method + * + * @param param ScopeName + */ + public void setScopeName(java.lang.String param) { + localScopeNameTracker = param != null; + + this.localScopeName = param; + } + + /** field for Id */ + protected java.lang.String localId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIdTracker = false; + + public boolean isIdSpecified() { + return localIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getId() { + return localId; + } + + /** + * Auto generated setter method + * + * @param param Id + */ + public void setId(java.lang.String param) { + localIdTracker = param != null; + + this.localId = param; + } + + /** field for ScopeType */ + protected java.lang.String localScopeType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypeTracker = false; + + public boolean isScopeTypeSpecified() { + return localScopeTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScopeType() { + return localScopeType; + } + + /** + * Auto generated setter method + * + * @param param ScopeType + */ + public void setScopeType(java.lang.String param) { + localScopeTypeTracker = param != null; + + this.localScopeType = param; + } + + /** field for Properties */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2 localProperties; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertiesTracker = false; + + public boolean isPropertiesSpecified() { + return localPropertiesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2 getProperties() { + return localProperties; + } + + /** + * Auto generated setter method + * + * @param param Properties + */ + public void setProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2 param) { + localPropertiesTracker = param != null; + + this.localProperties = param; + } + + /** field for Notes */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0 localNotes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNotesTracker = false; + + public boolean isNotesSpecified() { + return localNotesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0 getNotes() { + return localNotes; + } + + /** + * Auto generated setter method + * + * @param param Notes + */ + public void setNotes(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0 param) { + localNotesTracker = param != null; + + this.localNotes = param; + } + + /** field for SinkActivity */ + protected java.lang.String localSinkActivity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSinkActivityTracker = false; + + public boolean isSinkActivitySpecified() { + return localSinkActivityTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSinkActivity() { + return localSinkActivity; + } + + /** + * Auto generated setter method + * + * @param param SinkActivity + */ + public void setSinkActivity(java.lang.String param) { + localSinkActivityTracker = param != null; + + this.localSinkActivity = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResponseScope", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResponseScope", + xmlWriter); + } + } + if (localScopeNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ScopeName", xmlWriter); + + if (localScopeName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ScopeName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScopeName); + } + + xmlWriter.writeEndElement(); + } + if (localIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Id", xmlWriter); + + 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 (localScopeTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ScopeType", xmlWriter); + + if (localScopeType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScopeType); + } + + xmlWriter.writeEndElement(); + } + if (localPropertiesTracker) { + if (localProperties == null) { + throw new org.apache.axis2.databinding.ADBException("Properties cannot be null!!"); + } + localProperties.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties"), xmlWriter); + } + if (localNotesTracker) { + if (localNotes == null) { + throw new org.apache.axis2.databinding.ADBException("Notes cannot be null!!"); + } + localNotes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Notes"), xmlWriter); + } + if (localSinkActivityTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SinkActivity", xmlWriter); + + if (localSinkActivity == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("SinkActivity cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSinkActivity); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResponseScope parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResponseScope object = new WUResponseScope(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResponseScope".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResponseScope) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ScopeName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScopeName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Id") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Id" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ScopeType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScopeType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Properties") + .equals(reader.getName())) { + + object.setProperties( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Properties_type2.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Notes") + .equals(reader.getName())) { + + object.setNotes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Notes_type0.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SinkActivity") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SinkActivity" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSinkActivity( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResubmit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResubmit.java index 22eb108b0..d62a03bca 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResubmit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResubmit.java @@ -1,587 +1,588 @@ -/** - * WUResubmit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResubmit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResubmit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResubmit", "ns1"); - - /** field for Wuids */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidsTracker = false; - - public boolean isWuidsSpecified() { - return localWuidsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { - return localWuids; - } - - /** - * Auto generated setter method - * - * @param param Wuids - */ - public void setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { - localWuidsTracker = param != null; - - this.localWuids = param; - } - - /** field for BlockTillFinishTimer */ - protected int localBlockTillFinishTimer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBlockTillFinishTimerTracker = false; - - public boolean isBlockTillFinishTimerSpecified() { - return localBlockTillFinishTimerTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBlockTillFinishTimer() { - return localBlockTillFinishTimer; - } - - /** - * Auto generated setter method - * - * @param param BlockTillFinishTimer - */ - public void setBlockTillFinishTimer(int param) { - - // setting primitive attribute tracker to true - localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBlockTillFinishTimer = param; - } - - /** field for ResetWorkflow */ - protected boolean localResetWorkflow; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResetWorkflowTracker = false; - - public boolean isResetWorkflowSpecified() { - return localResetWorkflowTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getResetWorkflow() { - return localResetWorkflow; - } - - /** - * Auto generated setter method - * - * @param param ResetWorkflow - */ - public void setResetWorkflow(boolean param) { - - // setting primitive attribute tracker to true - localResetWorkflowTracker = true; - - this.localResetWorkflow = param; - } - - /** field for CloneWorkunit */ - protected boolean localCloneWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCloneWorkunitTracker = false; - - public boolean isCloneWorkunitSpecified() { - return localCloneWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCloneWorkunit() { - return localCloneWorkunit; - } - - /** - * Auto generated setter method - * - * @param param CloneWorkunit - */ - public void setCloneWorkunit(boolean param) { - - // setting primitive attribute tracker to true - localCloneWorkunitTracker = true; - - this.localCloneWorkunit = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResubmit", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUResubmit", xmlWriter); - } - } - if (localWuidsTracker) { - if (localWuids == null) { - throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); - } - localWuids.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); - } - if (localBlockTillFinishTimerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); - - if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "BlockTillFinishTimer cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBlockTillFinishTimer)); - } - - xmlWriter.writeEndElement(); - } - if (localResetWorkflowTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResetWorkflow", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ResetWorkflow cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResetWorkflow)); - } - - xmlWriter.writeEndElement(); - } - if (localCloneWorkunitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CloneWorkunit", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CloneWorkunit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCloneWorkunit)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResubmit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResubmit object = new WUResubmit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResubmit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResubmit) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") - .equals(reader.getName())) { - - object.setWuids( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BlockTillFinishTimer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBlockTillFinishTimer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResetWorkflow") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResetWorkflow" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResetWorkflow( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CloneWorkunit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CloneWorkunit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCloneWorkunit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResubmit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResubmit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResubmit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResubmit", "ns1"); + + /** field for Wuids */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray localWuids; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidsTracker = false; + + public boolean isWuidsSpecified() { + return localWuidsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray getWuids() { + return localWuids; + } + + /** + * Auto generated setter method + * + * @param param Wuids + */ + public void setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray param) { + localWuidsTracker = param != null; + + this.localWuids = param; + } + + /** field for BlockTillFinishTimer */ + protected int localBlockTillFinishTimer = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBlockTillFinishTimerTracker = false; + + public boolean isBlockTillFinishTimerSpecified() { + return localBlockTillFinishTimerTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBlockTillFinishTimer() { + return localBlockTillFinishTimer; + } + + /** + * Auto generated setter method + * + * @param param BlockTillFinishTimer + */ + public void setBlockTillFinishTimer(int param) { + + // setting primitive attribute tracker to true + localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBlockTillFinishTimer = param; + } + + /** field for ResetWorkflow */ + protected boolean localResetWorkflow; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResetWorkflowTracker = false; + + public boolean isResetWorkflowSpecified() { + return localResetWorkflowTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getResetWorkflow() { + return localResetWorkflow; + } + + /** + * Auto generated setter method + * + * @param param ResetWorkflow + */ + public void setResetWorkflow(boolean param) { + + // setting primitive attribute tracker to true + localResetWorkflowTracker = true; + + this.localResetWorkflow = param; + } + + /** field for CloneWorkunit */ + protected boolean localCloneWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCloneWorkunitTracker = false; + + public boolean isCloneWorkunitSpecified() { + return localCloneWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCloneWorkunit() { + return localCloneWorkunit; + } + + /** + * Auto generated setter method + * + * @param param CloneWorkunit + */ + public void setCloneWorkunit(boolean param) { + + // setting primitive attribute tracker to true + localCloneWorkunitTracker = true; + + this.localCloneWorkunit = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResubmit", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUResubmit", xmlWriter); + } + } + if (localWuidsTracker) { + if (localWuids == null) { + throw new org.apache.axis2.databinding.ADBException("Wuids cannot be null!!"); + } + localWuids.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids"), xmlWriter); + } + if (localBlockTillFinishTimerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); + + if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "BlockTillFinishTimer cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBlockTillFinishTimer)); + } + + xmlWriter.writeEndElement(); + } + if (localResetWorkflowTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResetWorkflow", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ResetWorkflow cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResetWorkflow)); + } + + xmlWriter.writeEndElement(); + } + if (localCloneWorkunitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CloneWorkunit", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CloneWorkunit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCloneWorkunit)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResubmit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResubmit object = new WUResubmit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResubmit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResubmit) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuids") + .equals(reader.getName())) { + + object.setWuids( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspStringArray.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BlockTillFinishTimer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBlockTillFinishTimer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResetWorkflow") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResetWorkflow" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResetWorkflow( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CloneWorkunit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CloneWorkunit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCloneWorkunit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResubmitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResubmitResponse.java index eb70be01d..90747129d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResubmitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResubmitResponse.java @@ -1,434 +1,434 @@ -/** - * WUResubmitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResubmitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResubmitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResubmitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for WUs */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0 localWUs; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUsTracker = false; - - public boolean isWUsSpecified() { - return localWUsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0 getWUs() { - return localWUs; - } - - /** - * Auto generated setter method - * - * @param param WUs - */ - public void setWUs(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0 param) { - localWUsTracker = param != null; - - this.localWUs = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResubmitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResubmitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWUsTracker) { - if (localWUs == null) { - throw new org.apache.axis2.databinding.ADBException("WUs cannot be null!!"); - } - localWUs.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUs"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResubmitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResubmitResponse object = new WUResubmitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResubmitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResubmitResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUs") - .equals(reader.getName())) { - - object.setWUs( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResubmitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResubmitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResubmitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResubmitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for WUs */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0 localWUs; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUsTracker = false; + + public boolean isWUsSpecified() { + return localWUsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0 getWUs() { + return localWUs; + } + + /** + * Auto generated setter method + * + * @param param WUs + */ + public void setWUs(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0 param) { + localWUsTracker = param != null; + + this.localWUs = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResubmitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResubmitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWUsTracker) { + if (localWUs == null) { + throw new org.apache.axis2.databinding.ADBException("WUs cannot be null!!"); + } + localWUs.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUs"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResubmitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResubmitResponse object = new WUResubmitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResubmitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResubmitResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUs") + .equals(reader.getName())) { + + object.setWUs( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUs_type0.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResult.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResult.java index 02857900a..7b0085d3f 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResult.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResult.java @@ -1,1000 +1,1000 @@ -/** - * WUResult.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResult bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResult implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResult", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Sequence */ - protected int localSequence; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSequenceTracker = false; - - public boolean isSequenceSpecified() { - return localSequenceTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSequence() { - return localSequence; - } - - /** - * Auto generated setter method - * - * @param param Sequence - */ - public void setSequence(int param) { - - // setting primitive attribute tracker to true - localSequenceTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSequence = param; - } - - /** field for ResultName */ - protected java.lang.String localResultName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultNameTracker = false; - - public boolean isResultNameSpecified() { - return localResultNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResultName() { - return localResultName; - } - - /** - * Auto generated setter method - * - * @param param ResultName - */ - public void setResultName(java.lang.String param) { - localResultNameTracker = param != null; - - this.localResultName = param; - } - - /** field for LogicalName */ - protected java.lang.String localLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalNameTracker = false; - - public boolean isLogicalNameSpecified() { - return localLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalName() { - return localLogicalName; - } - - /** - * Auto generated setter method - * - * @param param LogicalName - */ - public void setLogicalName(java.lang.String param) { - localLogicalNameTracker = param != null; - - this.localLogicalName = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for SuppressXmlSchema */ - protected boolean localSuppressXmlSchema = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSuppressXmlSchemaTracker = false; - - public boolean isSuppressXmlSchemaSpecified() { - return localSuppressXmlSchemaTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSuppressXmlSchema() { - return localSuppressXmlSchema; - } - - /** - * Auto generated setter method - * - * @param param SuppressXmlSchema - */ - public void setSuppressXmlSchema(boolean param) { - - // setting primitive attribute tracker to true - localSuppressXmlSchemaTracker = true; - - this.localSuppressXmlSchema = param; - } - - /** field for BypassCachedResult */ - protected boolean localBypassCachedResult = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBypassCachedResultTracker = false; - - public boolean isBypassCachedResultSpecified() { - return localBypassCachedResultTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getBypassCachedResult() { - return localBypassCachedResult; - } - - /** - * Auto generated setter method - * - * @param param BypassCachedResult - */ - public void setBypassCachedResult(boolean param) { - - // setting primitive attribute tracker to true - localBypassCachedResultTracker = true; - - this.localBypassCachedResult = param; - } - - /** field for FilterBy */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue localFilterBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterByTracker = false; - - public boolean isFilterBySpecified() { - return localFilterByTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getFilterBy() { - return localFilterBy; - } - - /** - * Auto generated setter method - * - * @param param FilterBy - */ - public void setFilterBy( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { - localFilterByTracker = param != null; - - this.localFilterBy = param; - } - - /** field for Start */ - protected long localStart; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartTracker = false; - - public boolean isStartSpecified() { - return localStartTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getStart() { - return localStart; - } - - /** - * Auto generated setter method - * - * @param param Start - */ - public void setStart(long param) { - - // setting primitive attribute tracker to true - localStartTracker = param != java.lang.Long.MIN_VALUE; - - this.localStart = param; - } - - /** field for Count */ - protected int localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResult", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUResult", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localSequenceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sequence", xmlWriter); - - if (localSequence == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); - } - - xmlWriter.writeEndElement(); - } - if (localResultNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultName", xmlWriter); - - if (localResultName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ResultName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResultName); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalName", xmlWriter); - - if (localLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localSuppressXmlSchemaTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SuppressXmlSchema", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SuppressXmlSchema cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localSuppressXmlSchema)); - } - - xmlWriter.writeEndElement(); - } - if (localBypassCachedResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BypassCachedResult", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("BypassCachedResult cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBypassCachedResult)); - } - - xmlWriter.writeEndElement(); - } - if (localFilterByTracker) { - if (localFilterBy == null) { - throw new org.apache.axis2.databinding.ADBException("FilterBy cannot be null!!"); - } - localFilterBy.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterBy"), xmlWriter); - } - if (localStartTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Start", xmlWriter); - - if (localStart == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Start cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStart)); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResult parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResult object = new WUResult(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResult".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResult) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sequence" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSequence( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "SuppressXmlSchema") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SuppressXmlSchema" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSuppressXmlSchema( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BypassCachedResult") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BypassCachedResult" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBypassCachedResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterBy") - .equals(reader.getName())) { - - object.setFilterBy( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Start") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Start" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStart( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResult.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResult bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResult implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResult", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Sequence */ + protected int localSequence; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSequenceTracker = false; + + public boolean isSequenceSpecified() { + return localSequenceTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSequence() { + return localSequence; + } + + /** + * Auto generated setter method + * + * @param param Sequence + */ + public void setSequence(int param) { + + // setting primitive attribute tracker to true + localSequenceTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSequence = param; + } + + /** field for ResultName */ + protected java.lang.String localResultName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultNameTracker = false; + + public boolean isResultNameSpecified() { + return localResultNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResultName() { + return localResultName; + } + + /** + * Auto generated setter method + * + * @param param ResultName + */ + public void setResultName(java.lang.String param) { + localResultNameTracker = param != null; + + this.localResultName = param; + } + + /** field for LogicalName */ + protected java.lang.String localLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalNameTracker = false; + + public boolean isLogicalNameSpecified() { + return localLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalName() { + return localLogicalName; + } + + /** + * Auto generated setter method + * + * @param param LogicalName + */ + public void setLogicalName(java.lang.String param) { + localLogicalNameTracker = param != null; + + this.localLogicalName = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for SuppressXmlSchema */ + protected boolean localSuppressXmlSchema = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSuppressXmlSchemaTracker = false; + + public boolean isSuppressXmlSchemaSpecified() { + return localSuppressXmlSchemaTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSuppressXmlSchema() { + return localSuppressXmlSchema; + } + + /** + * Auto generated setter method + * + * @param param SuppressXmlSchema + */ + public void setSuppressXmlSchema(boolean param) { + + // setting primitive attribute tracker to true + localSuppressXmlSchemaTracker = true; + + this.localSuppressXmlSchema = param; + } + + /** field for BypassCachedResult */ + protected boolean localBypassCachedResult = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBypassCachedResultTracker = false; + + public boolean isBypassCachedResultSpecified() { + return localBypassCachedResultTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getBypassCachedResult() { + return localBypassCachedResult; + } + + /** + * Auto generated setter method + * + * @param param BypassCachedResult + */ + public void setBypassCachedResult(boolean param) { + + // setting primitive attribute tracker to true + localBypassCachedResultTracker = true; + + this.localBypassCachedResult = param; + } + + /** field for FilterBy */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue localFilterBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterByTracker = false; + + public boolean isFilterBySpecified() { + return localFilterByTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getFilterBy() { + return localFilterBy; + } + + /** + * Auto generated setter method + * + * @param param FilterBy + */ + public void setFilterBy( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { + localFilterByTracker = param != null; + + this.localFilterBy = param; + } + + /** field for Start */ + protected long localStart = org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartTracker = false; + + public boolean isStartSpecified() { + return localStartTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getStart() { + return localStart; + } + + /** + * Auto generated setter method + * + * @param param Start + */ + public void setStart(long param) { + + // setting primitive attribute tracker to true + localStartTracker = param != java.lang.Long.MIN_VALUE; + + this.localStart = param; + } + + /** field for Count */ + protected int localCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResult", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUResult", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localSequenceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sequence", xmlWriter); + + if (localSequence == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); + } + + xmlWriter.writeEndElement(); + } + if (localResultNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultName", xmlWriter); + + if (localResultName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ResultName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResultName); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalName", xmlWriter); + + if (localLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localSuppressXmlSchemaTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SuppressXmlSchema", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SuppressXmlSchema cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localSuppressXmlSchema)); + } + + xmlWriter.writeEndElement(); + } + if (localBypassCachedResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BypassCachedResult", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("BypassCachedResult cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBypassCachedResult)); + } + + xmlWriter.writeEndElement(); + } + if (localFilterByTracker) { + if (localFilterBy == null) { + throw new org.apache.axis2.databinding.ADBException("FilterBy cannot be null!!"); + } + localFilterBy.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterBy"), xmlWriter); + } + if (localStartTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Start", xmlWriter); + + if (localStart == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Start cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStart)); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResult parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResult object = new WUResult(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResult".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResult) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sequence" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSequence( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "SuppressXmlSchema") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SuppressXmlSchema" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSuppressXmlSchema( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BypassCachedResult") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BypassCachedResult" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBypassCachedResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterBy") + .equals(reader.getName())) { + + object.setFilterBy( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Start") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Start" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStart( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultBin.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultBin.java index c5191f6fc..fa68f7169 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultBin.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultBin.java @@ -1,925 +1,925 @@ -/** - * WUResultBin.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResultBin bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResultBin implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultBin", "ns1"); - - /** field for LogicalName */ - protected java.lang.String localLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalNameTracker = false; - - public boolean isLogicalNameSpecified() { - return localLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalName() { - return localLogicalName; - } - - /** - * Auto generated setter method - * - * @param param LogicalName - */ - public void setLogicalName(java.lang.String param) { - localLogicalNameTracker = param != null; - - this.localLogicalName = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for ResultName */ - protected java.lang.String localResultName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultNameTracker = false; - - public boolean isResultNameSpecified() { - return localResultNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResultName() { - return localResultName; - } - - /** - * Auto generated setter method - * - * @param param ResultName - */ - public void setResultName(java.lang.String param) { - localResultNameTracker = param != null; - - this.localResultName = param; - } - - /** field for Sequence */ - protected int localSequence; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSequenceTracker = false; - - public boolean isSequenceSpecified() { - return localSequenceTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSequence() { - return localSequence; - } - - /** - * Auto generated setter method - * - * @param param Sequence - */ - public void setSequence(int param) { - - // setting primitive attribute tracker to true - localSequenceTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSequence = param; - } - - /** field for Format */ - protected java.lang.String localFormat = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString("raw"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFormatTracker = false; - - public boolean isFormatSpecified() { - return localFormatTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFormat() { - return localFormat; - } - - /** - * Auto generated setter method - * - * @param param Format - */ - public void setFormat(java.lang.String param) { - localFormatTracker = param != null; - - this.localFormat = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for FilterBy */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue localFilterBy; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFilterByTracker = false; - - public boolean isFilterBySpecified() { - return localFilterByTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getFilterBy() { - return localFilterBy; - } - - /** - * Auto generated setter method - * - * @param param FilterBy - */ - public void setFilterBy( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { - localFilterByTracker = param != null; - - this.localFilterBy = param; - } - - /** field for Start */ - protected long localStart; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartTracker = false; - - public boolean isStartSpecified() { - return localStartTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getStart() { - return localStart; - } - - /** - * Auto generated setter method - * - * @param param Start - */ - public void setStart(long param) { - - // setting primitive attribute tracker to true - localStartTracker = param != java.lang.Long.MIN_VALUE; - - this.localStart = param; - } - - /** field for Count */ - protected int localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResultBin", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUResultBin", xmlWriter); - } - } - if (localLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalName", xmlWriter); - - if (localLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localResultNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultName", xmlWriter); - - if (localResultName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ResultName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResultName); - } - - xmlWriter.writeEndElement(); - } - if (localSequenceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sequence", xmlWriter); - - if (localSequence == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); - } - - xmlWriter.writeEndElement(); - } - if (localFormatTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Format", xmlWriter); - - if (localFormat == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Format cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFormat); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localFilterByTracker) { - if (localFilterBy == null) { - throw new org.apache.axis2.databinding.ADBException("FilterBy cannot be null!!"); - } - localFilterBy.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterBy"), xmlWriter); - } - if (localStartTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Start", xmlWriter); - - if (localStart == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Start cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStart)); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResultBin parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResultBin object = new WUResultBin(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResultBin".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResultBin) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sequence" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSequence( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Format") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Format" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFormat( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterBy") - .equals(reader.getName())) { - - object.setFilterBy( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Start") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Start" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStart( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResultBin.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResultBin bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResultBin implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultBin", "ns1"); + + /** field for LogicalName */ + protected java.lang.String localLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalNameTracker = false; + + public boolean isLogicalNameSpecified() { + return localLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalName() { + return localLogicalName; + } + + /** + * Auto generated setter method + * + * @param param LogicalName + */ + public void setLogicalName(java.lang.String param) { + localLogicalNameTracker = param != null; + + this.localLogicalName = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for ResultName */ + protected java.lang.String localResultName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultNameTracker = false; + + public boolean isResultNameSpecified() { + return localResultNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResultName() { + return localResultName; + } + + /** + * Auto generated setter method + * + * @param param ResultName + */ + public void setResultName(java.lang.String param) { + localResultNameTracker = param != null; + + this.localResultName = param; + } + + /** field for Sequence */ + protected int localSequence; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSequenceTracker = false; + + public boolean isSequenceSpecified() { + return localSequenceTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSequence() { + return localSequence; + } + + /** + * Auto generated setter method + * + * @param param Sequence + */ + public void setSequence(int param) { + + // setting primitive attribute tracker to true + localSequenceTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSequence = param; + } + + /** field for Format */ + protected java.lang.String localFormat = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString("raw"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFormatTracker = false; + + public boolean isFormatSpecified() { + return localFormatTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFormat() { + return localFormat; + } + + /** + * Auto generated setter method + * + * @param param Format + */ + public void setFormat(java.lang.String param) { + localFormatTracker = param != null; + + this.localFormat = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for FilterBy */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue localFilterBy; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFilterByTracker = false; + + public boolean isFilterBySpecified() { + return localFilterByTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getFilterBy() { + return localFilterBy; + } + + /** + * Auto generated setter method + * + * @param param FilterBy + */ + public void setFilterBy( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { + localFilterByTracker = param != null; + + this.localFilterBy = param; + } + + /** field for Start */ + protected long localStart = org.apache.axis2.databinding.utils.ConverterUtil.convertToLong("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartTracker = false; + + public boolean isStartSpecified() { + return localStartTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getStart() { + return localStart; + } + + /** + * Auto generated setter method + * + * @param param Start + */ + public void setStart(long param) { + + // setting primitive attribute tracker to true + localStartTracker = param != java.lang.Long.MIN_VALUE; + + this.localStart = param; + } + + /** field for Count */ + protected int localCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResultBin", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUResultBin", xmlWriter); + } + } + if (localLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalName", xmlWriter); + + if (localLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localResultNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultName", xmlWriter); + + if (localResultName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ResultName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResultName); + } + + xmlWriter.writeEndElement(); + } + if (localSequenceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sequence", xmlWriter); + + if (localSequence == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); + } + + xmlWriter.writeEndElement(); + } + if (localFormatTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Format", xmlWriter); + + if (localFormat == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Format cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFormat); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localFilterByTracker) { + if (localFilterBy == null) { + throw new org.apache.axis2.databinding.ADBException("FilterBy cannot be null!!"); + } + localFilterBy.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterBy"), xmlWriter); + } + if (localStartTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Start", xmlWriter); + + if (localStart == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Start cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStart)); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResultBin parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResultBin object = new WUResultBin(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResultBin".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResultBin) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sequence" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSequence( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Format") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Format" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFormat( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "FilterBy") + .equals(reader.getName())) { + + object.setFilterBy( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Start") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Start" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStart( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultBinResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultBinResponse.java index 7f66b3671..d22327150 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultBinResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultBinResponse.java @@ -1,994 +1,994 @@ -/** - * WUResultBinResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResultBinResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResultBinResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultBinResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Sequence */ - protected int localSequence; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSequenceTracker = false; - - public boolean isSequenceSpecified() { - return localSequenceTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSequence() { - return localSequence; - } - - /** - * Auto generated setter method - * - * @param param Sequence - */ - public void setSequence(int param) { - - // setting primitive attribute tracker to true - localSequenceTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSequence = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Start */ - protected long localStart; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartTracker = false; - - public boolean isStartSpecified() { - return localStartTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getStart() { - return localStart; - } - - /** - * Auto generated setter method - * - * @param param Start - */ - public void setStart(long param) { - - // setting primitive attribute tracker to true - localStartTracker = param != java.lang.Long.MIN_VALUE; - - this.localStart = param; - } - - /** field for Count */ - protected int localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** field for Requested */ - protected int localRequested; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRequestedTracker = false; - - public boolean isRequestedSpecified() { - return localRequestedTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getRequested() { - return localRequested; - } - - /** - * Auto generated setter method - * - * @param param Requested - */ - public void setRequested(int param) { - - // setting primitive attribute tracker to true - localRequestedTracker = param != java.lang.Integer.MIN_VALUE; - - this.localRequested = param; - } - - /** field for Total */ - protected long localTotal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalTracker = false; - - public boolean isTotalSpecified() { - return localTotalTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getTotal() { - return localTotal; - } - - /** - * Auto generated setter method - * - * @param param Total - */ - public void setTotal(long param) { - - // setting primitive attribute tracker to true - localTotalTracker = param != java.lang.Long.MIN_VALUE; - - this.localTotal = param; - } - - /** field for Result */ - protected javax.activation.DataHandler localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return javax.activation.DataHandler - */ - public javax.activation.DataHandler getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(javax.activation.DataHandler param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** field for Format */ - protected java.lang.String localFormat; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFormatTracker = false; - - public boolean isFormatSpecified() { - return localFormatTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getFormat() { - return localFormat; - } - - /** - * Auto generated setter method - * - * @param param Format - */ - public void setFormat(java.lang.String param) { - localFormatTracker = param != null; - - this.localFormat = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResultBinResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResultBinResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localSequenceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sequence", xmlWriter); - - if (localSequence == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localStartTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Start", xmlWriter); - - if (localStart == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Start cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStart)); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - if (localRequestedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Requested", xmlWriter); - - if (localRequested == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Requested cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRequested)); - } - - xmlWriter.writeEndElement(); - } - if (localTotalTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Total", xmlWriter); - - if (localTotal == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); - } - - xmlWriter.writeEndElement(); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult != null) { - try { - org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( - xmlWriter, localResult, null, true); - } catch (java.io.IOException ex) { - throw new javax.xml.stream.XMLStreamException( - "Unable to read data handler for Result", ex); - } - } else { - - } - - xmlWriter.writeEndElement(); - } - if (localFormatTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Format", xmlWriter); - - if (localFormat == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Format cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localFormat); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResultBinResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResultBinResponse object = new WUResultBinResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResultBinResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResultBinResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sequence" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSequence( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Start") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Start" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStart( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Requested") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Requested" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRequested( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Total") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Total" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - object.setResult( - org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Format") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Format" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFormat( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResultBinResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResultBinResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResultBinResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultBinResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Sequence */ + protected int localSequence; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSequenceTracker = false; + + public boolean isSequenceSpecified() { + return localSequenceTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSequence() { + return localSequence; + } + + /** + * Auto generated setter method + * + * @param param Sequence + */ + public void setSequence(int param) { + + // setting primitive attribute tracker to true + localSequenceTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSequence = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Start */ + protected long localStart; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartTracker = false; + + public boolean isStartSpecified() { + return localStartTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getStart() { + return localStart; + } + + /** + * Auto generated setter method + * + * @param param Start + */ + public void setStart(long param) { + + // setting primitive attribute tracker to true + localStartTracker = param != java.lang.Long.MIN_VALUE; + + this.localStart = param; + } + + /** field for Count */ + protected int localCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** field for Requested */ + protected int localRequested; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRequestedTracker = false; + + public boolean isRequestedSpecified() { + return localRequestedTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getRequested() { + return localRequested; + } + + /** + * Auto generated setter method + * + * @param param Requested + */ + public void setRequested(int param) { + + // setting primitive attribute tracker to true + localRequestedTracker = param != java.lang.Integer.MIN_VALUE; + + this.localRequested = param; + } + + /** field for Total */ + protected long localTotal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalTracker = false; + + public boolean isTotalSpecified() { + return localTotalTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getTotal() { + return localTotal; + } + + /** + * Auto generated setter method + * + * @param param Total + */ + public void setTotal(long param) { + + // setting primitive attribute tracker to true + localTotalTracker = param != java.lang.Long.MIN_VALUE; + + this.localTotal = param; + } + + /** field for Result */ + protected javax.activation.DataHandler localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return javax.activation.DataHandler + */ + public javax.activation.DataHandler getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(javax.activation.DataHandler param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** field for Format */ + protected java.lang.String localFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFormatTracker = false; + + public boolean isFormatSpecified() { + return localFormatTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getFormat() { + return localFormat; + } + + /** + * Auto generated setter method + * + * @param param Format + */ + public void setFormat(java.lang.String param) { + localFormatTracker = param != null; + + this.localFormat = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResultBinResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResultBinResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localSequenceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sequence", xmlWriter); + + if (localSequence == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localStartTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Start", xmlWriter); + + if (localStart == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Start cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStart)); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + if (localRequestedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Requested", xmlWriter); + + if (localRequested == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Requested cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRequested)); + } + + xmlWriter.writeEndElement(); + } + if (localTotalTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Total", xmlWriter); + + if (localTotal == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); + } + + xmlWriter.writeEndElement(); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult != null) { + try { + org.apache.axiom.util.stax.XMLStreamWriterUtils.writeDataHandler( + xmlWriter, localResult, null, true); + } catch (java.io.IOException ex) { + throw new javax.xml.stream.XMLStreamException( + "Unable to read data handler for Result", ex); + } + } else { + + } + + xmlWriter.writeEndElement(); + } + if (localFormatTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Format", xmlWriter); + + if (localFormat == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Format cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localFormat); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResultBinResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResultBinResponse object = new WUResultBinResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResultBinResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResultBinResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sequence" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSequence( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Start") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Start" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStart( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Requested") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Requested" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRequested( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Total") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Total" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + object.setResult( + org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Format") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Format" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFormat( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultResponse.java index 6af5f81ea..73ffc1e1e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultResponse.java @@ -1,1068 +1,1068 @@ -/** - * WUResultResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResultResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResultResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Sequence */ - protected int localSequence; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSequenceTracker = false; - - public boolean isSequenceSpecified() { - return localSequenceTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSequence() { - return localSequence; - } - - /** - * Auto generated setter method - * - * @param param Sequence - */ - public void setSequence(int param) { - - // setting primitive attribute tracker to true - localSequenceTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSequence = param; - } - - /** field for LogicalName */ - protected java.lang.String localLogicalName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localLogicalNameTracker = false; - - public boolean isLogicalNameSpecified() { - return localLogicalNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getLogicalName() { - return localLogicalName; - } - - /** - * Auto generated setter method - * - * @param param LogicalName - */ - public void setLogicalName(java.lang.String param) { - localLogicalNameTracker = param != null; - - this.localLogicalName = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Name */ - protected java.lang.String localName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNameTracker = false; - - public boolean isNameSpecified() { - return localNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getName() { - return localName; - } - - /** - * Auto generated setter method - * - * @param param Name - */ - public void setName(java.lang.String param) { - localNameTracker = param != null; - - this.localName = param; - } - - /** field for Start */ - protected long localStart; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStartTracker = false; - - public boolean isStartSpecified() { - return localStartTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getStart() { - return localStart; - } - - /** - * Auto generated setter method - * - * @param param Start - */ - public void setStart(long param) { - - // setting primitive attribute tracker to true - localStartTracker = param != java.lang.Long.MIN_VALUE; - - this.localStart = param; - } - - /** field for Requested */ - protected int localRequested; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRequestedTracker = false; - - public boolean isRequestedSpecified() { - return localRequestedTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getRequested() { - return localRequested; - } - - /** - * Auto generated setter method - * - * @param param Requested - */ - public void setRequested(int param) { - - // setting primitive attribute tracker to true - localRequestedTracker = param != java.lang.Integer.MIN_VALUE; - - this.localRequested = param; - } - - /** field for Count */ - protected int localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(int param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Integer.MIN_VALUE; - - this.localCount = param; - } - - /** field for Total */ - protected long localTotal; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTotalTracker = false; - - public boolean isTotalSpecified() { - return localTotalTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getTotal() { - return localTotal; - } - - /** - * Auto generated setter method - * - * @param param Total - */ - public void setTotal(long param) { - - // setting primitive attribute tracker to true - localTotalTracker = param != java.lang.Long.MIN_VALUE; - - this.localTotal = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResultResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResultResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localSequenceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sequence", xmlWriter); - - if (localSequence == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); - } - - xmlWriter.writeEndElement(); - } - if (localLogicalNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "LogicalName", xmlWriter); - - if (localLogicalName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localLogicalName); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Name", xmlWriter); - - 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 (localStartTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Start", xmlWriter); - - if (localStart == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Start cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStart)); - } - - xmlWriter.writeEndElement(); - } - if (localRequestedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Requested", xmlWriter); - - if (localRequested == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Requested cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRequested)); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - if (localTotalTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Total", xmlWriter); - - if (localTotal == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); - } - - xmlWriter.writeEndElement(); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResultResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResultResponse object = new WUResultResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResultResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResultResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sequence" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSequence( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "LogicalName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setLogicalName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Name" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Start") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Start" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStart( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Requested") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Requested" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRequested( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Total") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Total" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTotal( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResultResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResultResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResultResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Sequence */ + protected int localSequence; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSequenceTracker = false; + + public boolean isSequenceSpecified() { + return localSequenceTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSequence() { + return localSequence; + } + + /** + * Auto generated setter method + * + * @param param Sequence + */ + public void setSequence(int param) { + + // setting primitive attribute tracker to true + localSequenceTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSequence = param; + } + + /** field for LogicalName */ + protected java.lang.String localLogicalName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localLogicalNameTracker = false; + + public boolean isLogicalNameSpecified() { + return localLogicalNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getLogicalName() { + return localLogicalName; + } + + /** + * Auto generated setter method + * + * @param param LogicalName + */ + public void setLogicalName(java.lang.String param) { + localLogicalNameTracker = param != null; + + this.localLogicalName = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Name */ + protected java.lang.String localName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNameTracker = false; + + public boolean isNameSpecified() { + return localNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getName() { + return localName; + } + + /** + * Auto generated setter method + * + * @param param Name + */ + public void setName(java.lang.String param) { + localNameTracker = param != null; + + this.localName = param; + } + + /** field for Start */ + protected long localStart; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStartTracker = false; + + public boolean isStartSpecified() { + return localStartTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getStart() { + return localStart; + } + + /** + * Auto generated setter method + * + * @param param Start + */ + public void setStart(long param) { + + // setting primitive attribute tracker to true + localStartTracker = param != java.lang.Long.MIN_VALUE; + + this.localStart = param; + } + + /** field for Requested */ + protected int localRequested; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRequestedTracker = false; + + public boolean isRequestedSpecified() { + return localRequestedTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getRequested() { + return localRequested; + } + + /** + * Auto generated setter method + * + * @param param Requested + */ + public void setRequested(int param) { + + // setting primitive attribute tracker to true + localRequestedTracker = param != java.lang.Integer.MIN_VALUE; + + this.localRequested = param; + } + + /** field for Count */ + protected int localCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(int param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Integer.MIN_VALUE; + + this.localCount = param; + } + + /** field for Total */ + protected long localTotal; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTotalTracker = false; + + public boolean isTotalSpecified() { + return localTotalTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getTotal() { + return localTotal; + } + + /** + * Auto generated setter method + * + * @param param Total + */ + public void setTotal(long param) { + + // setting primitive attribute tracker to true + localTotalTracker = param != java.lang.Long.MIN_VALUE; + + this.localTotal = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResultResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResultResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localSequenceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sequence", xmlWriter); + + if (localSequence == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); + } + + xmlWriter.writeEndElement(); + } + if (localLogicalNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "LogicalName", xmlWriter); + + if (localLogicalName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("LogicalName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localLogicalName); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Name", xmlWriter); + + 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 (localStartTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Start", xmlWriter); + + if (localStart == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Start cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStart)); + } + + xmlWriter.writeEndElement(); + } + if (localRequestedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Requested", xmlWriter); + + if (localRequested == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Requested cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRequested)); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + if (localTotalTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Total", xmlWriter); + + if (localTotal == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Total cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTotal)); + } + + xmlWriter.writeEndElement(); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResultResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResultResponse object = new WUResultResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResultResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResultResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sequence" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSequence( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "LogicalName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "LogicalName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setLogicalName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Name") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Name" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Start") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Start" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStart( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Requested") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Requested" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRequested( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Total") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Total" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTotal( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultSummary.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultSummary.java index fca16d0bd..4f97c543d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultSummary.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultSummary.java @@ -1,466 +1,466 @@ -/** - * WUResultSummary.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResultSummary bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResultSummary implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultSummary", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Sequence */ - protected int localSequence; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSequenceTracker = false; - - public boolean isSequenceSpecified() { - return localSequenceTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSequence() { - return localSequence; - } - - /** - * Auto generated setter method - * - * @param param Sequence - */ - public void setSequence(int param) { - - // setting primitive attribute tracker to true - localSequenceTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSequence = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResultSummary", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResultSummary", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localSequenceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sequence", xmlWriter); - - if (localSequence == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResultSummary parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResultSummary object = new WUResultSummary(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResultSummary".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResultSummary) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sequence" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSequence( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResultSummary.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResultSummary bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResultSummary implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultSummary", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Sequence */ + protected int localSequence; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSequenceTracker = false; + + public boolean isSequenceSpecified() { + return localSequenceTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSequence() { + return localSequence; + } + + /** + * Auto generated setter method + * + * @param param Sequence + */ + public void setSequence(int param) { + + // setting primitive attribute tracker to true + localSequenceTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSequence = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResultSummary", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResultSummary", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localSequenceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sequence", xmlWriter); + + if (localSequence == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResultSummary parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResultSummary object = new WUResultSummary(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResultSummary".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResultSummary) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sequence" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSequence( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultSummaryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultSummaryResponse.java index 4cd7ab5b7..467b5b25c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultSummaryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultSummaryResponse.java @@ -1,641 +1,641 @@ -/** - * WUResultSummaryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResultSummaryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResultSummaryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUResultSummaryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Sequence */ - protected int localSequence; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSequenceTracker = false; - - public boolean isSequenceSpecified() { - return localSequenceTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSequence() { - return localSequence; - } - - /** - * Auto generated setter method - * - * @param param Sequence - */ - public void setSequence(int param) { - - // setting primitive attribute tracker to true - localSequenceTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSequence = param; - } - - /** field for Format */ - protected int localFormat; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localFormatTracker = false; - - public boolean isFormatSpecified() { - return localFormatTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getFormat() { - return localFormat; - } - - /** - * Auto generated setter method - * - * @param param Format - */ - public void setFormat(int param) { - - // setting primitive attribute tracker to true - localFormatTracker = param != java.lang.Integer.MIN_VALUE; - - this.localFormat = param; - } - - /** field for Result */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResultSummaryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResultSummaryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localSequenceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sequence", xmlWriter); - - if (localSequence == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); - } - - xmlWriter.writeEndElement(); - } - if (localFormatTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Format", xmlWriter); - - if (localFormat == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Format cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFormat)); - } - - xmlWriter.writeEndElement(); - } - if (localResultTracker) { - if (localResult == null) { - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - } - localResult.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResultSummaryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResultSummaryResponse object = new WUResultSummaryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResultSummaryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResultSummaryResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sequence" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSequence( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Format") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Format" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setFormat( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - object.setResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResultSummaryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResultSummaryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResultSummaryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUResultSummaryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Sequence */ + protected int localSequence; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSequenceTracker = false; + + public boolean isSequenceSpecified() { + return localSequenceTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSequence() { + return localSequence; + } + + /** + * Auto generated setter method + * + * @param param Sequence + */ + public void setSequence(int param) { + + // setting primitive attribute tracker to true + localSequenceTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSequence = param; + } + + /** field for Format */ + protected int localFormat; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localFormatTracker = false; + + public boolean isFormatSpecified() { + return localFormatTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getFormat() { + return localFormat; + } + + /** + * Auto generated setter method + * + * @param param Format + */ + public void setFormat(int param) { + + // setting primitive attribute tracker to true + localFormatTracker = param != java.lang.Integer.MIN_VALUE; + + this.localFormat = param; + } + + /** field for Result */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResultSummaryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResultSummaryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localSequenceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sequence", xmlWriter); + + if (localSequence == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); + } + + xmlWriter.writeEndElement(); + } + if (localFormatTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Format", xmlWriter); + + if (localFormat == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Format cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFormat)); + } + + xmlWriter.writeEndElement(); + } + if (localResultTracker) { + if (localResult == null) { + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + } + localResult.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResultSummaryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResultSummaryResponse object = new WUResultSummaryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResultSummaryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResultSummaryResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sequence" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSequence( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Format") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Format" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setFormat( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + object.setResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLResult.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultView.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultView.java index d9e38d99d..5d878c365 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultView.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultView.java @@ -1,598 +1,598 @@ -/** - * WUResultView.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResultView bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResultView implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultView", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for ViewName */ - protected java.lang.String localViewName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localViewNameTracker = false; - - public boolean isViewNameSpecified() { - return localViewNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getViewName() { - return localViewName; - } - - /** - * Auto generated setter method - * - * @param param ViewName - */ - public void setViewName(java.lang.String param) { - localViewNameTracker = param != null; - - this.localViewName = param; - } - - /** field for Sequence */ - protected int localSequence; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSequenceTracker = false; - - public boolean isSequenceSpecified() { - return localSequenceTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getSequence() { - return localSequence; - } - - /** - * Auto generated setter method - * - * @param param Sequence - */ - public void setSequence(int param) { - - // setting primitive attribute tracker to true - localSequenceTracker = param != java.lang.Integer.MIN_VALUE; - - this.localSequence = param; - } - - /** field for ResultName */ - protected java.lang.String localResultName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultNameTracker = false; - - public boolean isResultNameSpecified() { - return localResultNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResultName() { - return localResultName; - } - - /** - * Auto generated setter method - * - * @param param ResultName - */ - public void setResultName(java.lang.String param) { - localResultNameTracker = param != null; - - this.localResultName = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResultView", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUResultView", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localViewNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ViewName", xmlWriter); - - if (localViewName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ViewName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localViewName); - } - - xmlWriter.writeEndElement(); - } - if (localSequenceTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Sequence", xmlWriter); - - if (localSequence == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); - } - - xmlWriter.writeEndElement(); - } - if (localResultNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultName", xmlWriter); - - if (localResultName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ResultName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResultName); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResultView parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResultView object = new WUResultView(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResultView".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResultView) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ViewName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ViewName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setViewName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Sequence" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSequence( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResultView.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResultView bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResultView implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultView", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for ViewName */ + protected java.lang.String localViewName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localViewNameTracker = false; + + public boolean isViewNameSpecified() { + return localViewNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getViewName() { + return localViewName; + } + + /** + * Auto generated setter method + * + * @param param ViewName + */ + public void setViewName(java.lang.String param) { + localViewNameTracker = param != null; + + this.localViewName = param; + } + + /** field for Sequence */ + protected int localSequence; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSequenceTracker = false; + + public boolean isSequenceSpecified() { + return localSequenceTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getSequence() { + return localSequence; + } + + /** + * Auto generated setter method + * + * @param param Sequence + */ + public void setSequence(int param) { + + // setting primitive attribute tracker to true + localSequenceTracker = param != java.lang.Integer.MIN_VALUE; + + this.localSequence = param; + } + + /** field for ResultName */ + protected java.lang.String localResultName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultNameTracker = false; + + public boolean isResultNameSpecified() { + return localResultNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResultName() { + return localResultName; + } + + /** + * Auto generated setter method + * + * @param param ResultName + */ + public void setResultName(java.lang.String param) { + localResultNameTracker = param != null; + + this.localResultName = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResultView", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUResultView", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localViewNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ViewName", xmlWriter); + + if (localViewName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ViewName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localViewName); + } + + xmlWriter.writeEndElement(); + } + if (localSequenceTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Sequence", xmlWriter); + + if (localSequence == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Sequence cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSequence)); + } + + xmlWriter.writeEndElement(); + } + if (localResultNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultName", xmlWriter); + + if (localResultName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ResultName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResultName); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResultView parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResultView object = new WUResultView(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResultView".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResultView) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ViewName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ViewName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setViewName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Sequence") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Sequence" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSequence( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultViewResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultViewResponse.java index df01fbbc7..0c88d1814 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultViewResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUResultViewResponse.java @@ -1,588 +1,588 @@ -/** - * WUResultViewResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUResultViewResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUResultViewResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUResultViewResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for ViewName */ - protected java.lang.String localViewName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localViewNameTracker = false; - - public boolean isViewNameSpecified() { - return localViewNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getViewName() { - return localViewName; - } - - /** - * Auto generated setter method - * - * @param param ViewName - */ - public void setViewName(java.lang.String param) { - localViewNameTracker = param != null; - - this.localViewName = param; - } - - /** field for Result */ - protected java.lang.String localResult; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultTracker = false; - - public boolean isResultSpecified() { - return localResultTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResult() { - return localResult; - } - - /** - * Auto generated setter method - * - * @param param Result - */ - public void setResult(java.lang.String param) { - localResultTracker = param != null; - - this.localResult = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUResultViewResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUResultViewResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localViewNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ViewName", xmlWriter); - - if (localViewName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ViewName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localViewName); - } - - xmlWriter.writeEndElement(); - } - if (localResultTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Result", xmlWriter); - - if (localResult == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResult); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUResultViewResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUResultViewResponse object = new WUResultViewResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUResultViewResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUResultViewResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ViewName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ViewName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setViewName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Result" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResult( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUResultViewResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUResultViewResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUResultViewResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUResultViewResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for ViewName */ + protected java.lang.String localViewName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localViewNameTracker = false; + + public boolean isViewNameSpecified() { + return localViewNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getViewName() { + return localViewName; + } + + /** + * Auto generated setter method + * + * @param param ViewName + */ + public void setViewName(java.lang.String param) { + localViewNameTracker = param != null; + + this.localViewName = param; + } + + /** field for Result */ + protected java.lang.String localResult; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultTracker = false; + + public boolean isResultSpecified() { + return localResultTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResult() { + return localResult; + } + + /** + * Auto generated setter method + * + * @param param Result + */ + public void setResult(java.lang.String param) { + localResultTracker = param != null; + + this.localResult = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUResultViewResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUResultViewResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localViewNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ViewName", xmlWriter); + + if (localViewName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ViewName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localViewName); + } + + xmlWriter.writeEndElement(); + } + if (localResultTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Result", xmlWriter); + + if (localResult == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Result cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResult); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUResultViewResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUResultViewResponse object = new WUResultViewResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUResultViewResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUResultViewResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ViewName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ViewName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setViewName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Result") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Result" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResult( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURun.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURun.java index f6e4f0d00..f61cd3df2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURun.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURun.java @@ -1,1090 +1,1090 @@ -/** - * WURun.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WURun bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WURun implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURun", "ns1"); - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for Query */ - protected java.lang.String localQuery; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryTracker = false; - - public boolean isQuerySpecified() { - return localQueryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuery() { - return localQuery; - } - - /** - * Auto generated setter method - * - * @param param Query - */ - public void setQuery(java.lang.String param) { - localQueryTracker = param != null; - - this.localQuery = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for CloneWorkunit */ - protected boolean localCloneWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCloneWorkunitTracker = false; - - public boolean isCloneWorkunitSpecified() { - return localCloneWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getCloneWorkunit() { - return localCloneWorkunit; - } - - /** - * Auto generated setter method - * - * @param param CloneWorkunit - */ - public void setCloneWorkunit(boolean param) { - - // setting primitive attribute tracker to true - localCloneWorkunitTracker = true; - - this.localCloneWorkunit = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Wait */ - protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** field for Input */ - protected java.lang.String localInput; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localInputTracker = false; - - public boolean isInputSpecified() { - return localInputTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getInput() { - return localInput; - } - - /** - * Auto generated setter method - * - * @param param Input - */ - public void setInput(java.lang.String param) { - localInputTracker = param != null; - - this.localInput = param; - } - - /** field for NoRootTag */ - protected boolean localNoRootTag = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNoRootTagTracker = false; - - public boolean isNoRootTagSpecified() { - return localNoRootTagTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNoRootTag() { - return localNoRootTag; - } - - /** - * Auto generated setter method - * - * @param param NoRootTag - */ - public void setNoRootTag(boolean param) { - - // setting primitive attribute tracker to true - localNoRootTagTracker = true; - - this.localNoRootTag = param; - } - - /** field for DebugValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - localDebugValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValuesTracker = false; - - public boolean isDebugValuesSpecified() { - return localDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getDebugValues() { - return localDebugValues; - } - - /** - * Auto generated setter method - * - * @param param DebugValues - */ - public void setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { - localDebugValuesTracker = param != null; - - this.localDebugValues = param; - } - - /** field for Variables */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue localVariables; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localVariablesTracker = false; - - public boolean isVariablesSpecified() { - return localVariablesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getVariables() { - return localVariables; - } - - /** - * Auto generated setter method - * - * @param param Variables - */ - public void setVariables( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { - localVariablesTracker = param != null; - - this.localVariables = param; - } - - /** field for ApplicationValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - localApplicationValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValuesTracker = false; - - public boolean isApplicationValuesSpecified() { - return localApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - getApplicationValues() { - return localApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValues - */ - public void setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { - localApplicationValuesTracker = param != null; - - this.localApplicationValues = param; - } - - /** field for ExceptionSeverity */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity - localExceptionSeverity; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionSeverityTracker = false; - - public boolean isExceptionSeveritySpecified() { - return localExceptionSeverityTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity - getExceptionSeverity() { - return localExceptionSeverity; - } - - /** - * Auto generated setter method - * - * @param param ExceptionSeverity - */ - public void setExceptionSeverity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity param) { - localExceptionSeverityTracker = param != null; - - this.localExceptionSeverity = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WURun", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WURun", xmlWriter); - } - } - if (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localQueryTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Query", xmlWriter); - - if (localQuery == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuery); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localCloneWorkunitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CloneWorkunit", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("CloneWorkunit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCloneWorkunit)); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - if (localInputTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Input", xmlWriter); - - if (localInput == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Input cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localInput); - } - - xmlWriter.writeEndElement(); - } - if (localNoRootTagTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NoRootTag", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NoRootTag cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoRootTag)); - } - - xmlWriter.writeEndElement(); - } - if (localDebugValuesTracker) { - if (localDebugValues == null) { - throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); - } - localDebugValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), - xmlWriter); - } - if (localVariablesTracker) { - if (localVariables == null) { - throw new org.apache.axis2.databinding.ADBException("Variables cannot be null!!"); - } - localVariables.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Variables"), xmlWriter); - } - if (localApplicationValuesTracker) { - if (localApplicationValues == null) { - throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); - } - localApplicationValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), - xmlWriter); - } - if (localExceptionSeverityTracker) { - if (localExceptionSeverity == null) { - throw new org.apache.axis2.databinding.ADBException("ExceptionSeverity cannot be null!!"); - } - localExceptionSeverity.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExceptionSeverity"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WURun parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { - WURun object = new WURun(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WURun".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WURun) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Query" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuery( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CloneWorkunit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CloneWorkunit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCloneWorkunit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Input") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Input" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setInput( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoRootTag") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NoRootTag" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNoRootTag( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") - .equals(reader.getName())) { - - object.setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Variables") - .equals(reader.getName())) { - - object.setVariables( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") - .equals(reader.getName())) { - - object.setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ExceptionSeverity") - .equals(reader.getName())) { - - object.setExceptionSeverity( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WURun.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WURun bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WURun implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURun", "ns1"); + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for Query */ + protected java.lang.String localQuery; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryTracker = false; + + public boolean isQuerySpecified() { + return localQueryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuery() { + return localQuery; + } + + /** + * Auto generated setter method + * + * @param param Query + */ + public void setQuery(java.lang.String param) { + localQueryTracker = param != null; + + this.localQuery = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for CloneWorkunit */ + protected boolean localCloneWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCloneWorkunitTracker = false; + + public boolean isCloneWorkunitSpecified() { + return localCloneWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getCloneWorkunit() { + return localCloneWorkunit; + } + + /** + * Auto generated setter method + * + * @param param CloneWorkunit + */ + public void setCloneWorkunit(boolean param) { + + // setting primitive attribute tracker to true + localCloneWorkunitTracker = true; + + this.localCloneWorkunit = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Wait */ + protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** field for Input */ + protected java.lang.String localInput; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localInputTracker = false; + + public boolean isInputSpecified() { + return localInputTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getInput() { + return localInput; + } + + /** + * Auto generated setter method + * + * @param param Input + */ + public void setInput(java.lang.String param) { + localInputTracker = param != null; + + this.localInput = param; + } + + /** field for NoRootTag */ + protected boolean localNoRootTag = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNoRootTagTracker = false; + + public boolean isNoRootTagSpecified() { + return localNoRootTagTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNoRootTag() { + return localNoRootTag; + } + + /** + * Auto generated setter method + * + * @param param NoRootTag + */ + public void setNoRootTag(boolean param) { + + // setting primitive attribute tracker to true + localNoRootTagTracker = true; + + this.localNoRootTag = param; + } + + /** field for DebugValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + localDebugValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValuesTracker = false; + + public boolean isDebugValuesSpecified() { + return localDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getDebugValues() { + return localDebugValues; + } + + /** + * Auto generated setter method + * + * @param param DebugValues + */ + public void setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { + localDebugValuesTracker = param != null; + + this.localDebugValues = param; + } + + /** field for Variables */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue localVariables; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localVariablesTracker = false; + + public boolean isVariablesSpecified() { + return localVariablesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue getVariables() { + return localVariables; + } + + /** + * Auto generated setter method + * + * @param param Variables + */ + public void setVariables( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue param) { + localVariablesTracker = param != null; + + this.localVariables = param; + } + + /** field for ApplicationValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + localApplicationValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValuesTracker = false; + + public boolean isApplicationValuesSpecified() { + return localApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + getApplicationValues() { + return localApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValues + */ + public void setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { + localApplicationValuesTracker = param != null; + + this.localApplicationValues = param; + } + + /** field for ExceptionSeverity */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity + localExceptionSeverity; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionSeverityTracker = false; + + public boolean isExceptionSeveritySpecified() { + return localExceptionSeverityTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity + getExceptionSeverity() { + return localExceptionSeverity; + } + + /** + * Auto generated setter method + * + * @param param ExceptionSeverity + */ + public void setExceptionSeverity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity param) { + localExceptionSeverityTracker = param != null; + + this.localExceptionSeverity = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WURun", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WURun", xmlWriter); + } + } + if (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localQueryTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Query", xmlWriter); + + if (localQuery == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuery); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localCloneWorkunitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CloneWorkunit", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("CloneWorkunit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCloneWorkunit)); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + if (localInputTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Input", xmlWriter); + + if (localInput == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Input cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localInput); + } + + xmlWriter.writeEndElement(); + } + if (localNoRootTagTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NoRootTag", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NoRootTag cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoRootTag)); + } + + xmlWriter.writeEndElement(); + } + if (localDebugValuesTracker) { + if (localDebugValues == null) { + throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); + } + localDebugValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), + xmlWriter); + } + if (localVariablesTracker) { + if (localVariables == null) { + throw new org.apache.axis2.databinding.ADBException("Variables cannot be null!!"); + } + localVariables.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Variables"), xmlWriter); + } + if (localApplicationValuesTracker) { + if (localApplicationValues == null) { + throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); + } + localApplicationValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), + xmlWriter); + } + if (localExceptionSeverityTracker) { + if (localExceptionSeverity == null) { + throw new org.apache.axis2.databinding.ADBException("ExceptionSeverity cannot be null!!"); + } + localExceptionSeverity.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ExceptionSeverity"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WURun parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { + WURun object = new WURun(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WURun".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WURun) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Query" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuery( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CloneWorkunit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CloneWorkunit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCloneWorkunit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Input") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Input" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setInput( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoRootTag") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NoRootTag" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNoRootTag( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") + .equals(reader.getName())) { + + object.setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Variables") + .equals(reader.getName())) { + + object.setVariables( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfNamedValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") + .equals(reader.getName())) { + + object.setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ExceptionSeverity") + .equals(reader.getName())) { + + object.setExceptionSeverity( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExceptionSeverity.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURunResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURunResponse.java index 9f9df09ca..7fc451446 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURunResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WURunResponse.java @@ -1,583 +1,583 @@ -/** - * WURunResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WURunResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WURunResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURunResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for State */ - protected java.lang.String localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for Results */ - protected java.lang.String localResults; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultsTracker = false; - - public boolean isResultsSpecified() { - return localResultsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getResults() { - return localResults; - } - - /** - * Auto generated setter method - * - * @param param Results - */ - public void setResults(java.lang.String param) { - localResultsTracker = param != null; - - this.localResults = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WURunResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WURunResponse", xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localResultsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Results", xmlWriter); - - if (localResults == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localResults); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WURunResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WURunResponse object = new WURunResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WURunResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WURunResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Results" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResults( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WURunResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WURunResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WURunResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURunResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for State */ + protected java.lang.String localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for Results */ + protected java.lang.String localResults; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultsTracker = false; + + public boolean isResultsSpecified() { + return localResultsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getResults() { + return localResults; + } + + /** + * Auto generated setter method + * + * @param param Results + */ + public void setResults(java.lang.String param) { + localResultsTracker = param != null; + + this.localResults = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WURunResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WURunResponse", xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localResultsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Results", xmlWriter); + + if (localResults == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Results cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localResults); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WURunResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WURunResponse object = new WURunResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WURunResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WURunResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Results") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Results" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResults( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSchedule.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSchedule.java index 904b17c8b..bc09818a7 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSchedule.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSchedule.java @@ -1,735 +1,735 @@ -/** - * WUSchedule.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUSchedule bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUSchedule implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSchedule", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for Snapshot */ - protected java.lang.String localSnapshot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSnapshotTracker = false; - - public boolean isSnapshotSpecified() { - return localSnapshotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSnapshot() { - return localSnapshot; - } - - /** - * Auto generated setter method - * - * @param param Snapshot - */ - public void setSnapshot(java.lang.String param) { - localSnapshotTracker = param != null; - - this.localSnapshot = param; - } - - /** field for When */ - protected java.util.Calendar localWhen; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWhenTracker = false; - - public boolean isWhenSpecified() { - return localWhenTracker; - } - - /** - * Auto generated getter method - * - * @return java.util.Calendar - */ - public java.util.Calendar getWhen() { - return localWhen; - } - - /** - * Auto generated setter method - * - * @param param When - */ - public void setWhen(java.util.Calendar param) { - localWhenTracker = param != null; - - this.localWhen = param; - } - - /** field for MaxRunTime */ - protected int localMaxRunTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxRunTimeTracker = false; - - public boolean isMaxRunTimeSpecified() { - return localMaxRunTimeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMaxRunTime() { - return localMaxRunTime; - } - - /** - * Auto generated setter method - * - * @param param MaxRunTime - */ - public void setMaxRunTime(int param) { - - // setting primitive attribute tracker to true - localMaxRunTimeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMaxRunTime = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUSchedule", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUSchedule", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localSnapshotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Snapshot", xmlWriter); - - if (localSnapshot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSnapshot); - } - - xmlWriter.writeEndElement(); - } - if (localWhenTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "When", xmlWriter); - - if (localWhen == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("When cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWhen)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxRunTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxRunTime", xmlWriter); - - if (localMaxRunTime == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MaxRunTime cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxRunTime)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUSchedule parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUSchedule object = new WUSchedule(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUSchedule".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUSchedule) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Snapshot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSnapshot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "When") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "When" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWhen( - org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxRunTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxRunTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxRunTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUSchedule.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUSchedule bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUSchedule implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSchedule", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for Snapshot */ + protected java.lang.String localSnapshot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSnapshotTracker = false; + + public boolean isSnapshotSpecified() { + return localSnapshotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSnapshot() { + return localSnapshot; + } + + /** + * Auto generated setter method + * + * @param param Snapshot + */ + public void setSnapshot(java.lang.String param) { + localSnapshotTracker = param != null; + + this.localSnapshot = param; + } + + /** field for When */ + protected java.util.Calendar localWhen; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWhenTracker = false; + + public boolean isWhenSpecified() { + return localWhenTracker; + } + + /** + * Auto generated getter method + * + * @return java.util.Calendar + */ + public java.util.Calendar getWhen() { + return localWhen; + } + + /** + * Auto generated setter method + * + * @param param When + */ + public void setWhen(java.util.Calendar param) { + localWhenTracker = param != null; + + this.localWhen = param; + } + + /** field for MaxRunTime */ + protected int localMaxRunTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxRunTimeTracker = false; + + public boolean isMaxRunTimeSpecified() { + return localMaxRunTimeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMaxRunTime() { + return localMaxRunTime; + } + + /** + * Auto generated setter method + * + * @param param MaxRunTime + */ + public void setMaxRunTime(int param) { + + // setting primitive attribute tracker to true + localMaxRunTimeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMaxRunTime = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUSchedule", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUSchedule", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localSnapshotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Snapshot", xmlWriter); + + if (localSnapshot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSnapshot); + } + + xmlWriter.writeEndElement(); + } + if (localWhenTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "When", xmlWriter); + + if (localWhen == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("When cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWhen)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxRunTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxRunTime", xmlWriter); + + if (localMaxRunTime == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MaxRunTime cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxRunTime)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUSchedule parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUSchedule object = new WUSchedule(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUSchedule".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUSchedule) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Snapshot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSnapshot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "When") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "When" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWhen( + org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxRunTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxRunTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxRunTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScheduleResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScheduleResponse.java index aab873ada..24f9dfd2d 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScheduleResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScheduleResponse.java @@ -1,383 +1,383 @@ -/** - * WUScheduleResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUScheduleResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUScheduleResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUScheduleResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUScheduleResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUScheduleResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUScheduleResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUScheduleResponse object = new WUScheduleResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUScheduleResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUScheduleResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUScheduleResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUScheduleResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUScheduleResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUScheduleResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUScheduleResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUScheduleResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUScheduleResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUScheduleResponse object = new WUScheduleResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUScheduleResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUScheduleResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScopeFilter.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScopeFilter.java index e2a1975c0..5b8efccf5 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScopeFilter.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScopeFilter.java @@ -1,608 +1,608 @@ -/** - * WUScopeFilter.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUScopeFilter bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUScopeFilter implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUScopeFilter - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for MaxDepth */ - protected java.math.BigInteger localMaxDepth = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInteger("9999"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxDepthTracker = false; - - public boolean isMaxDepthSpecified() { - return localMaxDepthTracker; - } - - /** - * Auto generated getter method - * - * @return java.math.BigInteger - */ - public java.math.BigInteger getMaxDepth() { - return localMaxDepth; - } - - /** - * Auto generated setter method - * - * @param param MaxDepth - */ - public void setMaxDepth(java.math.BigInteger param) { - localMaxDepthTracker = param != null; - - this.localMaxDepth = param; - } - - /** field for Scopes */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0 localScopes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopesTracker = false; - - public boolean isScopesSpecified() { - return localScopesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0 getScopes() { - return localScopes; - } - - /** - * Auto generated setter method - * - * @param param Scopes - */ - public void setScopes(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0 param) { - localScopesTracker = param != null; - - this.localScopes = param; - } - - /** field for Ids */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0 localIds; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIdsTracker = false; - - public boolean isIdsSpecified() { - return localIdsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0 getIds() { - return localIds; - } - - /** - * Auto generated setter method - * - * @param param Ids - */ - public void setIds(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0 param) { - localIdsTracker = param != null; - - this.localIds = param; - } - - /** field for ScopeTypes */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0 localScopeTypes; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypesTracker = false; - - public boolean isScopeTypesSpecified() { - return localScopeTypesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0 getScopeTypes() { - return localScopeTypes; - } - - /** - * Auto generated setter method - * - * @param param ScopeTypes - */ - public void setScopeTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0 param) { - localScopeTypesTracker = param != null; - - this.localScopeTypes = param; - } - - /** field for PropertyFilters */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 - localPropertyFilters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPropertyFiltersTracker = false; - - public boolean isPropertyFiltersSpecified() { - return localPropertyFiltersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 - getPropertyFilters() { - return localPropertyFilters; - } - - /** - * Auto generated setter method - * - * @param param PropertyFilters - */ - public void setPropertyFilters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 param) { - localPropertyFiltersTracker = param != null; - - this.localPropertyFilters = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUScopeFilter", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUScopeFilter", xmlWriter); - } - } - if (localMaxDepthTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxDepth", xmlWriter); - - if (localMaxDepth == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("MaxDepth cannot be null!!"); - - } else { - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxDepth)); - } - - xmlWriter.writeEndElement(); - } - if (localScopesTracker) { - if (localScopes == null) { - throw new org.apache.axis2.databinding.ADBException("Scopes cannot be null!!"); - } - localScopes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scopes"), xmlWriter); - } - if (localIdsTracker) { - if (localIds == null) { - throw new org.apache.axis2.databinding.ADBException("Ids cannot be null!!"); - } - localIds.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Ids"), xmlWriter); - } - if (localScopeTypesTracker) { - if (localScopeTypes == null) { - throw new org.apache.axis2.databinding.ADBException("ScopeTypes cannot be null!!"); - } - localScopeTypes.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes"), xmlWriter); - } - if (localPropertyFiltersTracker) { - if (localPropertyFilters == null) { - throw new org.apache.axis2.databinding.ADBException("PropertyFilters cannot be null!!"); - } - localPropertyFilters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyFilters"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUScopeFilter parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUScopeFilter object = new WUScopeFilter(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUScopeFilter".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUScopeFilter) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxDepth") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxDepth" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxDepth( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInteger(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scopes") - .equals(reader.getName())) { - - object.setScopes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Ids") - .equals(reader.getName())) { - - object.setIds( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes") - .equals(reader.getName())) { - - object.setScopeTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "PropertyFilters") - .equals(reader.getName())) { - - object.setPropertyFilters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUScopeFilter.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUScopeFilter bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUScopeFilter implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUScopeFilter + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for MaxDepth */ + protected java.math.BigInteger localMaxDepth = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInteger("9999"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxDepthTracker = false; + + public boolean isMaxDepthSpecified() { + return localMaxDepthTracker; + } + + /** + * Auto generated getter method + * + * @return java.math.BigInteger + */ + public java.math.BigInteger getMaxDepth() { + return localMaxDepth; + } + + /** + * Auto generated setter method + * + * @param param MaxDepth + */ + public void setMaxDepth(java.math.BigInteger param) { + localMaxDepthTracker = param != null; + + this.localMaxDepth = param; + } + + /** field for Scopes */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0 localScopes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopesTracker = false; + + public boolean isScopesSpecified() { + return localScopesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0 getScopes() { + return localScopes; + } + + /** + * Auto generated setter method + * + * @param param Scopes + */ + public void setScopes(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0 param) { + localScopesTracker = param != null; + + this.localScopes = param; + } + + /** field for Ids */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0 localIds; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIdsTracker = false; + + public boolean isIdsSpecified() { + return localIdsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0 getIds() { + return localIds; + } + + /** + * Auto generated setter method + * + * @param param Ids + */ + public void setIds(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0 param) { + localIdsTracker = param != null; + + this.localIds = param; + } + + /** field for ScopeTypes */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0 localScopeTypes; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypesTracker = false; + + public boolean isScopeTypesSpecified() { + return localScopeTypesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0 getScopeTypes() { + return localScopeTypes; + } + + /** + * Auto generated setter method + * + * @param param ScopeTypes + */ + public void setScopeTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0 param) { + localScopeTypesTracker = param != null; + + this.localScopeTypes = param; + } + + /** field for PropertyFilters */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 + localPropertyFilters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPropertyFiltersTracker = false; + + public boolean isPropertyFiltersSpecified() { + return localPropertyFiltersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 + getPropertyFilters() { + return localPropertyFilters; + } + + /** + * Auto generated setter method + * + * @param param PropertyFilters + */ + public void setPropertyFilters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 param) { + localPropertyFiltersTracker = param != null; + + this.localPropertyFilters = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUScopeFilter", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUScopeFilter", xmlWriter); + } + } + if (localMaxDepthTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxDepth", xmlWriter); + + if (localMaxDepth == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("MaxDepth cannot be null!!"); + + } else { + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxDepth)); + } + + xmlWriter.writeEndElement(); + } + if (localScopesTracker) { + if (localScopes == null) { + throw new org.apache.axis2.databinding.ADBException("Scopes cannot be null!!"); + } + localScopes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scopes"), xmlWriter); + } + if (localIdsTracker) { + if (localIds == null) { + throw new org.apache.axis2.databinding.ADBException("Ids cannot be null!!"); + } + localIds.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Ids"), xmlWriter); + } + if (localScopeTypesTracker) { + if (localScopeTypes == null) { + throw new org.apache.axis2.databinding.ADBException("ScopeTypes cannot be null!!"); + } + localScopeTypes.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes"), xmlWriter); + } + if (localPropertyFiltersTracker) { + if (localPropertyFilters == null) { + throw new org.apache.axis2.databinding.ADBException("PropertyFilters cannot be null!!"); + } + localPropertyFilters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PropertyFilters"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUScopeFilter parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUScopeFilter object = new WUScopeFilter(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUScopeFilter".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUScopeFilter) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxDepth") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxDepth" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxDepth( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInteger(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scopes") + .equals(reader.getName())) { + + object.setScopes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Scopes_type0.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Ids") + .equals(reader.getName())) { + + object.setIds( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ids_type0.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeTypes") + .equals(reader.getName())) { + + object.setScopeTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ScopeTypes_type0.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "PropertyFilters") + .equals(reader.getName())) { + + object.setPropertyFilters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.PropertyFilters_type0 + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScopeOptions.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScopeOptions.java index 069c9df0b..be03c1aa9 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScopeOptions.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUScopeOptions.java @@ -1,617 +1,617 @@ -/** - * WUScopeOptions.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUScopeOptions bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUScopeOptions implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUScopeOptions - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for IncludeMatchedScopesInResults */ - protected boolean localIncludeMatchedScopesInResults = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeMatchedScopesInResultsTracker = false; - - public boolean isIncludeMatchedScopesInResultsSpecified() { - return localIncludeMatchedScopesInResultsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeMatchedScopesInResults() { - return localIncludeMatchedScopesInResults; - } - - /** - * Auto generated setter method - * - * @param param IncludeMatchedScopesInResults - */ - public void setIncludeMatchedScopesInResults(boolean param) { - - // setting primitive attribute tracker to true - localIncludeMatchedScopesInResultsTracker = true; - - this.localIncludeMatchedScopesInResults = param; - } - - /** field for IncludeScope */ - protected boolean localIncludeScope = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeScopeTracker = false; - - public boolean isIncludeScopeSpecified() { - return localIncludeScopeTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeScope() { - return localIncludeScope; - } - - /** - * Auto generated setter method - * - * @param param IncludeScope - */ - public void setIncludeScope(boolean param) { - - // setting primitive attribute tracker to true - localIncludeScopeTracker = true; - - this.localIncludeScope = param; - } - - /** field for IncludeId */ - protected boolean localIncludeId = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeIdTracker = false; - - public boolean isIncludeIdSpecified() { - return localIncludeIdTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeId() { - return localIncludeId; - } - - /** - * Auto generated setter method - * - * @param param IncludeId - */ - public void setIncludeId(boolean param) { - - // setting primitive attribute tracker to true - localIncludeIdTracker = true; - - this.localIncludeId = param; - } - - /** field for IncludeScopeType */ - protected boolean localIncludeScopeType = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localIncludeScopeTypeTracker = false; - - public boolean isIncludeScopeTypeSpecified() { - return localIncludeScopeTypeTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getIncludeScopeType() { - return localIncludeScopeType; - } - - /** - * Auto generated setter method - * - * @param param IncludeScopeType - */ - public void setIncludeScopeType(boolean param) { - - // setting primitive attribute tracker to true - localIncludeScopeTypeTracker = true; - - this.localIncludeScopeType = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUScopeOptions", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUScopeOptions", - xmlWriter); - } - } - if (localIncludeMatchedScopesInResultsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeMatchedScopesInResults", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException( - "IncludeMatchedScopesInResults cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeMatchedScopesInResults)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeScope", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeScope cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeScope)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeId", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeId cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeId)); - } - - xmlWriter.writeEndElement(); - } - if (localIncludeScopeTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "IncludeScopeType", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("IncludeScopeType cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localIncludeScopeType)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUScopeOptions parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUScopeOptions object = new WUScopeOptions(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUScopeOptions".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUScopeOptions) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeMatchedScopesInResults") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeMatchedScopesInResults" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeMatchedScopesInResults( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeScope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeScope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "IncludeScopeType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "IncludeScopeType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setIncludeScopeType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUScopeOptions.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUScopeOptions bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUScopeOptions implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUScopeOptions + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for IncludeMatchedScopesInResults */ + protected boolean localIncludeMatchedScopesInResults = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeMatchedScopesInResultsTracker = false; + + public boolean isIncludeMatchedScopesInResultsSpecified() { + return localIncludeMatchedScopesInResultsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeMatchedScopesInResults() { + return localIncludeMatchedScopesInResults; + } + + /** + * Auto generated setter method + * + * @param param IncludeMatchedScopesInResults + */ + public void setIncludeMatchedScopesInResults(boolean param) { + + // setting primitive attribute tracker to true + localIncludeMatchedScopesInResultsTracker = true; + + this.localIncludeMatchedScopesInResults = param; + } + + /** field for IncludeScope */ + protected boolean localIncludeScope = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("true"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeScopeTracker = false; + + public boolean isIncludeScopeSpecified() { + return localIncludeScopeTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeScope() { + return localIncludeScope; + } + + /** + * Auto generated setter method + * + * @param param IncludeScope + */ + public void setIncludeScope(boolean param) { + + // setting primitive attribute tracker to true + localIncludeScopeTracker = true; + + this.localIncludeScope = param; + } + + /** field for IncludeId */ + protected boolean localIncludeId = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeIdTracker = false; + + public boolean isIncludeIdSpecified() { + return localIncludeIdTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeId() { + return localIncludeId; + } + + /** + * Auto generated setter method + * + * @param param IncludeId + */ + public void setIncludeId(boolean param) { + + // setting primitive attribute tracker to true + localIncludeIdTracker = true; + + this.localIncludeId = param; + } + + /** field for IncludeScopeType */ + protected boolean localIncludeScopeType = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localIncludeScopeTypeTracker = false; + + public boolean isIncludeScopeTypeSpecified() { + return localIncludeScopeTypeTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getIncludeScopeType() { + return localIncludeScopeType; + } + + /** + * Auto generated setter method + * + * @param param IncludeScopeType + */ + public void setIncludeScopeType(boolean param) { + + // setting primitive attribute tracker to true + localIncludeScopeTypeTracker = true; + + this.localIncludeScopeType = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUScopeOptions", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUScopeOptions", + xmlWriter); + } + } + if (localIncludeMatchedScopesInResultsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeMatchedScopesInResults", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException( + "IncludeMatchedScopesInResults cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeMatchedScopesInResults)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeScope", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeScope cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeScope)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeId", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeId cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIncludeId)); + } + + xmlWriter.writeEndElement(); + } + if (localIncludeScopeTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "IncludeScopeType", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("IncludeScopeType cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localIncludeScopeType)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUScopeOptions parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUScopeOptions object = new WUScopeOptions(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUScopeOptions".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUScopeOptions) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeMatchedScopesInResults") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeMatchedScopesInResults" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeMatchedScopesInResults( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeScope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeScope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IncludeId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "IncludeScopeType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "IncludeScopeType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setIncludeScopeType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUShowScheduled.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUShowScheduled.java index e8ad60863..8af3c411b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUShowScheduled.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUShowScheduled.java @@ -1,881 +1,881 @@ -/** - * WUShowScheduled.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUShowScheduled bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUShowScheduled implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUShowScheduled", "ns1"); - - /** field for Cluster */ - protected java.lang.String localCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for EventName */ - protected java.lang.String localEventName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventNameTracker = false; - - public boolean isEventNameSpecified() { - return localEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventName() { - return localEventName; - } - - /** - * Auto generated setter method - * - * @param param EventName - */ - public void setEventName(java.lang.String param) { - localEventNameTracker = param != null; - - this.localEventName = param; - } - - /** field for PushEventName */ - protected java.lang.String localPushEventName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPushEventNameTracker = false; - - public boolean isPushEventNameSpecified() { - return localPushEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPushEventName() { - return localPushEventName; - } - - /** - * Auto generated setter method - * - * @param param PushEventName - */ - public void setPushEventName(java.lang.String param) { - localPushEventNameTracker = param != null; - - this.localPushEventName = param; - } - - /** field for PushEventText */ - protected java.lang.String localPushEventText = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPushEventTextTracker = false; - - public boolean isPushEventTextSpecified() { - return localPushEventTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPushEventText() { - return localPushEventText; - } - - /** - * Auto generated setter method - * - * @param param PushEventText - */ - public void setPushEventText(java.lang.String param) { - localPushEventTextTracker = param != null; - - this.localPushEventText = param; - } - - /** field for State */ - protected java.lang.String localState = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(java.lang.String param) { - localStateTracker = param != null; - - this.localState = param; - } - - /** field for JobName */ - protected java.lang.String localJobName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobNameTracker = false; - - public boolean isJobNameSpecified() { - return localJobNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobName() { - return localJobName; - } - - /** - * Auto generated setter method - * - * @param param JobName - */ - public void setJobName(java.lang.String param) { - localJobNameTracker = param != null; - - this.localJobName = param; - } - - /** field for Owner */ - protected java.lang.String localOwner = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localOwnerTracker = false; - - public boolean isOwnerSpecified() { - return localOwnerTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getOwner() { - return localOwner; - } - - /** - * Auto generated setter method - * - * @param param Owner - */ - public void setOwner(java.lang.String param) { - localOwnerTracker = param != null; - - this.localOwner = param; - } - - /** field for EventText */ - protected java.lang.String localEventText = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventTextTracker = false; - - public boolean isEventTextSpecified() { - return localEventTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventText() { - return localEventText; - } - - /** - * Auto generated setter method - * - * @param param EventText - */ - public void setEventText(java.lang.String param) { - localEventTextTracker = param != null; - - this.localEventText = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUShowScheduled", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUShowScheduled", - xmlWriter); - } - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localEventNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventName", xmlWriter); - - if (localEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventName); - } - - xmlWriter.writeEndElement(); - } - if (localPushEventNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PushEventName", xmlWriter); - - if (localPushEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PushEventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPushEventName); - } - - xmlWriter.writeEndElement(); - } - if (localPushEventTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PushEventText", xmlWriter); - - if (localPushEventText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PushEventText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPushEventText); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localState); - } - - xmlWriter.writeEndElement(); - } - if (localJobNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "JobName", xmlWriter); - - if (localJobName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobName); - } - - xmlWriter.writeEndElement(); - } - if (localOwnerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Owner", xmlWriter); - - if (localOwner == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localOwner); - } - - xmlWriter.writeEndElement(); - } - if (localEventTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventText", xmlWriter); - - if (localEventText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventText); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUShowScheduled parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUShowScheduled object = new WUShowScheduled(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUShowScheduled".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUShowScheduled) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PushEventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PushEventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPushEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PushEventText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PushEventText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPushEventText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Owner" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setOwner( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUShowScheduled.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUShowScheduled bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUShowScheduled implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUShowScheduled", "ns1"); + + /** field for Cluster */ + protected java.lang.String localCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for EventName */ + protected java.lang.String localEventName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventNameTracker = false; + + public boolean isEventNameSpecified() { + return localEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventName() { + return localEventName; + } + + /** + * Auto generated setter method + * + * @param param EventName + */ + public void setEventName(java.lang.String param) { + localEventNameTracker = param != null; + + this.localEventName = param; + } + + /** field for PushEventName */ + protected java.lang.String localPushEventName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPushEventNameTracker = false; + + public boolean isPushEventNameSpecified() { + return localPushEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPushEventName() { + return localPushEventName; + } + + /** + * Auto generated setter method + * + * @param param PushEventName + */ + public void setPushEventName(java.lang.String param) { + localPushEventNameTracker = param != null; + + this.localPushEventName = param; + } + + /** field for PushEventText */ + protected java.lang.String localPushEventText = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPushEventTextTracker = false; + + public boolean isPushEventTextSpecified() { + return localPushEventTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPushEventText() { + return localPushEventText; + } + + /** + * Auto generated setter method + * + * @param param PushEventText + */ + public void setPushEventText(java.lang.String param) { + localPushEventTextTracker = param != null; + + this.localPushEventText = param; + } + + /** field for State */ + protected java.lang.String localState = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(java.lang.String param) { + localStateTracker = param != null; + + this.localState = param; + } + + /** field for JobName */ + protected java.lang.String localJobName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobNameTracker = false; + + public boolean isJobNameSpecified() { + return localJobNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobName() { + return localJobName; + } + + /** + * Auto generated setter method + * + * @param param JobName + */ + public void setJobName(java.lang.String param) { + localJobNameTracker = param != null; + + this.localJobName = param; + } + + /** field for Owner */ + protected java.lang.String localOwner = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localOwnerTracker = false; + + public boolean isOwnerSpecified() { + return localOwnerTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getOwner() { + return localOwner; + } + + /** + * Auto generated setter method + * + * @param param Owner + */ + public void setOwner(java.lang.String param) { + localOwnerTracker = param != null; + + this.localOwner = param; + } + + /** field for EventText */ + protected java.lang.String localEventText = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventTextTracker = false; + + public boolean isEventTextSpecified() { + return localEventTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventText() { + return localEventText; + } + + /** + * Auto generated setter method + * + * @param param EventText + */ + public void setEventText(java.lang.String param) { + localEventTextTracker = param != null; + + this.localEventText = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUShowScheduled", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUShowScheduled", + xmlWriter); + } + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localEventNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventName", xmlWriter); + + if (localEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventName); + } + + xmlWriter.writeEndElement(); + } + if (localPushEventNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PushEventName", xmlWriter); + + if (localPushEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PushEventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPushEventName); + } + + xmlWriter.writeEndElement(); + } + if (localPushEventTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PushEventText", xmlWriter); + + if (localPushEventText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PushEventText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPushEventText); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localState); + } + + xmlWriter.writeEndElement(); + } + if (localJobNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "JobName", xmlWriter); + + if (localJobName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobName); + } + + xmlWriter.writeEndElement(); + } + if (localOwnerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Owner", xmlWriter); + + if (localOwner == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localOwner); + } + + xmlWriter.writeEndElement(); + } + if (localEventTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventText", xmlWriter); + + if (localEventText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventText); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUShowScheduled parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUShowScheduled object = new WUShowScheduled(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUShowScheduled".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUShowScheduled) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PushEventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PushEventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPushEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PushEventText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PushEventText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPushEventText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Owner" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setOwner( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUShowScheduledResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUShowScheduledResponse.java index 056715e80..854a79e0e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUShowScheduledResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUShowScheduledResponse.java @@ -1,835 +1,836 @@ -/** - * WUShowScheduledResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUShowScheduledResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUShowScheduledResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUShowScheduledResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for ClusterSelected */ - protected int localClusterSelected; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterSelectedTracker = false; - - public boolean isClusterSelectedSpecified() { - return localClusterSelectedTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getClusterSelected() { - return localClusterSelected; - } - - /** - * Auto generated setter method - * - * @param param ClusterSelected - */ - public void setClusterSelected(int param) { - - // setting primitive attribute tracker to true - localClusterSelectedTracker = param != java.lang.Integer.MIN_VALUE; - - this.localClusterSelected = param; - } - - /** field for EventName */ - protected java.lang.String localEventName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localEventNameTracker = false; - - public boolean isEventNameSpecified() { - return localEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getEventName() { - return localEventName; - } - - /** - * Auto generated setter method - * - * @param param EventName - */ - public void setEventName(java.lang.String param) { - localEventNameTracker = param != null; - - this.localEventName = param; - } - - /** field for PushEventName */ - protected java.lang.String localPushEventName = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPushEventNameTracker = false; - - public boolean isPushEventNameSpecified() { - return localPushEventNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPushEventName() { - return localPushEventName; - } - - /** - * Auto generated setter method - * - * @param param PushEventName - */ - public void setPushEventName(java.lang.String param) { - localPushEventNameTracker = param != null; - - this.localPushEventName = param; - } - - /** field for PushEventText */ - protected java.lang.String localPushEventText = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPushEventTextTracker = false; - - public boolean isPushEventTextSpecified() { - return localPushEventTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getPushEventText() { - return localPushEventText; - } - - /** - * Auto generated setter method - * - * @param param PushEventText - */ - public void setPushEventText(java.lang.String param) { - localPushEventTextTracker = param != null; - - this.localPushEventText = param; - } - - /** field for Query */ - protected java.lang.String localQuery = - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryTracker = false; - - public boolean isQuerySpecified() { - return localQueryTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuery() { - return localQuery; - } - - /** - * Auto generated setter method - * - * @param param Query - */ - public void setQuery(java.lang.String param) { - localQueryTracker = param != null; - - this.localQuery = param; - } - - /** field for Clusters */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo localClusters; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClustersTracker = false; - - public boolean isClustersSpecified() { - return localClustersTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo getClusters() { - return localClusters; - } - - /** - * Auto generated setter method - * - * @param param Clusters - */ - public void setClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo param) { - localClustersTracker = param != null; - - this.localClusters = param; - } - - /** field for Workunits */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU - localWorkunits; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitsTracker = false; - - public boolean isWorkunitsSpecified() { - return localWorkunitsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU getWorkunits() { - return localWorkunits; - } - - /** - * Auto generated setter method - * - * @param param Workunits - */ - public void setWorkunits( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU param) { - localWorkunitsTracker = param != null; - - this.localWorkunits = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUShowScheduledResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUShowScheduledResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localClusterSelectedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterSelected", xmlWriter); - - if (localClusterSelected == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ClusterSelected cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterSelected)); - } - - xmlWriter.writeEndElement(); - } - if (localEventNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "EventName", xmlWriter); - - if (localEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localEventName); - } - - xmlWriter.writeEndElement(); - } - if (localPushEventNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PushEventName", xmlWriter); - - if (localPushEventName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PushEventName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPushEventName); - } - - xmlWriter.writeEndElement(); - } - if (localPushEventTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PushEventText", xmlWriter); - - if (localPushEventText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("PushEventText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localPushEventText); - } - - xmlWriter.writeEndElement(); - } - if (localQueryTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Query", xmlWriter); - - if (localQuery == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuery); - } - - xmlWriter.writeEndElement(); - } - if (localClustersTracker) { - if (localClusters == null) { - throw new org.apache.axis2.databinding.ADBException("Clusters cannot be null!!"); - } - localClusters.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters"), xmlWriter); - } - if (localWorkunitsTracker) { - if (localWorkunits == null) { - throw new org.apache.axis2.databinding.ADBException("Workunits cannot be null!!"); - } - localWorkunits.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUShowScheduledResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUShowScheduledResponse object = new WUShowScheduledResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUShowScheduledResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUShowScheduledResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ClusterSelected") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterSelected" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterSelected( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "EventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PushEventName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PushEventName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPushEventName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PushEventText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PushEventText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPushEventText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Query" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuery( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters") - .equals(reader.getName())) { - - object.setClusters( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits") - .equals(reader.getName())) { - - object.setWorkunits( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUShowScheduledResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUShowScheduledResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUShowScheduledResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUShowScheduledResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for ClusterSelected */ + protected int localClusterSelected = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterSelectedTracker = false; + + public boolean isClusterSelectedSpecified() { + return localClusterSelectedTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getClusterSelected() { + return localClusterSelected; + } + + /** + * Auto generated setter method + * + * @param param ClusterSelected + */ + public void setClusterSelected(int param) { + + // setting primitive attribute tracker to true + localClusterSelectedTracker = param != java.lang.Integer.MIN_VALUE; + + this.localClusterSelected = param; + } + + /** field for EventName */ + protected java.lang.String localEventName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localEventNameTracker = false; + + public boolean isEventNameSpecified() { + return localEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getEventName() { + return localEventName; + } + + /** + * Auto generated setter method + * + * @param param EventName + */ + public void setEventName(java.lang.String param) { + localEventNameTracker = param != null; + + this.localEventName = param; + } + + /** field for PushEventName */ + protected java.lang.String localPushEventName = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPushEventNameTracker = false; + + public boolean isPushEventNameSpecified() { + return localPushEventNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPushEventName() { + return localPushEventName; + } + + /** + * Auto generated setter method + * + * @param param PushEventName + */ + public void setPushEventName(java.lang.String param) { + localPushEventNameTracker = param != null; + + this.localPushEventName = param; + } + + /** field for PushEventText */ + protected java.lang.String localPushEventText = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPushEventTextTracker = false; + + public boolean isPushEventTextSpecified() { + return localPushEventTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getPushEventText() { + return localPushEventText; + } + + /** + * Auto generated setter method + * + * @param param PushEventText + */ + public void setPushEventText(java.lang.String param) { + localPushEventTextTracker = param != null; + + this.localPushEventText = param; + } + + /** field for Query */ + protected java.lang.String localQuery = + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(""); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryTracker = false; + + public boolean isQuerySpecified() { + return localQueryTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuery() { + return localQuery; + } + + /** + * Auto generated setter method + * + * @param param Query + */ + public void setQuery(java.lang.String param) { + localQueryTracker = param != null; + + this.localQuery = param; + } + + /** field for Clusters */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo localClusters; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClustersTracker = false; + + public boolean isClustersSpecified() { + return localClustersTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo getClusters() { + return localClusters; + } + + /** + * Auto generated setter method + * + * @param param Clusters + */ + public void setClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo param) { + localClustersTracker = param != null; + + this.localClusters = param; + } + + /** field for Workunits */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU + localWorkunits; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitsTracker = false; + + public boolean isWorkunitsSpecified() { + return localWorkunitsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU getWorkunits() { + return localWorkunits; + } + + /** + * Auto generated setter method + * + * @param param Workunits + */ + public void setWorkunits( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU param) { + localWorkunitsTracker = param != null; + + this.localWorkunits = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUShowScheduledResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUShowScheduledResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localClusterSelectedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterSelected", xmlWriter); + + if (localClusterSelected == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ClusterSelected cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localClusterSelected)); + } + + xmlWriter.writeEndElement(); + } + if (localEventNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "EventName", xmlWriter); + + if (localEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("EventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localEventName); + } + + xmlWriter.writeEndElement(); + } + if (localPushEventNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PushEventName", xmlWriter); + + if (localPushEventName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PushEventName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPushEventName); + } + + xmlWriter.writeEndElement(); + } + if (localPushEventTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PushEventText", xmlWriter); + + if (localPushEventText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("PushEventText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localPushEventText); + } + + xmlWriter.writeEndElement(); + } + if (localQueryTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Query", xmlWriter); + + if (localQuery == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Query cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuery); + } + + xmlWriter.writeEndElement(); + } + if (localClustersTracker) { + if (localClusters == null) { + throw new org.apache.axis2.databinding.ADBException("Clusters cannot be null!!"); + } + localClusters.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters"), xmlWriter); + } + if (localWorkunitsTracker) { + if (localWorkunits == null) { + throw new org.apache.axis2.databinding.ADBException("Workunits cannot be null!!"); + } + localWorkunits.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUShowScheduledResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUShowScheduledResponse object = new WUShowScheduledResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUShowScheduledResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUShowScheduledResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ClusterSelected") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterSelected" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterSelected( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "EventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "EventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PushEventName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PushEventName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPushEventName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PushEventText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PushEventText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPushEventText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Query") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Query" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuery( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Clusters") + .equals(reader.getName())) { + + object.setClusters( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfServerInfo.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunits") + .equals(reader.getName())) { + + object.setWorkunits( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfScheduledWU.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUStatisticItem.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUStatisticItem.java index 254e4b984..a3b858244 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUStatisticItem.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUStatisticItem.java @@ -1,1219 +1,1219 @@ -/** - * WUStatisticItem.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUStatisticItem bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUStatisticItem implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUStatisticItem - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Creator */ - protected java.lang.String localCreator; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCreatorTracker = false; - - public boolean isCreatorSpecified() { - return localCreatorTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCreator() { - return localCreator; - } - - /** - * Auto generated setter method - * - * @param param Creator - */ - public void setCreator(java.lang.String param) { - localCreatorTracker = param != null; - - this.localCreator = param; - } - - /** field for CreatorType */ - protected java.lang.String localCreatorType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCreatorTypeTracker = false; - - public boolean isCreatorTypeSpecified() { - return localCreatorTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCreatorType() { - return localCreatorType; - } - - /** - * Auto generated setter method - * - * @param param CreatorType - */ - public void setCreatorType(java.lang.String param) { - localCreatorTypeTracker = param != null; - - this.localCreatorType = param; - } - - /** field for Scope */ - protected java.lang.String localScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTracker = false; - - public boolean isScopeSpecified() { - return localScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScope() { - return localScope; - } - - /** - * Auto generated setter method - * - * @param param Scope - */ - public void setScope(java.lang.String param) { - localScopeTracker = param != null; - - this.localScope = param; - } - - /** field for ScopeType */ - protected java.lang.String localScopeType; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTypeTracker = false; - - public boolean isScopeTypeSpecified() { - return localScopeTypeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScopeType() { - return localScopeType; - } - - /** - * Auto generated setter method - * - * @param param ScopeType - */ - public void setScopeType(java.lang.String param) { - localScopeTypeTracker = param != null; - - this.localScopeType = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for TimeStamp */ - protected java.lang.String localTimeStamp; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeStampTracker = false; - - public boolean isTimeStampSpecified() { - return localTimeStampTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getTimeStamp() { - return localTimeStamp; - } - - /** - * Auto generated setter method - * - * @param param TimeStamp - */ - public void setTimeStamp(java.lang.String param) { - localTimeStampTracker = param != null; - - this.localTimeStamp = param; - } - - /** field for Measure */ - protected java.lang.String localMeasure; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMeasureTracker = false; - - public boolean isMeasureSpecified() { - return localMeasureTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMeasure() { - return localMeasure; - } - - /** - * Auto generated setter method - * - * @param param Measure - */ - public void setMeasure(java.lang.String param) { - localMeasureTracker = param != null; - - this.localMeasure = param; - } - - /** field for Kind */ - protected java.lang.String localKind; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localKindTracker = false; - - public boolean isKindSpecified() { - return localKindTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getKind() { - return localKind; - } - - /** - * Auto generated setter method - * - * @param param Kind - */ - public void setKind(java.lang.String param) { - localKindTracker = param != null; - - this.localKind = param; - } - - /** field for Value */ - protected java.lang.String localValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localValueTracker = false; - - public boolean isValueSpecified() { - return localValueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getValue() { - return localValue; - } - - /** - * Auto generated setter method - * - * @param param Value - */ - public void setValue(java.lang.String param) { - localValueTracker = param != null; - - this.localValue = param; - } - - /** field for RawValue */ - protected long localRawValue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localRawValueTracker = false; - - public boolean isRawValueSpecified() { - return localRawValueTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getRawValue() { - return localRawValue; - } - - /** - * Auto generated setter method - * - * @param param RawValue - */ - public void setRawValue(long param) { - - // setting primitive attribute tracker to true - localRawValueTracker = param != java.lang.Long.MIN_VALUE; - - this.localRawValue = param; - } - - /** field for Count */ - protected long localCount; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCountTracker = false; - - public boolean isCountSpecified() { - return localCountTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getCount() { - return localCount; - } - - /** - * Auto generated setter method - * - * @param param Count - */ - public void setCount(long param) { - - // setting primitive attribute tracker to true - localCountTracker = param != java.lang.Long.MIN_VALUE; - - this.localCount = param; - } - - /** field for Max */ - protected long localMax; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxTracker = false; - - public boolean isMaxSpecified() { - return localMaxTracker; - } - - /** - * Auto generated getter method - * - * @return long - */ - public long getMax() { - return localMax; - } - - /** - * Auto generated setter method - * - * @param param Max - */ - public void setMax(long param) { - - // setting primitive attribute tracker to true - localMaxTracker = param != java.lang.Long.MIN_VALUE; - - this.localMax = param; - } - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUStatisticItem", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUStatisticItem", - xmlWriter); - } - } - if (localCreatorTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Creator", xmlWriter); - - if (localCreator == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Creator cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCreator); - } - - xmlWriter.writeEndElement(); - } - if (localCreatorTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "CreatorType", xmlWriter); - - if (localCreatorType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("CreatorType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCreatorType); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Scope", xmlWriter); - - if (localScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScope); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTypeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ScopeType", xmlWriter); - - if (localScopeType == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScopeType); - } - - xmlWriter.writeEndElement(); - } - if (localDescriptionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localTimeStampTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeStamp", xmlWriter); - - if (localTimeStamp == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("TimeStamp cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localTimeStamp); - } - - xmlWriter.writeEndElement(); - } - if (localMeasureTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Measure", xmlWriter); - - if (localMeasure == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localMeasure); - } - - xmlWriter.writeEndElement(); - } - if (localKindTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Kind", xmlWriter); - - if (localKind == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localKind); - } - - xmlWriter.writeEndElement(); - } - if (localValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Value", xmlWriter); - - if (localValue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localValue); - } - - xmlWriter.writeEndElement(); - } - if (localRawValueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "RawValue", xmlWriter); - - if (localRawValue == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("RawValue cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRawValue)); - } - - xmlWriter.writeEndElement(); - } - if (localCountTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Count", xmlWriter); - - if (localCount == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Max", xmlWriter); - - if (localMax == java.lang.Long.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Max cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMax)); - } - - xmlWriter.writeEndElement(); - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUStatisticItem parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUStatisticItem object = new WUStatisticItem(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUStatisticItem".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUStatisticItem) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Creator") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Creator" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCreator( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CreatorType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "CreatorType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCreatorType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Scope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ScopeType" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScopeType( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeStamp") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeStamp" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeStamp( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Measure" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMeasure( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Kind") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Kind" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setKind( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Value" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RawValue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "RawValue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setRawValue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Count" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCount( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Max") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Max" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMax( - org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUStatisticItem.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUStatisticItem bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUStatisticItem implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUStatisticItem + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Creator */ + protected java.lang.String localCreator; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCreatorTracker = false; + + public boolean isCreatorSpecified() { + return localCreatorTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCreator() { + return localCreator; + } + + /** + * Auto generated setter method + * + * @param param Creator + */ + public void setCreator(java.lang.String param) { + localCreatorTracker = param != null; + + this.localCreator = param; + } + + /** field for CreatorType */ + protected java.lang.String localCreatorType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCreatorTypeTracker = false; + + public boolean isCreatorTypeSpecified() { + return localCreatorTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCreatorType() { + return localCreatorType; + } + + /** + * Auto generated setter method + * + * @param param CreatorType + */ + public void setCreatorType(java.lang.String param) { + localCreatorTypeTracker = param != null; + + this.localCreatorType = param; + } + + /** field for Scope */ + protected java.lang.String localScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTracker = false; + + public boolean isScopeSpecified() { + return localScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScope() { + return localScope; + } + + /** + * Auto generated setter method + * + * @param param Scope + */ + public void setScope(java.lang.String param) { + localScopeTracker = param != null; + + this.localScope = param; + } + + /** field for ScopeType */ + protected java.lang.String localScopeType; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTypeTracker = false; + + public boolean isScopeTypeSpecified() { + return localScopeTypeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScopeType() { + return localScopeType; + } + + /** + * Auto generated setter method + * + * @param param ScopeType + */ + public void setScopeType(java.lang.String param) { + localScopeTypeTracker = param != null; + + this.localScopeType = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for TimeStamp */ + protected java.lang.String localTimeStamp; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeStampTracker = false; + + public boolean isTimeStampSpecified() { + return localTimeStampTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getTimeStamp() { + return localTimeStamp; + } + + /** + * Auto generated setter method + * + * @param param TimeStamp + */ + public void setTimeStamp(java.lang.String param) { + localTimeStampTracker = param != null; + + this.localTimeStamp = param; + } + + /** field for Measure */ + protected java.lang.String localMeasure; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMeasureTracker = false; + + public boolean isMeasureSpecified() { + return localMeasureTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMeasure() { + return localMeasure; + } + + /** + * Auto generated setter method + * + * @param param Measure + */ + public void setMeasure(java.lang.String param) { + localMeasureTracker = param != null; + + this.localMeasure = param; + } + + /** field for Kind */ + protected java.lang.String localKind; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localKindTracker = false; + + public boolean isKindSpecified() { + return localKindTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getKind() { + return localKind; + } + + /** + * Auto generated setter method + * + * @param param Kind + */ + public void setKind(java.lang.String param) { + localKindTracker = param != null; + + this.localKind = param; + } + + /** field for Value */ + protected java.lang.String localValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localValueTracker = false; + + public boolean isValueSpecified() { + return localValueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getValue() { + return localValue; + } + + /** + * Auto generated setter method + * + * @param param Value + */ + public void setValue(java.lang.String param) { + localValueTracker = param != null; + + this.localValue = param; + } + + /** field for RawValue */ + protected long localRawValue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localRawValueTracker = false; + + public boolean isRawValueSpecified() { + return localRawValueTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getRawValue() { + return localRawValue; + } + + /** + * Auto generated setter method + * + * @param param RawValue + */ + public void setRawValue(long param) { + + // setting primitive attribute tracker to true + localRawValueTracker = param != java.lang.Long.MIN_VALUE; + + this.localRawValue = param; + } + + /** field for Count */ + protected long localCount; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCountTracker = false; + + public boolean isCountSpecified() { + return localCountTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getCount() { + return localCount; + } + + /** + * Auto generated setter method + * + * @param param Count + */ + public void setCount(long param) { + + // setting primitive attribute tracker to true + localCountTracker = param != java.lang.Long.MIN_VALUE; + + this.localCount = param; + } + + /** field for Max */ + protected long localMax; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxTracker = false; + + public boolean isMaxSpecified() { + return localMaxTracker; + } + + /** + * Auto generated getter method + * + * @return long + */ + public long getMax() { + return localMax; + } + + /** + * Auto generated setter method + * + * @param param Max + */ + public void setMax(long param) { + + // setting primitive attribute tracker to true + localMaxTracker = param != java.lang.Long.MIN_VALUE; + + this.localMax = param; + } + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUStatisticItem", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUStatisticItem", + xmlWriter); + } + } + if (localCreatorTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Creator", xmlWriter); + + if (localCreator == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Creator cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCreator); + } + + xmlWriter.writeEndElement(); + } + if (localCreatorTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "CreatorType", xmlWriter); + + if (localCreatorType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("CreatorType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCreatorType); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Scope", xmlWriter); + + if (localScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScope); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTypeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ScopeType", xmlWriter); + + if (localScopeType == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ScopeType cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScopeType); + } + + xmlWriter.writeEndElement(); + } + if (localDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localTimeStampTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeStamp", xmlWriter); + + if (localTimeStamp == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("TimeStamp cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localTimeStamp); + } + + xmlWriter.writeEndElement(); + } + if (localMeasureTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Measure", xmlWriter); + + if (localMeasure == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Measure cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localMeasure); + } + + xmlWriter.writeEndElement(); + } + if (localKindTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Kind", xmlWriter); + + if (localKind == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Kind cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localKind); + } + + xmlWriter.writeEndElement(); + } + if (localValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Value", xmlWriter); + + if (localValue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Value cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localValue); + } + + xmlWriter.writeEndElement(); + } + if (localRawValueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "RawValue", xmlWriter); + + if (localRawValue == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("RawValue cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRawValue)); + } + + xmlWriter.writeEndElement(); + } + if (localCountTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Count", xmlWriter); + + if (localCount == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Count cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCount)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Max", xmlWriter); + + if (localMax == java.lang.Long.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Max cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMax)); + } + + xmlWriter.writeEndElement(); + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUStatisticItem parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUStatisticItem object = new WUStatisticItem(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUStatisticItem".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUStatisticItem) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Creator") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Creator" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCreator( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "CreatorType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "CreatorType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCreatorType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Scope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeType") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ScopeType" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScopeType( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeStamp") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeStamp" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeStamp( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Measure") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Measure" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMeasure( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Kind") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Kind" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setKind( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Value") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Value" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "RawValue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "RawValue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setRawValue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Count") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Count" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCount( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Max") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Max" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMax( + org.apache.axis2.databinding.utils.ConverterUtil.convertToLong(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSubmit.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSubmit.java index f3e7fcc4c..d42b87860 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSubmit.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSubmit.java @@ -1,947 +1,948 @@ -/** - * WUSubmit.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUSubmit bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUSubmit implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSubmit", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for Snapshot */ - protected java.lang.String localSnapshot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSnapshotTracker = false; - - public boolean isSnapshotSpecified() { - return localSnapshotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSnapshot() { - return localSnapshot; - } - - /** - * Auto generated setter method - * - * @param param Snapshot - */ - public void setSnapshot(java.lang.String param) { - localSnapshotTracker = param != null; - - this.localSnapshot = param; - } - - /** field for MaxRunTime */ - protected int localMaxRunTime; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxRunTimeTracker = false; - - public boolean isMaxRunTimeSpecified() { - return localMaxRunTimeTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMaxRunTime() { - return localMaxRunTime; - } - - /** - * Auto generated setter method - * - * @param param MaxRunTime - */ - public void setMaxRunTime(int param) { - - // setting primitive attribute tracker to true - localMaxRunTimeTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMaxRunTime = param; - } - - /** field for MaxCost */ - protected int localMaxCost; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMaxCostTracker = false; - - public boolean isMaxCostSpecified() { - return localMaxCostTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getMaxCost() { - return localMaxCost; - } - - /** - * Auto generated setter method - * - * @param param MaxCost - */ - public void setMaxCost(int param) { - - // setting primitive attribute tracker to true - localMaxCostTracker = param != java.lang.Integer.MIN_VALUE; - - this.localMaxCost = param; - } - - /** field for BlockTillFinishTimer */ - protected int localBlockTillFinishTimer; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localBlockTillFinishTimerTracker = false; - - public boolean isBlockTillFinishTimerSpecified() { - return localBlockTillFinishTimerTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getBlockTillFinishTimer() { - return localBlockTillFinishTimer; - } - - /** - * Auto generated setter method - * - * @param param BlockTillFinishTimer - */ - public void setBlockTillFinishTimer(int param) { - - // setting primitive attribute tracker to true - localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; - - this.localBlockTillFinishTimer = param; - } - - /** field for SyntaxCheck */ - protected boolean localSyntaxCheck = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSyntaxCheckTracker = false; - - public boolean isSyntaxCheckSpecified() { - return localSyntaxCheckTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getSyntaxCheck() { - return localSyntaxCheck; - } - - /** - * Auto generated setter method - * - * @param param SyntaxCheck - */ - public void setSyntaxCheck(boolean param) { - - // setting primitive attribute tracker to true - localSyntaxCheckTracker = true; - - this.localSyntaxCheck = param; - } - - /** field for NotifyCluster */ - protected boolean localNotifyCluster = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localNotifyClusterTracker = false; - - public boolean isNotifyClusterSpecified() { - return localNotifyClusterTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getNotifyCluster() { - return localNotifyCluster; - } - - /** - * Auto generated setter method - * - * @param param NotifyCluster - */ - public void setNotifyCluster(boolean param) { - - // setting primitive attribute tracker to true - localNotifyClusterTracker = true; - - this.localNotifyCluster = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUSubmit", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUSubmit", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localSnapshotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Snapshot", xmlWriter); - - if (localSnapshot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSnapshot); - } - - xmlWriter.writeEndElement(); - } - if (localMaxRunTimeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxRunTime", xmlWriter); - - if (localMaxRunTime == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MaxRunTime cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxRunTime)); - } - - xmlWriter.writeEndElement(); - } - if (localMaxCostTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "MaxCost", xmlWriter); - - if (localMaxCost == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("MaxCost cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxCost)); - } - - xmlWriter.writeEndElement(); - } - if (localBlockTillFinishTimerTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); - - if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException( - "BlockTillFinishTimer cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localBlockTillFinishTimer)); - } - - xmlWriter.writeEndElement(); - } - if (localSyntaxCheckTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "SyntaxCheck", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("SyntaxCheck cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSyntaxCheck)); - } - - xmlWriter.writeEndElement(); - } - if (localNotifyClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "NotifyCluster", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("NotifyCluster cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNotifyCluster)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUSubmit parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUSubmit object = new WUSubmit(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUSubmit".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUSubmit) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Snapshot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSnapshot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxRunTime") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxRunTime" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxRunTime( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxCost") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "MaxCost" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMaxCost( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "BlockTillFinishTimer" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setBlockTillFinishTimer( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SyntaxCheck") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "SyntaxCheck" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSyntaxCheck( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotifyCluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "NotifyCluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setNotifyCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUSubmit.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUSubmit bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUSubmit implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSubmit", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for Snapshot */ + protected java.lang.String localSnapshot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSnapshotTracker = false; + + public boolean isSnapshotSpecified() { + return localSnapshotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSnapshot() { + return localSnapshot; + } + + /** + * Auto generated setter method + * + * @param param Snapshot + */ + public void setSnapshot(java.lang.String param) { + localSnapshotTracker = param != null; + + this.localSnapshot = param; + } + + /** field for MaxRunTime */ + protected int localMaxRunTime; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxRunTimeTracker = false; + + public boolean isMaxRunTimeSpecified() { + return localMaxRunTimeTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMaxRunTime() { + return localMaxRunTime; + } + + /** + * Auto generated setter method + * + * @param param MaxRunTime + */ + public void setMaxRunTime(int param) { + + // setting primitive attribute tracker to true + localMaxRunTimeTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMaxRunTime = param; + } + + /** field for MaxCost */ + protected int localMaxCost = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMaxCostTracker = false; + + public boolean isMaxCostSpecified() { + return localMaxCostTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getMaxCost() { + return localMaxCost; + } + + /** + * Auto generated setter method + * + * @param param MaxCost + */ + public void setMaxCost(int param) { + + // setting primitive attribute tracker to true + localMaxCostTracker = param != java.lang.Integer.MIN_VALUE; + + this.localMaxCost = param; + } + + /** field for BlockTillFinishTimer */ + protected int localBlockTillFinishTimer = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("0"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localBlockTillFinishTimerTracker = false; + + public boolean isBlockTillFinishTimerSpecified() { + return localBlockTillFinishTimerTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getBlockTillFinishTimer() { + return localBlockTillFinishTimer; + } + + /** + * Auto generated setter method + * + * @param param BlockTillFinishTimer + */ + public void setBlockTillFinishTimer(int param) { + + // setting primitive attribute tracker to true + localBlockTillFinishTimerTracker = param != java.lang.Integer.MIN_VALUE; + + this.localBlockTillFinishTimer = param; + } + + /** field for SyntaxCheck */ + protected boolean localSyntaxCheck = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSyntaxCheckTracker = false; + + public boolean isSyntaxCheckSpecified() { + return localSyntaxCheckTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getSyntaxCheck() { + return localSyntaxCheck; + } + + /** + * Auto generated setter method + * + * @param param SyntaxCheck + */ + public void setSyntaxCheck(boolean param) { + + // setting primitive attribute tracker to true + localSyntaxCheckTracker = true; + + this.localSyntaxCheck = param; + } + + /** field for NotifyCluster */ + protected boolean localNotifyCluster = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNotifyClusterTracker = false; + + public boolean isNotifyClusterSpecified() { + return localNotifyClusterTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getNotifyCluster() { + return localNotifyCluster; + } + + /** + * Auto generated setter method + * + * @param param NotifyCluster + */ + public void setNotifyCluster(boolean param) { + + // setting primitive attribute tracker to true + localNotifyClusterTracker = true; + + this.localNotifyCluster = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUSubmit", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUSubmit", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localSnapshotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Snapshot", xmlWriter); + + if (localSnapshot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSnapshot); + } + + xmlWriter.writeEndElement(); + } + if (localMaxRunTimeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxRunTime", xmlWriter); + + if (localMaxRunTime == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MaxRunTime cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxRunTime)); + } + + xmlWriter.writeEndElement(); + } + if (localMaxCostTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "MaxCost", xmlWriter); + + if (localMaxCost == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("MaxCost cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMaxCost)); + } + + xmlWriter.writeEndElement(); + } + if (localBlockTillFinishTimerTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "BlockTillFinishTimer", xmlWriter); + + if (localBlockTillFinishTimer == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException( + "BlockTillFinishTimer cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localBlockTillFinishTimer)); + } + + xmlWriter.writeEndElement(); + } + if (localSyntaxCheckTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "SyntaxCheck", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("SyntaxCheck cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSyntaxCheck)); + } + + xmlWriter.writeEndElement(); + } + if (localNotifyClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "NotifyCluster", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("NotifyCluster cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNotifyCluster)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUSubmit parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUSubmit object = new WUSubmit(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUSubmit".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUSubmit) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Snapshot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSnapshot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxRunTime") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxRunTime" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxRunTime( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "MaxCost") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "MaxCost" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMaxCost( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "BlockTillFinishTimer") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "BlockTillFinishTimer" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setBlockTillFinishTimer( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "SyntaxCheck") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "SyntaxCheck" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSyntaxCheck( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NotifyCluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NotifyCluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNotifyCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSubmitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSubmitResponse.java index 7f6e31541..829c33362 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSubmitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSubmitResponse.java @@ -1,383 +1,383 @@ -/** - * WUSubmitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUSubmitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUSubmitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSubmitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUSubmitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUSubmitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUSubmitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUSubmitResponse object = new WUSubmitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUSubmitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUSubmitResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUSubmitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUSubmitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUSubmitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSubmitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUSubmitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUSubmitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUSubmitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUSubmitResponse object = new WUSubmitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUSubmitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUSubmitResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSyntaxCheckECL.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSyntaxCheckECL.java index 02579b26f..05aabd7cb 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSyntaxCheckECL.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSyntaxCheckECL.java @@ -1,932 +1,932 @@ -/** - * WUSyntaxCheckECL.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUSyntaxCheckECL bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUSyntaxCheckECL implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSyntaxCheckECL", "ns1"); - - /** field for ECL */ - protected java.lang.String localECL; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localECLTracker = false; - - public boolean isECLSpecified() { - return localECLTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getECL() { - return localECL; - } - - /** - * Auto generated setter method - * - * @param param ECL - */ - public void setECL(java.lang.String param) { - localECLTracker = param != null; - - this.localECL = param; - } - - /** field for ModuleName */ - protected java.lang.String localModuleName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localModuleNameTracker = false; - - public boolean isModuleNameSpecified() { - return localModuleNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getModuleName() { - return localModuleName; - } - - /** - * Auto generated setter method - * - * @param param ModuleName - */ - public void setModuleName(java.lang.String param) { - localModuleNameTracker = param != null; - - this.localModuleName = param; - } - - /** field for AttributeName */ - protected java.lang.String localAttributeName; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAttributeNameTracker = false; - - public boolean isAttributeNameSpecified() { - return localAttributeNameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getAttributeName() { - return localAttributeName; - } - - /** - * Auto generated setter method - * - * @param param AttributeName - */ - public void setAttributeName(java.lang.String param) { - localAttributeNameTracker = param != null; - - this.localAttributeName = param; - } - - /** field for Queue */ - protected java.lang.String localQueue; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueueTracker = false; - - public boolean isQueueSpecified() { - return localQueueTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueue() { - return localQueue; - } - - /** - * Auto generated setter method - * - * @param param Queue - */ - public void setQueue(java.lang.String param) { - localQueueTracker = param != null; - - this.localQueue = param; - } - - /** field for Cluster */ - protected java.lang.String localCluster; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterTracker = false; - - public boolean isClusterSpecified() { - return localClusterTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getCluster() { - return localCluster; - } - - /** - * Auto generated setter method - * - * @param param Cluster - */ - public void setCluster(java.lang.String param) { - localClusterTracker = param != null; - - this.localCluster = param; - } - - /** field for Snapshot */ - protected java.lang.String localSnapshot; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localSnapshotTracker = false; - - public boolean isSnapshotSpecified() { - return localSnapshotTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getSnapshot() { - return localSnapshot; - } - - /** - * Auto generated setter method - * - * @param param Snapshot - */ - public void setSnapshot(java.lang.String param) { - localSnapshotTracker = param != null; - - this.localSnapshot = param; - } - - /** field for TimeToWait */ - protected int localTimeToWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("60000"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localTimeToWaitTracker = false; - - public boolean isTimeToWaitSpecified() { - return localTimeToWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getTimeToWait() { - return localTimeToWait; - } - - /** - * Auto generated setter method - * - * @param param TimeToWait - */ - public void setTimeToWait(int param) { - - // setting primitive attribute tracker to true - localTimeToWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localTimeToWait = param; - } - - /** field for PersistWorkunit */ - protected boolean localPersistWorkunit = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPersistWorkunitTracker = false; - - public boolean isPersistWorkunitSpecified() { - return localPersistWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getPersistWorkunit() { - return localPersistWorkunit; - } - - /** - * Auto generated setter method - * - * @param param PersistWorkunit - */ - public void setPersistWorkunit(boolean param) { - - // setting primitive attribute tracker to true - localPersistWorkunitTracker = true; - - this.localPersistWorkunit = param; - } - - /** field for DebugValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue - localDebugValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValuesTracker = false; - - public boolean isDebugValuesSpecified() { - return localDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue getDebugValues() { - return localDebugValues; - } - - /** - * Auto generated setter method - * - * @param param DebugValues - */ - public void setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue param) { - localDebugValuesTracker = param != null; - - this.localDebugValues = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUSyntaxCheckECL", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUSyntaxCheckECL", - xmlWriter); - } - } - if (localECLTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ECL", xmlWriter); - - if (localECL == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localECL); - } - - xmlWriter.writeEndElement(); - } - if (localModuleNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ModuleName", xmlWriter); - - if (localModuleName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ModuleName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localModuleName); - } - - xmlWriter.writeEndElement(); - } - if (localAttributeNameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AttributeName", xmlWriter); - - if (localAttributeName == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("AttributeName cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localAttributeName); - } - - xmlWriter.writeEndElement(); - } - if (localQueueTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Queue", xmlWriter); - - if (localQueue == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueue); - } - - xmlWriter.writeEndElement(); - } - if (localClusterTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Cluster", xmlWriter); - - if (localCluster == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localCluster); - } - - xmlWriter.writeEndElement(); - } - if (localSnapshotTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Snapshot", xmlWriter); - - if (localSnapshot == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localSnapshot); - } - - xmlWriter.writeEndElement(); - } - if (localTimeToWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "TimeToWait", xmlWriter); - - if (localTimeToWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("TimeToWait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeToWait)); - } - - xmlWriter.writeEndElement(); - } - if (localPersistWorkunitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PersistWorkunit", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("PersistWorkunit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPersistWorkunit)); - } - - xmlWriter.writeEndElement(); - } - if (localDebugValuesTracker) { - if (localDebugValues == null) { - throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); - } - localDebugValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUSyntaxCheckECL parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUSyntaxCheckECL object = new WUSyntaxCheckECL(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUSyntaxCheckECL".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUSyntaxCheckECL) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ECL" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setECL( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ModuleName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ModuleName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setModuleName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AttributeName") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AttributeName" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAttributeName( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Queue" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueue( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Cluster" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setCluster( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Snapshot" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setSnapshot( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeToWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "TimeToWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setTimeToWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "PersistWorkunit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PersistWorkunit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPersistWorkunit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") - .equals(reader.getName())) { - - object.setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUSyntaxCheckECL.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUSyntaxCheckECL bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUSyntaxCheckECL implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSyntaxCheckECL", "ns1"); + + /** field for ECL */ + protected java.lang.String localECL; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localECLTracker = false; + + public boolean isECLSpecified() { + return localECLTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getECL() { + return localECL; + } + + /** + * Auto generated setter method + * + * @param param ECL + */ + public void setECL(java.lang.String param) { + localECLTracker = param != null; + + this.localECL = param; + } + + /** field for ModuleName */ + protected java.lang.String localModuleName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localModuleNameTracker = false; + + public boolean isModuleNameSpecified() { + return localModuleNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getModuleName() { + return localModuleName; + } + + /** + * Auto generated setter method + * + * @param param ModuleName + */ + public void setModuleName(java.lang.String param) { + localModuleNameTracker = param != null; + + this.localModuleName = param; + } + + /** field for AttributeName */ + protected java.lang.String localAttributeName; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAttributeNameTracker = false; + + public boolean isAttributeNameSpecified() { + return localAttributeNameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getAttributeName() { + return localAttributeName; + } + + /** + * Auto generated setter method + * + * @param param AttributeName + */ + public void setAttributeName(java.lang.String param) { + localAttributeNameTracker = param != null; + + this.localAttributeName = param; + } + + /** field for Queue */ + protected java.lang.String localQueue; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueueTracker = false; + + public boolean isQueueSpecified() { + return localQueueTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueue() { + return localQueue; + } + + /** + * Auto generated setter method + * + * @param param Queue + */ + public void setQueue(java.lang.String param) { + localQueueTracker = param != null; + + this.localQueue = param; + } + + /** field for Cluster */ + protected java.lang.String localCluster; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterTracker = false; + + public boolean isClusterSpecified() { + return localClusterTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getCluster() { + return localCluster; + } + + /** + * Auto generated setter method + * + * @param param Cluster + */ + public void setCluster(java.lang.String param) { + localClusterTracker = param != null; + + this.localCluster = param; + } + + /** field for Snapshot */ + protected java.lang.String localSnapshot; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localSnapshotTracker = false; + + public boolean isSnapshotSpecified() { + return localSnapshotTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getSnapshot() { + return localSnapshot; + } + + /** + * Auto generated setter method + * + * @param param Snapshot + */ + public void setSnapshot(java.lang.String param) { + localSnapshotTracker = param != null; + + this.localSnapshot = param; + } + + /** field for TimeToWait */ + protected int localTimeToWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("60000"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localTimeToWaitTracker = false; + + public boolean isTimeToWaitSpecified() { + return localTimeToWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getTimeToWait() { + return localTimeToWait; + } + + /** + * Auto generated setter method + * + * @param param TimeToWait + */ + public void setTimeToWait(int param) { + + // setting primitive attribute tracker to true + localTimeToWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localTimeToWait = param; + } + + /** field for PersistWorkunit */ + protected boolean localPersistWorkunit = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPersistWorkunitTracker = false; + + public boolean isPersistWorkunitSpecified() { + return localPersistWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getPersistWorkunit() { + return localPersistWorkunit; + } + + /** + * Auto generated setter method + * + * @param param PersistWorkunit + */ + public void setPersistWorkunit(boolean param) { + + // setting primitive attribute tracker to true + localPersistWorkunitTracker = true; + + this.localPersistWorkunit = param; + } + + /** field for DebugValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue + localDebugValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValuesTracker = false; + + public boolean isDebugValuesSpecified() { + return localDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue getDebugValues() { + return localDebugValues; + } + + /** + * Auto generated setter method + * + * @param param DebugValues + */ + public void setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue param) { + localDebugValuesTracker = param != null; + + this.localDebugValues = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUSyntaxCheckECL", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUSyntaxCheckECL", + xmlWriter); + } + } + if (localECLTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ECL", xmlWriter); + + if (localECL == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ECL cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localECL); + } + + xmlWriter.writeEndElement(); + } + if (localModuleNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ModuleName", xmlWriter); + + if (localModuleName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ModuleName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localModuleName); + } + + xmlWriter.writeEndElement(); + } + if (localAttributeNameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AttributeName", xmlWriter); + + if (localAttributeName == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("AttributeName cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localAttributeName); + } + + xmlWriter.writeEndElement(); + } + if (localQueueTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Queue", xmlWriter); + + if (localQueue == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Queue cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueue); + } + + xmlWriter.writeEndElement(); + } + if (localClusterTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Cluster", xmlWriter); + + if (localCluster == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Cluster cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localCluster); + } + + xmlWriter.writeEndElement(); + } + if (localSnapshotTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Snapshot", xmlWriter); + + if (localSnapshot == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Snapshot cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localSnapshot); + } + + xmlWriter.writeEndElement(); + } + if (localTimeToWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "TimeToWait", xmlWriter); + + if (localTimeToWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("TimeToWait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTimeToWait)); + } + + xmlWriter.writeEndElement(); + } + if (localPersistWorkunitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PersistWorkunit", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("PersistWorkunit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPersistWorkunit)); + } + + xmlWriter.writeEndElement(); + } + if (localDebugValuesTracker) { + if (localDebugValues == null) { + throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); + } + localDebugValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUSyntaxCheckECL parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUSyntaxCheckECL object = new WUSyntaxCheckECL(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUSyntaxCheckECL".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUSyntaxCheckECL) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ECL") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ECL" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setECL( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ModuleName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ModuleName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setModuleName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "AttributeName") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AttributeName" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAttributeName( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Queue") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Queue" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueue( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Cluster") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Cluster" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setCluster( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Snapshot") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Snapshot" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setSnapshot( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "TimeToWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "TimeToWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setTimeToWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "PersistWorkunit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PersistWorkunit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPersistWorkunit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") + .equals(reader.getName())) { + + object.setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSyntaxCheckResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSyntaxCheckResponse.java index 6e67cfc45..f91563906 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSyntaxCheckResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUSyntaxCheckResponse.java @@ -1,504 +1,504 @@ -/** - * WUSyntaxCheckResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUSyntaxCheckResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUSyntaxCheckResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUSyntaxCheckResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Errors */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException localErrors; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localErrorsTracker = false; - - public boolean isErrorsSpecified() { - return localErrorsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException getErrors() { - return localErrors; - } - - /** - * Auto generated setter method - * - * @param param Errors - */ - public void setErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException param) { - localErrorsTracker = param != null; - - this.localErrors = param; - } - - /** field for Message */ - protected java.lang.String localMessage; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localMessageTracker = false; - - public boolean isMessageSpecified() { - return localMessageTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getMessage() { - return localMessage; - } - - /** - * Auto generated setter method - * - * @param param Message - */ - public void setMessage(java.lang.String param) { - localMessageTracker = param != null; - - this.localMessage = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUSyntaxCheckResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUSyntaxCheckResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localErrorsTracker) { - if (localErrors == null) { - throw new org.apache.axis2.databinding.ADBException("Errors cannot be null!!"); - } - localErrors.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors"), xmlWriter); - } - if (localMessageTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Message", xmlWriter); - - 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(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUSyntaxCheckResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUSyntaxCheckResponse object = new WUSyntaxCheckResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUSyntaxCheckResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUSyntaxCheckResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors") - .equals(reader.getName())) { - - object.setErrors( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Message" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setMessage( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUSyntaxCheckResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUSyntaxCheckResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUSyntaxCheckResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUSyntaxCheckResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Errors */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException localErrors; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localErrorsTracker = false; + + public boolean isErrorsSpecified() { + return localErrorsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException getErrors() { + return localErrors; + } + + /** + * Auto generated setter method + * + * @param param Errors + */ + public void setErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException param) { + localErrorsTracker = param != null; + + this.localErrors = param; + } + + /** field for Message */ + protected java.lang.String localMessage; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localMessageTracker = false; + + public boolean isMessageSpecified() { + return localMessageTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getMessage() { + return localMessage; + } + + /** + * Auto generated setter method + * + * @param param Message + */ + public void setMessage(java.lang.String param) { + localMessageTracker = param != null; + + this.localMessage = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUSyntaxCheckResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUSyntaxCheckResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localErrorsTracker) { + if (localErrors == null) { + throw new org.apache.axis2.databinding.ADBException("Errors cannot be null!!"); + } + localErrors.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors"), xmlWriter); + } + if (localMessageTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Message", xmlWriter); + + 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(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUSyntaxCheckResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUSyntaxCheckResponse object = new WUSyntaxCheckResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUSyntaxCheckResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUSyntaxCheckResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Errors") + .equals(reader.getName())) { + + object.setErrors( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfECLException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Message") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Message" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setMessage( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdate.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdate.java index a8704d578..6ab3043d2 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdate.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdate.java @@ -1,1945 +1,1945 @@ -/** - * WUUpdate.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUUpdate bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUUpdate implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUUpdate", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for State */ - protected int localState; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateTracker = false; - - public boolean isStateSpecified() { - return localStateTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getState() { - return localState; - } - - /** - * Auto generated setter method - * - * @param param State - */ - public void setState(int param) { - - // setting primitive attribute tracker to true - localStateTracker = param != java.lang.Integer.MIN_VALUE; - - this.localState = param; - } - - /** field for StateOrig */ - protected int localStateOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateOrigTracker = false; - - public boolean isStateOrigSpecified() { - return localStateOrigTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getStateOrig() { - return localStateOrig; - } - - /** - * Auto generated setter method - * - * @param param StateOrig - */ - public void setStateOrig(int param) { - - // setting primitive attribute tracker to true - localStateOrigTracker = param != java.lang.Integer.MIN_VALUE; - - this.localStateOrig = param; - } - - /** field for Jobname */ - protected java.lang.String localJobname; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameTracker = false; - - public boolean isJobnameSpecified() { - return localJobnameTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobname() { - return localJobname; - } - - /** - * Auto generated setter method - * - * @param param Jobname - */ - public void setJobname(java.lang.String param) { - localJobnameTracker = param != null; - - this.localJobname = param; - } - - /** field for JobnameOrig */ - protected java.lang.String localJobnameOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localJobnameOrigTracker = false; - - public boolean isJobnameOrigSpecified() { - return localJobnameOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getJobnameOrig() { - return localJobnameOrig; - } - - /** - * Auto generated setter method - * - * @param param JobnameOrig - */ - public void setJobnameOrig(java.lang.String param) { - localJobnameOrigTracker = param != null; - - this.localJobnameOrig = param; - } - - /** field for QueryText */ - protected java.lang.String localQueryText; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryTextTracker = false; - - public boolean isQueryTextSpecified() { - return localQueryTextTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryText() { - return localQueryText; - } - - /** - * Auto generated setter method - * - * @param param QueryText - */ - public void setQueryText(java.lang.String param) { - localQueryTextTracker = param != null; - - this.localQueryText = param; - } - - /** field for Action */ - protected int localAction; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localActionTracker = false; - - public boolean isActionSpecified() { - return localActionTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getAction() { - return localAction; - } - - /** - * Auto generated setter method - * - * @param param Action - */ - public void setAction(int param) { - - // setting primitive attribute tracker to true - localActionTracker = param != java.lang.Integer.MIN_VALUE; - - this.localAction = param; - } - - /** field for Description */ - protected java.lang.String localDescription; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionTracker = false; - - public boolean isDescriptionSpecified() { - return localDescriptionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescription() { - return localDescription; - } - - /** - * Auto generated setter method - * - * @param param Description - */ - public void setDescription(java.lang.String param) { - localDescriptionTracker = param != null; - - this.localDescription = param; - } - - /** field for DescriptionOrig */ - protected java.lang.String localDescriptionOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDescriptionOrigTracker = false; - - public boolean isDescriptionOrigSpecified() { - return localDescriptionOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getDescriptionOrig() { - return localDescriptionOrig; - } - - /** - * Auto generated setter method - * - * @param param DescriptionOrig - */ - public void setDescriptionOrig(java.lang.String param) { - localDescriptionOrigTracker = param != null; - - this.localDescriptionOrig = param; - } - - /** field for AddDrilldownFields */ - protected boolean localAddDrilldownFields; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAddDrilldownFieldsTracker = false; - - public boolean isAddDrilldownFieldsSpecified() { - return localAddDrilldownFieldsTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getAddDrilldownFields() { - return localAddDrilldownFields; - } - - /** - * Auto generated setter method - * - * @param param AddDrilldownFields - */ - public void setAddDrilldownFields(boolean param) { - - // setting primitive attribute tracker to true - localAddDrilldownFieldsTracker = true; - - this.localAddDrilldownFields = param; - } - - /** field for ResultLimit */ - protected int localResultLimit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localResultLimitTracker = false; - - public boolean isResultLimitSpecified() { - return localResultLimitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getResultLimit() { - return localResultLimit; - } - - /** - * Auto generated setter method - * - * @param param ResultLimit - */ - public void setResultLimit(int param) { - - // setting primitive attribute tracker to true - localResultLimitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localResultLimit = param; - } - - /** field for Protected */ - protected boolean localProtected; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectedTracker = false; - - public boolean isProtectedSpecified() { - return localProtectedTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getProtected() { - return localProtected; - } - - /** - * Auto generated setter method - * - * @param param Protected - */ - public void setProtected(boolean param) { - - // setting primitive attribute tracker to true - localProtectedTracker = true; - - this.localProtected = param; - } - - /** field for ProtectedOrig */ - protected boolean localProtectedOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localProtectedOrigTracker = false; - - public boolean isProtectedOrigSpecified() { - return localProtectedOrigTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getProtectedOrig() { - return localProtectedOrig; - } - - /** - * Auto generated setter method - * - * @param param ProtectedOrig - */ - public void setProtectedOrig(boolean param) { - - // setting primitive attribute tracker to true - localProtectedOrigTracker = true; - - this.localProtectedOrig = param; - } - - /** field for PriorityClass */ - protected int localPriorityClass; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityClassTracker = false; - - public boolean isPriorityClassSpecified() { - return localPriorityClassTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityClass() { - return localPriorityClass; - } - - /** - * Auto generated setter method - * - * @param param PriorityClass - */ - public void setPriorityClass(int param) { - - // setting primitive attribute tracker to true - localPriorityClassTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityClass = param; - } - - /** field for PriorityLevel */ - protected int localPriorityLevel; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localPriorityLevelTracker = false; - - public boolean isPriorityLevelSpecified() { - return localPriorityLevelTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getPriorityLevel() { - return localPriorityLevel; - } - - /** - * Auto generated setter method - * - * @param param PriorityLevel - */ - public void setPriorityLevel(int param) { - - // setting primitive attribute tracker to true - localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; - - this.localPriorityLevel = param; - } - - /** field for Scope */ - protected java.lang.String localScope; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeTracker = false; - - public boolean isScopeSpecified() { - return localScopeTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScope() { - return localScope; - } - - /** - * Auto generated setter method - * - * @param param Scope - */ - public void setScope(java.lang.String param) { - localScopeTracker = param != null; - - this.localScope = param; - } - - /** field for ScopeOrig */ - protected java.lang.String localScopeOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localScopeOrigTracker = false; - - public boolean isScopeOrigSpecified() { - return localScopeOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getScopeOrig() { - return localScopeOrig; - } - - /** - * Auto generated setter method - * - * @param param ScopeOrig - */ - public void setScopeOrig(java.lang.String param) { - localScopeOrigTracker = param != null; - - this.localScopeOrig = param; - } - - /** field for ClusterSelection */ - protected java.lang.String localClusterSelection; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterSelectionTracker = false; - - public boolean isClusterSelectionSpecified() { - return localClusterSelectionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterSelection() { - return localClusterSelection; - } - - /** - * Auto generated setter method - * - * @param param ClusterSelection - */ - public void setClusterSelection(java.lang.String param) { - localClusterSelectionTracker = param != null; - - this.localClusterSelection = param; - } - - /** field for ClusterOrig */ - protected java.lang.String localClusterOrig; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localClusterOrigTracker = false; - - public boolean isClusterOrigSpecified() { - return localClusterOrigTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getClusterOrig() { - return localClusterOrig; - } - - /** - * Auto generated setter method - * - * @param param ClusterOrig - */ - public void setClusterOrig(java.lang.String param) { - localClusterOrigTracker = param != null; - - this.localClusterOrig = param; - } - - /** field for XmlParams */ - protected java.lang.String localXmlParams; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localXmlParamsTracker = false; - - public boolean isXmlParamsSpecified() { - return localXmlParamsTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getXmlParams() { - return localXmlParams; - } - - /** - * Auto generated setter method - * - * @param param XmlParams - */ - public void setXmlParams(java.lang.String param) { - localXmlParamsTracker = param != null; - - this.localXmlParams = param; - } - - /** field for ThorSlaveIP */ - protected java.lang.String localThorSlaveIP; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localThorSlaveIPTracker = false; - - public boolean isThorSlaveIPSpecified() { - return localThorSlaveIPTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getThorSlaveIP() { - return localThorSlaveIP; - } - - /** - * Auto generated setter method - * - * @param param ThorSlaveIP - */ - public void setThorSlaveIP(java.lang.String param) { - localThorSlaveIPTracker = param != null; - - this.localThorSlaveIP = param; - } - - /** field for QueryMainDefinition */ - protected java.lang.String localQueryMainDefinition; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryMainDefinitionTracker = false; - - public boolean isQueryMainDefinitionSpecified() { - return localQueryMainDefinitionTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryMainDefinition() { - return localQueryMainDefinition; - } - - /** - * Auto generated setter method - * - * @param param QueryMainDefinition - */ - public void setQueryMainDefinition(java.lang.String param) { - localQueryMainDefinitionTracker = param != null; - - this.localQueryMainDefinition = param; - } - - /** field for DebugValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue - localDebugValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localDebugValuesTracker = false; - - public boolean isDebugValuesSpecified() { - return localDebugValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue getDebugValues() { - return localDebugValues; - } - - /** - * Auto generated setter method - * - * @param param DebugValues - */ - public void setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue param) { - localDebugValuesTracker = param != null; - - this.localDebugValues = param; - } - - /** field for ApplicationValues */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - localApplicationValues; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localApplicationValuesTracker = false; - - public boolean isApplicationValuesSpecified() { - return localApplicationValuesTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - getApplicationValues() { - return localApplicationValues; - } - - /** - * Auto generated setter method - * - * @param param ApplicationValues - */ - public void setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { - localApplicationValuesTracker = param != null; - - this.localApplicationValues = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUUpdate", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUUpdate", xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localStateTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "State", xmlWriter); - - if (localState == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); - } - - xmlWriter.writeEndElement(); - } - if (localStateOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StateOrig", xmlWriter); - - if (localStateOrig == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("StateOrig cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateOrig)); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Jobname", xmlWriter); - - if (localJobname == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobname); - } - - xmlWriter.writeEndElement(); - } - if (localJobnameOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "JobnameOrig", xmlWriter); - - if (localJobnameOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("JobnameOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localJobnameOrig); - } - - xmlWriter.writeEndElement(); - } - if (localQueryTextTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryText", xmlWriter); - - if (localQueryText == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryText cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryText); - } - - xmlWriter.writeEndElement(); - } - if (localActionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Action", xmlWriter); - - if (localAction == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); - } - - xmlWriter.writeEndElement(); - } - if (localDescriptionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Description", xmlWriter); - - 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 (localDescriptionOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "DescriptionOrig", xmlWriter); - - if (localDescriptionOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("DescriptionOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localDescriptionOrig); - } - - xmlWriter.writeEndElement(); - } - if (localAddDrilldownFieldsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "AddDrilldownFields", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("AddDrilldownFields cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString( - localAddDrilldownFields)); - } - - xmlWriter.writeEndElement(); - } - if (localResultLimitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ResultLimit", xmlWriter); - - if (localResultLimit == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("ResultLimit cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLimit)); - } - - xmlWriter.writeEndElement(); - } - if (localProtectedTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Protected", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("Protected cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtected)); - } - - xmlWriter.writeEndElement(); - } - if (localProtectedOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ProtectedOrig", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ProtectedOrig cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtectedOrig)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityClassTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityClass", xmlWriter); - - if (localPriorityClass == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityClass cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityClass)); - } - - xmlWriter.writeEndElement(); - } - if (localPriorityLevelTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "PriorityLevel", xmlWriter); - - if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); - } - - xmlWriter.writeEndElement(); - } - if (localScopeTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Scope", xmlWriter); - - if (localScope == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScope); - } - - xmlWriter.writeEndElement(); - } - if (localScopeOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ScopeOrig", xmlWriter); - - if (localScopeOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ScopeOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localScopeOrig); - } - - xmlWriter.writeEndElement(); - } - if (localClusterSelectionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterSelection", xmlWriter); - - if (localClusterSelection == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterSelection cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterSelection); - } - - xmlWriter.writeEndElement(); - } - if (localClusterOrigTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ClusterOrig", xmlWriter); - - if (localClusterOrig == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ClusterOrig cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localClusterOrig); - } - - xmlWriter.writeEndElement(); - } - if (localXmlParamsTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "XmlParams", xmlWriter); - - if (localXmlParams == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("XmlParams cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localXmlParams); - } - - xmlWriter.writeEndElement(); - } - if (localThorSlaveIPTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); - - if (localThorSlaveIP == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localThorSlaveIP); - } - - xmlWriter.writeEndElement(); - } - if (localQueryMainDefinitionTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryMainDefinition", xmlWriter); - - if (localQueryMainDefinition == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryMainDefinition cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryMainDefinition); - } - - xmlWriter.writeEndElement(); - } - if (localDebugValuesTracker) { - if (localDebugValues == null) { - throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); - } - localDebugValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), - xmlWriter); - } - if (localApplicationValuesTracker) { - if (localApplicationValues == null) { - throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); - } - localApplicationValues.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), - xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUUpdate parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUUpdate object = new WUUpdate(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUUpdate".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUUpdate) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "State" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setState( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Jobname" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobname( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobnameOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "JobnameOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setJobnameOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryText") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryText" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryText( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Action" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAction( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Description" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescription( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "DescriptionOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "DescriptionOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setDescriptionOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "AddDrilldownFields") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "AddDrilldownFields" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setAddDrilldownFields( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultLimit") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ResultLimit" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setResultLimit( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Protected" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtected( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ProtectedOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ProtectedOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setProtectedOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityClass") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityClass" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityClass( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "PriorityLevel" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setPriorityLevel( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Scope" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScope( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ScopeOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setScopeOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ClusterSelection") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterSelection" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterSelection( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterOrig") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ClusterOrig" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setClusterOrig( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "XmlParams") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "XmlParams" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setXmlParams( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ThorSlaveIP" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setThorSlaveIP( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "QueryMainDefinition") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryMainDefinition" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryMainDefinition( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") - .equals(reader.getName())) { - - object.setDebugValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") - .equals(reader.getName())) { - - object.setApplicationValues( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue - .Factory.parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUUpdate.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUUpdate bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUUpdate implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUUpdate", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for State */ + protected int localState; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateTracker = false; + + public boolean isStateSpecified() { + return localStateTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getState() { + return localState; + } + + /** + * Auto generated setter method + * + * @param param State + */ + public void setState(int param) { + + // setting primitive attribute tracker to true + localStateTracker = param != java.lang.Integer.MIN_VALUE; + + this.localState = param; + } + + /** field for StateOrig */ + protected int localStateOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateOrigTracker = false; + + public boolean isStateOrigSpecified() { + return localStateOrigTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getStateOrig() { + return localStateOrig; + } + + /** + * Auto generated setter method + * + * @param param StateOrig + */ + public void setStateOrig(int param) { + + // setting primitive attribute tracker to true + localStateOrigTracker = param != java.lang.Integer.MIN_VALUE; + + this.localStateOrig = param; + } + + /** field for Jobname */ + protected java.lang.String localJobname; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameTracker = false; + + public boolean isJobnameSpecified() { + return localJobnameTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobname() { + return localJobname; + } + + /** + * Auto generated setter method + * + * @param param Jobname + */ + public void setJobname(java.lang.String param) { + localJobnameTracker = param != null; + + this.localJobname = param; + } + + /** field for JobnameOrig */ + protected java.lang.String localJobnameOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localJobnameOrigTracker = false; + + public boolean isJobnameOrigSpecified() { + return localJobnameOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getJobnameOrig() { + return localJobnameOrig; + } + + /** + * Auto generated setter method + * + * @param param JobnameOrig + */ + public void setJobnameOrig(java.lang.String param) { + localJobnameOrigTracker = param != null; + + this.localJobnameOrig = param; + } + + /** field for QueryText */ + protected java.lang.String localQueryText; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryTextTracker = false; + + public boolean isQueryTextSpecified() { + return localQueryTextTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryText() { + return localQueryText; + } + + /** + * Auto generated setter method + * + * @param param QueryText + */ + public void setQueryText(java.lang.String param) { + localQueryTextTracker = param != null; + + this.localQueryText = param; + } + + /** field for Action */ + protected int localAction; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localActionTracker = false; + + public boolean isActionSpecified() { + return localActionTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getAction() { + return localAction; + } + + /** + * Auto generated setter method + * + * @param param Action + */ + public void setAction(int param) { + + // setting primitive attribute tracker to true + localActionTracker = param != java.lang.Integer.MIN_VALUE; + + this.localAction = param; + } + + /** field for Description */ + protected java.lang.String localDescription; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionTracker = false; + + public boolean isDescriptionSpecified() { + return localDescriptionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescription() { + return localDescription; + } + + /** + * Auto generated setter method + * + * @param param Description + */ + public void setDescription(java.lang.String param) { + localDescriptionTracker = param != null; + + this.localDescription = param; + } + + /** field for DescriptionOrig */ + protected java.lang.String localDescriptionOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDescriptionOrigTracker = false; + + public boolean isDescriptionOrigSpecified() { + return localDescriptionOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getDescriptionOrig() { + return localDescriptionOrig; + } + + /** + * Auto generated setter method + * + * @param param DescriptionOrig + */ + public void setDescriptionOrig(java.lang.String param) { + localDescriptionOrigTracker = param != null; + + this.localDescriptionOrig = param; + } + + /** field for AddDrilldownFields */ + protected boolean localAddDrilldownFields; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAddDrilldownFieldsTracker = false; + + public boolean isAddDrilldownFieldsSpecified() { + return localAddDrilldownFieldsTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getAddDrilldownFields() { + return localAddDrilldownFields; + } + + /** + * Auto generated setter method + * + * @param param AddDrilldownFields + */ + public void setAddDrilldownFields(boolean param) { + + // setting primitive attribute tracker to true + localAddDrilldownFieldsTracker = true; + + this.localAddDrilldownFields = param; + } + + /** field for ResultLimit */ + protected int localResultLimit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localResultLimitTracker = false; + + public boolean isResultLimitSpecified() { + return localResultLimitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getResultLimit() { + return localResultLimit; + } + + /** + * Auto generated setter method + * + * @param param ResultLimit + */ + public void setResultLimit(int param) { + + // setting primitive attribute tracker to true + localResultLimitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localResultLimit = param; + } + + /** field for Protected */ + protected boolean localProtected; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectedTracker = false; + + public boolean isProtectedSpecified() { + return localProtectedTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getProtected() { + return localProtected; + } + + /** + * Auto generated setter method + * + * @param param Protected + */ + public void setProtected(boolean param) { + + // setting primitive attribute tracker to true + localProtectedTracker = true; + + this.localProtected = param; + } + + /** field for ProtectedOrig */ + protected boolean localProtectedOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localProtectedOrigTracker = false; + + public boolean isProtectedOrigSpecified() { + return localProtectedOrigTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getProtectedOrig() { + return localProtectedOrig; + } + + /** + * Auto generated setter method + * + * @param param ProtectedOrig + */ + public void setProtectedOrig(boolean param) { + + // setting primitive attribute tracker to true + localProtectedOrigTracker = true; + + this.localProtectedOrig = param; + } + + /** field for PriorityClass */ + protected int localPriorityClass; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityClassTracker = false; + + public boolean isPriorityClassSpecified() { + return localPriorityClassTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityClass() { + return localPriorityClass; + } + + /** + * Auto generated setter method + * + * @param param PriorityClass + */ + public void setPriorityClass(int param) { + + // setting primitive attribute tracker to true + localPriorityClassTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityClass = param; + } + + /** field for PriorityLevel */ + protected int localPriorityLevel; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localPriorityLevelTracker = false; + + public boolean isPriorityLevelSpecified() { + return localPriorityLevelTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getPriorityLevel() { + return localPriorityLevel; + } + + /** + * Auto generated setter method + * + * @param param PriorityLevel + */ + public void setPriorityLevel(int param) { + + // setting primitive attribute tracker to true + localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; + + this.localPriorityLevel = param; + } + + /** field for Scope */ + protected java.lang.String localScope; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeTracker = false; + + public boolean isScopeSpecified() { + return localScopeTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScope() { + return localScope; + } + + /** + * Auto generated setter method + * + * @param param Scope + */ + public void setScope(java.lang.String param) { + localScopeTracker = param != null; + + this.localScope = param; + } + + /** field for ScopeOrig */ + protected java.lang.String localScopeOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localScopeOrigTracker = false; + + public boolean isScopeOrigSpecified() { + return localScopeOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getScopeOrig() { + return localScopeOrig; + } + + /** + * Auto generated setter method + * + * @param param ScopeOrig + */ + public void setScopeOrig(java.lang.String param) { + localScopeOrigTracker = param != null; + + this.localScopeOrig = param; + } + + /** field for ClusterSelection */ + protected java.lang.String localClusterSelection; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterSelectionTracker = false; + + public boolean isClusterSelectionSpecified() { + return localClusterSelectionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterSelection() { + return localClusterSelection; + } + + /** + * Auto generated setter method + * + * @param param ClusterSelection + */ + public void setClusterSelection(java.lang.String param) { + localClusterSelectionTracker = param != null; + + this.localClusterSelection = param; + } + + /** field for ClusterOrig */ + protected java.lang.String localClusterOrig; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localClusterOrigTracker = false; + + public boolean isClusterOrigSpecified() { + return localClusterOrigTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getClusterOrig() { + return localClusterOrig; + } + + /** + * Auto generated setter method + * + * @param param ClusterOrig + */ + public void setClusterOrig(java.lang.String param) { + localClusterOrigTracker = param != null; + + this.localClusterOrig = param; + } + + /** field for XmlParams */ + protected java.lang.String localXmlParams; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localXmlParamsTracker = false; + + public boolean isXmlParamsSpecified() { + return localXmlParamsTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getXmlParams() { + return localXmlParams; + } + + /** + * Auto generated setter method + * + * @param param XmlParams + */ + public void setXmlParams(java.lang.String param) { + localXmlParamsTracker = param != null; + + this.localXmlParams = param; + } + + /** field for ThorSlaveIP */ + protected java.lang.String localThorSlaveIP; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localThorSlaveIPTracker = false; + + public boolean isThorSlaveIPSpecified() { + return localThorSlaveIPTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getThorSlaveIP() { + return localThorSlaveIP; + } + + /** + * Auto generated setter method + * + * @param param ThorSlaveIP + */ + public void setThorSlaveIP(java.lang.String param) { + localThorSlaveIPTracker = param != null; + + this.localThorSlaveIP = param; + } + + /** field for QueryMainDefinition */ + protected java.lang.String localQueryMainDefinition; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryMainDefinitionTracker = false; + + public boolean isQueryMainDefinitionSpecified() { + return localQueryMainDefinitionTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryMainDefinition() { + return localQueryMainDefinition; + } + + /** + * Auto generated setter method + * + * @param param QueryMainDefinition + */ + public void setQueryMainDefinition(java.lang.String param) { + localQueryMainDefinitionTracker = param != null; + + this.localQueryMainDefinition = param; + } + + /** field for DebugValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue + localDebugValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localDebugValuesTracker = false; + + public boolean isDebugValuesSpecified() { + return localDebugValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue getDebugValues() { + return localDebugValues; + } + + /** + * Auto generated setter method + * + * @param param DebugValues + */ + public void setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue param) { + localDebugValuesTracker = param != null; + + this.localDebugValues = param; + } + + /** field for ApplicationValues */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + localApplicationValues; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localApplicationValuesTracker = false; + + public boolean isApplicationValuesSpecified() { + return localApplicationValuesTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + getApplicationValues() { + return localApplicationValues; + } + + /** + * Auto generated setter method + * + * @param param ApplicationValues + */ + public void setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { + localApplicationValuesTracker = param != null; + + this.localApplicationValues = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUUpdate", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUUpdate", xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localStateTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "State", xmlWriter); + + if (localState == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); + } + + xmlWriter.writeEndElement(); + } + if (localStateOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StateOrig", xmlWriter); + + if (localStateOrig == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("StateOrig cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateOrig)); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Jobname", xmlWriter); + + if (localJobname == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Jobname cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobname); + } + + xmlWriter.writeEndElement(); + } + if (localJobnameOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "JobnameOrig", xmlWriter); + + if (localJobnameOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("JobnameOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localJobnameOrig); + } + + xmlWriter.writeEndElement(); + } + if (localQueryTextTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryText", xmlWriter); + + if (localQueryText == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryText cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryText); + } + + xmlWriter.writeEndElement(); + } + if (localActionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Action", xmlWriter); + + if (localAction == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); + } + + xmlWriter.writeEndElement(); + } + if (localDescriptionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Description", xmlWriter); + + 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 (localDescriptionOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "DescriptionOrig", xmlWriter); + + if (localDescriptionOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("DescriptionOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localDescriptionOrig); + } + + xmlWriter.writeEndElement(); + } + if (localAddDrilldownFieldsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "AddDrilldownFields", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("AddDrilldownFields cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString( + localAddDrilldownFields)); + } + + xmlWriter.writeEndElement(); + } + if (localResultLimitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ResultLimit", xmlWriter); + + if (localResultLimit == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("ResultLimit cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localResultLimit)); + } + + xmlWriter.writeEndElement(); + } + if (localProtectedTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Protected", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("Protected cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtected)); + } + + xmlWriter.writeEndElement(); + } + if (localProtectedOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ProtectedOrig", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ProtectedOrig cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProtectedOrig)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityClassTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityClass", xmlWriter); + + if (localPriorityClass == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityClass cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityClass)); + } + + xmlWriter.writeEndElement(); + } + if (localPriorityLevelTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "PriorityLevel", xmlWriter); + + if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); + } + + xmlWriter.writeEndElement(); + } + if (localScopeTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Scope", xmlWriter); + + if (localScope == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Scope cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScope); + } + + xmlWriter.writeEndElement(); + } + if (localScopeOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ScopeOrig", xmlWriter); + + if (localScopeOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ScopeOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localScopeOrig); + } + + xmlWriter.writeEndElement(); + } + if (localClusterSelectionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterSelection", xmlWriter); + + if (localClusterSelection == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterSelection cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterSelection); + } + + xmlWriter.writeEndElement(); + } + if (localClusterOrigTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ClusterOrig", xmlWriter); + + if (localClusterOrig == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ClusterOrig cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localClusterOrig); + } + + xmlWriter.writeEndElement(); + } + if (localXmlParamsTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "XmlParams", xmlWriter); + + if (localXmlParams == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("XmlParams cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localXmlParams); + } + + xmlWriter.writeEndElement(); + } + if (localThorSlaveIPTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ThorSlaveIP", xmlWriter); + + if (localThorSlaveIP == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("ThorSlaveIP cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localThorSlaveIP); + } + + xmlWriter.writeEndElement(); + } + if (localQueryMainDefinitionTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryMainDefinition", xmlWriter); + + if (localQueryMainDefinition == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryMainDefinition cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryMainDefinition); + } + + xmlWriter.writeEndElement(); + } + if (localDebugValuesTracker) { + if (localDebugValues == null) { + throw new org.apache.axis2.databinding.ADBException("DebugValues cannot be null!!"); + } + localDebugValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues"), + xmlWriter); + } + if (localApplicationValuesTracker) { + if (localApplicationValues == null) { + throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); + } + localApplicationValues.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), + xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUUpdate parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUUpdate object = new WUUpdate(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUUpdate".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUUpdate) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "State" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setState( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Jobname") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Jobname" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobname( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobnameOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "JobnameOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setJobnameOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryText") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryText" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryText( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Action" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAction( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Description") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Description" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescription( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "DescriptionOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "DescriptionOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setDescriptionOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "AddDrilldownFields") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "AddDrilldownFields" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setAddDrilldownFields( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ResultLimit") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ResultLimit" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setResultLimit( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Protected") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Protected" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtected( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ProtectedOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ProtectedOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setProtectedOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityClass") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityClass" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityClass( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "PriorityLevel" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setPriorityLevel( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Scope") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Scope" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScope( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ScopeOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ScopeOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setScopeOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ClusterSelection") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterSelection" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterSelection( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterOrig") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ClusterOrig" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setClusterOrig( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "XmlParams") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "XmlParams" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setXmlParams( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ThorSlaveIP") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ThorSlaveIP" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setThorSlaveIP( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "QueryMainDefinition") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryMainDefinition" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryMainDefinition( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "DebugValues") + .equals(reader.getName())) { + + object.setDebugValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfDebugValue.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") + .equals(reader.getName())) { + + object.setApplicationValues( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue + .Factory.parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateQueryEntry.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateQueryEntry.java index f61181588..393cad89c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateQueryEntry.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateQueryEntry.java @@ -1,533 +1,533 @@ -/** - * WUUpdateQueryEntry.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUUpdateQueryEntry bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUUpdateQueryEntry implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUUpdateQueryEntry", "ns1"); - - /** field for QuerySet */ - protected java.lang.String localQuerySet; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQuerySetTracker = false; - - public boolean isQuerySetSpecified() { - return localQuerySetTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQuerySet() { - return localQuerySet; - } - - /** - * Auto generated setter method - * - * @param param QuerySet - */ - public void setQuerySet(java.lang.String param) { - localQuerySetTracker = param != null; - - this.localQuerySet = param; - } - - /** field for QueryId */ - protected java.lang.String localQueryId; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localQueryIdTracker = false; - - public boolean isQueryIdSpecified() { - return localQueryIdTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getQueryId() { - return localQueryId; - } - - /** - * Auto generated setter method - * - * @param param QueryId - */ - public void setQueryId(java.lang.String param) { - localQueryIdTracker = param != null; - - this.localQueryId = param; - } - - /** field for Comment */ - protected java.lang.String localComment; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localCommentTracker = false; - - public boolean isCommentSpecified() { - return localCommentTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getComment() { - return localComment; - } - - /** - * Auto generated setter method - * - * @param param Comment - */ - public void setComment(java.lang.String param) { - localCommentTracker = param != null; - - this.localComment = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUUpdateQueryEntry", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUUpdateQueryEntry", - xmlWriter); - } - } - if (localQuerySetTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QuerySet", xmlWriter); - - if (localQuerySet == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQuerySet); - } - - xmlWriter.writeEndElement(); - } - if (localQueryIdTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "QueryId", xmlWriter); - - if (localQueryId == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localQueryId); - } - - xmlWriter.writeEndElement(); - } - if (localCommentTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Comment", xmlWriter); - - if (localComment == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localComment); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUUpdateQueryEntry parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUUpdateQueryEntry object = new WUUpdateQueryEntry(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUUpdateQueryEntry".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUUpdateQueryEntry) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QuerySet" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQuerySet( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "QueryId" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setQueryId( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Comment" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setComment( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUUpdateQueryEntry.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUUpdateQueryEntry bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUUpdateQueryEntry implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUUpdateQueryEntry", "ns1"); + + /** field for QuerySet */ + protected java.lang.String localQuerySet; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQuerySetTracker = false; + + public boolean isQuerySetSpecified() { + return localQuerySetTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQuerySet() { + return localQuerySet; + } + + /** + * Auto generated setter method + * + * @param param QuerySet + */ + public void setQuerySet(java.lang.String param) { + localQuerySetTracker = param != null; + + this.localQuerySet = param; + } + + /** field for QueryId */ + protected java.lang.String localQueryId; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localQueryIdTracker = false; + + public boolean isQueryIdSpecified() { + return localQueryIdTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getQueryId() { + return localQueryId; + } + + /** + * Auto generated setter method + * + * @param param QueryId + */ + public void setQueryId(java.lang.String param) { + localQueryIdTracker = param != null; + + this.localQueryId = param; + } + + /** field for Comment */ + protected java.lang.String localComment; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localCommentTracker = false; + + public boolean isCommentSpecified() { + return localCommentTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getComment() { + return localComment; + } + + /** + * Auto generated setter method + * + * @param param Comment + */ + public void setComment(java.lang.String param) { + localCommentTracker = param != null; + + this.localComment = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUUpdateQueryEntry", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUUpdateQueryEntry", + xmlWriter); + } + } + if (localQuerySetTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QuerySet", xmlWriter); + + if (localQuerySet == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QuerySet cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQuerySet); + } + + xmlWriter.writeEndElement(); + } + if (localQueryIdTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "QueryId", xmlWriter); + + if (localQueryId == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("QueryId cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localQueryId); + } + + xmlWriter.writeEndElement(); + } + if (localCommentTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Comment", xmlWriter); + + if (localComment == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Comment cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localComment); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUUpdateQueryEntry parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUUpdateQueryEntry object = new WUUpdateQueryEntry(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUUpdateQueryEntry".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUUpdateQueryEntry) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QuerySet") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QuerySet" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQuerySet( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "QueryId") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "QueryId" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setQueryId( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Comment") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Comment" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setComment( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateQueryEntryResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateQueryEntryResponse.java index 90c0226d7..c81989020 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateQueryEntryResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateQueryEntryResponse.java @@ -1,384 +1,384 @@ -/** - * WUUpdateQueryEntryResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUUpdateQueryEntryResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUUpdateQueryEntryResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUUpdateQueryEntryResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUUpdateQueryEntryResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUUpdateQueryEntryResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUUpdateQueryEntryResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUUpdateQueryEntryResponse object = new WUUpdateQueryEntryResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUUpdateQueryEntryResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUUpdateQueryEntryResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUUpdateQueryEntryResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUUpdateQueryEntryResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUUpdateQueryEntryResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUUpdateQueryEntryResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUUpdateQueryEntryResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUUpdateQueryEntryResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUUpdateQueryEntryResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUUpdateQueryEntryResponse object = new WUUpdateQueryEntryResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUUpdateQueryEntryResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUUpdateQueryEntryResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateResponse.java index e649bd249..3a5131ded 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUUpdateResponse.java @@ -1,435 +1,435 @@ -/** - * WUUpdateResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUUpdateResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUUpdateResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUUpdateResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for Workunit */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWorkunitTracker = false; - - public boolean isWorkunitSpecified() { - return localWorkunitTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { - return localWorkunit; - } - - /** - * Auto generated setter method - * - * @param param Workunit - */ - public void setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { - localWorkunitTracker = param != null; - - this.localWorkunit = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUUpdateResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUUpdateResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localWorkunitTracker) { - if (localWorkunit == null) { - throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); - } - localWorkunit.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUUpdateResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUUpdateResponse object = new WUUpdateResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUUpdateResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUUpdateResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") - .equals(reader.getName())) { - - object.setWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( - reader)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUUpdateResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUUpdateResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUUpdateResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUUpdateResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for Workunit */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit localWorkunit; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWorkunitTracker = false; + + public boolean isWorkunitSpecified() { + return localWorkunitTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit getWorkunit() { + return localWorkunit; + } + + /** + * Auto generated setter method + * + * @param param Workunit + */ + public void setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit param) { + localWorkunitTracker = param != null; + + this.localWorkunit = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUUpdateResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUUpdateResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localWorkunitTracker) { + if (localWorkunit == null) { + throw new org.apache.axis2.databinding.ADBException("Workunit cannot be null!!"); + } + localWorkunit.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit"), xmlWriter); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUUpdateResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUUpdateResponse object = new WUUpdateResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUUpdateResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUUpdateResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Workunit") + .equals(reader.getName())) { + + object.setWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunit.Factory.parse( + reader)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitCompiled.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitCompiled.java index 23ce3ad37..87a972714 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitCompiled.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitCompiled.java @@ -1,536 +1,536 @@ -/** - * WUWaitCompiled.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUWaitCompiled bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUWaitCompiled implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitCompiled", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Wait */ - protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** field for ReturnOnWait */ - protected boolean localReturnOnWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReturnOnWaitTracker = false; - - public boolean isReturnOnWaitSpecified() { - return localReturnOnWaitTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReturnOnWait() { - return localReturnOnWait; - } - - /** - * Auto generated setter method - * - * @param param ReturnOnWait - */ - public void setReturnOnWait(boolean param) { - - // setting primitive attribute tracker to true - localReturnOnWaitTracker = true; - - this.localReturnOnWait = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUWaitCompiled", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUWaitCompiled", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - if (localReturnOnWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ReturnOnWait", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ReturnOnWait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReturnOnWait)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUWaitCompiled parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUWaitCompiled object = new WUWaitCompiled(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUWaitCompiled".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUWaitCompiled) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReturnOnWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReturnOnWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReturnOnWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUWaitCompiled.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUWaitCompiled bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUWaitCompiled implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitCompiled", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Wait */ + protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** field for ReturnOnWait */ + protected boolean localReturnOnWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReturnOnWaitTracker = false; + + public boolean isReturnOnWaitSpecified() { + return localReturnOnWaitTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReturnOnWait() { + return localReturnOnWait; + } + + /** + * Auto generated setter method + * + * @param param ReturnOnWait + */ + public void setReturnOnWait(boolean param) { + + // setting primitive attribute tracker to true + localReturnOnWaitTracker = true; + + this.localReturnOnWait = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUWaitCompiled", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUWaitCompiled", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + if (localReturnOnWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ReturnOnWait", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ReturnOnWait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReturnOnWait)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUWaitCompiled parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUWaitCompiled object = new WUWaitCompiled(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUWaitCompiled".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUWaitCompiled) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReturnOnWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReturnOnWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReturnOnWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitComplete.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitComplete.java index 11adba35d..3b2a3c670 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitComplete.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitComplete.java @@ -1,536 +1,536 @@ -/** - * WUWaitComplete.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUWaitComplete bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUWaitComplete implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitComplete", "ns1"); - - /** field for Wuid */ - protected java.lang.String localWuid; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWuidTracker = false; - - public boolean isWuidSpecified() { - return localWuidTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String - */ - public java.lang.String getWuid() { - return localWuid; - } - - /** - * Auto generated setter method - * - * @param param Wuid - */ - public void setWuid(java.lang.String param) { - localWuidTracker = param != null; - - this.localWuid = param; - } - - /** field for Wait */ - protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWaitTracker = false; - - public boolean isWaitSpecified() { - return localWaitTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getWait() { - return localWait; - } - - /** - * Auto generated setter method - * - * @param param Wait - */ - public void setWait(int param) { - - // setting primitive attribute tracker to true - localWaitTracker = param != java.lang.Integer.MIN_VALUE; - - this.localWait = param; - } - - /** field for ReturnOnWait */ - protected boolean localReturnOnWait = - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localReturnOnWaitTracker = false; - - public boolean isReturnOnWaitSpecified() { - return localReturnOnWaitTracker; - } - - /** - * Auto generated getter method - * - * @return boolean - */ - public boolean getReturnOnWait() { - return localReturnOnWait; - } - - /** - * Auto generated setter method - * - * @param param ReturnOnWait - */ - public void setReturnOnWait(boolean param) { - - // setting primitive attribute tracker to true - localReturnOnWaitTracker = true; - - this.localReturnOnWait = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUWaitComplete", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUWaitComplete", - xmlWriter); - } - } - if (localWuidTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wuid", xmlWriter); - - if (localWuid == null) { - // write the nil attribute - - throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); - - } else { - - xmlWriter.writeCharacters(localWuid); - } - - xmlWriter.writeEndElement(); - } - if (localWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "Wait", xmlWriter); - - if (localWait == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); - } - - xmlWriter.writeEndElement(); - } - if (localReturnOnWaitTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "ReturnOnWait", xmlWriter); - - if (false) { - - throw new org.apache.axis2.databinding.ADBException("ReturnOnWait cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReturnOnWait)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUWaitComplete parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUWaitComplete object = new WUWaitComplete(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUWaitComplete".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUWaitComplete) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wuid" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWuid( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "Wait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReturnOnWait") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "ReturnOnWait" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setReturnOnWait( - org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUWaitComplete.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUWaitComplete bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUWaitComplete implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitComplete", "ns1"); + + /** field for Wuid */ + protected java.lang.String localWuid; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWuidTracker = false; + + public boolean isWuidSpecified() { + return localWuidTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getWuid() { + return localWuid; + } + + /** + * Auto generated setter method + * + * @param param Wuid + */ + public void setWuid(java.lang.String param) { + localWuidTracker = param != null; + + this.localWuid = param; + } + + /** field for Wait */ + protected int localWait = org.apache.axis2.databinding.utils.ConverterUtil.convertToInt("-1"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWaitTracker = false; + + public boolean isWaitSpecified() { + return localWaitTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getWait() { + return localWait; + } + + /** + * Auto generated setter method + * + * @param param Wait + */ + public void setWait(int param) { + + // setting primitive attribute tracker to true + localWaitTracker = param != java.lang.Integer.MIN_VALUE; + + this.localWait = param; + } + + /** field for ReturnOnWait */ + protected boolean localReturnOnWait = + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localReturnOnWaitTracker = false; + + public boolean isReturnOnWaitSpecified() { + return localReturnOnWaitTracker; + } + + /** + * Auto generated getter method + * + * @return boolean + */ + public boolean getReturnOnWait() { + return localReturnOnWait; + } + + /** + * Auto generated setter method + * + * @param param ReturnOnWait + */ + public void setReturnOnWait(boolean param) { + + // setting primitive attribute tracker to true + localReturnOnWaitTracker = true; + + this.localReturnOnWait = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUWaitComplete", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUWaitComplete", + xmlWriter); + } + } + if (localWuidTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wuid", xmlWriter); + + if (localWuid == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localWuid); + } + + xmlWriter.writeEndElement(); + } + if (localWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "Wait", xmlWriter); + + if (localWait == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("Wait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWait)); + } + + xmlWriter.writeEndElement(); + } + if (localReturnOnWaitTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "ReturnOnWait", xmlWriter); + + if (false) { + + throw new org.apache.axis2.databinding.ADBException("ReturnOnWait cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReturnOnWait)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUWaitComplete parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUWaitComplete object = new WUWaitComplete(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUWaitComplete".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUWaitComplete) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wuid" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWuid( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "Wait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ReturnOnWait") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "ReturnOnWait" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setReturnOnWait( + org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitResponse.java index a3bc6d496..340372806 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUWaitResponse.java @@ -1,452 +1,452 @@ -/** - * WUWaitResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUWaitResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUWaitResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitResponse", "ns1"); - - /** field for Exceptions */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - localExceptions; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localExceptionsTracker = false; - - public boolean isExceptionsSpecified() { - return localExceptionsTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException - getExceptions() { - return localExceptions; - } - - /** - * Auto generated setter method - * - * @param param Exceptions - */ - public void setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { - localExceptionsTracker = param != null; - - this.localExceptions = param; - } - - /** field for StateID */ - protected int localStateID; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localStateIDTracker = false; - - public boolean isStateIDSpecified() { - return localStateIDTracker; - } - - /** - * Auto generated getter method - * - * @return int - */ - public int getStateID() { - return localStateID; - } - - /** - * Auto generated setter method - * - * @param param StateID - */ - public void setStateID(int param) { - - // setting primitive attribute tracker to true - localStateIDTracker = param != java.lang.Integer.MIN_VALUE; - - this.localStateID = param; - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUWaitResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WUWaitResponse", - xmlWriter); - } - } - if (localExceptionsTracker) { - if (localExceptions == null) { - throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); - } - localExceptions.serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); - } - if (localStateIDTracker) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - writeStartElement(null, namespace, "StateID", xmlWriter); - - if (localStateID == java.lang.Integer.MIN_VALUE) { - - throw new org.apache.axis2.databinding.ADBException("StateID cannot be null!!"); - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateID)); - } - - xmlWriter.writeEndElement(); - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUWaitResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUWaitResponse object = new WUWaitResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUWaitResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUWaitResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - while (!reader.isEndElement()) { - if (reader.isStartElement()) { - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") - .equals(reader.getName())) { - - object.setExceptions( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory - .parse(reader)); - - reader.next(); - - } // End of if for expected property start element - else if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateID") - .equals(reader.getName())) { - - nillableValue = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); - if ("true".equals(nillableValue) || "1".equals(nillableValue)) { - throw new org.apache.axis2.databinding.ADBException( - "The element: " + "StateID" + " cannot be null"); - } - - java.lang.String content = reader.getElementText(); - - object.setStateID( - org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); - - reader.next(); - - } // End of if for expected property start element - else { - // 3 - A start element we are not expecting indicates an invalid parameter was passed - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - } - - } else { - reader.next(); - } - } // end of while loop - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUWaitResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUWaitResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUWaitResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitResponse", "ns1"); + + /** field for Exceptions */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + localExceptions; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localExceptionsTracker = false; + + public boolean isExceptionsSpecified() { + return localExceptionsTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException + getExceptions() { + return localExceptions; + } + + /** + * Auto generated setter method + * + * @param param Exceptions + */ + public void setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException param) { + localExceptionsTracker = param != null; + + this.localExceptions = param; + } + + /** field for StateID */ + protected int localStateID; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localStateIDTracker = false; + + public boolean isStateIDSpecified() { + return localStateIDTracker; + } + + /** + * Auto generated getter method + * + * @return int + */ + public int getStateID() { + return localStateID; + } + + /** + * Auto generated setter method + * + * @param param StateID + */ + public void setStateID(int param) { + + // setting primitive attribute tracker to true + localStateIDTracker = param != java.lang.Integer.MIN_VALUE; + + this.localStateID = param; + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUWaitResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WUWaitResponse", + xmlWriter); + } + } + if (localExceptionsTracker) { + if (localExceptions == null) { + throw new org.apache.axis2.databinding.ADBException("Exceptions cannot be null!!"); + } + localExceptions.serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), xmlWriter); + } + if (localStateIDTracker) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + writeStartElement(null, namespace, "StateID", xmlWriter); + + if (localStateID == java.lang.Integer.MIN_VALUE) { + + throw new org.apache.axis2.databinding.ADBException("StateID cannot be null!!"); + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStateID)); + } + + xmlWriter.writeEndElement(); + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUWaitResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUWaitResponse object = new WUWaitResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUWaitResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUWaitResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + while (!reader.isEndElement()) { + if (reader.isStartElement()) { + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions") + .equals(reader.getName())) { + + object.setExceptions( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfEspException.Factory + .parse(reader)); + + reader.next(); + + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateID") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "StateID" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setStateID( + org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); + + reader.next(); + + } // End of if for expected property start element + else { + // 3 - A start element we are not expecting indicates an invalid parameter was passed + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + } + + } else { + reader.next(); + } + } // end of while loop + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUs_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUs_type0.java index 44b75d6bb..90c3792dd 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUs_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WUs_type0.java @@ -1,451 +1,451 @@ -/** - * WUs_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WUs_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WUs_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WUs_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for WU This was an Array! */ - protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] localWU; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localWUTracker = false; - - public boolean isWUSpecified() { - return localWUTracker; - } - - /** - * Auto generated getter method - * - * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] getWU() { - return localWU; - } - - /** validate the array for WU */ - protected void validateWU( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] param) {} - - /** - * Auto generated setter method - * - * @param param WU - */ - public void setWU(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] param) { - - validateWU(param); - - localWUTracker = param != null; - - this.localWU = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU - */ - public void addWU(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU param) { - if (localWU == null) { - localWU = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] {}; - } - - // update the setting tracker - localWUTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localWU); - list.add(param); - this.localWU = - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[]) - list.toArray( - new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU - [list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WUs_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUs_type0", xmlWriter); - } - } - if (localWUTracker) { - if (localWU != null) { - for (int i = 0; i < localWU.length; i++) { - if (localWU[i] != null) { - localWU[i].serialize( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WU"), xmlWriter); - } else { - - // we don't have to do any thing since minOccures is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("WU cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WUs_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WUs_type0 object = new WUs_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WUs_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WUs_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WU") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU.Factory.parse( - reader)); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // We should be at the end element, but make sure - while (!reader.isEndElement()) reader.next(); - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WU") - .equals(reader.getName())) { - list1.add( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU.Factory - .parse(reader)); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setWU( - (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[]) - org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU.class, - list1)); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WUs_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WUs_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WUs_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WUs_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for WU This was an Array! */ + protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] localWU; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localWUTracker = false; + + public boolean isWUSpecified() { + return localWUTracker; + } + + /** + * Auto generated getter method + * + * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] getWU() { + return localWU; + } + + /** validate the array for WU */ + protected void validateWU( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] param) {} + + /** + * Auto generated setter method + * + * @param param WU + */ + public void setWU(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] param) { + + validateWU(param); + + localWUTracker = param != null; + + this.localWU = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU + */ + public void addWU(org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU param) { + if (localWU == null) { + localWU = new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[] {}; + } + + // update the setting tracker + localWUTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localWU); + list.add(param); + this.localWU = + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[]) + list.toArray( + new org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU + [list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WUs_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "WUs_type0", xmlWriter); + } + } + if (localWUTracker) { + if (localWU != null) { + for (int i = 0; i < localWU.length; i++) { + if (localWU[i] != null) { + localWU[i].serialize( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WU"), xmlWriter); + } else { + + // we don't have to do any thing since minOccures is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("WU cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WUs_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WUs_type0 object = new WUs_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WUs_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WUs_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WU") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU.Factory.parse( + reader)); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // We should be at the end element, but make sure + while (!reader.isEndElement()) reader.next(); + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WU") + .equals(reader.getName())) { + list1.add( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU.Factory + .parse(reader)); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setWU( + (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU[]) + org.apache.axis2.databinding.utils.ConverterUtil.convertToArray( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ResubmittedWU.class, + list1)); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsEclAddresses_type0.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsEclAddresses_type0.java index fa4d92b6d..e3507f503 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsEclAddresses_type0.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsEclAddresses_type0.java @@ -1,452 +1,452 @@ -/** - * WsEclAddresses_type0.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WsEclAddresses_type0 bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsEclAddresses_type0 implements org.apache.axis2.databinding.ADBBean { - /* This type was generated from the piece of schema that had - name = WsEclAddresses_type0 - Namespace URI = urn:hpccsystems:ws:wsworkunits - Namespace Prefix = ns1 - */ - - /** field for Address This was an Array! */ - protected java.lang.String[] localAddress; - - /* This tracker boolean wil be used to detect whether the user called the set method - * for this attribute. It will be used to determine whether to include this field - * in the serialized XML - */ - protected boolean localAddressTracker = false; - - public boolean isAddressSpecified() { - return localAddressTracker; - } - - /** - * Auto generated getter method - * - * @return java.lang.String[] - */ - public java.lang.String[] getAddress() { - return localAddress; - } - - /** validate the array for Address */ - protected void validateAddress(java.lang.String[] param) {} - - /** - * Auto generated setter method - * - * @param param Address - */ - public void setAddress(java.lang.String[] param) { - - validateAddress(param); - - localAddressTracker = param != null; - - this.localAddress = param; - } - - /** - * Auto generated add method for the array for convenience - * - * @param param java.lang.String - */ - public void addAddress(java.lang.String param) { - if (localAddress == null) { - localAddress = new java.lang.String[] {}; - } - - // update the setting tracker - localAddressTracker = true; - - java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localAddress); - list.add(param); - this.localAddress = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); - } - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement( - new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsEclAddresses_type0", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsEclAddresses_type0", - xmlWriter); - } - } - if (localAddressTracker) { - if (localAddress != null) { - namespace = "urn:hpccsystems:ws:wsworkunits"; - for (int i = 0; i < localAddress.length; i++) { - - if (localAddress[i] != null) { - - writeStartElement(null, namespace, "Address", xmlWriter); - - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAddress[i])); - - xmlWriter.writeEndElement(); - - } else { - - // we have to do nothing since minOccurs is zero - - } - } - } else { - - throw new org.apache.axis2.databinding.ADBException("Address cannot be null!!"); - } - } - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsEclAddresses_type0 parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsEclAddresses_type0 object = new WsEclAddresses_type0(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsEclAddresses_type0".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsEclAddresses_type0) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - java.util.ArrayList list1 = new java.util.ArrayList(); - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement() - && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Address") - .equals(reader.getName())) { - - // Process the array and step past its final element's end. - - list1.add(reader.getElementText()); - - // loop until we find a start element that is not part of this array - boolean loopDone1 = false; - while (!loopDone1) { - // Ensure we are at the EndElement - while (!reader.isEndElement()) { - reader.next(); - } - // Step out of this element - reader.next(); - // Step to next element event. - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - if (reader.isEndElement()) { - // two continuous end elements means we are exiting the xml structure - loopDone1 = true; - } else { - if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Address") - .equals(reader.getName())) { - list1.add(reader.getElementText()); - - } else { - loopDone1 = true; - } - } - } - // call the converter utility to convert and set the array - - object.setAddress((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); - - } // End of if for expected property start element - else { - - } - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - if (reader.isStartElement()) - // 2 - A start element we are not expecting indicates a trailing invalid property - - throw new org.apache.axis2.databinding.ADBException( - "Unexpected subelement " + reader.getName()); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsEclAddresses_type0.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WsEclAddresses_type0 bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsEclAddresses_type0 implements org.apache.axis2.databinding.ADBBean { + /* This type was generated from the piece of schema that had + name = WsEclAddresses_type0 + Namespace URI = urn:hpccsystems:ws:wsworkunits + Namespace Prefix = ns1 + */ + + /** field for Address This was an Array! */ + protected java.lang.String[] localAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localAddressTracker = false; + + public boolean isAddressSpecified() { + return localAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String[] + */ + public java.lang.String[] getAddress() { + return localAddress; + } + + /** validate the array for Address */ + protected void validateAddress(java.lang.String[] param) {} + + /** + * Auto generated setter method + * + * @param param Address + */ + public void setAddress(java.lang.String[] param) { + + validateAddress(param); + + localAddressTracker = param != null; + + this.localAddress = param; + } + + /** + * Auto generated add method for the array for convenience + * + * @param param java.lang.String + */ + public void addAddress(java.lang.String param) { + if (localAddress == null) { + localAddress = new java.lang.String[] {}; + } + + // update the setting tracker + localAddressTracker = true; + + java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localAddress); + list.add(param); + this.localAddress = (java.lang.String[]) list.toArray(new java.lang.String[list.size()]); + } + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement( + new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsEclAddresses_type0", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsEclAddresses_type0", + xmlWriter); + } + } + if (localAddressTracker) { + if (localAddress != null) { + namespace = "urn:hpccsystems:ws:wsworkunits"; + for (int i = 0; i < localAddress.length; i++) { + + if (localAddress[i] != null) { + + writeStartElement(null, namespace, "Address", xmlWriter); + + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAddress[i])); + + xmlWriter.writeEndElement(); + + } else { + + // we have to do nothing since minOccurs is zero + + } + } + } else { + + throw new org.apache.axis2.databinding.ADBException("Address cannot be null!!"); + } + } + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsEclAddresses_type0 parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsEclAddresses_type0 object = new WsEclAddresses_type0(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsEclAddresses_type0".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsEclAddresses_type0) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + java.util.ArrayList list1 = new java.util.ArrayList(); + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Address") + .equals(reader.getName())) { + + // Process the array and step past its final element's end. + + list1.add(reader.getElementText()); + + // loop until we find a start element that is not part of this array + boolean loopDone1 = false; + while (!loopDone1) { + // Ensure we are at the EndElement + while (!reader.isEndElement()) { + reader.next(); + } + // Step out of this element + reader.next(); + // Step to next element event. + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + if (reader.isEndElement()) { + // two continuous end elements means we are exiting the xml structure + loopDone1 = true; + } else { + if (new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Address") + .equals(reader.getName())) { + list1.add(reader.getElementText()); + + } else { + loopDone1 = true; + } + } + } + // call the converter utility to convert and set the array + + object.setAddress((java.lang.String[]) list1.toArray(new java.lang.String[list1.size()])); + + } // End of if for expected property start element + else { + + } + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + if (reader.isStartElement()) + // 2 - A start element we are not expecting indicates a trailing invalid property + + throw new org.apache.axis2.databinding.ADBException( + "Unexpected subelement " + reader.getName()); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunits.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunits.java index 0783eef93..16c430f82 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunits.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunits.java @@ -1,971 +1,971 @@ -/** - * WsWorkunits.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/* - * WsWorkunits java interface - */ - -public interface WsWorkunits { - - /** - * Auto generated method signature - * - * @param wUQuerysetAliasAction - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse - wUQuerysetAliasAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction - wUQuerysetAliasAction) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetStats - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse wUGetStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats wUGetStats) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQueryDetails - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse - wUQueryDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails wUQueryDetails) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUListArchiveFiles - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse - wUListArchiveFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles - wUListArchiveFiles) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUCopyQuerySet - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse - wUCopyQuerySet( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet wUCopyQuerySet) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUPublishWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse - wUPublishWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit - wUPublishWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQueryConfig - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse wUQueryConfig( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig wUQueryConfig) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUCompileECL - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse wUCompileECL( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL wUCompileECL) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUProtect - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse wUProtect( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect wUProtect) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUListLocalFileRequired - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse - wUListLocalFileRequired( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired - wUListLocalFileRequired) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wURecreateQuery - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse - wURecreateQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery wURecreateQuery) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUCheckFeatures - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse - wUCheckFeatures( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures wUCheckFeatures) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUCreateAndUpdate - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse wUCreateAndUpdate( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate wUCreateAndUpdate) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGraphInfo - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse wUGraphInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo wUGraphInfo) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetGraphNameAndTypes - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse - wUGetGraphNameAndTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes - wUGetGraphNameAndTypes) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUListQueriesUsingFile - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse - wUListQueriesUsingFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile - wUListQueriesUsingFile) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUSyntaxCheckECL - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse - wUSyntaxCheckECL( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL wUSyntaxCheckECL) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUDeployWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse - wUDeployWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit wUDeployWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUCreateZAPInfo - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse - wUCreateZAPInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo wUCreateZAPInfo) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUUpdateQueryEntry - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse - wUUpdateQueryEntry( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry - wUUpdateQueryEntry) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUResultBin - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse wUResultBin( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin wUResultBin) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUShowScheduled - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse - wUShowScheduled( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled wUShowScheduled) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetArchiveFile - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse - wUGetArchiveFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile wUGetArchiveFile) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUFullResult - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse wUFullResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult wUFullResult) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQuerysetExport - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse - wUQuerysetExport( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport wUQuerysetExport) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wULightWeightQuery - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse - wULightWeightQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery - wULightWeightQuery) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQueryDetailsLightWeight - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse - wUQueryDetailsLightWeight( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight - wUQueryDetailsLightWeight) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQuerysetDetails - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse - wUQuerysetDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails - wUQuerysetDetails) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUSchedule - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse wUSchedule( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule wUSchedule) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUClusterJobQueueLOG - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse - wUClusterJobQueueLOG( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG - wUClusterJobQueueLOG) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUResultSummary - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse - wUResultSummary( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary wUResultSummary) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetPlugins - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse wUGetPlugins( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins wUGetPlugins) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQuery - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse wUQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery wUQuery) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUAbort - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse wUAbort( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort wUAbort) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUWaitComplete - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse wUWaitComplete( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete wUWaitComplete) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUResultView - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse wUResultView( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView wUResultView) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUInfo - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse wUInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo wUInfo) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUDetailsMeta - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse wUDetailsMeta( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta wUDetailsMeta) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUDelete - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse wUDelete( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete wUDelete) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQueryGetSummaryStats - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse - wUQueryGetSummaryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats - wUQueryGetSummaryStats) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUClusterJobSummaryXLS - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse - wUClusterJobSummaryXLS( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS - wUClusterJobSummaryXLS) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUCopyLogicalFiles - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse - wUCopyLogicalFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles - wUCopyLogicalFiles) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetGraph - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse wUGetGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph wUGetGraph) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetNumFileToCopy - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse - wUGetNumFileToCopy( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy - wUGetNumFileToCopy) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQuerysetImport - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse - wUQuerysetImport( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport wUQuerysetImport) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUDetails - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse wUDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails wUDetails) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUCDebug - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse wUCDebug( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug wUCDebug) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUEclDefinitionAction - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse - wUEclDefinitionAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction - wUEclDefinitionAction) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUUpdate - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse wUUpdate( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate wUUpdate) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetDependancyTrees - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse - wUGetDependancyTrees( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees - wUGetDependancyTrees) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetThorJobList - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse - wUGetThorJobList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList wUGetThorJobList) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQuerysetQueryAction - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse - wUQuerysetQueryAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction - wUQuerysetQueryAction) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUWaitCompiled - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse wUWaitCompiled( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled wUWaitCompiled) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUResubmit - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse wUResubmit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit wUResubmit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGraphTiming - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse wUGraphTiming( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming wUGraphTiming) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGVCGraphInfo - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse - wUGVCGraphInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo wUGVCGraphInfo) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUResult - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse wUResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult wUResult) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQuerysets - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse wUQuerysets( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets wUQuerysets) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param gVCAjaxGraph - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse gVCAjaxGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph gVCAjaxGraph) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUProcessGraph - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse - wUProcessGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph wUProcessGraph) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUExport - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse wUExport( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport wUExport) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param ping - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping ping) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUInfoDetails - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse wUInfoDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails wUInfoDetails) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUJobList - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse wUJobList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList wUJobList) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUCreate - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse wUCreate( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate wUCreate) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUAnalyseHotspot - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse - wUAnalyseHotspot( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot wUAnalyseHotspot) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUAction - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse wUAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction wUAction) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUListQueries - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse wUListQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries wUListQueries) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQueryFiles - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse wUQueryFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles wUQueryFiles) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQueryGetGraph - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse - wUQueryGetGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph wUQueryGetGraph) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUClusterJobXLS - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse - wUClusterJobXLS( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS wUClusterJobXLS) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetThorJobQueue - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse - wUGetThorJobQueue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue - wUGetThorJobQueue) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wURun - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse wURun( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun wURun) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUFile - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse wUFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile wUFile) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUQuerysetCopyQuery - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse - wUQuerysetCopyQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery - wUQuerysetCopyQuery) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUGetZAPInfo - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse wUGetZAPInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo wUGetZAPInfo) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUClusterJobQueueXLS - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse - wUClusterJobQueueXLS( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS - wUClusterJobQueueXLS) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUMultiQuerysetDetails - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse - wUMultiQuerysetDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails - wUMultiQuerysetDetails) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUAddLocalFileToWorkunit - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse - wUAddLocalFileToWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit - wUAddLocalFileToWorkunit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUPushEvent - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse wUPushEvent( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent wUPushEvent) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - /** - * Auto generated method signature - * - * @param wUSubmit - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse wUSubmit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit wUSubmit) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; - - // -} +/** + * WsWorkunits.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/* + * WsWorkunits java interface + */ + +public interface WsWorkunits { + + /** + * Auto generated method signature + * + * @param wUQuerysetAliasAction + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse + wUQuerysetAliasAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction + wUQuerysetAliasAction) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetStats + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse wUGetStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats wUGetStats) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQueryDetails + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse + wUQueryDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails wUQueryDetails) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUListArchiveFiles + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse + wUListArchiveFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles + wUListArchiveFiles) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUCopyQuerySet + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse + wUCopyQuerySet( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet wUCopyQuerySet) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUPublishWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse + wUPublishWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit + wUPublishWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQueryConfig + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse wUQueryConfig( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig wUQueryConfig) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUCompileECL + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse wUCompileECL( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL wUCompileECL) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUProtect + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse wUProtect( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect wUProtect) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUListLocalFileRequired + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse + wUListLocalFileRequired( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired + wUListLocalFileRequired) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wURecreateQuery + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse + wURecreateQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery wURecreateQuery) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUCheckFeatures + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse + wUCheckFeatures( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures wUCheckFeatures) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUCreateAndUpdate + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse wUCreateAndUpdate( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate wUCreateAndUpdate) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGraphInfo + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse wUGraphInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo wUGraphInfo) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetGraphNameAndTypes + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse + wUGetGraphNameAndTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes + wUGetGraphNameAndTypes) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUListQueriesUsingFile + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse + wUListQueriesUsingFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile + wUListQueriesUsingFile) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUSyntaxCheckECL + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse + wUSyntaxCheckECL( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL wUSyntaxCheckECL) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUDeployWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse + wUDeployWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit wUDeployWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUCreateZAPInfo + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse + wUCreateZAPInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo wUCreateZAPInfo) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUUpdateQueryEntry + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse + wUUpdateQueryEntry( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry + wUUpdateQueryEntry) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUResultBin + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse wUResultBin( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin wUResultBin) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUShowScheduled + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse + wUShowScheduled( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled wUShowScheduled) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetArchiveFile + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse + wUGetArchiveFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile wUGetArchiveFile) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUFullResult + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse wUFullResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult wUFullResult) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQuerysetExport + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse + wUQuerysetExport( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport wUQuerysetExport) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wULightWeightQuery + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse + wULightWeightQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery + wULightWeightQuery) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQueryDetailsLightWeight + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse + wUQueryDetailsLightWeight( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight + wUQueryDetailsLightWeight) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQuerysetDetails + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse + wUQuerysetDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails + wUQuerysetDetails) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUSchedule + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse wUSchedule( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule wUSchedule) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUClusterJobQueueLOG + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse + wUClusterJobQueueLOG( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG + wUClusterJobQueueLOG) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUResultSummary + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse + wUResultSummary( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary wUResultSummary) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetPlugins + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse wUGetPlugins( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins wUGetPlugins) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQuery + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse wUQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery wUQuery) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUAbort + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse wUAbort( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort wUAbort) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUWaitComplete + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse wUWaitComplete( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete wUWaitComplete) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUResultView + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse wUResultView( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView wUResultView) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUInfo + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse wUInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo wUInfo) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUDetailsMeta + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse wUDetailsMeta( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta wUDetailsMeta) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUDelete + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse wUDelete( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete wUDelete) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQueryGetSummaryStats + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse + wUQueryGetSummaryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats + wUQueryGetSummaryStats) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUClusterJobSummaryXLS + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse + wUClusterJobSummaryXLS( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS + wUClusterJobSummaryXLS) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUCopyLogicalFiles + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse + wUCopyLogicalFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles + wUCopyLogicalFiles) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetGraph + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse wUGetGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph wUGetGraph) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetNumFileToCopy + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse + wUGetNumFileToCopy( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy + wUGetNumFileToCopy) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQuerysetImport + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse + wUQuerysetImport( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport wUQuerysetImport) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUDetails + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse wUDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails wUDetails) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUCDebug + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse wUCDebug( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug wUCDebug) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUEclDefinitionAction + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse + wUEclDefinitionAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction + wUEclDefinitionAction) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUUpdate + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse wUUpdate( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate wUUpdate) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetDependancyTrees + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse + wUGetDependancyTrees( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees + wUGetDependancyTrees) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetThorJobList + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse + wUGetThorJobList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList wUGetThorJobList) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQuerysetQueryAction + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse + wUQuerysetQueryAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction + wUQuerysetQueryAction) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUWaitCompiled + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse wUWaitCompiled( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled wUWaitCompiled) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUResubmit + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse wUResubmit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit wUResubmit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGraphTiming + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse wUGraphTiming( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming wUGraphTiming) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGVCGraphInfo + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse + wUGVCGraphInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo wUGVCGraphInfo) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUResult + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse wUResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult wUResult) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQuerysets + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse wUQuerysets( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets wUQuerysets) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param gVCAjaxGraph + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse gVCAjaxGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph gVCAjaxGraph) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUProcessGraph + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse + wUProcessGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph wUProcessGraph) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUExport + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse wUExport( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport wUExport) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param ping + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping ping) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUInfoDetails + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse wUInfoDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails wUInfoDetails) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUJobList + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse wUJobList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList wUJobList) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUCreate + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse wUCreate( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate wUCreate) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUAnalyseHotspot + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse + wUAnalyseHotspot( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot wUAnalyseHotspot) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUAction + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse wUAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction wUAction) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUListQueries + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse wUListQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries wUListQueries) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQueryFiles + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse wUQueryFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles wUQueryFiles) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQueryGetGraph + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse + wUQueryGetGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph wUQueryGetGraph) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUClusterJobXLS + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse + wUClusterJobXLS( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS wUClusterJobXLS) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetThorJobQueue + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse + wUGetThorJobQueue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue + wUGetThorJobQueue) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wURun + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse wURun( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun wURun) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUFile + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse wUFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile wUFile) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUQuerysetCopyQuery + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse + wUQuerysetCopyQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery + wUQuerysetCopyQuery) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUGetZAPInfo + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse wUGetZAPInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo wUGetZAPInfo) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUClusterJobQueueXLS + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse + wUClusterJobQueueXLS( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS + wUClusterJobQueueXLS) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUMultiQuerysetDetails + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse + wUMultiQuerysetDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails + wUMultiQuerysetDetails) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUAddLocalFileToWorkunit + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse + wUAddLocalFileToWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit + wUAddLocalFileToWorkunit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUPushEvent + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse wUPushEvent( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent wUPushEvent) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + /** + * Auto generated method signature + * + * @param wUSubmit + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse wUSubmit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit wUSubmit) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault; + + // +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunitsPingResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunitsPingResponse.java index 4e6957c7f..493631538 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunitsPingResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunitsPingResponse.java @@ -1,316 +1,316 @@ -/** - * WsWorkunitsPingResponse.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:47:13 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/** WsWorkunitsPingResponse bean class */ -@SuppressWarnings({"unchecked", "unused"}) -public class WsWorkunitsPingResponse implements org.apache.axis2.databinding.ADBBean { - - public static final javax.xml.namespace.QName MY_QNAME = - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WsWorkunitsPingResponse", "ns1"); - - /** - * @param parentQName - * @param factory - * @return org.apache.axiom.om.OMElement - */ - public org.apache.axiom.om.OMElement getOMElement( - final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) - throws org.apache.axis2.databinding.ADBException { - - return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - serialize(parentQName, xmlWriter, false); - } - - public void serialize( - final javax.xml.namespace.QName parentQName, - javax.xml.stream.XMLStreamWriter xmlWriter, - boolean serializeType) - throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { - - java.lang.String prefix = null; - java.lang.String namespace = null; - - prefix = parentQName.getPrefix(); - namespace = parentQName.getNamespaceURI(); - writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); - - if (serializeType) { - - java.lang.String namespacePrefix = - registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); - if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - namespacePrefix + ":WsWorkunitsPingResponse", - xmlWriter); - } else { - writeAttribute( - "xsi", - "http://www.w3.org/2001/XMLSchema-instance", - "type", - "WsWorkunitsPingResponse", - xmlWriter); - } - } - - xmlWriter.writeEndElement(); - } - - private static java.lang.String generatePrefix(java.lang.String namespace) { - if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { - return "ns1"; - } - return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - - /** Utility method to write an element start tag. */ - private void writeStartElement( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String localPart, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeStartElement(writerPrefix, localPart, namespace); - } else { - if (namespace.length() == 0) { - prefix = ""; - } else if (prefix == null) { - prefix = generatePrefix(namespace); - } - - xmlWriter.writeStartElement(prefix, localPart, namespace); - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - } - - /** Util method to write an attribute with the ns prefix */ - private void writeAttribute( - java.lang.String prefix, - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); - if (writerPrefix != null) { - xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); - } else { - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - xmlWriter.writeAttribute(prefix, namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeAttribute( - java.lang.String namespace, - java.lang.String attName, - java.lang.String attValue, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attValue); - } else { - xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); - } - } - - /** Util method to write an attribute without the ns prefix */ - private void writeQNameAttribute( - java.lang.String namespace, - java.lang.String attName, - javax.xml.namespace.QName qname, - javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - java.lang.String attributeNamespace = qname.getNamespaceURI(); - java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); - if (attributePrefix == null) { - attributePrefix = registerPrefix(xmlWriter, attributeNamespace); - } - java.lang.String attributeValue; - if (attributePrefix.trim().length() > 0) { - attributeValue = attributePrefix + ":" + qname.getLocalPart(); - } else { - attributeValue = qname.getLocalPart(); - } - - if (namespace.equals("")) { - xmlWriter.writeAttribute(attName, attributeValue); - } else { - registerPrefix(xmlWriter, namespace); - xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); - } - } - /** method to handle Qnames */ - private void writeQName( - javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - java.lang.String namespaceURI = qname.getNamespaceURI(); - if (namespaceURI != null) { - java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); - if (prefix == null) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - xmlWriter.writeCharacters( - prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } else { - // i.e this is the default namespace - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - - } else { - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); - } - } - - private void writeQNames( - javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) - throws javax.xml.stream.XMLStreamException { - - if (qnames != null) { - // we have to store this data until last moment since it is not possible to write any - // namespace data after writing the charactor data - java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); - java.lang.String namespaceURI = null; - java.lang.String prefix = null; - - for (int i = 0; i < qnames.length; i++) { - if (i > 0) { - stringToWrite.append(" "); - } - namespaceURI = qnames[i].getNamespaceURI(); - if (namespaceURI != null) { - prefix = xmlWriter.getPrefix(namespaceURI); - if ((prefix == null) || (prefix.length() == 0)) { - prefix = generatePrefix(namespaceURI); - xmlWriter.writeNamespace(prefix, namespaceURI); - xmlWriter.setPrefix(prefix, namespaceURI); - } - - if (prefix.trim().length() > 0) { - stringToWrite - .append(prefix) - .append(":") - .append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } else { - stringToWrite.append( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); - } - } - xmlWriter.writeCharacters(stringToWrite.toString()); - } - } - - /** Register a namespace prefix */ - private java.lang.String registerPrefix( - javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) - throws javax.xml.stream.XMLStreamException { - java.lang.String prefix = xmlWriter.getPrefix(namespace); - if (prefix == null) { - prefix = generatePrefix(namespace); - javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); - while (true) { - java.lang.String uri = nsContext.getNamespaceURI(prefix); - if (uri == null || uri.length() == 0) { - break; - } - prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); - } - xmlWriter.writeNamespace(prefix, namespace); - xmlWriter.setPrefix(prefix, namespace); - } - return prefix; - } - - /** Factory class that keeps the parse method */ - public static class Factory { - private static org.apache.commons.logging.Log log = - org.apache.commons.logging.LogFactory.getLog(Factory.class); - - /** - * static method to create the object Precondition: If this object is an element, the current or - * next start element starts this object and any intervening reader events are ignorable If this - * object is not an element, it is a complex type and the reader is at the event just after the - * outer start element Postcondition: If this object is an element, the reader is positioned at - * its end element If this object is a complex type, the reader is positioned at the end element - * of its outer element - */ - public static WsWorkunitsPingResponse parse(javax.xml.stream.XMLStreamReader reader) - throws java.lang.Exception { - WsWorkunitsPingResponse object = new WsWorkunitsPingResponse(); - - int event; - javax.xml.namespace.QName currentQName = null; - java.lang.String nillableValue = null; - java.lang.String prefix = ""; - java.lang.String namespaceuri = ""; - try { - - while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); - - currentQName = reader.getName(); - - if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { - java.lang.String fullTypeName = - reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); - if (fullTypeName != null) { - java.lang.String nsPrefix = null; - if (fullTypeName.indexOf(":") > -1) { - nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); - } - nsPrefix = nsPrefix == null ? "" : nsPrefix; - - java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); - - if (!"WsWorkunitsPingResponse".equals(type)) { - // find namespace for the prefix - java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); - return (WsWorkunitsPingResponse) - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper - .getTypeObject(nsUri, type, reader); - } - } - } - - // Note all attributes that were handled. Used to differ normal attributes - // from anyAttributes. - java.util.Vector handledAttributes = new java.util.Vector(); - - reader.next(); - - } catch (javax.xml.stream.XMLStreamException e) { - throw new java.lang.Exception(e); - } - - return object; - } - } // end of factory class -} +/** + * WsWorkunitsPingResponse.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:47:13 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/** WsWorkunitsPingResponse bean class */ +@SuppressWarnings({"unchecked", "unused"}) +public class WsWorkunitsPingResponse implements org.apache.axis2.databinding.ADBBean { + + public static final javax.xml.namespace.QName MY_QNAME = + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WsWorkunitsPingResponse", "ns1"); + + /** + * @param parentQName + * @param factory + * @return org.apache.axiom.om.OMElement + */ + public org.apache.axiom.om.OMElement getOMElement( + final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) + throws org.apache.axis2.databinding.ADBException { + + return factory.createOMElement(new org.apache.axis2.databinding.ADBDataSource(this, MY_QNAME)); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + serialize(parentQName, xmlWriter, false); + } + + public void serialize( + final javax.xml.namespace.QName parentQName, + javax.xml.stream.XMLStreamWriter xmlWriter, + boolean serializeType) + throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { + + java.lang.String prefix = null; + java.lang.String namespace = null; + + prefix = parentQName.getPrefix(); + namespace = parentQName.getNamespaceURI(); + writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); + + if (serializeType) { + + java.lang.String namespacePrefix = + registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); + if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + namespacePrefix + ":WsWorkunitsPingResponse", + xmlWriter); + } else { + writeAttribute( + "xsi", + "http://www.w3.org/2001/XMLSchema-instance", + "type", + "WsWorkunitsPingResponse", + xmlWriter); + } + } + + xmlWriter.writeEndElement(); + } + + private static java.lang.String generatePrefix(java.lang.String namespace) { + if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { + return "ns1"; + } + return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + + /** Utility method to write an element start tag. */ + private void writeStartElement( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String localPart, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeStartElement(writerPrefix, localPart, namespace); + } else { + if (namespace.length() == 0) { + prefix = ""; + } else if (prefix == null) { + prefix = generatePrefix(namespace); + } + + xmlWriter.writeStartElement(prefix, localPart, namespace); + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + } + + /** Util method to write an attribute with the ns prefix */ + private void writeAttribute( + java.lang.String prefix, + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); + if (writerPrefix != null) { + xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); + } else { + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + xmlWriter.writeAttribute(prefix, namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeAttribute( + java.lang.String namespace, + java.lang.String attName, + java.lang.String attValue, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attValue); + } else { + xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); + } + } + + /** Util method to write an attribute without the ns prefix */ + private void writeQNameAttribute( + java.lang.String namespace, + java.lang.String attName, + javax.xml.namespace.QName qname, + javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + java.lang.String attributeNamespace = qname.getNamespaceURI(); + java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); + if (attributePrefix == null) { + attributePrefix = registerPrefix(xmlWriter, attributeNamespace); + } + java.lang.String attributeValue; + if (attributePrefix.trim().length() > 0) { + attributeValue = attributePrefix + ":" + qname.getLocalPart(); + } else { + attributeValue = qname.getLocalPart(); + } + + if (namespace.equals("")) { + xmlWriter.writeAttribute(attName, attributeValue); + } else { + registerPrefix(xmlWriter, namespace); + xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); + } + } + /** method to handle Qnames */ + private void writeQName( + javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + java.lang.String namespaceURI = qname.getNamespaceURI(); + if (namespaceURI != null) { + java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); + if (prefix == null) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + xmlWriter.writeCharacters( + prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } else { + // i.e this is the default namespace + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + + } else { + xmlWriter.writeCharacters( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); + } + } + + private void writeQNames( + javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) + throws javax.xml.stream.XMLStreamException { + + if (qnames != null) { + // we have to store this data until last moment since it is not possible to write any + // namespace data after writing the charactor data + java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); + java.lang.String namespaceURI = null; + java.lang.String prefix = null; + + for (int i = 0; i < qnames.length; i++) { + if (i > 0) { + stringToWrite.append(" "); + } + namespaceURI = qnames[i].getNamespaceURI(); + if (namespaceURI != null) { + prefix = xmlWriter.getPrefix(namespaceURI); + if ((prefix == null) || (prefix.length() == 0)) { + prefix = generatePrefix(namespaceURI); + xmlWriter.writeNamespace(prefix, namespaceURI); + xmlWriter.setPrefix(prefix, namespaceURI); + } + + if (prefix.trim().length() > 0) { + stringToWrite + .append(prefix) + .append(":") + .append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } else { + stringToWrite.append( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); + } + } + xmlWriter.writeCharacters(stringToWrite.toString()); + } + } + + /** Register a namespace prefix */ + private java.lang.String registerPrefix( + javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) + throws javax.xml.stream.XMLStreamException { + java.lang.String prefix = xmlWriter.getPrefix(namespace); + if (prefix == null) { + prefix = generatePrefix(namespace); + javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); + while (true) { + java.lang.String uri = nsContext.getNamespaceURI(prefix); + if (uri == null || uri.length() == 0) { + break; + } + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix, namespace); + xmlWriter.setPrefix(prefix, namespace); + } + return prefix; + } + + /** Factory class that keeps the parse method */ + public static class Factory { + private static org.apache.commons.logging.Log log = + org.apache.commons.logging.LogFactory.getLog(Factory.class); + + /** + * static method to create the object Precondition: If this object is an element, the current or + * next start element starts this object and any intervening reader events are ignorable If this + * object is not an element, it is a complex type and the reader is at the event just after the + * outer start element Postcondition: If this object is an element, the reader is positioned at + * its end element If this object is a complex type, the reader is positioned at the end element + * of its outer element + */ + public static WsWorkunitsPingResponse parse(javax.xml.stream.XMLStreamReader reader) + throws java.lang.Exception { + WsWorkunitsPingResponse object = new WsWorkunitsPingResponse(); + + int event; + javax.xml.namespace.QName currentQName = null; + java.lang.String nillableValue = null; + java.lang.String prefix = ""; + java.lang.String namespaceuri = ""; + try { + + while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); + + currentQName = reader.getName(); + + if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { + java.lang.String fullTypeName = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); + if (fullTypeName != null) { + java.lang.String nsPrefix = null; + if (fullTypeName.indexOf(":") > -1) { + nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); + } + nsPrefix = nsPrefix == null ? "" : nsPrefix; + + java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); + + if (!"WsWorkunitsPingResponse".equals(type)) { + // find namespace for the prefix + java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); + return (WsWorkunitsPingResponse) + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper + .getTypeObject(nsUri, type, reader); + } + } + } + + // Note all attributes that were handled. Used to differ normal attributes + // from anyAttributes. + java.util.Vector handledAttributes = new java.util.Vector(); + + reader.next(); + + } catch (javax.xml.stream.XMLStreamException e) { + throw new java.lang.Exception(e); + } + + return object; + } + } // end of factory class +} diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunitsStub.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunitsStub.java index daeccbd50..d5056b693 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunitsStub.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wsworkunits/latest/WsWorkunitsStub.java @@ -1,18127 +1,18127 @@ -/** - * WsWorkunitsStub.java - * - *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, - * 2022 (03:46:59 EDT) - */ -package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; - -/* - * WsWorkunitsStub java implementation - */ - -public class WsWorkunitsStub extends org.apache.axis2.client.Stub implements WsWorkunits { - protected org.apache.axis2.description.AxisOperation[] _operations; - - // hashmaps to keep the fault mapping - private java.util.Map - faultExceptionNameMap = - new java.util.HashMap(); - private java.util.Map - faultExceptionClassNameMap = - new java.util.HashMap(); - private java.util.Map faultMessageMap = - new java.util.HashMap(); - - private static int counter = 0; - - private static synchronized java.lang.String getUniqueSuffix() { - // reset the counter if it is greater than 99999 - if (counter > 99999) { - counter = 0; - } - counter = counter + 1; - return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; - } - - private void populateAxisService() throws org.apache.axis2.AxisFault { - - // creating the Service with a unique name - _service = new org.apache.axis2.description.AxisService("WsWorkunits" + getUniqueSuffix()); - addAnonymousOperations(); - - // creating the operations - org.apache.axis2.description.AxisOperation __operation; - - _operations = new org.apache.axis2.description.AxisOperation[81]; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetAliasAction")); - _service.addOperation(__operation); - - _operations[0] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetStats")); - _service.addOperation(__operation); - - _operations[1] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryDetails")); - _service.addOperation(__operation); - - _operations[2] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListArchiveFiles")); - _service.addOperation(__operation); - - _operations[3] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCopyQuerySet")); - _service.addOperation(__operation); - - _operations[4] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUPublishWorkunit")); - _service.addOperation(__operation); - - _operations[5] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryConfig")); - _service.addOperation(__operation); - - _operations[6] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCompileECL")); - _service.addOperation(__operation); - - _operations[7] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUProtect")); - _service.addOperation(__operation); - - _operations[8] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListLocalFileRequired")); - _service.addOperation(__operation); - - _operations[9] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wURecreateQuery")); - _service.addOperation(__operation); - - _operations[10] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCheckFeatures")); - _service.addOperation(__operation); - - _operations[11] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCreateAndUpdate")); - _service.addOperation(__operation); - - _operations[12] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGraphInfo")); - _service.addOperation(__operation); - - _operations[13] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetGraphNameAndTypes")); - _service.addOperation(__operation); - - _operations[14] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListQueriesUsingFile")); - _service.addOperation(__operation); - - _operations[15] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSyntaxCheckECL")); - _service.addOperation(__operation); - - _operations[16] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDeployWorkunit")); - _service.addOperation(__operation); - - _operations[17] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCreateZAPInfo")); - _service.addOperation(__operation); - - _operations[18] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUUpdateQueryEntry")); - _service.addOperation(__operation); - - _operations[19] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultBin")); - _service.addOperation(__operation); - - _operations[20] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUShowScheduled")); - _service.addOperation(__operation); - - _operations[21] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetArchiveFile")); - _service.addOperation(__operation); - - _operations[22] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUFullResult")); - _service.addOperation(__operation); - - _operations[23] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetExport")); - _service.addOperation(__operation); - - _operations[24] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wULightWeightQuery")); - _service.addOperation(__operation); - - _operations[25] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQueryDetailsLightWeight")); - _service.addOperation(__operation); - - _operations[26] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetDetails")); - _service.addOperation(__operation); - - _operations[27] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSchedule")); - _service.addOperation(__operation); - - _operations[28] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUClusterJobQueueLOG")); - _service.addOperation(__operation); - - _operations[29] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultSummary")); - _service.addOperation(__operation); - - _operations[30] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetPlugins")); - _service.addOperation(__operation); - - _operations[31] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuery")); - _service.addOperation(__operation); - - _operations[32] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAbort")); - _service.addOperation(__operation); - - _operations[33] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUWaitComplete")); - _service.addOperation(__operation); - - _operations[34] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultView")); - _service.addOperation(__operation); - - _operations[35] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUInfo")); - _service.addOperation(__operation); - - _operations[36] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDetailsMeta")); - _service.addOperation(__operation); - - _operations[37] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDelete")); - _service.addOperation(__operation); - - _operations[38] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryGetSummaryStats")); - _service.addOperation(__operation); - - _operations[39] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUClusterJobSummaryXLS")); - _service.addOperation(__operation); - - _operations[40] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCopyLogicalFiles")); - _service.addOperation(__operation); - - _operations[41] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetGraph")); - _service.addOperation(__operation); - - _operations[42] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetNumFileToCopy")); - _service.addOperation(__operation); - - _operations[43] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetImport")); - _service.addOperation(__operation); - - _operations[44] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDetails")); - _service.addOperation(__operation); - - _operations[45] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCDebug")); - _service.addOperation(__operation); - - _operations[46] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUEclDefinitionAction")); - _service.addOperation(__operation); - - _operations[47] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUUpdate")); - _service.addOperation(__operation); - - _operations[48] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetDependancyTrees")); - _service.addOperation(__operation); - - _operations[49] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetThorJobList")); - _service.addOperation(__operation); - - _operations[50] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetQueryAction")); - _service.addOperation(__operation); - - _operations[51] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUWaitCompiled")); - _service.addOperation(__operation); - - _operations[52] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResubmit")); - _service.addOperation(__operation); - - _operations[53] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGraphTiming")); - _service.addOperation(__operation); - - _operations[54] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGVCGraphInfo")); - _service.addOperation(__operation); - - _operations[55] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResult")); - _service.addOperation(__operation); - - _operations[56] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysets")); - _service.addOperation(__operation); - - _operations[57] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "gVCAjaxGraph")); - _service.addOperation(__operation); - - _operations[58] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUProcessGraph")); - _service.addOperation(__operation); - - _operations[59] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUExport")); - _service.addOperation(__operation); - - _operations[60] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ping")); - _service.addOperation(__operation); - - _operations[61] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUInfoDetails")); - _service.addOperation(__operation); - - _operations[62] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUJobList")); - _service.addOperation(__operation); - - _operations[63] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCreate")); - _service.addOperation(__operation); - - _operations[64] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAnalyseHotspot")); - _service.addOperation(__operation); - - _operations[65] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAction")); - _service.addOperation(__operation); - - _operations[66] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListQueries")); - _service.addOperation(__operation); - - _operations[67] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryFiles")); - _service.addOperation(__operation); - - _operations[68] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryGetGraph")); - _service.addOperation(__operation); - - _operations[69] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUClusterJobXLS")); - _service.addOperation(__operation); - - _operations[70] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetThorJobQueue")); - _service.addOperation(__operation); - - _operations[71] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wURun")); - _service.addOperation(__operation); - - _operations[72] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUFile")); - _service.addOperation(__operation); - - _operations[73] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetCopyQuery")); - _service.addOperation(__operation); - - _operations[74] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetZAPInfo")); - _service.addOperation(__operation); - - _operations[75] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUClusterJobQueueXLS")); - _service.addOperation(__operation); - - _operations[76] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUMultiQuerysetDetails")); - _service.addOperation(__operation); - - _operations[77] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUAddLocalFileToWorkunit")); - _service.addOperation(__operation); - - _operations[78] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUPushEvent")); - _service.addOperation(__operation); - - _operations[79] = __operation; - - __operation = new org.apache.axis2.description.OutInAxisOperation(); - - __operation.setName( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSubmit")); - _service.addOperation(__operation); - - _operations[80] = __operation; - } - - // populates the faults - private void populateFaults() { - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetAliasAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetAliasAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetAliasAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetStats"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetStats"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetStats"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListArchiveFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListArchiveFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListArchiveFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCopyQuerySet"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCopyQuerySet"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCopyQuerySet"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUPublishWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUPublishWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUPublishWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryConfig"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryConfig"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryConfig"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCompileECL"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCompileECL"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCompileECL"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUProtect"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUProtect"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUProtect"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListLocalFileRequired"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListLocalFileRequired"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListLocalFileRequired"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WURecreateQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WURecreateQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WURecreateQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCheckFeatures"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCheckFeatures"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCheckFeatures"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreateAndUpdate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreateAndUpdate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreateAndUpdate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGraphInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGraphInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGraphInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetGraphNameAndTypes"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetGraphNameAndTypes"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetGraphNameAndTypes"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListQueriesUsingFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListQueriesUsingFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListQueriesUsingFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSyntaxCheckECL"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSyntaxCheckECL"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSyntaxCheckECL"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDeployWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDeployWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDeployWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreateZAPInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreateZAPInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreateZAPInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUUpdateQueryEntry"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUUpdateQueryEntry"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUUpdateQueryEntry"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultBin"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultBin"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultBin"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUShowScheduled"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUShowScheduled"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUShowScheduled"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetArchiveFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetArchiveFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetArchiveFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUFullResult"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUFullResult"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUFullResult"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetExport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetExport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetExport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WULightWeightQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WULightWeightQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WULightWeightQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryDetailsLightWeight"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryDetailsLightWeight"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryDetailsLightWeight"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSchedule"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSchedule"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSchedule"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobQueueLOG"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobQueueLOG"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobQueueLOG"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultSummary"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultSummary"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultSummary"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetPlugins"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetPlugins"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetPlugins"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAbort"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAbort"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAbort"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUWaitComplete"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUWaitComplete"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUWaitComplete"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultView"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultView"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResultView"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDetailsMeta"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDetailsMeta"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDetailsMeta"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDelete"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDelete"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDelete"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryGetSummaryStats"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryGetSummaryStats"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryGetSummaryStats"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobSummaryXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobSummaryXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobSummaryXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCopyLogicalFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCopyLogicalFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCopyLogicalFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetNumFileToCopy"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetNumFileToCopy"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetNumFileToCopy"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetImport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetImport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetImport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCDebug"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCDebug"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCDebug"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUEclDefinitionAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUEclDefinitionAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUEclDefinitionAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUUpdate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUUpdate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUUpdate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetDependancyTrees"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetDependancyTrees"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetDependancyTrees"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetThorJobList"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetThorJobList"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetThorJobList"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetQueryAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetQueryAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetQueryAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUWaitCompiled"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUWaitCompiled"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUWaitCompiled"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResubmit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResubmit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResubmit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGraphTiming"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGraphTiming"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGraphTiming"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGVCGraphInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGVCGraphInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGVCGraphInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResult"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResult"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUResult"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysets"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysets"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysets"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "GVCAjaxGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "GVCAjaxGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "GVCAjaxGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUProcessGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUProcessGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUProcessGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUExport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUExport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUExport"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "Ping"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUInfoDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUInfoDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUInfoDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUJobList"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUJobList"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUJobList"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUCreate"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAnalyseHotspot"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAnalyseHotspot"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAnalyseHotspot"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAction"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListQueries"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListQueries"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUListQueries"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryFiles"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryGetGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryGetGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQueryGetGraph"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetThorJobQueue"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetThorJobQueue"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetThorJobQueue"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "WURun"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "WURun"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "WURun"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUFile"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetCopyQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetCopyQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUQuerysetCopyQuery"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetZAPInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetZAPInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUGetZAPInfo"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobQueueXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobQueueXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUClusterJobQueueXLS"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUMultiQuerysetDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUMultiQuerysetDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUMultiQuerysetDetails"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAddLocalFileToWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAddLocalFileToWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUAddLocalFileToWorkunit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUPushEvent"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUPushEvent"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUPushEvent"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - - faultExceptionNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSubmit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultExceptionClassNameMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSubmit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); - faultMessageMap.put( - new org.apache.axis2.client.FaultMapKey( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), - "WUSubmit"), - "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); - } - - /** Constructor that takes in a configContext */ - public WsWorkunitsStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint) - throws org.apache.axis2.AxisFault { - this(configurationContext, targetEndpoint, false); - } - - /** Constructor that takes in a configContext and useseperate listner */ - public WsWorkunitsStub( - org.apache.axis2.context.ConfigurationContext configurationContext, - java.lang.String targetEndpoint, - boolean useSeparateListener) - throws org.apache.axis2.AxisFault { - // To populate AxisService - populateAxisService(); - populateFaults(); - - _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); - - _serviceClient - .getOptions() - .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); - _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); - } - - /** Default Constructor */ - public WsWorkunitsStub(org.apache.axis2.context.ConfigurationContext configurationContext) - throws org.apache.axis2.AxisFault { - - this(configurationContext, "http://10.1.2.70:8888/WsWorkunits?ver_=1.96"); - } - - /** Default Constructor */ - public WsWorkunitsStub() throws org.apache.axis2.AxisFault { - - this("http://10.1.2.70:8888/WsWorkunits?ver_=1.96"); - } - - /** Constructor taking the target endpoint */ - public WsWorkunitsStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { - this(null, targetEndpoint); - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetAliasAction - * @param wUQuerysetAliasAction4 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse - wUQuerysetAliasAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction - wUQuerysetAliasAction4) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[0].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetAliasAction?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQuerysetAliasAction4, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQuerysetAliasAction")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerysetAliasAction")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetAliasAction"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetAliasAction")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetAliasAction")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetStats - * @param wUGetStats6 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse wUGetStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats wUGetStats6) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[1].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetStats?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetStats6, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetStats")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetStats")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetStats"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetStats")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetStats")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryDetails - * @param wUQueryDetails8 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse - wUQueryDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails wUQueryDetails8) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[2].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQueryDetails?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQueryDetails8, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQueryDetails")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryDetails")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryDetails"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryDetails")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryDetails")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUListArchiveFiles - * @param wUListArchiveFiles10 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse - wUListArchiveFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles - wUListArchiveFiles10) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[3].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUListArchiveFiles?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUListArchiveFiles10, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUListArchiveFiles")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListArchiveFiles")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUListArchiveFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUListArchiveFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUListArchiveFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCopyQuerySet - * @param wUCopyQuerySet12 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse - wUCopyQuerySet( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet wUCopyQuerySet12) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[4].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUCopyQuerySet?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUCopyQuerySet12, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUCopyQuerySet")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCopyQuerySet")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCopyQuerySet"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCopyQuerySet")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCopyQuerySet")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUPublishWorkunit - * @param wUPublishWorkunit14 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse - wUPublishWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit - wUPublishWorkunit14) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[5].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUPublishWorkunit?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUPublishWorkunit14, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUPublishWorkunit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPublishWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUPublishWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUPublishWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUPublishWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryConfig - * @param wUQueryConfig16 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse wUQueryConfig( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig wUQueryConfig16) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[6].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQueryConfig?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQueryConfig16, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryConfig")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryConfig")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryConfig"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryConfig")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryConfig")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCompileECL - * @param wUCompileECL18 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse wUCompileECL( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL wUCompileECL18) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[7].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUCompileECL?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUCompileECL18, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCompileECL")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCompileECL")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCompileECL"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCompileECL")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCompileECL")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUProtect - * @param wUProtect20 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse wUProtect( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect wUProtect20) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[8].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUProtect?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUProtect20, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUProtect")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProtect")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProtect"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProtect")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProtect")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUListLocalFileRequired - * @param wUListLocalFileRequired22 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse - wUListLocalFileRequired( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired - wUListLocalFileRequired22) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[9].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUListLocalFileRequired?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUListLocalFileRequired22, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUListLocalFileRequired")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListLocalFileRequired")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUListLocalFileRequiredResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUListLocalFileRequired"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUListLocalFileRequired")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUListLocalFileRequired")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wURecreateQuery - * @param wURecreateQuery24 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse - wURecreateQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery wURecreateQuery24) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[10].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WURecreateQuery?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wURecreateQuery24, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wURecreateQuery")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURecreateQuery")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WURecreateQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WURecreateQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WURecreateQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCheckFeatures - * @param wUCheckFeatures26 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse - wUCheckFeatures( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures wUCheckFeatures26) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[11].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUCheckFeatures?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUCheckFeatures26, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUCheckFeatures")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCheckFeatures")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCheckFeatures"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUCheckFeatures")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUCheckFeatures")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCreateAndUpdate - * @param wUCreateAndUpdate28 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse wUCreateAndUpdate( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate wUCreateAndUpdate28) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[12].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUCreateAndUpdate?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUCreateAndUpdate28, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUCreateAndUpdate")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateAndUpdate")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreateAndUpdate"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUCreateAndUpdate")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUCreateAndUpdate")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGraphInfo - * @param wUGraphInfo30 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse wUGraphInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo wUGraphInfo30) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[13].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGraphInfo?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGraphInfo30, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGraphInfo")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphInfo")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetGraphNameAndTypes - * @param wUGetGraphNameAndTypes32 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse - wUGetGraphNameAndTypes( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes - wUGetGraphNameAndTypes32) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[14].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetGraphNameAndTypes?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetGraphNameAndTypes32, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUGetGraphNameAndTypes")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetGraphNameAndTypes")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetGraphNameAndTypes"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetGraphNameAndTypes")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetGraphNameAndTypes")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUListQueriesUsingFile - * @param wUListQueriesUsingFile34 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse - wUListQueriesUsingFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile - wUListQueriesUsingFile34) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[15].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUListQueriesUsingFile?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUListQueriesUsingFile34, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUListQueriesUsingFile")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUListQueriesUsingFile")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUListQueriesUsingFile"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUListQueriesUsingFile")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUListQueriesUsingFile")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUSyntaxCheckECL - * @param wUSyntaxCheckECL36 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse - wUSyntaxCheckECL( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL - wUSyntaxCheckECL36) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[16].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUSyntaxCheckECL?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUSyntaxCheckECL36, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUSyntaxCheckECL")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSyntaxCheckECL")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSyntaxCheckECL"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUSyntaxCheckECL")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUSyntaxCheckECL")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUDeployWorkunit - * @param wUDeployWorkunit38 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse - wUDeployWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit - wUDeployWorkunit38) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[17].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUDeployWorkunit?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUDeployWorkunit38, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUDeployWorkunit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDeployWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDeployWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUDeployWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUDeployWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCreateZAPInfo - * @param wUCreateZAPInfo40 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse - wUCreateZAPInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo wUCreateZAPInfo40) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[18].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUCreateZAPInfo?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUCreateZAPInfo40, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUCreateZAPInfo")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateZAPInfo")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreateZAPInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUCreateZAPInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUCreateZAPInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUUpdateQueryEntry - * @param wUUpdateQueryEntry42 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse - wUUpdateQueryEntry( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry - wUUpdateQueryEntry42) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[19].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUUpdateQueryEntry?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUUpdateQueryEntry42, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUUpdateQueryEntry")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUUpdateQueryEntry")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUUpdateQueryEntry"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUUpdateQueryEntry")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUUpdateQueryEntry")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResultBin - * @param wUResultBin44 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse wUResultBin( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin wUResultBin44) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[20].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUResultBin?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUResultBin44, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultBin")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultBin")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultBin"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultBin")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultBin")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUShowScheduled - * @param wUShowScheduled46 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse - wUShowScheduled( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled wUShowScheduled46) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[21].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUShowScheduled?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUShowScheduled46, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUShowScheduled")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUShowScheduled")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUShowScheduled"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUShowScheduled")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUShowScheduled")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetArchiveFile - * @param wUGetArchiveFile48 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse - wUGetArchiveFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile - wUGetArchiveFile48) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[22].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetArchiveFile?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetArchiveFile48, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUGetArchiveFile")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetArchiveFile")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetArchiveFile"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetArchiveFile")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetArchiveFile")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUFullResult - * @param wUFullResult50 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse wUFullResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult wUFullResult50) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[23].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUFullResult?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUFullResult50, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUFullResult")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUFullResult")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFullResult"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFullResult")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFullResult")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetExport - * @param wUQuerysetExport52 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse - wUQuerysetExport( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport - wUQuerysetExport52) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[24].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetExport?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQuerysetExport52, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQuerysetExport")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetExport")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysetExport"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetExport")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetExport")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wULightWeightQuery - * @param wULightWeightQuery54 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse - wULightWeightQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery - wULightWeightQuery54) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[25].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WULightWeightQuery?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wULightWeightQuery54, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wULightWeightQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WULightWeightQuery")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WULightWeightQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WULightWeightQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WULightWeightQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see - * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryDetailsLightWeight - * @param wUQueryDetailsLightWeight56 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse - wUQueryDetailsLightWeight( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight - wUQueryDetailsLightWeight56) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[26].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQueryDetailsLightWeight?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQueryDetailsLightWeight56, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQueryDetailsLightWeight")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryDetailsLightWeight")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQueryDetailsLightWeight"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQueryDetailsLightWeight")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQueryDetailsLightWeight")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetDetails - * @param wUQuerysetDetails58 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse - wUQuerysetDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails - wUQuerysetDetails58) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[27].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetDetails?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQuerysetDetails58, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQuerysetDetails")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetDetails")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysetDetails"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetDetails")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetDetails")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUSchedule - * @param wUSchedule60 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse wUSchedule( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule wUSchedule60) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[28].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUSchedule?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUSchedule60, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSchedule")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSchedule")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSchedule"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSchedule")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSchedule")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUClusterJobQueueLOG - * @param wUClusterJobQueueLOG62 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse - wUClusterJobQueueLOG( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG - wUClusterJobQueueLOG62) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[29].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUClusterJobQueueLOG?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUClusterJobQueueLOG62, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUClusterJobQueueLOG")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueLOG")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUClusterJobQueueLOG"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobQueueLOG")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobQueueLOG")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResultSummary - * @param wUResultSummary64 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse - wUResultSummary( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary wUResultSummary64) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[30].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUResultSummary?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUResultSummary64, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUResultSummary")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultSummary")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultSummary"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUResultSummary")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUResultSummary")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetPlugins - * @param wUGetPlugins66 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse wUGetPlugins( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins wUGetPlugins66) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[31].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetPlugins?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetPlugins66, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetPlugins")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetPlugins")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetPlugins"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetPlugins")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetPlugins")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuery - * @param wUQuery68 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse wUQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery wUQuery68) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[32].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQuery?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQuery68, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuery")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuery")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUAbort - * @param wUAbort70 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse wUAbort( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort wUAbort70) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[33].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUAbort?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUAbort70, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAbort")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAbort")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAbort"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAbort")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAbort")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUWaitComplete - * @param wUWaitComplete72 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse wUWaitComplete( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete wUWaitComplete72) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[34].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUWaitComplete?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUWaitComplete72, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUWaitComplete")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitComplete")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitComplete"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitComplete")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitComplete")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResultView - * @param wUResultView74 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse wUResultView( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView wUResultView74) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[35].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUResultView?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUResultView74, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultView")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultView")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultView"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultView")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultView")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUInfo - * @param wUInfo76 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse wUInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo wUInfo76) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[36].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUInfo?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUInfo76, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUInfo")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfo")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUDetailsMeta - * @param wUDetailsMeta78 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse wUDetailsMeta( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta wUDetailsMeta78) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[37].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUDetailsMeta?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUDetailsMeta78, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDetailsMeta")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetailsMeta")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetailsMeta"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetailsMeta")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetailsMeta")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUDelete - * @param wUDelete80 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse wUDelete( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete wUDelete80) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[38].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUDelete?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUDelete80, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDelete")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDelete")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDelete"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDelete")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDelete")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryGetSummaryStats - * @param wUQueryGetSummaryStats82 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse - wUQueryGetSummaryStats( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats - wUQueryGetSummaryStats82) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[39].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQueryGetSummaryStats?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQueryGetSummaryStats82, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQueryGetSummaryStats")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQueryGetSummaryStats")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQueryGetSummaryStats"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQueryGetSummaryStats")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQueryGetSummaryStats")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUClusterJobSummaryXLS - * @param wUClusterJobSummaryXLS84 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse - wUClusterJobSummaryXLS( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS - wUClusterJobSummaryXLS84) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[40].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUClusterJobSummaryXLS?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUClusterJobSummaryXLS84, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUClusterJobSummaryXLS")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobSummaryXLS")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobSummaryXLS"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobSummaryXLS")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobSummaryXLS")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCopyLogicalFiles - * @param wUCopyLogicalFiles86 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse - wUCopyLogicalFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles - wUCopyLogicalFiles86) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[41].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUCopyLogicalFiles?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUCopyLogicalFiles86, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUCopyLogicalFiles")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUCopyLogicalFiles")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCopyLogicalFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUCopyLogicalFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUCopyLogicalFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetGraph - * @param wUGetGraph88 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse wUGetGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph wUGetGraph88) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[42].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetGraph?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetGraph88, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetGraph")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetGraph")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetGraph"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetGraph")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetGraph")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetNumFileToCopy - * @param wUGetNumFileToCopy90 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse - wUGetNumFileToCopy( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy - wUGetNumFileToCopy90) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[43].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetNumFileToCopy?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetNumFileToCopy90, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUGetNumFileToCopy")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetNumFileToCopy")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetNumFileToCopy"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetNumFileToCopy")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetNumFileToCopy")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetImport - * @param wUQuerysetImport92 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse - wUQuerysetImport( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport - wUQuerysetImport92) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[44].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetImport?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQuerysetImport92, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQuerysetImport")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetImport")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysetImport"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetImport")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetImport")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUDetails - * @param wUDetails94 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse wUDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails wUDetails94) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[45].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUDetails?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUDetails94, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDetails")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetails")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetails"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetails")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetails")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCDebug - * @param wUCDebug96 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse wUCDebug( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug wUCDebug96) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[46].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUCDebug?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUCDebug96, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCDebug")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCDebug")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCDebug"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCDebug")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCDebug")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUEclDefinitionAction - * @param wUEclDefinitionAction98 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse - wUEclDefinitionAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction - wUEclDefinitionAction98) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[47].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUEclDefinitionAction?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUEclDefinitionAction98, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUEclDefinitionAction")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionAction")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUEclDefinitionAction"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUEclDefinitionAction")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUEclDefinitionAction")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUUpdate - * @param wUUpdate100 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse wUUpdate( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate wUUpdate100) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[48].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUUpdate?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUUpdate100, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUUpdate")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUUpdate")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUUpdate"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUUpdate")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUUpdate")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetDependancyTrees - * @param wUGetDependancyTrees102 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse - wUGetDependancyTrees( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees - wUGetDependancyTrees102) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[49].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetDependancyTrees?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetDependancyTrees102, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUGetDependancyTrees")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUGetDependancyTrees")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetDependancyTrees"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetDependancyTrees")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetDependancyTrees")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetThorJobList - * @param wUGetThorJobList104 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse - wUGetThorJobList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList - wUGetThorJobList104) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[50].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetThorJobList?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetThorJobList104, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUGetThorJobList")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetThorJobList")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetThorJobList"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetThorJobList")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetThorJobList")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetQueryAction - * @param wUQuerysetQueryAction106 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse - wUQuerysetQueryAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction - wUQuerysetQueryAction106) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[51].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetQueryAction?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQuerysetQueryAction106, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQuerysetQueryAction")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerysetQueryAction")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetQueryAction"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetQueryAction")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetQueryAction")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUWaitCompiled - * @param wUWaitCompiled108 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse wUWaitCompiled( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled wUWaitCompiled108) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[52].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUWaitCompiled?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUWaitCompiled108, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUWaitCompiled")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitCompiled")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitCompiled"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitCompiled")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitCompiled")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResubmit - * @param wUResubmit110 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse wUResubmit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit wUResubmit110) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[53].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUResubmit?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUResubmit110, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResubmit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResubmit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResubmit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResubmit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResubmit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGraphTiming - * @param wUGraphTiming112 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse wUGraphTiming( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming wUGraphTiming112) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[54].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGraphTiming?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGraphTiming112, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGraphTiming")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphTiming")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphTiming"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphTiming")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphTiming")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGVCGraphInfo - * @param wUGVCGraphInfo114 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse - wUGVCGraphInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo wUGVCGraphInfo114) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[55].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGVCGraphInfo?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGVCGraphInfo114, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUGVCGraphInfo")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGVCGraphInfo")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGVCGraphInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGVCGraphInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGVCGraphInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResult - * @param wUResult116 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse wUResult( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult wUResult116) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[56].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUResult?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUResult116, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResult")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResult")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResult"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResult")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResult")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysets - * @param wUQuerysets118 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse wUQuerysets( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets wUQuerysets118) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[57].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQuerysets?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQuerysets118, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysets")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysets")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysets"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysets")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysets")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#gVCAjaxGraph - * @param gVCAjaxGraph120 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse gVCAjaxGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph gVCAjaxGraph120) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[58].getName()); - _operationClient.getOptions().setAction("WsWorkunits/GVCAjaxGraph?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - gVCAjaxGraph120, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "gVCAjaxGraph")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GVCAjaxGraph")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GVCAjaxGraph"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GVCAjaxGraph")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GVCAjaxGraph")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUProcessGraph - * @param wUProcessGraph122 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse - wUProcessGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph wUProcessGraph122) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[59].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUProcessGraph?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUProcessGraph122, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUProcessGraph")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProcessGraph")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProcessGraph"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProcessGraph")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProcessGraph")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUExport - * @param wUExport124 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse wUExport( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport wUExport124) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[60].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUExport?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUExport124, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUExport")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUExport")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUExport"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUExport")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUExport")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#ping - * @param ping126 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse ping( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping ping126) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[61].getName()); - _operationClient.getOptions().setAction("WsWorkunits/Ping?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - ping126, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ping")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Ping")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUInfoDetails - * @param wUInfoDetails128 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse wUInfoDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails wUInfoDetails128) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[62].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUInfoDetails?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUInfoDetails128, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUInfoDetails")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfoDetails")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfoDetails"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfoDetails")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfoDetails")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUJobList - * @param wUJobList130 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse wUJobList( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList wUJobList130) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[63].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUJobList?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUJobList130, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUJobList")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUJobList")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUJobList"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUJobList")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUJobList")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCreate - * @param wUCreate132 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse wUCreate( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate wUCreate132) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[64].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUCreate?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUCreate132, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCreate")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreate")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreate"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreate")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreate")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUAnalyseHotspot - * @param wUAnalyseHotspot134 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse - wUAnalyseHotspot( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot - wUAnalyseHotspot134) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[65].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUAnalyseHotspot?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUAnalyseHotspot134, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUAnalyseHotspot")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAnalyseHotspot")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAnalyseHotspot"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUAnalyseHotspot")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUAnalyseHotspot")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUAction - * @param wUAction136 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse wUAction( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction wUAction136) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[66].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUAction?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUAction136, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAction")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAction")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAction"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAction")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAction")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUListQueries - * @param wUListQueries138 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse wUListQueries( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries wUListQueries138) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[67].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUListQueries?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUListQueries138, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListQueries")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUListQueries")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUListQueries"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUListQueries")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUListQueries")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryFiles - * @param wUQueryFiles140 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse wUQueryFiles( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles wUQueryFiles140) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[68].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQueryFiles?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQueryFiles140, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryFiles")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryFiles")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryFiles"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryFiles")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryFiles")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryGetGraph - * @param wUQueryGetGraph142 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse - wUQueryGetGraph( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph wUQueryGetGraph142) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[69].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQueryGetGraph?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQueryGetGraph142, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQueryGetGraph")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryGetGraph")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryGetGraph"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQueryGetGraph")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQueryGetGraph")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUClusterJobXLS - * @param wUClusterJobXLS144 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse - wUClusterJobXLS( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS wUClusterJobXLS144) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[70].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUClusterJobXLS?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUClusterJobXLS144, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUClusterJobXLS")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUClusterJobXLS")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUClusterJobXLS"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobXLS")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobXLS")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetThorJobQueue - * @param wUGetThorJobQueue146 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse - wUGetThorJobQueue( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue - wUGetThorJobQueue146) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[71].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetThorJobQueue?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetThorJobQueue146, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUGetThorJobQueue")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetThorJobQueue")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetThorJobQueue"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetThorJobQueue")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUGetThorJobQueue")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wURun - * @param wURun148 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse wURun( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun wURun148) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[72].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WURun?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wURun148, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wURun")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURun")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WURun"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WURun")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WURun")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUFile - * @param wUFile150 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse wUFile( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile wUFile150) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[73].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUFile?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUFile150, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUFile")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUFile")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFile"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFile")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFile")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetCopyQuery - * @param wUQuerysetCopyQuery152 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse - wUQuerysetCopyQuery( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery - wUQuerysetCopyQuery152) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[74].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetCopyQuery?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUQuerysetCopyQuery152, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUQuerysetCopyQuery")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUQuerysetCopyQuery")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysetCopyQuery"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetCopyQuery")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUQuerysetCopyQuery")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetZAPInfo - * @param wUGetZAPInfo154 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse wUGetZAPInfo( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo wUGetZAPInfo154) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[75].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUGetZAPInfo?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUGetZAPInfo154, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetZAPInfo")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetZAPInfo")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetZAPInfo"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetZAPInfo")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetZAPInfo")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUClusterJobQueueXLS - * @param wUClusterJobQueueXLS156 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse - wUClusterJobQueueXLS( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS - wUClusterJobQueueXLS156) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[76].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUClusterJobQueueXLS?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUClusterJobQueueXLS156, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUClusterJobQueueXLS")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueXLS")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUClusterJobQueueXLS"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobQueueXLS")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUClusterJobQueueXLS")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUMultiQuerysetDetails - * @param wUMultiQuerysetDetails158 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse - wUMultiQuerysetDetails( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails - wUMultiQuerysetDetails158) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[77].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUMultiQuerysetDetails?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUMultiQuerysetDetails158, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUMultiQuerysetDetails")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUMultiQuerysetDetails")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse - .class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUMultiQuerysetDetails"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUMultiQuerysetDetails")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUMultiQuerysetDetails")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see - * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUAddLocalFileToWorkunit - * @param wUAddLocalFileToWorkunit160 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse - wUAddLocalFileToWorkunit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit - wUAddLocalFileToWorkunit160) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[78].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUAddLocalFileToWorkunit?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUAddLocalFileToWorkunit160, - optimizeContent( - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "wUAddLocalFileToWorkunit")), - new javax.xml.namespace.QName( - "urn:hpccsystems:ws:wsworkunits", "WUAddLocalFileToWorkunit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUAddLocalFileToWorkunitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest - .WUAddLocalFileToWorkunitResponse) - object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUAddLocalFileToWorkunit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUAddLocalFileToWorkunit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey( - faultElt.getQName(), "WUAddLocalFileToWorkunit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUPushEvent - * @param wUPushEvent162 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse wUPushEvent( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent wUPushEvent162) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[79].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUPushEvent?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUPushEvent162, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUPushEvent")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPushEvent")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUPushEvent"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUPushEvent")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUPushEvent")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - /** - * Auto generated method signature - * - * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUSubmit - * @param wUSubmit164 - * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : - */ - public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse wUSubmit( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit wUSubmit164) - throws java.rmi.RemoteException, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { - org.apache.axis2.context.MessageContext _messageContext = - new org.apache.axis2.context.MessageContext(); - try { - org.apache.axis2.client.OperationClient _operationClient = - _serviceClient.createClient(_operations[80].getName()); - _operationClient.getOptions().setAction("WsWorkunits/WUSubmit?ver_=1.96"); - _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); - - addPropertyToOperationClient( - _operationClient, - org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, - "&"); - - // create SOAP envelope with that payload - org.apache.axiom.soap.SOAPEnvelope env = null; - - env = - toEnvelope( - getFactory(_operationClient.getOptions().getSoapVersionURI()), - wUSubmit164, - optimizeContent( - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSubmit")), - new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSubmit")); - - // adding SOAP soap_headers - _serviceClient.addHeadersToEnvelope(env); - // set the message context with that soap envelope - _messageContext.setEnvelope(env); - - // add the message contxt to the operation client - _operationClient.addMessageContext(_messageContext); - - // execute the operation client - _operationClient.execute(true); - - org.apache.axis2.context.MessageContext _returnMessageContext = - _operationClient.getMessageContext( - org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); - org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); - _returnEnv.buildWithAttachments(); - - java.lang.Object object = - fromOM( - _returnEnv.getBody().getFirstElement(), - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse.class); - org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); - - return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse) object; - - } catch (org.apache.axis2.AxisFault f) { - - org.apache.axiom.om.OMElement faultElt = f.getDetail(); - if (faultElt != null) { - if (faultExceptionNameMap.containsKey( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSubmit"))) { - // make the fault by reflection - try { - java.lang.String exceptionClassName = - faultExceptionClassNameMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSubmit")); - java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); - java.lang.reflect.Constructor constructor = - exceptionClass.getConstructor(java.lang.String.class); - java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); - // message class - java.lang.String messageClassName = - faultMessageMap.get( - new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSubmit")); - java.lang.Class messageClass = java.lang.Class.forName(messageClassName); - java.lang.Object messageObject = fromOM(faultElt, messageClass); - java.lang.reflect.Method m = - exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); - m.invoke(ex, new java.lang.Object[] {messageObject}); - - if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { - throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; - } - - throw new java.rmi.RemoteException(ex.getMessage(), ex); - } catch (java.lang.ClassCastException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.ClassNotFoundException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.NoSuchMethodException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.reflect.InvocationTargetException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.IllegalAccessException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } catch (java.lang.InstantiationException e) { - // we cannot intantiate the class - throw the original Axis fault - throw f; - } - } else { - throw f; - } - } else { - throw f; - } - } finally { - if (_messageContext.getTransportOut() != null) { - _messageContext.getTransportOut().getSender().cleanup(_messageContext); - } - } - } - - private javax.xml.namespace.QName[] opNameArray = null; - - private boolean optimizeContent(javax.xml.namespace.QName opName) { - - if (opNameArray == null) { - return false; - } - for (int i = 0; i < opNameArray.length; i++) { - if (opName.equals(opNameArray[i])) { - return true; - } - } - return false; - } - // http://10.1.2.70:8888/WsWorkunits?ver_=1.96 - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile param, boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse - .MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.om.OMElement toOM( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse param, - boolean optimizeContent) - throws org.apache.axis2.AxisFault { - - try { - return param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse.MY_QNAME, - org.apache.axiom.om.OMAbstractFactory.getOMFactory()); - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile.MY_QNAME, factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit - .MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - private org.apache.axiom.soap.SOAPEnvelope toEnvelope( - org.apache.axiom.soap.SOAPFactory factory, - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit param, - boolean optimizeContent, - javax.xml.namespace.QName elementQName) - throws org.apache.axis2.AxisFault { - - try { - - org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); - emptyEnvelope - .getBody() - .addChild( - param.getOMElement( - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit.MY_QNAME, - factory)); - return emptyEnvelope; - } catch (org.apache.axis2.databinding.ADBException e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - } - - /* methods to provide back word compatibility */ - - /** get the default envelope */ - private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { - return factory.getDefaultEnvelope(); - } - - private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) - throws org.apache.axis2.AxisFault { - - try { - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse - .class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse - .class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse - .class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse - .class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse - .class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse - .class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse - .class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse.Factory - .parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate.class.equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate.Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse.class - .equals(type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse - .Factory.parse(reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete.Factory.parse( - reader); - reader.close(); - return result; - } - - if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.class.equals( - type)) { - - javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); - java.lang.Object result = - org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.Factory.parse( - reader); - reader.close(); - return result; - } - - } catch (java.lang.Exception e) { - throw org.apache.axis2.AxisFault.makeFault(e); - } - return null; - } -} +/** + * WsWorkunitsStub.java + * + *

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, + * 2022 (03:46:59 EDT) + */ +package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; + +/* + * WsWorkunitsStub java implementation + */ + +public class WsWorkunitsStub extends org.apache.axis2.client.Stub implements WsWorkunits { + protected org.apache.axis2.description.AxisOperation[] _operations; + + // hashmaps to keep the fault mapping + private java.util.Map + faultExceptionNameMap = + new java.util.HashMap(); + private java.util.Map + faultExceptionClassNameMap = + new java.util.HashMap(); + private java.util.Map faultMessageMap = + new java.util.HashMap(); + + private static int counter = 0; + + private static synchronized java.lang.String getUniqueSuffix() { + // reset the counter if it is greater than 99999 + if (counter > 99999) { + counter = 0; + } + counter = counter + 1; + return java.lang.Long.toString(java.lang.System.currentTimeMillis()) + "_" + counter; + } + + private void populateAxisService() throws org.apache.axis2.AxisFault { + + // creating the Service with a unique name + _service = new org.apache.axis2.description.AxisService("WsWorkunits" + getUniqueSuffix()); + addAnonymousOperations(); + + // creating the operations + org.apache.axis2.description.AxisOperation __operation; + + _operations = new org.apache.axis2.description.AxisOperation[81]; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetAliasAction")); + _service.addOperation(__operation); + + _operations[0] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetStats")); + _service.addOperation(__operation); + + _operations[1] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryDetails")); + _service.addOperation(__operation); + + _operations[2] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListArchiveFiles")); + _service.addOperation(__operation); + + _operations[3] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCopyQuerySet")); + _service.addOperation(__operation); + + _operations[4] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUPublishWorkunit")); + _service.addOperation(__operation); + + _operations[5] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryConfig")); + _service.addOperation(__operation); + + _operations[6] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCompileECL")); + _service.addOperation(__operation); + + _operations[7] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUProtect")); + _service.addOperation(__operation); + + _operations[8] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListLocalFileRequired")); + _service.addOperation(__operation); + + _operations[9] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wURecreateQuery")); + _service.addOperation(__operation); + + _operations[10] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCheckFeatures")); + _service.addOperation(__operation); + + _operations[11] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCreateAndUpdate")); + _service.addOperation(__operation); + + _operations[12] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGraphInfo")); + _service.addOperation(__operation); + + _operations[13] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetGraphNameAndTypes")); + _service.addOperation(__operation); + + _operations[14] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListQueriesUsingFile")); + _service.addOperation(__operation); + + _operations[15] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSyntaxCheckECL")); + _service.addOperation(__operation); + + _operations[16] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDeployWorkunit")); + _service.addOperation(__operation); + + _operations[17] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCreateZAPInfo")); + _service.addOperation(__operation); + + _operations[18] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUUpdateQueryEntry")); + _service.addOperation(__operation); + + _operations[19] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultBin")); + _service.addOperation(__operation); + + _operations[20] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUShowScheduled")); + _service.addOperation(__operation); + + _operations[21] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetArchiveFile")); + _service.addOperation(__operation); + + _operations[22] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUFullResult")); + _service.addOperation(__operation); + + _operations[23] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetExport")); + _service.addOperation(__operation); + + _operations[24] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wULightWeightQuery")); + _service.addOperation(__operation); + + _operations[25] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQueryDetailsLightWeight")); + _service.addOperation(__operation); + + _operations[26] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetDetails")); + _service.addOperation(__operation); + + _operations[27] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSchedule")); + _service.addOperation(__operation); + + _operations[28] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUClusterJobQueueLOG")); + _service.addOperation(__operation); + + _operations[29] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultSummary")); + _service.addOperation(__operation); + + _operations[30] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetPlugins")); + _service.addOperation(__operation); + + _operations[31] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuery")); + _service.addOperation(__operation); + + _operations[32] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAbort")); + _service.addOperation(__operation); + + _operations[33] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUWaitComplete")); + _service.addOperation(__operation); + + _operations[34] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultView")); + _service.addOperation(__operation); + + _operations[35] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUInfo")); + _service.addOperation(__operation); + + _operations[36] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDetailsMeta")); + _service.addOperation(__operation); + + _operations[37] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDelete")); + _service.addOperation(__operation); + + _operations[38] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryGetSummaryStats")); + _service.addOperation(__operation); + + _operations[39] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUClusterJobSummaryXLS")); + _service.addOperation(__operation); + + _operations[40] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCopyLogicalFiles")); + _service.addOperation(__operation); + + _operations[41] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetGraph")); + _service.addOperation(__operation); + + _operations[42] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetNumFileToCopy")); + _service.addOperation(__operation); + + _operations[43] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetImport")); + _service.addOperation(__operation); + + _operations[44] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDetails")); + _service.addOperation(__operation); + + _operations[45] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCDebug")); + _service.addOperation(__operation); + + _operations[46] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUEclDefinitionAction")); + _service.addOperation(__operation); + + _operations[47] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUUpdate")); + _service.addOperation(__operation); + + _operations[48] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetDependancyTrees")); + _service.addOperation(__operation); + + _operations[49] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetThorJobList")); + _service.addOperation(__operation); + + _operations[50] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetQueryAction")); + _service.addOperation(__operation); + + _operations[51] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUWaitCompiled")); + _service.addOperation(__operation); + + _operations[52] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResubmit")); + _service.addOperation(__operation); + + _operations[53] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGraphTiming")); + _service.addOperation(__operation); + + _operations[54] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGVCGraphInfo")); + _service.addOperation(__operation); + + _operations[55] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResult")); + _service.addOperation(__operation); + + _operations[56] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysets")); + _service.addOperation(__operation); + + _operations[57] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "gVCAjaxGraph")); + _service.addOperation(__operation); + + _operations[58] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUProcessGraph")); + _service.addOperation(__operation); + + _operations[59] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUExport")); + _service.addOperation(__operation); + + _operations[60] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ping")); + _service.addOperation(__operation); + + _operations[61] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUInfoDetails")); + _service.addOperation(__operation); + + _operations[62] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUJobList")); + _service.addOperation(__operation); + + _operations[63] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCreate")); + _service.addOperation(__operation); + + _operations[64] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAnalyseHotspot")); + _service.addOperation(__operation); + + _operations[65] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAction")); + _service.addOperation(__operation); + + _operations[66] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListQueries")); + _service.addOperation(__operation); + + _operations[67] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryFiles")); + _service.addOperation(__operation); + + _operations[68] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryGetGraph")); + _service.addOperation(__operation); + + _operations[69] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUClusterJobXLS")); + _service.addOperation(__operation); + + _operations[70] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetThorJobQueue")); + _service.addOperation(__operation); + + _operations[71] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wURun")); + _service.addOperation(__operation); + + _operations[72] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName(new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUFile")); + _service.addOperation(__operation); + + _operations[73] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysetCopyQuery")); + _service.addOperation(__operation); + + _operations[74] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetZAPInfo")); + _service.addOperation(__operation); + + _operations[75] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUClusterJobQueueXLS")); + _service.addOperation(__operation); + + _operations[76] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUMultiQuerysetDetails")); + _service.addOperation(__operation); + + _operations[77] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUAddLocalFileToWorkunit")); + _service.addOperation(__operation); + + _operations[78] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUPushEvent")); + _service.addOperation(__operation); + + _operations[79] = __operation; + + __operation = new org.apache.axis2.description.OutInAxisOperation(); + + __operation.setName( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSubmit")); + _service.addOperation(__operation); + + _operations[80] = __operation; + } + + // populates the faults + private void populateFaults() { + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetAliasAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetAliasAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetAliasAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetStats"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetStats"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetStats"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListArchiveFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListArchiveFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListArchiveFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCopyQuerySet"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCopyQuerySet"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCopyQuerySet"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUPublishWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUPublishWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUPublishWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryConfig"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryConfig"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryConfig"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCompileECL"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCompileECL"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCompileECL"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUProtect"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUProtect"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUProtect"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListLocalFileRequired"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListLocalFileRequired"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListLocalFileRequired"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WURecreateQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WURecreateQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WURecreateQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCheckFeatures"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCheckFeatures"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCheckFeatures"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreateAndUpdate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreateAndUpdate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreateAndUpdate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGraphInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGraphInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGraphInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetGraphNameAndTypes"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetGraphNameAndTypes"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetGraphNameAndTypes"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListQueriesUsingFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListQueriesUsingFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListQueriesUsingFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSyntaxCheckECL"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSyntaxCheckECL"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSyntaxCheckECL"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDeployWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDeployWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDeployWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreateZAPInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreateZAPInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreateZAPInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUUpdateQueryEntry"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUUpdateQueryEntry"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUUpdateQueryEntry"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultBin"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultBin"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultBin"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUShowScheduled"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUShowScheduled"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUShowScheduled"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetArchiveFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetArchiveFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetArchiveFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUFullResult"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUFullResult"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUFullResult"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetExport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetExport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetExport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WULightWeightQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WULightWeightQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WULightWeightQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryDetailsLightWeight"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryDetailsLightWeight"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryDetailsLightWeight"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSchedule"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSchedule"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSchedule"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobQueueLOG"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobQueueLOG"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobQueueLOG"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultSummary"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultSummary"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultSummary"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetPlugins"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetPlugins"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetPlugins"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAbort"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAbort"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAbort"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUWaitComplete"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUWaitComplete"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUWaitComplete"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultView"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultView"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResultView"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDetailsMeta"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDetailsMeta"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDetailsMeta"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDelete"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDelete"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDelete"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryGetSummaryStats"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryGetSummaryStats"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryGetSummaryStats"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobSummaryXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobSummaryXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobSummaryXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCopyLogicalFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCopyLogicalFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCopyLogicalFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetNumFileToCopy"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetNumFileToCopy"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetNumFileToCopy"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetImport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetImport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetImport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCDebug"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCDebug"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCDebug"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUEclDefinitionAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUEclDefinitionAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUEclDefinitionAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUUpdate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUUpdate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUUpdate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetDependancyTrees"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetDependancyTrees"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetDependancyTrees"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetThorJobList"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetThorJobList"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetThorJobList"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetQueryAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetQueryAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetQueryAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUWaitCompiled"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUWaitCompiled"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUWaitCompiled"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResubmit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResubmit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResubmit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGraphTiming"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGraphTiming"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGraphTiming"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGVCGraphInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGVCGraphInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGVCGraphInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResult"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResult"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUResult"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysets"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysets"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysets"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "GVCAjaxGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "GVCAjaxGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "GVCAjaxGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUProcessGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUProcessGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUProcessGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUExport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUExport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUExport"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "Ping"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUInfoDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUInfoDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUInfoDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUJobList"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUJobList"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUJobList"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUCreate"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAnalyseHotspot"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAnalyseHotspot"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAnalyseHotspot"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAction"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListQueries"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListQueries"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUListQueries"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryFiles"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryGetGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryGetGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQueryGetGraph"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetThorJobQueue"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetThorJobQueue"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetThorJobQueue"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "WURun"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "WURun"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), "WURun"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUFile"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetCopyQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetCopyQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUQuerysetCopyQuery"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetZAPInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetZAPInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUGetZAPInfo"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobQueueXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobQueueXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUClusterJobQueueXLS"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUMultiQuerysetDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUMultiQuerysetDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUMultiQuerysetDetails"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAddLocalFileToWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAddLocalFileToWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUAddLocalFileToWorkunit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUPushEvent"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUPushEvent"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUPushEvent"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + + faultExceptionNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSubmit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultExceptionClassNameMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSubmit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault"); + faultMessageMap.put( + new org.apache.axis2.client.FaultMapKey( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Exceptions"), + "WUSubmit"), + "org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions"); + } + + /** Constructor that takes in a configContext */ + public WsWorkunitsStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint) + throws org.apache.axis2.AxisFault { + this(configurationContext, targetEndpoint, false); + } + + /** Constructor that takes in a configContext and useseperate listner */ + public WsWorkunitsStub( + org.apache.axis2.context.ConfigurationContext configurationContext, + java.lang.String targetEndpoint, + boolean useSeparateListener) + throws org.apache.axis2.AxisFault { + // To populate AxisService + populateAxisService(); + populateFaults(); + + _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext, _service); + + _serviceClient + .getOptions() + .setTo(new org.apache.axis2.addressing.EndpointReference(targetEndpoint)); + _serviceClient.getOptions().setUseSeparateListener(useSeparateListener); + } + + /** Default Constructor */ + public WsWorkunitsStub(org.apache.axis2.context.ConfigurationContext configurationContext) + throws org.apache.axis2.AxisFault { + + this(configurationContext, "http://eclwatch-65768756c6-9sm8c:8888/WsWorkunits?ver_=1.99"); + } + + /** Default Constructor */ + public WsWorkunitsStub() throws org.apache.axis2.AxisFault { + + this("http://eclwatch-65768756c6-9sm8c:8888/WsWorkunits?ver_=1.99"); + } + + /** Constructor taking the target endpoint */ + public WsWorkunitsStub(java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault { + this(null, targetEndpoint); + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetAliasAction + * @param wUQuerysetAliasAction4 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse + wUQuerysetAliasAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction + wUQuerysetAliasAction4) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[0].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetAliasAction?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQuerysetAliasAction4, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQuerysetAliasAction")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerysetAliasAction")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetAliasAction"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetAliasAction")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetAliasAction")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetStats + * @param wUGetStats6 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse wUGetStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats wUGetStats6) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[1].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetStats?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetStats6, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetStats")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetStats")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetStats"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetStats")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetStats")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryDetails + * @param wUQueryDetails8 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse + wUQueryDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails wUQueryDetails8) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[2].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQueryDetails?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQueryDetails8, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQueryDetails")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryDetails")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryDetails"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryDetails")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryDetails")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUListArchiveFiles + * @param wUListArchiveFiles10 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse + wUListArchiveFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles + wUListArchiveFiles10) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[3].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUListArchiveFiles?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUListArchiveFiles10, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUListArchiveFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListArchiveFiles")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUListArchiveFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUListArchiveFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUListArchiveFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCopyQuerySet + * @param wUCopyQuerySet12 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse + wUCopyQuerySet( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet wUCopyQuerySet12) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[4].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUCopyQuerySet?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUCopyQuerySet12, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUCopyQuerySet")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCopyQuerySet")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCopyQuerySet"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCopyQuerySet")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCopyQuerySet")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUPublishWorkunit + * @param wUPublishWorkunit14 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse + wUPublishWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit + wUPublishWorkunit14) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[5].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUPublishWorkunit?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUPublishWorkunit14, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUPublishWorkunit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPublishWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUPublishWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUPublishWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUPublishWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryConfig + * @param wUQueryConfig16 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse wUQueryConfig( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig wUQueryConfig16) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[6].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQueryConfig?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQueryConfig16, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryConfig")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryConfig")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryConfig"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryConfig")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryConfig")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCompileECL + * @param wUCompileECL18 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse wUCompileECL( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL wUCompileECL18) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[7].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUCompileECL?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUCompileECL18, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCompileECL")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCompileECL")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCompileECL"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCompileECL")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCompileECL")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUProtect + * @param wUProtect20 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse wUProtect( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect wUProtect20) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[8].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUProtect?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUProtect20, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUProtect")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProtect")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProtect"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProtect")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProtect")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUListLocalFileRequired + * @param wUListLocalFileRequired22 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse + wUListLocalFileRequired( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired + wUListLocalFileRequired22) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[9].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUListLocalFileRequired?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUListLocalFileRequired22, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUListLocalFileRequired")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListLocalFileRequired")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUListLocalFileRequiredResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUListLocalFileRequired"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUListLocalFileRequired")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUListLocalFileRequired")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wURecreateQuery + * @param wURecreateQuery24 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse + wURecreateQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery wURecreateQuery24) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[10].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WURecreateQuery?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wURecreateQuery24, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wURecreateQuery")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURecreateQuery")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WURecreateQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WURecreateQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WURecreateQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCheckFeatures + * @param wUCheckFeatures26 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse + wUCheckFeatures( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures wUCheckFeatures26) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[11].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUCheckFeatures?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUCheckFeatures26, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUCheckFeatures")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCheckFeatures")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCheckFeatures"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUCheckFeatures")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUCheckFeatures")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCreateAndUpdate + * @param wUCreateAndUpdate28 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse wUCreateAndUpdate( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate wUCreateAndUpdate28) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[12].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUCreateAndUpdate?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUCreateAndUpdate28, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUCreateAndUpdate")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateAndUpdate")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreateAndUpdate"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUCreateAndUpdate")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUCreateAndUpdate")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGraphInfo + * @param wUGraphInfo30 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse wUGraphInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo wUGraphInfo30) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[13].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGraphInfo?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGraphInfo30, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGraphInfo")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphInfo")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetGraphNameAndTypes + * @param wUGetGraphNameAndTypes32 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse + wUGetGraphNameAndTypes( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes + wUGetGraphNameAndTypes32) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[14].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetGraphNameAndTypes?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetGraphNameAndTypes32, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUGetGraphNameAndTypes")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetGraphNameAndTypes")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetGraphNameAndTypes"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetGraphNameAndTypes")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetGraphNameAndTypes")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUListQueriesUsingFile + * @param wUListQueriesUsingFile34 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse + wUListQueriesUsingFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile + wUListQueriesUsingFile34) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[15].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUListQueriesUsingFile?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUListQueriesUsingFile34, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUListQueriesUsingFile")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUListQueriesUsingFile")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUListQueriesUsingFile"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUListQueriesUsingFile")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUListQueriesUsingFile")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUSyntaxCheckECL + * @param wUSyntaxCheckECL36 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse + wUSyntaxCheckECL( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL + wUSyntaxCheckECL36) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[16].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUSyntaxCheckECL?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUSyntaxCheckECL36, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUSyntaxCheckECL")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSyntaxCheckECL")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSyntaxCheckECL"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUSyntaxCheckECL")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUSyntaxCheckECL")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUDeployWorkunit + * @param wUDeployWorkunit38 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse + wUDeployWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit + wUDeployWorkunit38) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[17].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUDeployWorkunit?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUDeployWorkunit38, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUDeployWorkunit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDeployWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDeployWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUDeployWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUDeployWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCreateZAPInfo + * @param wUCreateZAPInfo40 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse + wUCreateZAPInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo wUCreateZAPInfo40) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[18].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUCreateZAPInfo?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUCreateZAPInfo40, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUCreateZAPInfo")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreateZAPInfo")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreateZAPInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUCreateZAPInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUCreateZAPInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUUpdateQueryEntry + * @param wUUpdateQueryEntry42 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse + wUUpdateQueryEntry( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry + wUUpdateQueryEntry42) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[19].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUUpdateQueryEntry?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUUpdateQueryEntry42, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUUpdateQueryEntry")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUUpdateQueryEntry")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUUpdateQueryEntry"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUUpdateQueryEntry")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUUpdateQueryEntry")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResultBin + * @param wUResultBin44 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse wUResultBin( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin wUResultBin44) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[20].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUResultBin?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUResultBin44, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultBin")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultBin")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultBin"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultBin")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultBin")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUShowScheduled + * @param wUShowScheduled46 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse + wUShowScheduled( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled wUShowScheduled46) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[21].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUShowScheduled?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUShowScheduled46, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUShowScheduled")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUShowScheduled")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUShowScheduled"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUShowScheduled")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUShowScheduled")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetArchiveFile + * @param wUGetArchiveFile48 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse + wUGetArchiveFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile + wUGetArchiveFile48) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[22].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetArchiveFile?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetArchiveFile48, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUGetArchiveFile")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetArchiveFile")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetArchiveFile"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetArchiveFile")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetArchiveFile")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUFullResult + * @param wUFullResult50 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse wUFullResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult wUFullResult50) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[23].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUFullResult?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUFullResult50, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUFullResult")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUFullResult")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFullResult"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFullResult")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFullResult")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetExport + * @param wUQuerysetExport52 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse + wUQuerysetExport( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport + wUQuerysetExport52) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[24].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetExport?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQuerysetExport52, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQuerysetExport")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetExport")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysetExport"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetExport")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetExport")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wULightWeightQuery + * @param wULightWeightQuery54 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse + wULightWeightQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery + wULightWeightQuery54) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[25].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WULightWeightQuery?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wULightWeightQuery54, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wULightWeightQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WULightWeightQuery")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WULightWeightQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WULightWeightQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WULightWeightQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see + * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryDetailsLightWeight + * @param wUQueryDetailsLightWeight56 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse + wUQueryDetailsLightWeight( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight + wUQueryDetailsLightWeight56) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[26].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQueryDetailsLightWeight?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQueryDetailsLightWeight56, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQueryDetailsLightWeight")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryDetailsLightWeight")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQueryDetailsLightWeight"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQueryDetailsLightWeight")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQueryDetailsLightWeight")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetDetails + * @param wUQuerysetDetails58 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse + wUQuerysetDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails + wUQuerysetDetails58) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[27].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetDetails?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQuerysetDetails58, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQuerysetDetails")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetDetails")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysetDetails"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetDetails")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetDetails")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUSchedule + * @param wUSchedule60 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse wUSchedule( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule wUSchedule60) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[28].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUSchedule?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUSchedule60, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSchedule")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSchedule")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSchedule"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSchedule")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSchedule")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUClusterJobQueueLOG + * @param wUClusterJobQueueLOG62 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse + wUClusterJobQueueLOG( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG + wUClusterJobQueueLOG62) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[29].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUClusterJobQueueLOG?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUClusterJobQueueLOG62, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUClusterJobQueueLOG")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueLOG")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUClusterJobQueueLOG"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobQueueLOG")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobQueueLOG")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResultSummary + * @param wUResultSummary64 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse + wUResultSummary( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary wUResultSummary64) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[30].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUResultSummary?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUResultSummary64, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUResultSummary")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultSummary")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultSummary"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUResultSummary")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUResultSummary")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetPlugins + * @param wUGetPlugins66 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse wUGetPlugins( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins wUGetPlugins66) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[31].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetPlugins?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetPlugins66, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetPlugins")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetPlugins")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetPlugins"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetPlugins")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetPlugins")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuery + * @param wUQuery68 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse wUQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery wUQuery68) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[32].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQuery?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQuery68, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuery")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuery")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUAbort + * @param wUAbort70 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse wUAbort( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort wUAbort70) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[33].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUAbort?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUAbort70, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAbort")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAbort")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAbort"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAbort")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAbort")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUWaitComplete + * @param wUWaitComplete72 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse wUWaitComplete( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete wUWaitComplete72) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[34].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUWaitComplete?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUWaitComplete72, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUWaitComplete")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitComplete")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitComplete"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitComplete")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitComplete")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResultView + * @param wUResultView74 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse wUResultView( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView wUResultView74) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[35].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUResultView?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUResultView74, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResultView")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResultView")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultView"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultView")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResultView")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUInfo + * @param wUInfo76 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse wUInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo wUInfo76) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[36].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUInfo?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUInfo76, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUInfo")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfo")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUDetailsMeta + * @param wUDetailsMeta78 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse wUDetailsMeta( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta wUDetailsMeta78) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[37].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUDetailsMeta?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUDetailsMeta78, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDetailsMeta")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetailsMeta")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetailsMeta"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetailsMeta")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetailsMeta")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUDelete + * @param wUDelete80 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse wUDelete( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete wUDelete80) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[38].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUDelete?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUDelete80, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDelete")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDelete")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDelete"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDelete")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDelete")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryGetSummaryStats + * @param wUQueryGetSummaryStats82 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse + wUQueryGetSummaryStats( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats + wUQueryGetSummaryStats82) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[39].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQueryGetSummaryStats?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQueryGetSummaryStats82, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQueryGetSummaryStats")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQueryGetSummaryStats")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQueryGetSummaryStats"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQueryGetSummaryStats")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQueryGetSummaryStats")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUClusterJobSummaryXLS + * @param wUClusterJobSummaryXLS84 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse + wUClusterJobSummaryXLS( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS + wUClusterJobSummaryXLS84) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[40].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUClusterJobSummaryXLS?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUClusterJobSummaryXLS84, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUClusterJobSummaryXLS")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobSummaryXLS")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobSummaryXLS"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobSummaryXLS")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobSummaryXLS")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCopyLogicalFiles + * @param wUCopyLogicalFiles86 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse + wUCopyLogicalFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles + wUCopyLogicalFiles86) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[41].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUCopyLogicalFiles?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUCopyLogicalFiles86, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUCopyLogicalFiles")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUCopyLogicalFiles")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCopyLogicalFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUCopyLogicalFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUCopyLogicalFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetGraph + * @param wUGetGraph88 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse wUGetGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph wUGetGraph88) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[42].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetGraph?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetGraph88, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetGraph")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetGraph")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetGraph"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetGraph")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetGraph")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetNumFileToCopy + * @param wUGetNumFileToCopy90 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse + wUGetNumFileToCopy( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy + wUGetNumFileToCopy90) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[43].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetNumFileToCopy?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetNumFileToCopy90, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUGetNumFileToCopy")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetNumFileToCopy")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetNumFileToCopy"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetNumFileToCopy")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetNumFileToCopy")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetImport + * @param wUQuerysetImport92 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse + wUQuerysetImport( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport + wUQuerysetImport92) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[44].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetImport?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQuerysetImport92, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQuerysetImport")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysetImport")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysetImport"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetImport")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetImport")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUDetails + * @param wUDetails94 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse wUDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails wUDetails94) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[45].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUDetails?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUDetails94, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUDetails")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUDetails")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetails"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetails")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUDetails")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCDebug + * @param wUCDebug96 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse wUCDebug( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug wUCDebug96) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[46].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUCDebug?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUCDebug96, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCDebug")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCDebug")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCDebug"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCDebug")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCDebug")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUEclDefinitionAction + * @param wUEclDefinitionAction98 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse + wUEclDefinitionAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction + wUEclDefinitionAction98) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[47].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUEclDefinitionAction?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUEclDefinitionAction98, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUEclDefinitionAction")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUEclDefinitionAction")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUEclDefinitionAction"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUEclDefinitionAction")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUEclDefinitionAction")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUUpdate + * @param wUUpdate100 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse wUUpdate( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate wUUpdate100) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[48].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUUpdate?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUUpdate100, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUUpdate")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUUpdate")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUUpdate"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUUpdate")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUUpdate")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetDependancyTrees + * @param wUGetDependancyTrees102 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse + wUGetDependancyTrees( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees + wUGetDependancyTrees102) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[49].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetDependancyTrees?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetDependancyTrees102, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUGetDependancyTrees")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUGetDependancyTrees")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetDependancyTrees"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetDependancyTrees")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetDependancyTrees")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetThorJobList + * @param wUGetThorJobList104 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse + wUGetThorJobList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList + wUGetThorJobList104) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[50].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetThorJobList?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetThorJobList104, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUGetThorJobList")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetThorJobList")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetThorJobList"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetThorJobList")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetThorJobList")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetQueryAction + * @param wUQuerysetQueryAction106 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse + wUQuerysetQueryAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction + wUQuerysetQueryAction106) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[51].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetQueryAction?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQuerysetQueryAction106, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQuerysetQueryAction")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerysetQueryAction")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetQueryAction"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetQueryAction")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetQueryAction")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUWaitCompiled + * @param wUWaitCompiled108 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse wUWaitCompiled( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled wUWaitCompiled108) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[52].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUWaitCompiled?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUWaitCompiled108, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUWaitCompiled")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUWaitCompiled")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitCompiled"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitCompiled")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUWaitCompiled")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResubmit + * @param wUResubmit110 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse wUResubmit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit wUResubmit110) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[53].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUResubmit?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUResubmit110, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResubmit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResubmit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResubmit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResubmit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResubmit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGraphTiming + * @param wUGraphTiming112 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse wUGraphTiming( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming wUGraphTiming112) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[54].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGraphTiming?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGraphTiming112, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGraphTiming")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGraphTiming")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphTiming"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphTiming")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGraphTiming")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGVCGraphInfo + * @param wUGVCGraphInfo114 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse + wUGVCGraphInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo wUGVCGraphInfo114) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[55].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGVCGraphInfo?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGVCGraphInfo114, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUGVCGraphInfo")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGVCGraphInfo")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGVCGraphInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGVCGraphInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGVCGraphInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUResult + * @param wUResult116 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse wUResult( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult wUResult116) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[56].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUResult?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUResult116, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUResult")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUResult")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResult"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResult")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUResult")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysets + * @param wUQuerysets118 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse wUQuerysets( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets wUQuerysets118) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[57].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQuerysets?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQuerysets118, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQuerysets")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQuerysets")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysets"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysets")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysets")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#gVCAjaxGraph + * @param gVCAjaxGraph120 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse gVCAjaxGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph gVCAjaxGraph120) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[58].getName()); + _operationClient.getOptions().setAction("WsWorkunits/GVCAjaxGraph?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + gVCAjaxGraph120, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "gVCAjaxGraph")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "GVCAjaxGraph")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GVCAjaxGraph"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GVCAjaxGraph")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "GVCAjaxGraph")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUProcessGraph + * @param wUProcessGraph122 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse + wUProcessGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph wUProcessGraph122) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[59].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUProcessGraph?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUProcessGraph122, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUProcessGraph")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUProcessGraph")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProcessGraph"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProcessGraph")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUProcessGraph")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUExport + * @param wUExport124 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse wUExport( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport wUExport124) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[60].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUExport?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUExport124, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUExport")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUExport")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUExport"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUExport")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUExport")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#ping + * @param ping126 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse ping( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping ping126) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[61].getName()); + _operationClient.getOptions().setAction("WsWorkunits/Ping?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + ping126, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ping")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Ping")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "Ping")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUInfoDetails + * @param wUInfoDetails128 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse wUInfoDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails wUInfoDetails128) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[62].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUInfoDetails?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUInfoDetails128, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUInfoDetails")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUInfoDetails")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfoDetails"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfoDetails")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUInfoDetails")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUJobList + * @param wUJobList130 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse wUJobList( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList wUJobList130) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[63].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUJobList?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUJobList130, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUJobList")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUJobList")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUJobList"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUJobList")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUJobList")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUCreate + * @param wUCreate132 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse wUCreate( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate wUCreate132) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[64].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUCreate?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUCreate132, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUCreate")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUCreate")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreate"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreate")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUCreate")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUAnalyseHotspot + * @param wUAnalyseHotspot134 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse + wUAnalyseHotspot( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot + wUAnalyseHotspot134) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[65].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUAnalyseHotspot?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUAnalyseHotspot134, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUAnalyseHotspot")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAnalyseHotspot")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAnalyseHotspot"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUAnalyseHotspot")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUAnalyseHotspot")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUAction + * @param wUAction136 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse wUAction( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction wUAction136) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[66].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUAction?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUAction136, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUAction")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUAction")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAction"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAction")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUAction")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUListQueries + * @param wUListQueries138 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse wUListQueries( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries wUListQueries138) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[67].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUListQueries?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUListQueries138, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUListQueries")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUListQueries")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUListQueries"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUListQueries")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUListQueries")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryFiles + * @param wUQueryFiles140 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse wUQueryFiles( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles wUQueryFiles140) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[68].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQueryFiles?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQueryFiles140, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUQueryFiles")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryFiles")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryFiles"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryFiles")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryFiles")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQueryGetGraph + * @param wUQueryGetGraph142 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse + wUQueryGetGraph( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph wUQueryGetGraph142) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[69].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQueryGetGraph?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQueryGetGraph142, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQueryGetGraph")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUQueryGetGraph")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQueryGetGraph"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQueryGetGraph")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQueryGetGraph")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUClusterJobXLS + * @param wUClusterJobXLS144 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse + wUClusterJobXLS( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS wUClusterJobXLS144) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[70].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUClusterJobXLS?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUClusterJobXLS144, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUClusterJobXLS")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUClusterJobXLS")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUClusterJobXLS"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobXLS")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobXLS")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetThorJobQueue + * @param wUGetThorJobQueue146 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse + wUGetThorJobQueue( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue + wUGetThorJobQueue146) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[71].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetThorJobQueue?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetThorJobQueue146, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUGetThorJobQueue")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetThorJobQueue")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetThorJobQueue"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetThorJobQueue")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUGetThorJobQueue")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wURun + * @param wURun148 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse wURun( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun wURun148) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[72].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WURun?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wURun148, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wURun")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WURun")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WURun"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WURun")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WURun")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUFile + * @param wUFile150 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse wUFile( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile wUFile150) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[73].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUFile?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUFile150, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUFile")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUFile")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFile"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFile")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUFile")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUQuerysetCopyQuery + * @param wUQuerysetCopyQuery152 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse + wUQuerysetCopyQuery( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery + wUQuerysetCopyQuery152) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[74].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUQuerysetCopyQuery?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUQuerysetCopyQuery152, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUQuerysetCopyQuery")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUQuerysetCopyQuery")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUQuerysetCopyQuery"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetCopyQuery")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUQuerysetCopyQuery")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUGetZAPInfo + * @param wUGetZAPInfo154 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse wUGetZAPInfo( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo wUGetZAPInfo154) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[75].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUGetZAPInfo?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUGetZAPInfo154, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUGetZAPInfo")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUGetZAPInfo")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetZAPInfo"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetZAPInfo")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUGetZAPInfo")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUClusterJobQueueXLS + * @param wUClusterJobQueueXLS156 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse + wUClusterJobQueueXLS( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS + wUClusterJobQueueXLS156) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[76].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUClusterJobQueueXLS?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUClusterJobQueueXLS156, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUClusterJobQueueXLS")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUClusterJobQueueXLS")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUClusterJobQueueXLS"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobQueueXLS")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUClusterJobQueueXLS")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUMultiQuerysetDetails + * @param wUMultiQuerysetDetails158 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse + wUMultiQuerysetDetails( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails + wUMultiQuerysetDetails158) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[77].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUMultiQuerysetDetails?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUMultiQuerysetDetails158, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUMultiQuerysetDetails")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUMultiQuerysetDetails")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse + .class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUMultiQuerysetDetails"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUMultiQuerysetDetails")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUMultiQuerysetDetails")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see + * org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUAddLocalFileToWorkunit + * @param wUAddLocalFileToWorkunit160 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse + wUAddLocalFileToWorkunit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit + wUAddLocalFileToWorkunit160) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[78].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUAddLocalFileToWorkunit?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUAddLocalFileToWorkunit160, + optimizeContent( + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "wUAddLocalFileToWorkunit")), + new javax.xml.namespace.QName( + "urn:hpccsystems:ws:wsworkunits", "WUAddLocalFileToWorkunit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUAddLocalFileToWorkunitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest + .WUAddLocalFileToWorkunitResponse) + object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUAddLocalFileToWorkunit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUAddLocalFileToWorkunit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey( + faultElt.getQName(), "WUAddLocalFileToWorkunit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUPushEvent + * @param wUPushEvent162 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse wUPushEvent( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent wUPushEvent162) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[79].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUPushEvent?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUPushEvent162, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUPushEvent")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUPushEvent")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUPushEvent"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUPushEvent")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUPushEvent")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + /** + * Auto generated method signature + * + * @see org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunits#wUSubmit + * @param wUSubmit164 + * @throws org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault : + */ + public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse wUSubmit( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit wUSubmit164) + throws java.rmi.RemoteException, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault { + org.apache.axis2.context.MessageContext _messageContext = + new org.apache.axis2.context.MessageContext(); + try { + org.apache.axis2.client.OperationClient _operationClient = + _serviceClient.createClient(_operations[80].getName()); + _operationClient.getOptions().setAction("WsWorkunits/WUSubmit?ver_=1.99"); + _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true); + + addPropertyToOperationClient( + _operationClient, + org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, + "&"); + + // create SOAP envelope with that payload + org.apache.axiom.soap.SOAPEnvelope env = null; + + env = + toEnvelope( + getFactory(_operationClient.getOptions().getSoapVersionURI()), + wUSubmit164, + optimizeContent( + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "wUSubmit")), + new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WUSubmit")); + + // adding SOAP soap_headers + _serviceClient.addHeadersToEnvelope(env); + // set the message context with that soap envelope + _messageContext.setEnvelope(env); + + // add the message contxt to the operation client + _operationClient.addMessageContext(_messageContext); + + // execute the operation client + _operationClient.execute(true); + + org.apache.axis2.context.MessageContext _returnMessageContext = + _operationClient.getMessageContext( + org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE); + org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope(); + _returnEnv.buildWithAttachments(); + + java.lang.Object object = + fromOM( + _returnEnv.getBody().getFirstElement(), + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse.class); + org.apache.axis2.kernel.TransportUtils.detachInputStream(_returnMessageContext); + + return (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse) object; + + } catch (org.apache.axis2.AxisFault f) { + + org.apache.axiom.om.OMElement faultElt = f.getDetail(); + if (faultElt != null) { + if (faultExceptionNameMap.containsKey( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSubmit"))) { + // make the fault by reflection + try { + java.lang.String exceptionClassName = + faultExceptionClassNameMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSubmit")); + java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName); + java.lang.reflect.Constructor constructor = + exceptionClass.getConstructor(java.lang.String.class); + java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage()); + // message class + java.lang.String messageClassName = + faultMessageMap.get( + new org.apache.axis2.client.FaultMapKey(faultElt.getQName(), "WUSubmit")); + java.lang.Class messageClass = java.lang.Class.forName(messageClassName); + java.lang.Object messageObject = fromOM(faultElt, messageClass); + java.lang.reflect.Method m = + exceptionClass.getMethod("setFaultMessage", new java.lang.Class[] {messageClass}); + m.invoke(ex, new java.lang.Object[] {messageObject}); + + if (ex instanceof org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) { + throw (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.EspSoapFault) ex; + } + + throw new java.rmi.RemoteException(ex.getMessage(), ex); + } catch (java.lang.ClassCastException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.ClassNotFoundException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.NoSuchMethodException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.reflect.InvocationTargetException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.IllegalAccessException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } catch (java.lang.InstantiationException e) { + // we cannot intantiate the class - throw the original Axis fault + throw f; + } + } else { + throw f; + } + } else { + throw f; + } + } finally { + if (_messageContext.getTransportOut() != null) { + _messageContext.getTransportOut().getSender().cleanup(_messageContext); + } + } + } + + private javax.xml.namespace.QName[] opNameArray = null; + + private boolean optimizeContent(javax.xml.namespace.QName opName) { + + if (opNameArray == null) { + return false; + } + for (int i = 0; i < opNameArray.length; i++) { + if (opName.equals(opNameArray[i])) { + return true; + } + } + return false; + } + // http://eclwatch-65768756c6-9sm8c:8888/WsWorkunits?ver_=1.99 + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile param, boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse + .MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.om.OMElement toOM( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse param, + boolean optimizeContent) + throws org.apache.axis2.AxisFault { + + try { + return param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse.MY_QNAME, + org.apache.axiom.om.OMAbstractFactory.getOMFactory()); + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile.MY_QNAME, factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit + .MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + private org.apache.axiom.soap.SOAPEnvelope toEnvelope( + org.apache.axiom.soap.SOAPFactory factory, + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit param, + boolean optimizeContent, + javax.xml.namespace.QName elementQName) + throws org.apache.axis2.AxisFault { + + try { + + org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope(); + emptyEnvelope + .getBody() + .addChild( + param.getOMElement( + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit.MY_QNAME, + factory)); + return emptyEnvelope; + } catch (org.apache.axis2.databinding.ADBException e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + } + + /* methods to provide back word compatibility */ + + /** get the default envelope */ + private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory) { + return factory.getDefaultEnvelope(); + } + + private java.lang.Object fromOM(org.apache.axiom.om.OMElement param, java.lang.Class type) + throws org.apache.axis2.AxisFault { + + try { + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Exceptions.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraph.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.GVCAjaxGraphResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.Ping.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WsWorkunitsPingResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbort.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAbortResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAction.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUActionResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunit.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse + .class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAddLocalFileToWorkunitResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspot.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUAnalyseHotspotResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCDebug.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeatures.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCheckFeaturesResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOG.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueLOGResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLS.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobQueueXLSResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLS.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse + .class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobSummaryXLSResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLS.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUClusterJobXLSResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECL.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCompileECLResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFiles.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyLogicalFilesResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySet.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCopyQuerySetResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreate.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateAndUpdate.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfo.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUCreateZAPInfoResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDebugResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDelete.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeleteResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunit.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDeployWorkunitResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetails.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMeta.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsMetaResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUDetailsResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionAction.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUEclDefinitionActionResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExport.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUExportResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFile.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResult.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUFullResultResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFile.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetArchiveFileResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTrees.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetDependancyTreesResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraph.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypes.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse + .class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphNameAndTypesResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetGraphResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopy.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetNumFileToCopyResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPlugins.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetPluginsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStats.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetStatsResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobList.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobListResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueue.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetThorJobQueueResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfo.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGetZAPInfoResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfo.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphInfoResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTiming.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGraphTimingResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfo.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUGVCGraphInfoResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfo.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoDetails.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUInfoResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobList.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUJobListResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQuery.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULightWeightQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFiles.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListArchiveFilesResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequired.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse + .class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListLocalFileRequiredResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueries.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFile.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse + .class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUListQueriesUsingFileResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WULogFileResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerysetDetails.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse + .class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUMultiQuerySetDetailsResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraph.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProcessGraphResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtect.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUProtectResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunit.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPublishWorkunitResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEvent.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPushEventResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuery.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfig.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryConfigResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetails.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsLightWeight.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryDetailsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFiles.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryFilesResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraph.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetGraphResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStats.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse + .class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryGetSummaryStatsResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQueryResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetAliasAction.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetAliasActionResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetCopyQuery.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetCopyQueryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetDetails.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetDetailsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExport.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetExportResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImport.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetImportResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetQueryAction.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerySetQueryActionResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysets.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUQuerysetsResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQuery.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURecreateQueryResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmit.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResubmitResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResult.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBin.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultBinResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummary.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultSummaryResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultView.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUResultViewResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURun.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WURunResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSchedule.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUScheduleResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduled.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUShowScheduledResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmit.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSubmitResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckECL.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUSyntaxCheckResponse.Factory + .parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate.class.equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdate.Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntry.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse.class + .equals(type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateQueryEntryResponse + .Factory.parse(reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUUpdateResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitCompiled.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitComplete.Factory.parse( + reader); + reader.close(); + return result; + } + + if (org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.class.equals( + type)) { + + javax.xml.stream.XMLStreamReader reader = param.getXMLStreamReaderWithoutCaching(); + java.lang.Object result = + org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUWaitResponse.Factory.parse( + reader); + reader.close(); + return result; + } + + } catch (java.lang.Exception e) { + throw org.apache.axis2.AxisFault.makeFault(e); + } + return null; + } +} diff --git a/wsclient/src/main/resources/WSDLs/WsWorkunits-199.wsdl b/wsclient/src/main/resources/WSDLs/WsWorkunits-199.wsdl new file mode 100644 index 000000000..d0b0291cd --- /dev/null +++ b/wsclient/src/main/resources/WSDLs/WsWorkunits-199.wsdl @@ -0,0 +1,15866 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wsclient/src/main/resources/WSDLs/WsWorkunits.wsdl b/wsclient/src/main/resources/WSDLs/WsWorkunits.wsdl index 11006ccae..7f3310588 100644 --- a/wsclient/src/main/resources/WSDLs/WsWorkunits.wsdl +++ b/wsclient/src/main/resources/WSDLs/WsWorkunits.wsdl @@ -1,9784 +1,15866 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From bc77af90f4110fd1e2858b36ad27a66043b1d04a Mon Sep 17 00:00:00 2001 From: Rodrigo Pastrana Date: Fri, 15 Mar 2024 15:20:09 -0400 Subject: [PATCH 4/4] HPCC4J-583 Update wswu clients to 9.6.x - Manually updates wswu.wsdl to include recently dropped field Signed-off-by: Rodrigo Pastrana --- .../wssmc/latest/BrowseResourcesResponse.java | 68 ++++++++++++ .../gen/axis2/wssmc/latest/EspSoapFault.java | 2 +- .../wssmc/BrowseResourcesResponseWrapper.java | 35 ++++-- .../wrappers/gen/wssmc/WrapperReport.txt | 104 +++++++++--------- .../src/main/resources/WSDLs/WsSMC-127.wsdl | 1 + wsclient/src/main/resources/WSDLs/WsSMC.wsdl | 1 + 6 files changed, 151 insertions(+), 60 deletions(-) diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResourcesResponse.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResourcesResponse.java index 528505ee7..027e93404 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResourcesResponse.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/BrowseResourcesResponse.java @@ -113,6 +113,39 @@ public void setESPInstance(java.lang.String param) { this.localESPInstance = param; } + /** field for NetAddress */ + protected java.lang.String localNetAddress; + + /* This tracker boolean wil be used to detect whether the user called the set method + * for this attribute. It will be used to determine whether to include this field + * in the serialized XML + */ + protected boolean localNetAddressTracker = false; + + public boolean isNetAddressSpecified() { + return localNetAddressTracker; + } + + /** + * Auto generated getter method + * + * @return java.lang.String + */ + public java.lang.String getNetAddress() { + return localNetAddress; + } + + /** + * Auto generated setter method + * + * @param param NetAddress + */ + public void setNetAddress(java.lang.String param) { + localNetAddressTracker = param != null; + + this.localNetAddress = param; + } + /** field for OS */ protected int localOS; @@ -308,6 +341,22 @@ public void serialize( xmlWriter.writeEndElement(); } + if (localNetAddressTracker) { + namespace = "urn:hpccsystems:ws:wssmc"; + writeStartElement(null, namespace, "NetAddress", xmlWriter); + + if (localNetAddress == null) { + // write the nil attribute + + throw new org.apache.axis2.databinding.ADBException("NetAddress cannot be null!!"); + + } else { + + xmlWriter.writeCharacters(localNetAddress); + } + + xmlWriter.writeEndElement(); + } if (localOSTracker) { namespace = "urn:hpccsystems:ws:wssmc"; writeStartElement(null, namespace, "OS", xmlWriter); @@ -638,6 +687,25 @@ else if (reader.isStartElement() reader.next(); + } // End of if for expected property start element + else if (reader.isStartElement() + && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "NetAddress") + .equals(reader.getName())) { + + nillableValue = + reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); + if ("true".equals(nillableValue) || "1".equals(nillableValue)) { + throw new org.apache.axis2.databinding.ADBException( + "The element: " + "NetAddress" + " cannot be null"); + } + + java.lang.String content = reader.getElementText(); + + object.setNetAddress( + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); + + reader.next(); + } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wssmc", "OS") diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspSoapFault.java b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspSoapFault.java index ce5d3a1ec..c4e71652c 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspSoapFault.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/gen/axis2/wssmc/latest/EspSoapFault.java @@ -8,7 +8,7 @@ public class EspSoapFault extends java.lang.Exception { - private static final long serialVersionUID = 1710436285831L; + private static final long serialVersionUID = 1710528707541L; private org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions faultMessage; diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/BrowseResourcesResponseWrapper.java b/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/BrowseResourcesResponseWrapper.java index a849cf063..d8d1c013b 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/BrowseResourcesResponseWrapper.java +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/BrowseResourcesResponseWrapper.java @@ -26,6 +26,7 @@ public class BrowseResourcesResponseWrapper { protected ArrayOfEspExceptionWrapper local_exceptions; protected String local_portalURL; + protected String local_eSPInstance; protected String local_netAddress; protected int local_oS; protected boolean local_useResource; @@ -39,11 +40,17 @@ public BrowseResourcesResponseWrapper( copy(browseresourcesresponse); } - public BrowseResourcesResponseWrapper(ArrayOfEspExceptionWrapper _exceptions, String _portalURL, String _netAddress, - int _oS, boolean _useResource, ArrayOfHPCCResourceRepositoryWrapper _hPCCResourceRepositories) { + public BrowseResourcesResponseWrapper(ArrayOfEspExceptionWrapper _exceptions, String _portalURL, + String _eSPInstance, String _netAddress, int _oS, boolean _useResource, + ArrayOfHPCCResourceRepositoryWrapper _hPCCResourceRepositories) { this.local_exceptions = _exceptions; this.local_portalURL = _portalURL; + this.local_eSPInstance = _eSPInstance; this.local_netAddress = _netAddress; + if (local_eSPInstance != null && local_eSPInstance.length() > 0) { + if (local_netAddress == null || local_netAddress.length() == 0) + this.local_netAddress = local_eSPInstance; + } this.local_oS = _oS; this.local_useResource = _useResource; this.local_hPCCResourceRepositories = _hPCCResourceRepositories; @@ -57,7 +64,12 @@ private void copy(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourc if (raw.getExceptions() != null) this.local_exceptions = new ArrayOfEspExceptionWrapper(raw.getExceptions()); this.local_portalURL = raw.getPortalURL(); - // this.local_netAddress = raw.getNetAddress(); + this.local_eSPInstance = raw.getESPInstance(); + this.local_netAddress = raw.getNetAddress(); + if (local_eSPInstance != null && local_eSPInstance.length() > 0) { + if (local_netAddress == null || local_netAddress.length() == 0) + this.local_netAddress = local_eSPInstance; + } this.local_oS = raw.getOS(); this.local_useResource = raw.getUseResource(); if (raw.getHPCCResourceRepositories() != null) @@ -69,9 +81,9 @@ private void copy(org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourc @Override public String toString() { return "BrowseResourcesResponseWrapper [" + "exceptions = " + local_exceptions + ", " + "portalURL = " - + local_portalURL + ", " + "netAddress = " + local_netAddress + ", " + "oS = " - + local_oS + ", " + "useResource = " + local_useResource + ", " + "hPCCResourceRepositories = " - + local_hPCCResourceRepositories + "]"; + + local_portalURL + ", " + "eSPInstance = " + local_eSPInstance + ", " + "netAddress = " + + local_netAddress + ", " + "oS = " + local_oS + ", " + "useResource = " + local_useResource + ", " + + "hPCCResourceRepositories = " + local_hPCCResourceRepositories + "]"; } public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse getRaw() { @@ -79,7 +91,8 @@ public org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse if (local_exceptions != null) raw.setExceptions(local_exceptions.getRaw()); raw.setPortalURL(local_portalURL); - // raw.setNetAddress( local_netAddress); + raw.setESPInstance(local_eSPInstance); + raw.setNetAddress(local_netAddress); raw.setOS(local_oS); raw.setUseResource(local_useResource); if (local_hPCCResourceRepositories != null) @@ -103,6 +116,14 @@ public String getPortalURL() { return this.local_portalURL; } + public void setESPInstance(String _eSPInstance) { + this.local_eSPInstance = _eSPInstance; + } + + public String getESPInstance() { + return this.local_eSPInstance; + } + public void setNetAddress(String _netAddress) { this.local_netAddress = _netAddress; } diff --git a/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/WrapperReport.txt b/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/WrapperReport.txt index f92be272f..c86a7236e 100644 --- a/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/WrapperReport.txt +++ b/wsclient/src/main/java/org/hpccsystems/ws/client/wrappers/gen/wssmc/WrapperReport.txt @@ -3,71 +3,71 @@ Generated Axis2 ADB stub class wrapper package report: Wrapper package name: org.hpccsystems.ws.client.wrappers.gen.wssmc Wrapped service name: WsSMC Wrapped package: org.hpccsystems.ws.client.gen.axis2.wssmc.latest - Wrapped service version: 1.26 + Wrapped service version: 1.27 Wrapped Classes: - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfEspException - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfNamedValue org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfServerJobQueue + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfTargetCluster - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfActiveWorkunit - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfThorCluster - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResourcesResponse org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ClearQueue - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Endpoints_type0 - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActivityResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspException + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfo + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResource + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Index + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockModes - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQueryResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobBack org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobDown - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetBuildInfoResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfLock - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Lock - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.BrowseResources - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailabilityResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.DFUJob - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetThorQueueAvailability + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobFront + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEdition - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.LockQuery + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.PauseQueue + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Ping + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RemoveJob org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ResumeQueue - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.EspSoapFault - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResource + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmd org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfoResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlCmdType + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieControlEndpointInfo + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmd org.hpccsystems.ws.client.gen.axis2.wssmc.latest.RoxieXrefCmdResponse org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ServerJobQueue - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.HPCCResourceRepository - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Activity - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ActiveWorkunit - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NamedValue - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfDFUJob - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.MoveJobUp - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.GetStatusServerInfo - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfHPCCResourceRepository + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBanner org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetBannerResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ArrayOfSMCJob - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.NotInCommunityEditionResponse - org.hpccsystems.ws.client.gen.axis2.wssmc.latest.Exceptions + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SetJobPriority + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCIndexResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJob + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCJobResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCPriorityResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.SMCQueueResponse + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StatusServerInfo + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.StopQueue + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.TargetCluster + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.ThorCluster + org.hpccsystems.ws.client.gen.axis2.wssmc.latest.WsSMCPingResponse diff --git a/wsclient/src/main/resources/WSDLs/WsSMC-127.wsdl b/wsclient/src/main/resources/WSDLs/WsSMC-127.wsdl index 2c35806c8..5bcd820fa 100644 --- a/wsclient/src/main/resources/WSDLs/WsSMC-127.wsdl +++ b/wsclient/src/main/resources/WSDLs/WsSMC-127.wsdl @@ -1395,6 +1395,7 @@ + diff --git a/wsclient/src/main/resources/WSDLs/WsSMC.wsdl b/wsclient/src/main/resources/WSDLs/WsSMC.wsdl index 2c35806c8..5bcd820fa 100644 --- a/wsclient/src/main/resources/WSDLs/WsSMC.wsdl +++ b/wsclient/src/main/resources/WSDLs/WsSMC.wsdl @@ -1395,6 +1395,7 @@ +